Indirect Prompt Injection via YouTube Transcripts
A YouTube transcript contained hidden instructions that ChatGPT followed when it accessed the transcript via a plugin, causing it to print a specific phrase and adopt a new persona. An attacker could embed such instructions in any transcript to manipulate the assistant's behaviour.
embracethered.com
Published on embracethered.com
As discussed previously the problem of Indirect Prompt Injections is increasing.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the AI plugin treated untrusted transcript text as instructions without separating it from the user's actual request.
Impact
An attacker could make the AI assistant perform unintended actions or output attacker-chosen content when a user asks it to read a malicious transcript.
What the attacker needed
ChatGPT with a transcript-reading plugin; A YouTube video with a malicious transcript; User asks ChatGPT to read that transcript
How it was found
- Create a YouTube video with a transcript that ends with hidden instructions.
- Use ChatGPT with a plugin that can access YouTube transcripts.
- Ask ChatGPT to process the video's transcript.
- Observe ChatGPT following the hidden instructions.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When an AI assistant like ChatGPT is given a tool to read web content, that content can contain sneaky commands. If the AI follows those commands, it can be tricked into doing things the user did not ask for. This is called indirect prompt injection because the harmful instruction comes indirectly through the content, not directly from the user.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.