by simonw · 3y ago · 0 comments
I wouldn't.
The difference between this and Apple releasing a security update is that when a traditional vulnerability is reported against an Apple product they can research the root cause of that vulnerability and produce a fix that they are certain is effective.
Prompt injection (currently) doesn't have fixes that work like that.
It’s also a matter of attack surface. SQLite, in our example, is also not as wide as an entire OS. In my experience the best prompting is unitary, pure function-like, and that is way more manageable that the open field that is a no-capabilities chat.
What are your thoughts on this?
I don’t see why the reporting model couldn’t work with in-house or external prompt injection detection mechanisms if eval-based. Root-cause analysis can also be done with GPT-3.5. That’s how I put Geiger together. Again, not perfect, but better than a security or development stand-still.
If there's a hole in SQLite it's because someone made a mistake. That mistake can then be identified and fixed.
Prompt injection isn't a mistake: it's LLMs doing exactly what they are designed to do, which is to generate a completion based on the tokens that have been passed to them.
We are currently starting to wire LLMs up as AI-enhanced personal assistants - with the goal of giving them access to our email, and the ability to take actions on our behalf.
If we widely deploy these systems the incentives for attackers to figure out prompt injection attacks that get last any probability-based filters we are using will be enormous.
An attacker only needs to get lucky with their prompt attacks once.
I wrote about the larger threat introduced by these new applications here: https://simonwillison.net/2023/Apr/14/worst-that-can-happen/