DML School of Technology
Menu

Open to everyone Reading, lesson 71 of 100, 2 min read

Intrusion detection

Watching the network and the hosts

Intrusion detection systems (IDS) look for signs of attack and raise alerts. Intrusion prevention systems (IPS) can also block what they detect.

KindWatchesExample
Network IDS (NIDS)Traffic passing a point in the networkOpen-source engines such as Snort, Suricata and Zeek
Host IDS (HIDS)Activity on one computer: files, logs, processesFile integrity monitoring tools and agents such as Wazuh

Two ways to detect

  • Signature-based: matches known patterns of attacks. Accurate for known threats; blind to new ones.
  • Anomaly-based: learns what normal looks like and alerts on differences. Can catch new attacks, but raises more false alarms.

Getting the four outcomes right

Attack really happeningNo attack
Alert raisedTrue positiveFalse positive (wasted time)
No alertFalse negative (missed attack)True negative

Tuning is a constant balance: fewer false positives often means more false negatives. Missing a real attack is usually worse, but drowning analysts in false alarms leads to missed attacks too.

File integrity monitoring

A simple, powerful host control: keep hashes of important files (system programs, website code, configuration) and alert when they change unexpectedly. A changed web page script on a server that was not updated today deserves a look.

Honeypots

A honeypot is a decoy system or account that no legitimate user should ever touch. Any interaction with it is suspicious by definition, which makes it a high-quality alert. A fake "admin-backup" account that alerts when anyone tries to sign in is a cheap honeypot.

Tip

Encrypted traffic hides content from network IDS, so modern detection relies more on endpoint and log data, and on metadata such as which hosts talk to which, when and how much.