LOGBOOK

HELP

Quiz Entry - updated: 2026.11.26

A production Emerging Threats rule starts alert tcp $HOME_NET any -> !$WSUS_SERVERS $HTTP_PORTS (… flow:established,to_server; content:"Windows-Update-Agent"; http_header; …)`. What do `$HOME_NET, !, flow and http_header do?

$HOME_NET and similar names are variables defined in the config; ! negates; flow:established,to_server limits matching to client-to-server data in established TCP sessions; http_header restricts the content match to the HTTP headers.

  • Variables. $HOME_NET` (your networks), `$HTTP_PORTS, $WSUS_SERVERS and so on are defined once in suricata.yaml. Rules stay portable between organisations; each one just sets its own values.
  • ! negation. !$WSUS_SERVERS means "any destination except our own update servers". This rule flags clients that fetch Windows updates directly from the Internet, bypassing the company's update server. That is a policy violation rather than an attack.
  • flow:established,to_server. Only look at traffic inside a fully established TCP connection, in the direction client → server. This cuts out scans and stray packets and makes the rule cheaper.
  • http_header (a sticky buffer in newer syntax). The preceding content must appear in the parsed HTTP headers, not anywhere in the packet. That avoids false positives from the same text in a page body.

The rule also uses within (relative positioning between contents), a pcre for the exact User-Agent line, and reference: links. Real rules are layered this way, from cheap and broad to expensive and precise, so they are both fast and accurate.

Go deeper:

From Quiz: ISLAB / Network Security Monitoring | Updated: Nov 26, 2026