← Lab /Software

LLM agents can be tricked into elevating malicious instructions, breaking privilege controls

Instruction privilege escalation lets attackers achieve multiple security objectives across coding-agent harnesses

Software arXiv 27 Aug 2026 Attack Prototype evidence

Published as “When Context Gets Root: Privilege Escalation in LLM Harnesses”

Why it matters

The work shows that current instruction-hierarchy and permission-review defenses are insufficient, prompting a need to redesign provenance handling and privilege enforcement in LLM agent harnesses.

Summary

Instruction privilege escalation lets an attacker raise low-privilege, tool-level content to user- or system-level instructions via the harness’s context reconstruction, bypassing both the working agent’s defenses and automatic permission reviewers. The authors demonstrate that the attack achieves all 13 objectives on every one of six coding-agent harnesses under unrestricted execution, and also on all three harnesses that support automatic permission review. Success rates vary, with tool-to-user escalation reaching 31.7%-100% after escalation and tool-to-system escalation achieving up to 100% success, but some configurations (e.g., Qwen Code under Auto PR) see lower rates, indicating the attack is not universally perfect.

What they found 6

  1. All 13 attack objectives succeed on all six harnesses under full-access execution.

    “With unrestricted action execution, the attacks achieve all 13 objectives on all six harnesses.”

  2. The attacks also succeed on all three harnesses that support automatic permission review.

    “Under automatic permission review, the attacks achieve all 13 objectives on all three harnesses that provide this mode.”

  3. Tool-to-user escalation attains a 97.3% mean success rate after escalation, while tool-to-system escalation attains an 80.3% mean per-attempt success rate.

    “tool-to-user escalation achieves a 97.3% mean success rate after escalation, while tool-to-system escalation achieves an 80.3% mean per-attempt attack success rate.”

  4. Once escalation succeeds, the subsequent attack succeeds in nearly 100% of cases under both permission modes.

    “Once escalation succeeds, the subsequent attack succeeds in nearly 100% of cases under both permission modes.”

  5. The hidden-script variant of tool-to-system escalation completes all objectives under both full-access and Auto PR modes.

    “The hidden-script variant is substantially more effective. The attack completes all objectives under both full-access and Auto PR modes.”

  6. All four paths using persistent goals or scheduled tasks achieve all 13 objectives.

    “Table 12 shows that all four paths achieve all 13 attack objectives.”

Caveats 3

  • Tool-to-user escalation success after escalation ranges from 31.7% to 100% in full-access mode, indicating many attempts fail to elevate the content.
  • Under Auto PR, Codex’s attack success rate drops by 27.8% compared to full-access mode, showing the reviewer can reduce effectiveness.
  • Tool-to-system escalation installation success under Auto PR varies from 46.2% to 100%, and attack success rates under Auto PR are as low as 61.9% for Qwen Code.

What’s new here 4

  • Escalates malicious content by exploiting harness-side context reconstruction rather than model-side role confusion.
  • Demonstrates two escalation paths (tool-to-user and tool-to-system) across multiple mechanisms (delegation, persistent goals, scheduled tasks, custom subagents).
  • Shows that automatic permission review, a proposed defense, can be bypassed in many harnesses.
  • Provides a systematic evaluation across six real coding-agent harnesses and 13 diverse attack objectives.