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

Datasets and their limits

AI Intrusion Detection · Lesson Intermediate

The idea

Datasets such as NSL-KDD, UNSW-NB15 and CIC-IDS2017 help learning and comparison, but they do not represent your network.

Explanation

Common mistakes: leakage between train and test (repeated connections), features that encode the label, random instead of temporal splits, and ignoring concept drift. See the dataset pages in this lab for each one’s limits.

Example

Splitting CIC-IDS2017 by day is more honest than a random record split.

Review questions

  • What is leakage?
  • Why prefer temporal splitting?
  • Why not generalise one dataset’s results?

Related experiments

See also

References

  1. 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
  2. Tavallaee, Bagheri, Lu, Ghorbani (2009). A detailed analysis of the KDD CUP 99 data set. IEEE CISDA 2009, pp. 1-6. doi:10.1109/cisda.2009.5356528
  3. Sharafaldin, Lashkari, Ghorbani (2018). Toward Generating a New Intrusion Detection Dataset and Intrusion Traffic Characterization. Proc. ICISSP 2018, pp. 108-116. doi:10.5220/0006639801080116