AI Cybersecurity Lab

Intrusion and anomaly detection, malware analysis, threat intelligence, phishing, security logs and incident response: defensive experiments that really compute in your browser on synthetic data, with algorithms, datasets, projects and quizzes.

28interactive experiments

Intrusion-detection basics

AI Intrusion Detection · Lesson Beginner

The idea

An intrusion-detection system (IDS) monitors traffic or logs and raises alerts on suspicious activity; it does not necessarily block it. Signature-based systems know known attacks; anomaly-based ones look for deviation from normal.

Explanation

Machine learning represents each connection as a feature vector (duration, bytes, ports…). Supervised classification needs labels; anomaly detection learns only “normal”. The practical challenge is not accuracy but rare attacks and the cost of false alarms (Sommer & Paxson).

Example

If attacks are 0.1% of traffic, a model that always says “normal” scores 99.9% accuracy and detects nothing.

Review questions

  • What is the difference between an IDS and an IPS?
  • Why is accuracy alone not enough?
  • How does signature detection differ from anomaly detection?

Related experiments

See also

References

  1. Sommer, Paxson (2010). Outside the Closed World: On Using Machine Learning for Network Intrusion Detection. IEEE Symposium on Security and Privacy 2010, pp. 305-316. doi:10.1109/sp.2010.25
  2. Arp, Quiring, Pendlebury, Warnecke, Pierazzi, Wressnegger, Cavallaro, Rieck (2024). Pitfalls in Machine Learning for Computer Security. Communications of the ACM 67(11), pp. 104-112. doi:10.1145/3643456