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

Explaining classification decisions

Malware Analysis · Lesson Advanced

The idea

Feature importance is global; explaining one sample is local. Shapley values distribute the prediction gap over features.

Explanation

The experiment applies a SHAP-style Monte-Carlo estimate (not the SHAP library). An explanation describes the model, not true causality, and varies with the baseline sample.

Example

Sum the contributions: they equal the gap between the sample’s probability and the baseline probability.

Review questions

  • What is the difference between global and local explanation?

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