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

Families of anomaly detectors

Cyber Anomaly Detection · Lesson Intermediate

The idea

Detectors rely on isolation (Isolation Forest), density (LOF, DBSCAN), distance (K-means), statistics (z-score), reconstruction (autoencoder) or a boundary around normal (OC-SVM).

Explanation

No detector is always best; it depends on data shape, dimension and anomaly rate. The comparison experiment shows this on controllable synthetic data.

Example

LOF can win when clusters differ in density; Isolation Forest is often faster.

Review questions

  • How do density and isolation differ?
  • When does the z-score fail?

Related experiments

See also

References

  1. Liu, Ting, Zhou (2008). Isolation Forest. IEEE ICDM 2008, pp. 413-422. doi:10.1109/icdm.2008.17
  2. Breunig, Kriegel, Ng, Sander (2000). LOF: identifying density-based local outliers. ACM SIGMOD 2000, pp. 93-104. doi:10.1145/342009.335388