
The same binary watches a span port, blocks inline traffic and writes the transaction log a SOC hunts through. Breadth is the selling point; it is also why one parser defect reaches every use at once.
The three postures
Passive IDS. A switch SPAN port or a network TAP delivers a copy of traffic. Suricata reassembles TCP streams, parses application protocols, matches rules and writes alerts. It cannot stop anything. Its value is early warning and evidence.
Inline IPS. The sensor sits in the path, usually as a bridge or through NFQUEUE. The same detection verdict now has a consequence: drop discards the packet, reject sends a reset or ICMP error. Inline introduces two new problems — latency and failure mode. A sensor that crashes in-line is either a network outage (fail-closed) or a silent gap (fail-open).
Network security monitoring. Suricata writes protocol transaction records to EVE JSON: one object per line, typed by event. flow, http, dns, tls, smb, smtp, fileinfo, alert, stats. A SIEM or Elastic pipeline ingests them. The sensor becomes a historian as well as a watchdog.
The mail path, specifically
SMTP is where two of this series' three bugs live, so it is worth following the message:
- A TCP session to port 25, 587 or 465 is reassembled into a stream.
- The SMTP parser recognises commands and the
DATAblock. - The MIME decoder walks the message: headers, boundaries, nested parts, transfer encodings — base64, quoted-printable, 7-bit.
- Extracted files are written to the file store or hashed in place; URLs are pulled out of text parts;
file.name,file.data,file.magicandurlbecome rule keywords. - Transaction records go to EVE; alerts go to
fast.log, EVE and any configured output.
Every step after 2 depends on the parser's model of the message. If the model says "this part is an attachment called invoice.pdf", the rules see a PDF. If the model says something else, the rules see something else — and the analyst sees nothing.
What else it does
- File extraction and hashing. Files can be carved from HTTP, SMTP, SMB and FTP, stored, and hashed for reputation lookups. The hash is computed even when the file is not written to disk.
- Protocol logging. DNS queries, TLS certificates and SNI, HTTP headers and bodies, SMB filenames, DHCP leases. This is the data most threat-hunting queries actually run on.
- Rule-driven detection. Suricata reads Snort-compatible signatures and its own keywords, plus Emerging Threats Open and commercial feeds through
suricata-update. - PCAP retention. Conditional packet capture can keep the packets around a matching flow for later analysis.
- Protocol anomaly events. Parsers raise app-layer events (malformed traffic, too many transactions) that rules can alert on — the safety net when a signature does not exist.
The trade that comes with the breadth
Suricata's advantage is that one deployment covers detection, prevention, logging and extraction. The same fact is its structural weakness: every one of those jobs terminates in the same parser stack.
An IDS-only product can fail without changing the network. An inline IPS cannot: its crash is a gap, its false negative is a bypass, and its false positive is an outage. An NSM product can lose a log line quietly. Suricata does all three with one process, so a defect in the SMTP parser is simultaneously a detection gap, a potential inline crash and a hole in the historical record.
There is a second-order effect. Because the engine is general, operators enable protocols they do not deeply understand. Mail parsing is switched on because mail is important; MQTT parsing is switched on because the OT team asked. Each enabled parser is attack surface, and each one is somebody's default configuration rather than a deliberate choice.
The 2026 CVEs are a tour of that surface: a Rust MIME state machine, a C quoted-printable decoder, and an MQTT transaction table — three implementations across two languages, one architectural assumption: that the parser can be trusted to describe the traffic faithfully.
Part 4 asks whether the alternatives do better.

Next: Part 4 — the fast generalist: where Suricata beats Zeek, Snort and NDR, and where it honestly loses.

Comments (0)