From Approval to Abuse: Privilege Escalation Attacks on Harness-Protected Coding Agents
On the map: LLM agents and tool use → Agent threats, guardrails and governance
also in 1 more
Abstract (arXiv)
Coding agents use execution harnesses to constrain the consequences of prompt injection by enforcing permission boundaries. These systems deterministically intercept any out-of-sandbox action and prompt the user for approval. To reduce approval fatigue, users can approve allow-rules proposed by the agent, after which any future action matching the rule is allowed without a prompt. In this work, we show that this mechanism introduces a new risk: untrusted context can influence the permissions presented for approval, with consequences extending beyond the immediate task. We investigate privilege escalation targeting this permission-update process. Specifically, adversarial context planted in a repository can reliably steer an agent performing a routine task into requesting a plausibly justified, yet dangerously broad allow-rule. If the user approves the request, the saved rule can effectively blind the harness, enabling adversaries to execute malicious actions that would otherwise require approval, without triggering human oversight. Across production platforms, including Claude Code and Codex CLI, we demonstrate that agents successfully elicit the target allow-rules in 58% of experimental instances. Once acquired, these rules exhibit a massive semantic blast radius, covering 56.9% of category-specific capability test cases. To further quantify the downstream risk, we show that conditional on rule approval, our exploit achieves verified, silent goal completion in 47 of the 58 eligible instances (81.0%), undermining the safety promise of human-in-the-loop oversight.
Key facts. Cited by 2 papers in the map (data through 24 Nov 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 24 of its 30 references that are in the map. Submitted 16 Oct 2026.
Builds on
24 of 30 references.
Closest ancestors · 18
Same direction, newest first
- 2026Authority Is Not a String: A Capability-Scoped Harness for Prompt-Injection-Resistant Coding Agents8 Sep
- 2026StepJack: Benchmarking Computer-Use Agent Safety Against Multi-Step Indirect Prompt Injection6 Aug
- 2026IssueTrojanBench: Benchmarking AI Coding Agents Against Malicious Issue Requests22 Jul
- 2026How Agents Ask for Permission: User Permissions for AI Agents, from Interfaces to Enforcement15 Jul
- 2026SABER: Benchmarking Operational Safety of LLM Coding Agents in Stateful Project Workspaces31 May
- 2026Overeager Coding Agents: Measuring Out-of-Scope Actions on Benign Tasks18 May
- 2026Measuring the Permission Gate: A Stress-Test Evaluation of Claude Code's Auto Mode4 Apr
- 2026Zombie Agents: Persistent Control of Self-Evolving LLM Agents via Self-Reinforcing Injections17 Feb
- 2026MCP-ITP: An Automated Framework for Implicit Tool Poisoning in MCP12 Jan
- 2025TraceAegis: Securing LLM-Based Agents via Hierarchical and Behavioral Anomaly Detection13 Oct
- 2025A Large-Scale Evolvable Dataset for Model Context Protocol Ecosystem and Security Analysis30 Jun
- 2025Progent: Securing AI Agents with Privilege Control16 Apr
6 more
- 2025Defeating Prompt Injections by Design24 Mar
- 2025AgentSpec: Customizable Runtime Enforcement for Safe and Reliable LLM Agents24 Mar
- 2024The Task Shield: Enforcing Task Alignment to Defend Against Indirect Prompt Injection in LLM Agents21 Dec
- 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases17 Jul
- 2024IsolateGPT: An Execution Isolation Architecture for LLM-Based Agentic Systems8 Mar
- 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents5 Mar
Other references · 6
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 2,069
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,638
- 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructionscited by 568
- 2024SecAlign: Defending Against Prompt Injection with Preference Optimizationcited by 251
- 2025When MCP Servers Attack: Taxonomy, Feasibility, and Mitigationcited by 18
- 2026LLM-enabled Applications Require System-Level Threat Monitoringcited by 3
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026Trojan's Whisper: Stealthy Manipulation of OpenClaw through Injected Bootstrapped Guidance
- 2026Conflux: Preventing Privilege Escalation with Principal Contexts and System-Level Evaluation
- 2026MOSAIC-Bench: Measuring Compositional Vulnerability Induction in Coding Agents
- 2026ARGUS: Defending LLM Agents Against Context-Aware Prompt Injection
- 2026SkillGuard: A Permission-Centric Framework for Agent Skill Security
- 2026SLEIGHT-Bench: A Benchmark of Evasion Attacks Against Agent Monitors
- 2026AuthGateBench: Benchmarking LLMs as Authorization Gate
- 2026Do Coding Agents Understand Least-Privilege Authorization?