ADVERSARIAL RESILIENCE OF AGENTIC INFRASTRUCTURE-AS-CODE SYSTEMS: THREAT MODEL, ATTACK TAXONOMY, AND MULTI-LAYERED DEFENSE ARCHITECTURE

Authors

DOI:

https://doi.org/10.28925/2663-4023.2026.34.1275

Keywords:

infrastructure as code, infrastructure as tested code, agentic systems, threat model, attack taxonomy, multi-layered defense, Terraform, cloud security, multi-agent systems

Abstract

The integration of large language models (LLMs) and agentic components into Infrastructure as Code (IaC) workflows significantly expands the attack surface of cloud automation environments. This paper proposes a threat model for agentic IaC systems in the form of the structure SIaC = (Agents, Environment, Configurations, Outcomes), which makes it possible to identify the critical points of influence: agent input data, configuration state, agent intents and goals, inter-agent communication channels, the execution process, authorization mechanisms, and system availability. Based on this model, a taxonomy of 40 attack vectors grouped into 7 categories is developed: prompt injection, configuration state poisoning, agent intent manipulation, attacks on inter-agent communication, exploitation of execution failures, attacks on authorization and access control, and attacks on integrity and availability. A multi-layered (compositional) defense architecture is proposed that combines input validation, agent intent verification, coordination and consensus mechanisms, and self-healing capabilities. The research methodology comprises three stages: threat modeling based on literature synthesis and a preliminary expert review (a formal Delphi study with an external panel is left to future work); design of the compositional defense architecture; and empirical validation in a reproducible software package on 2,157 scenarios — 1,441 synthetic domain-specific scenarios covering all 7 taxonomy categories (each represented by more than 100 scenarios) and 716 scenarios from public datasets (deepset/prompt-injections and labelled Terraform fixtures from the KICS project, both Apache-2.0) — under 1-, 3-, and 5-agent cluster configurations. The defense mechanisms are implemented as deterministic checks (rules, policies, cryptographic integrity), ensuring full reproducibility. The aggregate detection rate on the synthetic scenarios is 79.9% (95% CI 77.3–82.3%) with a false positive rate of 0.7%; effectiveness differs across categories, with the lowest results for agent intent manipulation (A3, 64.7%) and inter-agent communication (M4, 66.7%). On an independent real-world injection set (deepset) the domain-tuned rules detect only 14.4% of attacks, and non-English injections are not detected at all, which demonstrates the limited cross-domain transferability of static rules. Conversely, in a live LLM-agent loop (AgentDojo) on a domain-specific IaC benchmark the defense reduces the attack success rate from 50.0% to 16.7% and raises utility under attack from 66.7% to 91.7%, confirming its effectiveness within the target domain. All 40 attack vectors are additionally mapped to the MITRE ATT&CK, MITRE ATLAS, CWE, CVSS 4.0, NIST CSF 2.0, and OWASP frameworks; ATT&CK and ATLAS prove complementary (92.5% combined coverage), as the LLM-agent-specific vectors are covered by ATLAS. We formally prove composition properties (detection monotonicity, a union bound on false positives) and consensus correctness restoration under up to f < n/2 compromised agents. Future work includes a fully machine-checked verification of these properties and expansion of the attack scenario set.

Downloads

Download data is not yet available.

References

Rahman, A., Parnin, C., & Williams, L. (2019). The seven sins: Security smells in infrastructure as code scripts. In Proceedings of the 41st International Conference on Software Engineering (ICSE '19) (pp. 164-175). IEEE. https://doi.org/10.1109/ICSE.2019.00033

Rahman, A., Mahdavi-Hezaveh, R., & Williams, L. (2019). A systematic mapping study of infrastructure as code research. Information and Software Technology, 108, 65-77.https://doi.org/10.1016/j.infsof.2018.12.004

Verdet, A., Hamdaqa, M., Da Silva, L., & Khomh, F. (2023). Exploring security practices of infrastructure as code: An empirical study [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2308.03952

Parkhomenko, I. I., & Savonik, M. V. (2025). Preventing AWS infrastructure-as-code misconfiguration threats based on testing. Cybersecurity: Education, Science, Technique, 1(29), 236-251.https://doi.org/10.28925/2663-4023.2025.29.887

HashiCorp. (2026). HCP Terraform agents. https://developer.hashicorp.com/terraform/cloud-docs/agents

He, Y., Wang, E., Rong, Y., Cheng, Z., & Chen, H. (2024). Security of AI agents [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2406.08689

Greshake, K., Abdelnabi, S., Mishra, S., Endres, C., Holz, T., & Fritz, M. (2023). Not what you've signed up for: Compromising real-world LLM-integrated applications with indirect prompt injection. In Proceedings of the 16th ACM Workshop on Artificial Intelligence and Security (AISec '23) (pp. 79-90). ACM. https://doi.org/10.1145/3605764.3623985

Debenedetti, E., Zhang, J., Balunović, M., Beurer-Kellner, L., Fischer, M., & Tramèr, F. (2024). AgentDojo: A dynamic environment to evaluate prompt injection attacks and defenses for LLM agents. In Advances in Neural Information Processing Systems, 37. https://doi.org/10.48550/arXiv.2406.13352

OWASP Foundation. (2025). OWASP Top 10 for large language model applications. https://owasp.org/www-project-top-10-for-large-language-model-applications/

Lamport, L. (1994). The temporal logic of actions. ACM Transactions on Programming Languages and Systems, 16(3), 872-923. https://doi.org/10.1145/177492.177726

Ongaro, D., & Ousterhout, J. (2014). In search of an understandable consensus algorithm. In Proceedings of the 2014 USENIX Annual Technical Conference (USENIX ATC '14) (pp. 305-319). USENIX Association.

Castro, M., & Liskov, B. (1999). Practical Byzantine fault tolerance. In Proceedings of the Third Symposium on Operating Systems Design and Implementation (OSDI '99) (pp. 173-186). USENIX Association.

MITRE Corporation. (2024). MITRE ATT&CK. https://attack.mitre.org/

MITRE Corporation. (2025). Common Weakness Enumeration (CWE). https://cwe.mitre.org/

FIRST.org. (2023). Common Vulnerability Scoring System version 4.0: Specification document. https://www.first.org/cvss/v4.0/specification-document

National Institute of Standards and Technology. (2024). The NIST Cybersecurity Framework (CSF) 2.0 (NIST CSWP 29). https://doi.org/10.6028/NIST.CSWP.29

MITRE Corporation. (2024). MITRE ATLAS (Adversarial Threat Landscape for Artificial Intelligence Systems). https://atlas.mitre.org/

Downloads


Abstract views: 12

Published

2026-09-24

How to Cite

Savonik, M., & Parkhomenko, I. (2026). ADVERSARIAL RESILIENCE OF AGENTIC INFRASTRUCTURE-AS-CODE SYSTEMS: THREAT MODEL, ATTACK TAXONOMY, AND MULTI-LAYERED DEFENSE ARCHITECTURE. Electronic Professional Scientific Journal «Cybersecurity: Education, Science, Technique», 2(34), 32–44. https://doi.org/10.28925/2663-4023.2026.34.1275

Most read articles by the same author(s)