Concepts / Detection

Detection

IDS signatures and alerts

Also called signature, rule, suricata rule, snort rule, sid, eve.json, fast.log, signature-based detection, anomaly-based detection, tuning

A rule describing a known attack in the traffic's content; the IDS alerts (or, inline, drops) whatever matches.

A rule names the bytes to find and what to do
A rule names the bytes to find and what to do

The action and the header say which traffic to look at; the options say which bytes to find and what the alert is called. A rule finds only the attack it describes.

An IDS signature is a rule describing a known attack in traffic. A Suricata or Snort rule has an action (alert, drop, reject, pass), a protocol, source and destination, then options: msg (the alert's text), content (the bytes to find) and a sid (its number; 1000000 and up for your own). Alerts go to fast.log and eve.json. Signatures miss new attacks; anomaly-based detection flags what departs from a baseline.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab