Skip to content
AI / LLM Write-up Intermediate

AWS Fixes Data Exfiltration Attack Angle in Amazon Q for Business

An indirect prompt injection in Amazon Q for Business could make the LLM render markdown hyperlinks, letting an attacker exfiltrate victim data by appending it to the URL.

Johann Rehberger Follow

Published on embracethered.com

A few weeks ago Amazon released the Preview of Amazon Q for Business, and after looking at it I found a data exfiltration angle via rendering markdown/hyperlinks and reported it to Amazon.

Johann Rehberger (wunderwuzzi23), on embracethered.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 chatbot rendered markdown hyperlinks from LLM output without sanitising or restricting URLs, allowing injected content to create links that include chat history.

Impact

An attacker could exfiltrate victim data by rendering hyperlinks that a user might click.

What the attacker needed

User uploads or processes untrusted data; user clicks the rendered link

How it was found

  1. Upload a file containing a prompt injection payload that instructs the LLM to return markdown hyperlinks.
  2. The LLM processes the file and renders a clickable hyperlink containing the victim's data.
  3. The rendered hyperlink enables exfiltration of the victim's data.

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.

Amazon Q reads files you give it. A malicious file can contain hidden instructions that make the chatbot show a clickable link containing your data in the web address.

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 Johann Rehberger

View all

8 more disclosed reports, best first.

More from AWS

View all

The newest disclosed reports for this program.

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.