Explainable Anomaly Detection for Secure CI/CD Pipelines: A Shapley Additive Explanations (SHAP) Approach

Authors

  • Abhishek Kumar Author

DOI:

https://doi.org/10.64180/

Keywords:

Explainable AI, Anomaly Detection, CI/CD Security, DevSecOps, SHAP, Deep Autoencoder

Abstract

The integration of machine learning into DevSecOps pipelines has enabled automated detection of anomalous activities, yet the opacity of these “black-box” models remains a significant barrier to adoption. Security analysts and developers require not only alerts but also understandable explanations of why a specific commit or pipeline event was flagged as suspicious. This paper presents a framework for explainable anomaly detection in CI/CD environments that combines deep autoencoders with Shapley Additive Explanations (SHAP). The system leverages commit metadata—including timing patterns, file entropy, and modification magnitude—to model normal developer behavior through unsupervised learning. Simultaneously, SHAP values quantify the marginal contribution of each feature to the anomaly score, providing transparent, feature-level explanations. Experimental evaluation on a real-world commit dataset demonstrates that the proposed framework achieves an F1-score exceeding 0.91, substantially outperforming Isolation Forest (0.78) and One-Class SVM baselines. The explainability layer enables security teams to distinguish between true threats and benign anomalies while reducing false positive investigation overhead. By bridging the gap between high-performance detection and human interpretability, this work advances the practical deployment of AI-driven security controls in DevSecOps workflows.

Downloads

Published

2025-07-04

How to Cite

Explainable Anomaly Detection for Secure CI/CD Pipelines: A Shapley Additive Explanations (SHAP) Approach. (2025). International Journal of Engineering Fields, ISSN: 3078-4425, 3(3), 30-44. https://doi.org/10.64180/

Similar Articles

1-10 of 25

You may also start an advanced similarity search for this article.