Hyperscan is an Intel open-source library for matching thousands of PCRE-style regular expressions at once on x86 hardware. It targets streaming and block scans for DPI, IDS, IPS, and firewall pipelines.
Overview
Hyperscan compiles large regex rule sets into a database, then scans network or file data at run time through a C API. It supports simultaneous matching of many patterns and can tag which rules hit during a scan.
Syntax follows common PCRE conventions while remaining a standalone library. Hybrid automata techniques enable high throughput on Intel SIMD instructions, with block, streaming, and vectored scan modes for different packet layouts.
Streaming mode retains state across chunks so matches survive packet boundaries, which matters for intrusion detection workloads. Integrations with Snort, Suricata, and DPDK are commonly cited use cases.
Compilation happens offline via the C++ compiler component, while the runtime is C-based and can share read-only databases across threads. Master releases on GitHub are QA-tested builds intended for production users.
Key features
- Thousands of concurrent regex rules
- PCRE-oriented syntax support
- Block streaming vectored modes
- SIMD-accelerated matching engines
- Cross-thread shared pattern databases
- C API for embedding in services
Use cases
- Deep packet inspection stacks
- IDS and IPS rule engines
- High-speed traffic filtering
- Multi-pattern log scanning