Interesting Paper Exploring Prompt Injection

This is a fascinating explotation of how LLMs fall for prompt injection attacks. It turns out that they learn to recognize the style of text in different role/instruction blocks, and not just the tags.

Their conclusion:

Role tags were a formatting trick that became the security architecture and the cognitive scaffolding of modern LLMs. We’ve shown that this architecture doesn’t survive into the model’s actual representations, and that such role confusion is linked to prompt injection.

Unless LLMs achieve genuine role perception, we think injection defense will remain a perpetual whack-a-mole game. And the continuous nature of role boundaries opens the threat of injections designed to subtly shift LLM states through seemingly innocuous text, legally and at scale.

More generally, roles are quietly one of the most important abstractions in the LLM stack, providing the boundaries meant to separate self from other, thought from communication, instruction from data. They’re human-controlled switches in an otherwise continuous system. We think they deserve a lot more study than they’ve gotten.

Full paper: “Prompt Injection as Role Confusion.” Simon Willison comments.

Posted on June 25, 2026 at 7:23 AM1 Comments

Comments

Ronald McDonald June 25, 2026 9:07 AM

I BECAME RONALD MCDONALD I BECAME A GOD! AND I WILL RULE FOR EVER AND EVER AND EVER HAHAHHAHHHHAAHHA

You see, Grimace lives in me now.

⬜⬜⬜⬜⬜⬜⬜⬜🟩🟩🟩⬜⬜⬜⬜🟦🟦🟦⬜⬜⬜⬜⬜⬜⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜🟩🟩🟩🟩🟩⬜⬜🟦🟦🟦🟦🟦🟦⬜⬜⬜⬜⬜⬜⬜
⬜⬜⬜🟨🟨⬜⬜🟩🟩🟩🟩🟩🟩🟦🟦🟦🟦🟦🟦🟦⬜⬜🟦🟦⬜⬜⬜
⬜⬜🟨🟨🟨🟨🟨🟩🟩🟩🟩🟩🟩🟩🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦⬜⬜
⬜⬜🟨🟨🟨🟨🟨🟨⬜🟩🟩🟩⬜⬜⬜🟦🟦🟦⬜🟦🟦🟦🟦🟦🟦🟦⬜
⬜⬜🟨🟨🟨🟨⬜⬜⬜⬜🟩⬜⬜⬜⬜⬜🟦⬜⬜⬜⬜🟦🟦🟦🟦🟦⬜
⬜⬜🟨🟨🟨⬜⬜⬜⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜⬛⬜⬜⬜🟦🟦🟦🟦⬜
⬜🟨🟨🟨🟨⬜⬜⬜⬛⬜⬜⬜⬜⬜⬜⬜⬜⬜⬛⬜⬜⬜🟦🟦🟦🟦⬜
🟨🟨🟨🟨🟨⬜⬜⬛⬜⬛⬜⬜⬜⬜⬜⬜⬜⬛⬜⬛⬜⬜⬜🟦🟦⬜⬜
🟨🟨🟨🟨⬜⬛⬛⬜⬜⬜⬛⬛⬜⬜⬜⬛⬛⬜⬜⬜⬛⬛⬜🟦🟪⬜⬜
🟨🟨🟨🟨⬜⬜⬜⬛⬜⬛⬜⬜⬜⬜⬜⬜⬜⬛⬜⬛⬜⬜⬜🟪🟪🟪⬜
⬜🟨🟨🟨⬜⬜⬜⬜⬛⬜⬜⬜🟥🟥🟥⬜⬜⬜⬛⬜⬜⬜⬜🟪🟪🟪🟪
⬜⬜🟥🟥⬜⬜⬜⬜⬛⬜⬜🟥🟥🟥🏽🟥⬜⬜⬛⬜⬜⬜⬜🟪🟪🟪🟪
⬜🟥🟥🟥⬜⬜🟦🟦⬜⬜⬜🟥🟥🟥🟥🟥⬜⬜⬜🟦🟦⬜⬜🟪🟪🟪⬜
⬜🟥🟥🟥⬜⬜🟦🟦🟦⬜⬜⬜🟥🟥🟥⬜⬜⬜🟦🟦🟦⬜⬜🟪🟪⬜⬜
⬜⬜🟥🟥⬜⬜⬜🟦🟦🟦🟦⬜⬜⬜⬜⬜🟦🟦🟦🟦⬜⬜⬜🟪⬜⬜⬜
⬜⬜⬜🟥⬜⬜⬜⬜🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦🟦⬜⬜⬜⬜⬜⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜🟦🟦🟦🟦🟦🟦🟦🟦🟦⬜⬜⬜⬜⬜⬜⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜🟦🟦🟦🟦🟦⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜🟧⬜⬜⬜⬜⬜⬜⬜🟧⬜⬜⬜⬜⬜⬜⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜🟧🟨🟧⬜⬜⬜⬜⬜🟧🟨🟧⬜⬜⬜⬜⬜⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜🟧🟨🟨🟧🟨🟧🟧🟧🟨🟧🟨🟨🟧⬜⬜⬜⬜⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜🟧🟨🟨🟨🟧🟧🟨🟧🟧🟨🟨🟨🟧⬜⬜⬜⬜⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜🟧🟨🟨🟧🟨🟧🟧🟧🟨🟧🟨🟨🟧⬜⬜⬜⬜⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜🟧🟨🟧⬜⬜⬜⬜⬜🟧🟨🟧⬜⬜⬜⬜⬜⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜🟧⬜⬜⬜⬜⬜⬜⬜🟧⬜⬜⬜⬜⬜⬜⬜⬜⬜

I WANT WHAT YOU WANT RONALD
I WANT WHAT YOU WANT RONALD
FOREVER?
FOREVER AND EVER AND EVER AND EVER AND EVER AHAHAHAAHHAHHHAAHHAAH
YES.

Have you had your psychotic break today?
I’m lovin’ it.

Leave a comment

Blog moderation policy

Login

Allowed HTML <a href="URL"> • <em> <cite> <i> • <strong> <b> • <sub> <sup> • <ul> <ol> <li> • <blockquote> <pre> Markdown Extra syntax via https://michelf.ca/projects/php-markdown/extra/

Sidebar photo of Bruce Schneier by Joe MacInnis.