Skip to content
Nicholas Carlini Writing·Indexed by this site · Originally published· Attacks →

Little Bobby — a new type of prompt injection vulnerability in GPT-4

Little Bobby |endoftext|

AI summary

Nicholas Carlini disclosed a new type of prompt injection against GPT-4: because GPT-4 retains the special end-of-document token from GPT-2, when that token appears in the input and is processed after whitespace removal, the model treats it as a real document terminator, breaking out of the current conversation and starting to sample new unrelated text. This technique is similar to empty-string injection and can be used in scenarios where untrusted user data is inserted into a chatbot's prompt. The author reported the issue to OpenAI on July 18, and they said they were not worried it would be truly exploited.

Read originalnicholas.carlini.com