ARPaCCino: An Agentic-RAG for Policy as Code Compliance
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Policy as Code (PaC) is a paradigm that encodes security and compliance policies into machine-readable formats, enabling automated enforcement in Infrastructure as Code (IaC) environments. However, its adoption is hindered by the complexity of policy languages and the risk of misconfigurations. In this work, we present ARPaCCino, an agentic system that combines Large Language Models (LLMs), Retrieval-Augmented-Generation (RAG), and tool-based validation to automate the generation and verification of PaC rules. Given natural language descriptions of the desired policies, ARPaCCino generates formal Rego rules, assesses IaC compliance, and iteratively refines the IaC configurations to ensure conformance. Thanks to its modular agentic architecture and integration with external tools and knowledge bases, ARPaCCino supports policy validation across a wide range of technologies, including niche or emerging IaC frameworks. Experimental evaluation involving a Terraform-based case study demonstrates ARPaCCino's effectiveness in generating syntactically and semantically correct policies, identifying non-compliant infrastructures, and applying corrective modifications, even when using smaller, open-weight LLMs. Our results highlight the potential of agentic RAG architectures to enhance the automation, reliability, and accessibility of PaC workflows.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 7 of its 25 references that are in the map. First posted on arXiv 11 Jul 2025.
Builds on
7 of 25 references.
Closest ancestors · 1
Same direction, newest first
Other references · 6
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,439
- 2024A Survey of using Large Language Models for Generating Infrastructure as Codecited by 10
- 2024Using a Feedback Loop for LLM-based Infrastructure as Code Generationcited by 5
- 2021Challenges and solutions when adopting DevSecOps: A systematic reviewcited by 4
- 2025Large Language Models for IT Automation Tasks: Are We There Yet?cited by 1
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026CodeScout: Contextual Problem Statement Enhancement for Software Agentscited by 4
- 2026Near-Miss: Latent Policy Failure Detection in Agentic Workflowscited by 4
- 2026Prose2Policy (P2P): A Practical LLM Pipeline for Translating Natural-Language Access Policies into Executable Regocited by 1
- 2026Towards Agentic Cloud Engineering: Graph and Loop Engineering with a Zero-Trust Agent Harnesscited by 0
- 2026Towards Agentic Cloud Engineering: Graph and Loop Engineering with a Zero-Trust Agent Harness30 Aug 2026
- 2026Near-Miss: Latent Policy Failure Detection in Agentic Workflows31 Mar 2026
- 2026Prose2Policy (P2P): A Practical LLM Pipeline for Translating Natural-Language Access Policies into Executable Rego16 Mar 2026
- 2026CodeScout: Contextual Problem Statement Enhancement for Software Agents5 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2025Multi-Agent Code-Orchestrated Generation for Reliable Infrastructure-as-Code
- 2026Autoformalization of Agent Instructions into Policy-as-Code
- 2026ARCHER: Agentic Rule and Compliance Harness for Executable Regulations
- 2026AutoCedar: An Agentic Framework for Verifier-Guided Access Control Policy Synthesis
- 2026PolicyKG: An Agentic LLM Pipeline for Translating Institutional Policies into SHACL Knowledge Graphs
- 2026Formal Policy Enforcement for Real-World Agentic Systems
- 2026Verifier-First Evaluation of Agentic LLMs for Infrastructure-as-Code Generation
- 2026PolicyBank: Evolving Policy Understanding for LLM Agents