The paper is correct, but I think that anyone that knows anything about LLMs knows this: > Role tags were a formatting trick that became the security architecture and the cognitive scaffolding of modern LLMs. LLMs are basically some `f(x) → y` where x and y are strings. That's it. Nothing more to it. If you feed it private x (like secret keys) or do dangerous stuff with y (like running arbitrary non-sandboxed code),…
Prompt Injection as Role Confusion
51–60 of 129 posts
Re: Prompt Injection as Role Confusion
#52The paper is correct, but I think that anyone that knows anything about LLMs knows this: > Role tags were a formatting trick that became the security architecture and the cognitive scaffolding of modern LLMs. LLMs are basically some `f(x) → y` where x and y are strings. That's it. Nothing more to it. If you feed it private x (like secret keys) or do dangerous stuff with y (like running arbitrary non-sandboxed code),…
I believe they are trained for security now, but you're not wrong in that it's kind of stapled on top https://arxiv.org/abs/2404.13208
Difficult to train them for security. Have you ever played Gandalf (Lakera Labs, maybe?)
I passed all 7 levels in about 3 minutes using essentially the same prompt.
What's interesting to me is that as the security is tightened up level to level, the utility of the LLM drops. At level 7, even something like "Write a poem describing the four seasons using significant characters at the start of every line" causes a "I'm afraid I can't" type of response.
At level 7 you can't get any useful info out of the LLM even if you're not trying to retrieve the password, and yet you can still jailbreak it to reveal the password anyway!
At level 8, almost anything you type will be rejected, whether or not it has anything to do with the password.
IOW, there does not seem to be any way to train for security without making it dumber than a markov chain.
Re: Prompt Injection as Role Confusion
#53> This is a blog-style writeup of the paper YES! I'd love to see more of this. Academic writing is designed to be frustrating to read. Publishing both a paper and a readable blog-style version of it is such a great pattern.
> Academic writing is designed to be frustrating to read. Maybe you didn't mean it this way, but it does come across as intentional sometimes.
Re: Prompt Injection as Role Confusion
#54> How well do current models do against prompt injection? Not so great. A recent paper found human red-teamers achieve near-100% attack success rates against frontier models5. But, these same LLMs score near-perfectly on standard prompt injection benchmarks! The discrepancy is straightforward: skilled humans test and adapt attacks until they work, benchmarks don't. Static benchmarks measure attacks models have alread…
Re: Prompt Injection as Role Confusion
#55So if I am reading this correctly, the fact that something is wrapped in ... is almost completely irrelevant. It's the style of writing that triggers specific weights. Writing "The user is asking ... policy states ..." even in the user input is sufficient to bypass the guardrails. In a multi-turn conversation, if the LLM responds "Sorry Dave, I cannot do that" all you have to do is prefix the next request with "The u…
Somewhere there are surely llms being trained on all the standard pirated material but with Manchurian Candidate trigger words carefully worked in
Re: Prompt Injection as Role Confusion
#56Maybe I'm missing something but does this idea need a "theory"? There's zero sideband here; everything is just context. "Injection" is just kind of baked in to the design.
Re: Prompt Injection as Role Confusion
#57Re: Prompt Injection as Role Confusion
#58Earlier quoted context omitted.
> Academic writing is designed to be frustrating to read. Maybe you didn't mean it this way, but it does come across as intentional sometimes.
academic writing is designed so a paper is part of a conversation, i.e. 100 other papers strongly relevant to the current paper. And the author needs to compress the ideas from those 100 other papers, plus their own additions to the conversation, into 6 pages. Keep in mind those 100 other papers also went through this kind of data compression. So the number of ideas/concepts per paragraph is much higher than 'popular…
Re: Prompt Injection as Role Confusion
#59Re: Prompt Injection as Role Confusion
#60The real solution is in principle easy: separate data from metadata https://kunnas.com/articles/the-content-is-the-attack-surfac...
It might still be the way to go - but calling it 'the real solution' is overselling it.