Home / Archives / June 2026 / Articles

SECURING AUTONOMOUS AI AGENTS: DISTRIBUTED, SANDBOXED EXECUTION ENVIRONMENTS VIA WEBASSEMBLY AND KUBERNETES

Authors: Prem Pradeep Motgi

Country: USA

Abstract

The emergence of Agentic Artificial Intelligence (AI) marks a significant shift from passive generative systems to autonomous agents capable of reasoning, planning, and executing actions with minimal human intervention. These agents increasingly interact with external tools, APIs, cloud resources, and software environments, enabling advanced automation across domains such as software engineering, cybersecurity, business operations, and scientific research. However, the ability of AI agents to generate and execute code autonomously introduces substantial security challenges, including unauthorized resource access, privilege escalation, prompt injection attacks, malicious code execution, data leakage, and supply chain vulnerabilities. Traditional security mechanisms designed for human-operated applications are often insufficient to address the dynamic and autonomous nature of agent-driven execution environments. This study proposes a distributed and sandboxed execution architecture for securing autonomous AI agents through the integration of WebAssembly (Wasm), container runtimes, and Kubernetes-based orchestration. The proposed framework adopts a defense-in-depth approach that isolates AI-generated actions within lightweight Wasm sandboxes while leveraging Kubernetes for scalable workload management, policy enforcement, resource governance, and runtime monitoring. By combining cloud-native technologies with secure execution principles, the architecture aims to minimize attack surfaces, contain potentially harmful agent behaviors, and provide auditable execution pathways for autonomous operations. A design science research methodology is employed to develop and evaluate the conceptual framework. The architecture is analyzed against common threat scenarios associated with Agentic AI, including code injection, unauthorized system interactions, and compromised execution modules. The findings indicate that WebAssemblybased sandboxing offers stronger isolation and reduced overhead compared to traditional virtualized environments, while Kubernetes enhances scalability and operational resilience. The study contributes a vendorneutral security model for autonomous AI systems and provides practical guidance for organizations seeking to deploy trustworthy, secure, and scalable Agentic AI infrastructures. Future research directions include confidential computing integration, adaptive policy engines, and decentralized security frameworks for multiagent ecosystems.

Keywords

Agentic AI, Autonomous AI Agents, WebAssembly, Kubernetes, Sandboxed Execution, Cloud-Native Security, AI Governance, Secure AI Systems

References

1) Aljuhani, A., Alghamdi, M., & Alshammari, R. (2025). Shadowkube: Enhancing Kubernetes security
with behavioral monitoring and honeypot integration. Cybersecurity, 8(1), Article 72.
https://doi.org/10.1186/s42400-025-00372-7
2) Bazzani, M., Lamberti, F., Demartini, C., & Cannavò, A. (2025). WebAssembly and security: A review.
Computer Science Review, 55, 100728. https://doi.org/10.1016/j.cosrev.2025.100728
3) Di Federico, G., Continella, A., & Zuddas, D. (2026). WASP: Stack protection for WebAssembly.
Journal of Systems Architecture, 172, 103666. https://doi.org/10.1016/j.sysarc.2025.103666
4) Ghafari, M., Shen, Y., & Aryani, A. (2019). Practical and effective sandboxing for Linux containers.
Empirical Software Engineering, 24(6), 4034–4070. https://doi.org/10.1007/s10664-019-09737-2
5) Hallak, B., Serhani, M. A., & Salah, K. (2024). SoK: Analysis techniques for WebAssembly. Future
Internet, 16(3), 84. https://doi.org/10.3390/fi16030084
6) Kim, J., Park, H., & Lee, S. (2024). Optimus: Association-based dynamic system call filtering for
container attack surface reduction. Journal of Cloud Computing, 13(1), Article 52.
https://doi.org/10.1186/s13677-024-00639-3
7) Lehmann, D., Pradel, M., & Rossow, C. (2022). Wasmati: An efficient static vulnerability scanner for
WebAssembly. Computers & Security, 118, 102745. https://doi.org/10.1016/j.cose.2022.102745
8) Sjösten, A., Hedin, D., & Sabelfeld, A. (2023). SecWasm: Information flow control for WebAssembly.
In Programming Languages and Systems (pp. 95–119). Springer. https://doi.org/10.1007/978-3-031-
22308-2_5
9) Watt, C., Schmitt, A., Mullen, E., Ren, L., Giannarakis, N., & Swamy, N. (2022). Provably-safe
multilingual software sandboxing using WebAssembly. Proceedings of the ACM on Programming
Languages, 6(POPL), 1–30. https://doi.org/10.1145/3498702
10) Zhang, Y., Chen, X., & Liu, H. (2025). Losing control: Exposing security weaknesses of Kubernetes
control plane interfaces. Computers & Security, 148, 104165.
https://doi.org/10.1016/j.cose.2025.104165