Published July 23, 2025 | Version v1
Journal article Open

Infrastructure-as-Code Security Using Machine Learning Techniques

Authors/Creators

Description

Infrastructure-as-Code (IaC) has revolutionized cloud resource management by allowing developers to define complex environments through machine-readable configuration files. However, this shift-left approach also introduces significant security risks, as a single misconfiguration can propagate vulnerabilities across an entire enterprise. Traditional static analysis tools often struggle with the semantic complexity and variety of IaC frameworks like Terraform, Ansible, and Kubernetes. This review examines the emergence of Machine Learning (ML) as a robust solution for IaC security. By leveraging Natural Language Processing (NLP), Deep Learning (DL), and anomaly detection, ML-based systems can identify \\\"security smells,\\\" predict compliance violations, and detect configuration drift with higher precision than rule-based systems. This article provides a comprehensive overview of the current state-of-the-art, exploring data representation techniques, the integration of Large Language Models (LLMs), and the transition toward self-healing infrastructures. Finally, we discuss the remaining challenges, including data scarcity and adversarial risks, and outline future research directions in the field.

Files

ijnrefm-volume3-issue4-149.pdf

Files (707.3 kB)

Name Size Download all
md5:5307438b4b94813e4b6a7d2ccb409f10
707.3 kB Preview Download

Additional details