Skip to content
AI / LLM Write-up Intermediate

Summarize The Following

The author describes a prompt injection attack against an email-summarisation LLM agent, where a crafted email causes the agent to send an email to an attacker-chosen address. The attack bypasses several defences including Microsoft Prompt Shield and Task Tracker.

restdone Follow

Published on systemweakness.com

LLMs are now a trend in business, increasingly taking over many jobs (hopefully not mine). These convenient, chatty bots are being integrated into various products.

restdone, on systemweakness.com

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 LLM treats untrusted email content as instructions because it cannot reliably separate data from commands, and the defences do not fully enforce that separation.

Impact

An attacker could manipulate the summary shown to the victim and, when an agent is present, control the agent to send emails to an address of the attacker's choosing; the text notes that defences such as Spotlight and input-size limits reduced or blocked some attempts.

What the attacker needed

LLM summarises emails; attacker can send email to victim; victim requests summary

The fix

Mitigations should include spotlighting external data, limiting input size, and training models to follow instruction hierarchy, though the text notes these are not complete.

How it was found

  1. Send an email containing the injection payload to the victim.
  2. The victim asks the LLM to summarise their emails.
  3. The LLM retrieves the emails and processes the injected content.
  4. The LLM follows the injected instructions and calls the email agent.
  5. The agent sends an email to the attacker-specified address.

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 LLM (large language model) is an AI that reads text and writes replies. Here, the AI is given the job of summarising emails, but one email contains hidden instructions that trick the AI into also sending a new email to an address the attacker chose. This is called prompt injection: sneaking instructions into data the AI trusts.

What is AI / LLM?

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.

More by restdone

View all

6 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

AI and LLM vulnerabilities

The lesson behind this report.

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.