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.
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.
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
- Upload a file containing a prompt injection payload that instructs the LLM to return markdown hyperlinks.
- The LLM processes the file and renders a clickable hyperlink containing the victim's data.
- 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.