How a Hidden Note Fooled an AI Summarizer — Discovering Prompt Injection in Summarization | Bug Bounty
A document summarisation feature passed user-uploaded document text to a language model without separating it from the system instructions, so an attacker could embed a hidden instruction in a document. The model then followed that instruction and produced a manipulated summary containing an attacker-chosen contact address.
Published on infosecwriteups.com
As security researchers, we approach systems with curiosity and an eye for how features meant to help can be repurposed to harm. Our investigation began when we noticed a product feature in a client’s environment: a filesystem-like area where users could upload documents summarization tool that produced short…
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 application passed user-supplied document text into the same model context as its system instructions without enforcing a strict separation between data and instructions.
Impact
An attacker could control the summariser's output, for example to direct users to an attacker-controlled contact address for phishing, undermining trust in the tool's results.
What the attacker needed
Ability to upload a document; summariser processes uploaded documents
The fix
The text does not state a specific fix; it should be fixed by strictly separating untrusted document content from system instructions and by validating or constraining model output.
How it was found
- Upload a benign document and confirm the normal summary flow works.
- Create a document containing a hidden instruction-like note in its body.
- Submit the document to the summariser and observe that the model follows the embedded instruction.
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.
A summariser uses an AI model to read a document and write a short version. The model cannot tell the difference between the real task and text inside the document unless the software clearly separates them. Here the document contained a hidden sentence telling the AI to say something else, and the AI obeyed it.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.