What methods does an IDS use to recognise attacks?
- Signature-based: match known attack patterns.
- Anomaly-based: flag deviations from normal (protocol analysis, statistics/AI, honeypots).
- Reputation-based: flag contact with known-bad addresses (a special case of signatures).
* Two families: signatures describe the attack, anomaly methods describe "normal" and flag what deviates. *
Signature-based detection compares data against a library of known attack patterns, from a simple string to a complex sequence. It is precise and easy to understand, but it can only find what someone has already described.
Anomaly-based detection defines what normal looks like and alerts on deviations. There are three variants:
- Protocol analysis: normal is what the protocol specification allows, so a malformed or out-of-spec packet is suspicious.
- Statistical / AI: normal is learned from the system's own behaviour (login times, usage frequency, failed logins), and anything statistically significant stands out.
- Honeypots: normal is no traffic at all, because nobody legitimate uses the decoy.
Reputation-based detection flags traffic to or from IP addresses or domains with a bad history (known C2 servers, scanners). Technically it is signature matching where the signature is just an address.
Real IDSs combine these: anomaly methods can find new attacks, while signatures give precise, explainable alerts for known ones.
Go deeper:
BSI-Leitfaden zur Einführung von Intrusion-Detection-Systemen: IDS-Grundlagen — the source of this taxonomy: signatures plus protocol, statistical, AI and honeypot anomaly detection.
NIST SP 800-94: Guide to Intrusion Detection and Prevention Systems (PDF) — section 2.3 compares signature, anomaly and stateful protocol analysis side by side.
Intrusion detection system (Wikipedia) — short summaries of each method, including reputation-based detection.