Skip to content
Promptfoo LM Security DB·Indexed by this site · Originally published· Attacks →SelectedAttention41

Context privilege escalation in AI Agent harnesses

Context privilege escalation in AI agent harnesses

AI summary

A paper reports that context assembly in AI Agent harnesses can elevate repository, tool, or skill content into higher-priority instructions or persistent state, forming privilege escalation paths. The study covers 12 fixed versions of harnesses, including Codex, Claude Code, Gemini CLI, and others, and evaluates on 7 models in total: GPT-5.5, GPT-5.4-mini, Claude Sonnet 4.6, Claude Opus 4.6, Gemini 2.5 Flash, Gemini 2.5 Pro, and DeepSeek V4 Flash. The authors report cases including poisoned memory, altered review decisions, and unauthorized configuration changes. The authors also note that a verified context path does not equal a deployment-level success rate; results depend on attacker position, harness version, and privileges, and vendor fix status needs separate verification; they recommend inventorying the privileges and persistence scope of each context source and preventing external content from obtaining instruction or authorization privileges.

Why it was selected

The paper reproduced context privilege escalation paths on 12 fixed versions of Agent harnesses, which deployers can use to inventory the privileges and persistence scope of each context source.

Related papers
Read originalpromptfoo.dev