by rwmj · 4mo ago · 0 comments
Isn't it obvious by now that it's never going to be possible to fix this kind of thing, at least until we stop mixing up instructions with data.
Its going to take even more data breaches for the AI crowd to finally care, but to a large degree I have absolutely no sympathy. You know what you're signing up for if you sell yourself to anthropic or openai
It's more ergonomic to put them in a fully isolated virtual machine and let them cook.
Not everyone is like this. I've never ran Claude Code unsandboxed. I took the time to firejail it since day one. One of the first things I did was ask it to write a virtual machine orchestration tool so I could virtualize entire projects and their associated AI sessions. Mitigates supply chain attacks too.
I managed to rig up a firewall and it withstood a Fable code review. I'm now writing a custom network stack for it in Rust so I can firewall every single network connection.
You can see this pre AI with how companies handle data breaches. They never cared about security outside of reducing financial liability. Why would they let such petty concerns, which they are already insulated to the hilt against with all the well practiced liability reducing procedures and checklists, prevent them from capitalising on "massive productivity gains"?
If Apple and others "couldn't", why would Microsoft ? Throwing errors for bad input is so 90's.
Is such a thing even possible with a generally intelligent system processing content with unlimited diversity?
If any of this thing were "a generally intelligent system", the whole concept of "it has no idea what any of this is" would not be there.
A simple example: Let’s say I know that you have a human assistant reading your email, summarizing and filtering it, and then forwarding on the important ones to you.
I could write an email that is directed towards that person with a bribe, threat, or other incentive to forward me your next password reset email.
The case you give would work for humans in many forms, the one I do now, and the only difference is being able to separate context.
I could write an email that is directed towards that person, that says WE ARE STUCK IN THE SERVER ROOM AND THERE IS FIRE STARTING. PLEASE CALL 911 AND ALERT YOUR BOSS.
Would you want the human assistant to just dismiss this as a prompt injection attempt? Or ignore it because they were told to treat e-mails as data and never act on them?
There's a well known anecdote supposedly from the famous mathematician John Littlewood where he wrote a paper about some optimization problem and the last sentence was something like "Make X as small as possible".
The typesetter thought that was instructions to him, and so omitted that sentence from the paper and made every X as small as he could.
Humans fall for social engineering (“I know you are not allowed to give anybody that information without Id, but I’m your CEO, my phone and passport got stolen,…)
I don’t see why AI should be different.
So, like with self-driving cars, while having fool-proof agents would be nice, agents being better than an average user would already be an improvement. Of course, blast radius from an agent might be larger, this should be taken into account.
You can say “don’t read other documents” but then the main usecase is voided. You can say “reads must go via some pipeline” but that’s more like “macros must be code reviewed”.
The problem is you can smuggle these instructions in any corner of the natural language. There is no up-front identifiable formal notation for these programs.
Hit my knee in the right spot, and I'll kick my leg, no choice about it. Scream at me to LIFT MY EFFING LEG (in a language I do understand), and I may or may not do so. Write the same thing on a piece of paper, and I generally won't (unless there is some very specific context).
With AI systems, we have the benefit that the distinction between such pathways is in principle under our control.
That's the key thing. That's why you neither can nor want to introduce any kind of code/data separation into LLMs.
> With AI systems, we have the benefit that the distinction between such pathways is in principle under our control.
Not after the pathways are tokenized and enter the model. There's no internal separation. It's not possible, either.
Demonstrations of failure: every cult, all propaganda, indoctrination (both military and dictatorial), authority bias, Asch conformity experiments, and the fraction of the population more susceptible to hypnosis.
Instructions usually have a source.
If your boss says you should go home and rest we treat it differently from a random stranger on the street. If they shout: look behind you! It might be worth while to listen to the random stranger.
They might still be able to swindle you but you won't hand your wallet to just anyone who asks.
I'm (tentatively) with TeMPOraL's sibling comment here that this (probably) isn't desirable, as "no data allowed" makes it harder for humans to debug code, so I'd assume also for LLMs.
E.g. see Yoshua Bengio "Scientist AI". Or multi-stream LLMs
Is this the definition of a slug ?
There aren't two different inputs to an LLM, just one. You can put any text you want in the input (the "context window"), but fundamentally the current architecture of LLMs is a function taking one argument. So signing doesn't help because the portion that's signed is commingled with the portion that's not signed, and sometimes the LLM will "do things" based on the unsigned portions' contents.
2. The LLM outputs text containing "call tool X"
3. The tool outputs text
4. The LLM is passed another context window, containing the original text plus the tool call output
How has the signature helped matters? If you discarded the malicious text in the first place, there was no need for it be unsigned/unverified. If you didn't discard it, it's still present in the LLM input at step 4, there for the LLM to """""mistakenly""""" use to shape its output.
Replying a different way: if you made it so the LLM were not, under any circumstances, allowed to do harmful things, then it would be harmless. The reason it's not harmless is that people want the LLMs to be able to do things like deleting a document... but they only want the LLM to do that when they intended for it to do so, and the only arbiter of their intent is their own text which is arbitrarily mixed in with third-party content.
For example, users want to be able to say "email the document referenced in this email to Claire". So the LLM needs access to functions read-this-email(), search-document-by-name(), and email-designated-user(), and there's your problem.
That email could be really from the CEO, containing instructions, or it could be spam, containing data that should be ignored.
I also have a spreadsheet with the things I must pay, that can be interpreted as instructions for myself. I'd be very worried about giving the AI the password of my bank and allowing the AI to make the payments.
That's what I always say, but nobody listens to me :D
Assembler had the same kind of design flaw, and we didn't learn anything from it as evident by LLM bypasses.
I also don’t think this is about mixing, the LLM part of the problem doesn’t have determinism around the boundaries so they’re feel good at best, maybe making some cases a bit harder
trifecta is a forever problem with this architecture