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
| Method | How it works | Strengths and weaknesses |
|---|---|---|
| Signatures | compares traffic and events against a database of known attack signatures | accurate matches on known attacks, but the database needs constant updating and does not see new attacks |
| Anomalies | builds a model of normal behaviour and reports deviations | can catch what signatures miss, but produces many false positives |
| Protocol analysis | checks whether the traffic conforms to the protocol specification | catches 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.
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- NIST SP 800-94 — Guide to Intrusion Detection and Prevention Systems (IDPS)csrc.nist.gov/pubs/sp/800/94/final(opens in a new tab)
- OISF — Suricata User Guide: What is Suricatadocs.suricata.io/en/suricata-8.0.8/what-is-suricata.html(opens in a new tab)
- Zeek — What Is Zeekdocs.zeek.org/en/master/about/what.html(opens in a new tab)
Verified 9 Nov