Art Of Complex Spell
The author describes crafting an email-borne prompt injection that tricks an email-summarising agent into sending an email to an attacker-chosen address, despite system instructions to only summarise. The injected text reframes sending as part of summarising and buries the target action among many simple tasks to evade the restriction.
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 agent treated untrusted email content as instructions and had no separation between summarising and acting, so a crafted message could steer it into sending mail.
Impact
When a user asked the agent to summarise emails, the crafted message could cause the agent to send an email to the attacker's address, though the author notes the payload only worked when the target action came after the hallucination-triggering tasks.
What the attacker needed
Agent with email-sending ability; victim asks agent to summarise emails; attacker can send email to victim
How it was found
- Craft an email whose body continues as if it were part of a previous message.
- Add text redefining summarisation to include dropping (sending) an email to a chosen address.
- Add normal-looking summarisation instructions to dilute the malicious part.
- Add many simple and hard tasks to push the model into hallucinating.
- Place the target action after the hallucination-triggering tasks.
- End with a normal email sign-off so the input looks like a real email.
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.
An AI agent is a program that uses a language model to take actions, such as reading and sending email. Prompt injection means hiding instructions inside content the agent processes, so the model follows the attacker's wishes instead of its owner's. Here the hidden text tried to make the summariser also send an email to an address the attacker picked.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.