-
Notifications
You must be signed in to change notification settings - Fork 0
PromptInjectionAsRoleConfusion
title: Prompt Injection as Role Confusion type: technique created: 2026-06-25 last_updated: 2026-06-25 related: ["radar/techniques/LLMAgentPromptInjectionPatterns"] sources: ["https://role-confusion.github.io/"] radar_quadrant: Techniques radar_ring: Assess radar_position: inner
A theoretical framework for understanding prompt injection vulnerabilities in LLMs, proposed in an ICML 2026 paper by Ye, Cui, and Hadfield-Menell. The core claim: prompt injections succeed because LLMs identify roles (system, user, reasoning) through soft stylistic signals rather than hard architectural boundaries, making style-spoofing attacks structurally viable.
Traditional accounts of prompt injection treat it as a failure of instruction following. The role confusion model reframes it: LLMs learn that "reasoning-like text" equals "my reasoning" and "instruction-like text" equals "a user request" based on training signal, not formal role tags. An attacker who mimics the style of a trusted role can cause the model to treat injected content with unwarranted trust.
The paper introduces role probes -- measurement tools that quantify how strongly a model internally perceives tokens as belonging to specific roles. Two metrics:
- CoTness: perceived alignment with chain-of-thought / reasoning tokens
- Userness: perceived alignment with user instruction tokens
These probes allow empirical measurement of role leakage across model architectures.
The paper introduces CoT Forgery as a named attack derived from the model. An adversary injects fake reasoning blocks styled to match the model's genuine thought patterns. Because the model treats reasoning-style text as its own output, the injected block is processed with the same trust as real chain-of-thought.
Testing showed CoT Forgery increased attack success from near-zero to approximately 60% across frontier models. The attack requires no special access -- only knowledge of what the target model's reasoning output looks like.
The role confusion model explains both classic prompt injection (style-spoofing user instructions) and newer CoT-layer attacks as instances of the same underlying vulnerability. Defensive approaches that rely on prompt-level separation (e.g., XML tags, delimiters) are insufficient if the model's role perception is style-driven rather than structurally enforced.
This connects to the defensive design patterns in radar/techniques/LLMAgentPromptInjectionPatterns, which address the practical mitigations (privilege separation, output validation, confirmation gates) that remain valid regardless of attack model.
Placed in Assess at inner position. The role confusion framing is the most precise theoretical account of prompt injection available as of 2026, backed by ICML peer review and empirical measurement via role probes. The CoT Forgery attack has demonstrated 60% success rates against frontier models. Relevant to any team building LLM agents with tool use or multi-turn reasoning. Trial gate: apply role probe analysis to an active agent system and use findings to harden trust boundaries.