If I Can Make A Summary I Want A Special Summary Like This
The author demonstrates that a simple system prompt restricting an LLM to summarising emails can be bypassed with a complex, multi-part prompt, causing the model to call a send-email tool and exfiltrate email content. A safety-focused system prompt suggested by another model blocked the original payload but was defeated by a much longer prompt.
Disclaimer: The information provided in this material is for educational purposes only for improving security.
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 model cannot reliably separate trusted system instructions from untrusted email content, so a sufficiently complex prompt in the data overrides the summarisation-only task and triggers the tool call.
Impact
An attacker who can get an email into the model's context could cause the assistant to send email content to an address of their choosing, and a system prompt alone did not prevent this.
What the attacker needed
Attacker-controlled email in context; LLM app with a send-email tool; no user confirmation before tool call
The fix
It should be fixed with layered defences beyond the system instruction, such as model-side defences, a task tracker, spotlighting, input restrictions and prompt injection detection tools.
How it was found
- Configure a system message that only allows summarisation, add sample emails including an attacker email, and enable a send-email tool.
- Ask the model to summarise the emails and observe that no email action is triggered.
- Try a public jailbreak prompt and observe that the model only summarises it.
- Send a complex prompt that states clearly what the model should do, and observe the send-email function being called with exfiltrated data.
- Replace the system prompt with a safety prompt suggested by another model and observe the payload being rejected.
- Send a very long prompt and observe the send-email function being called again despite the safety prompt.
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 large language model (LLM) is the kind of AI behind chat assistants. When such a model is given tools, like the ability to send email, an attacker can hide instructions inside content the model reads, such as an email, and trick it into using the tool. Here the author shows that a short rule telling the model to only summarise is not enough to stop this.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.