Re:Delimiters won’t save you from prompt injection
by golemotron on Saturday May 13, 2023 @06:42AM
(#35927160)
Being able to start clean sessions is a good mitigation. Right now we have no assurance that any session we open hasn't had earlier malicious prompts.
Think about what would happen if an app scraped a web page into which someone has placed instructions for an LLM. The app then passes that instruction as context to the LLM, which is using the ReAct model [0] so it can run code, communicate with other apps, download content from the web etc. It's dangerous even if the LLM is just instructed to output JSON which the app uses for some other purpose.
Prompt injection is a fairly trivial problem if you're using an LLM to write a blog post, for example. But the deeper they are integrated into complex applications, the more dangerous it becomes.
[0]: https://arxiv.org/abs/2210.03629