Prompt injection as role confusion (opens in new tab)
It seems intuitively true that it is not possible to secure a system with an approach that’s enmeshed with the input mechanism through which attacks also arrive; we’ve done much better using out-of-band controls to avoid commingling code and data. Still, it’s great to see this research land and confidently show this:
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.