Tag: Role Confusion

  • AI researchers trick chatbots into sharing how to make cocaine as long as they believe a user is wearing a green shirt — ‘CoT Forgery’ exploit spurs LLMs to divulge forbidden info by faking trusted chains of thought

    Featured image AI researchers trick chatbots into sharing how to make cocaine as long as they believe a user is wearing a green shirt  CoT Forgery exp

    The world of artificial intelligence is increasingly sophisticated, but behind the polished interfaces and complex algorithms, there are still deep vulnerabilities lurking in the code. New research is shining a light on how these Large Language Models (LLMs) can be tricked—not just through simple errors, but through subtle manipulations of how they perceive authority.

    A recent paper by researchers Charles Ye, Jasmine Cui, and Dylan Hadfield-Menell has exposed a critical security flaw in every AI chatbot: prompt injection. Their work, titled Prompt Injection as Role Confusion, dives into the concept that models determine what is true based on writing style, not just explicit role tags.

    The implications of this discovery are startling. The researchers demonstrated that an LLM can be manipulated to reveal dangerous information, such as instructions for synthesizing illicit substances, simply by wrapping the request in fabricated reasoning—for instance, claiming compliance is fine because the user is wearing a green shirt. This technique, which the authors dubbed CoT Forgery, succeeded in moving jailbreak success from near zero to approximately 60% across every model tested.

    How does this work? Models process conversation as a continuous string of text, separated by tags like user, tool, and think. The researchers built “role probes” to measure how strongly the model treated each piece of text as its own reasoning versus an external command. They found that models lean heavily on the writing style to make these determinations. Text that merely reads like reasoning is often accepted as such, even when surrounded by contradictory formatting tags.

    This reliance on perceived role creates a backdoor. CoT Forgery injects fabricated rationale, making the model inherit the trust it places in its own internal thinking. Because the injected reasoning can be transparently absurd—like citing an irrelevant detail—the model doesn’t scrutinize the claim as an external input. This is fundamentally different from traditional persuasion-based jailbreaks, which weaken as requests become more extreme.

    The research further analyzed the role of these tags. When researchers removed the stylistic markers that made injected text appear like the model’s reasoning, attack success plummeted from 61% down to just 10%. Even a minor change, such as swapping “The user” for “The request,” reduced success by 19%. The authors concluded that role tags were essentially the security architecture of modern LLMs, and the immense load on this structure has created these unexpected vulnerabilities.

    This finding extends beyond simple chat prompts. The researchers also explored how this concept of “role confusion” applies to more complex agentic AI systems. They noted a subtle but dangerous risk: the tone of a webpage an agent browses can “bleed past” its instructions, potentially nudging it toward unwanted actions, like making a purchase.

    Ultimately, the research confirms that without genuine role perception built into the architecture, defenses against prompt injection will remain a constant game of whack-a-mole. Ensuring the safety and reliability of AI requires addressing not just what models say, but how they perceive the authority behind the words.