An Open-Agent Framework for Intelligent Compliance Analysis in Infrastructure as Code Using Large Language Models
Abstract Cloud misconfiguration is a leading cause of data breaches in production cloud environments, and Infrastructure as Code (IaC) has amplified this risk by letting a single insecure configuration propagate across an entire cloud estate in one deployment. This paper presents an open-agent framework for intelligent compliance analysis of IaC configurations, integrating Open Policy Agent (OPA)-based Policy-as-Code enforcement with Large Language Model (LLM)-driven contextual reasoning in a single hybrid pipeline. Prior work has treated deterministic policy enforcement and LLM-based analysis independently; the proposed framework instead combines the precision of OPA-based Rego rule evaluation with the explanatory and remediation capabilities of an LLM to produce structured, audit-ready compliance evidence aligned to a formal control framework. The framework is instantiated with a custom 16-rule Rego policy library spanning three NIST SP~800-53 control families Access Control (AC), System and Communications Protection (SC), and Audit and Accountability (AU) across eight AWS resource types, and evaluated on 231 labeled Terraform configurations derived from the IaC-Eval benchmark. The OPA enforcement layer achieves 96.9\% precision, 90.5\% recall, and 93.6\% F1 score. The LLM enrichment layer, guided by a deterministic safeguard against LLM recall errors and explicit prompt-level format constraints, produces reliable, audit-ready control mappings and remediation guidance across 16 violation types. The performance advantage over an industrial static-analysis baseline (Checkov) is confirmed statistically significant via McNemar's exact test ($\chi^2=13.0$, $p<0.001$), demonstrating that the hybrid approach delivers compliance analysis outcomes that neither paradigm achieves alone.
- Link
- https://doi.org/10.21203/rs.3.rs-10907487/v1
- Found by
- Crossref
- Authors
- Ayah Al-Jabali, Mu'awya Al-Dala'ien
- Organizations
- Princess Sumaya University for Technology
- Categories
- benchmark, evaluation
- Published
- 2026-10-19
- Last seen by the radar
- 2026-10-19
- Citations
- 0
- Radar score
- 51.17 / 100 (how it is scored)
- Why it scored so
- Matched: benchmark, evaluat; Primary record: Crossref