Securing Autonomous Agentic AI Workflows Against Prompt Injection and Privilege Escalation
DOI: 10.66838/ma.252
|
Abstract Autonomous AI agents that read email, browse the web, call tools, and delegate to other agents turn a model's text-following behaviour into real-world actions. This makes prompt injection, where attacker-controlled content is mistaken for instructions, a direct route to data exfiltration, record tampering, and privilege escalation. Defences that try to make the model itself resistant are probabilistic and have been shown to fail against adaptive attackers. This paper takes the complementary position that an agent should be secured by the enforcement layer around the model, on the assumption that the model can be manipulated. It proposes a threat model and an attack taxonomy for agentic workflows, defines six defence designs from prompt-level filtering to a layered architecture of scoped capabilities, plan-locking, information-flow labels, and targeted human confirmation, and evaluates them in a simulated agent environment with eight tasks, fifteen tools at four privilege levels, and eight attack classes. The model is represented as a stochastic policy that follows an injected instruction with a given probability, and the defences are deterministic policy code. Without defences, attacks succeeded in about 60% of episodes at a follow probability of 0.6 and 77% for persistent memory poisoning. Prompt-level defences reduced this to 3% to 4% for tool-output injection but not for memory poisoning, and their effectiveness fell as detector recall fell (3.6% to 23.9% mean success from recall 0.85 to 0). Tool allowlists blocked out-of-scope tools but left in-scope abuse at 60%. Plan-locking with information-flow labels reduced every attack to zero except in-scope record tampering (30%), whereas scoped capabilities alone left exfiltration to a compromised known contact at 60%. A layered design combining them with targeted human confirmation held mean attack success at 1.1% at a follow probability of 0.6 and at 1.8% at 0.9, with 99% task completion and 0.5 confirmations per task, but its residual attack, in-scope tampering, depended linearly on how often users approve malicious requests. The results come from a simulation whose outcomes follow from the encoded policy semantics, and they should be read as an analysis of coverage and trade-offs, not as measurements of real agents.
Keywords
Agentic AI, Prompt Injection, Privilege Escalation, Least Privilege, Information-Flow Control, Capability-Based Security, Human-in-the-Loop, LLM Agents, |