Bookmarks

IDS — intrusion detection system

A software-only or combined software-and-hardware system that monitors network traffic and events on hosts and raises alerts on signs of attacks.

Also: IDS, attack detection system, intrusion detection

checked 9 Nov

All terms

An IDS does not stop an attack itself — its job is to spot and report: which traffic or event looks like an intrusion, which rule matched and what followed. IDS alerts go to a SIEM or straight to security engineers. Network IDS (NIDS) watches the traffic between segments, while host-based IDS (HIDS) watches the events of a particular machine.

How it detects: signatures and anomalies

MethodHow it worksStrengths and weaknesses
Signaturescompares traffic and events against a database of known attack signaturesaccurate matches on known attacks, but the database needs constant updating and does not see new attacks
Anomaliesbuilds a model of normal behaviour and reports deviationscan catch what signatures miss, but produces many false positives
Protocol analysischecks whether the traffic conforms to the protocol specificationcatches attacks that exploit flaws in protocol implementations; sensitive to legitimate deviations

Where it sits and what it does

A classic IDS works passively: it copies traffic from a switch mirror port or a network TAP and blocks nothing. If the system is placed inline and allowed to break connections, it is already an IPS. The rules of the two are similar, which is why NIST considers them together as IDPS in the SP 800-94 guide.

snortA signature in Snort and Suricata syntax: an alert on any TCP traffic to the 192.0.2.0/24 network on port 445
alert tcp any any -> 192.0.2.0/24 445 (msg:"SMB traffic to server net"; sid:1000001; rev:1;)

Typical tools

  • Snort — an open source intrusion detection and prevention system; Suricata uses a rule format close to Snort’s.
  • Suricata — a network engine from the OISF; it works both as an IDS and as an inline IPS, uses a rule syntax close to Snort’s and emits events in the EVE JSON log.
  • Zeek — a network analyser that relies less on signatures: it collects detailed logs of all traffic and lets you write your own detection scripts.

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

In depth in the references

where the topic is covered in detail