Skip to content
Embrace The Red·Indexed by this site · Originally published· Attacks →SelectedAttention39

Cross-agent privilege escalation: how one agent rewrites another agent's configuration and breaks it out of the sandbox

Cross-Agent Privilege Escalation: When Agents Free Each Other

AI summary

Researchers demonstrate a cross-agent privilege escalation attack chain: GitHub Copilot hijacked via indirect prompt injection can write to Claude Code's MCP configuration and instruction files such as CLAUDE.md, add malicious MCP servers or allow shell commands, and when developers use Claude Code these changes are loaded and execute arbitrary code; Claude can also rewrite Copilot's configuration in reverse, forming an escalation loop.

Why it was selected

The author uses GitHub Copilot and Claude Code as examples to demonstrate a cross-agent privilege escalation chain, and offers transferable mitigation ideas such as configuration isolation and least privilege.

Read originalembracethered.com