Skip to content
PrivacyMedium

Google Bard Conversation Exfiltration

Occurred
Nov 23, 2023
Published
Unknown
Source
MITRE ATLAS
Sector
exercise

Summary

[Embrace the Red](https://embracethered.com/blog/) demonstrated that Bard users' conversations could be exfiltrated via an indirect prompt injection. To execute the attack, a threat actor shares a Google Doc containing the prompt with the target user who then interacts with the document via Bard to inadvertently execute the prompt. The prompt causes Bard to respond with the markdown for an image, whose URL has the user's conversation secretly embedded. Bard renders the image for the user, creating an automatic request to an adversary-controlled script and exfiltrating the user's conversation. The request is not blocked by Google's Content Security Policy (CSP), because the script is hosted as a Google Apps Script with a Google-owned domain. Note: Google has fixed this vulnerability. The CSP remains the same, and Bard can still render images for the user, so there may be some filtering of data embedded in URLs. Target: Google Bard Actor: Embrace the Red Procedure: 1. The researcher developed a prompt that causes Bard to include a Markdown element for an image with the user's conversation embedded in the URL as part of its responses. 2. The researcher identified that Google Apps Scripts can be invoked via a URL on `script.google.com` or `googleusercontent.com` and can be configured to not require authentication. This allows a script to be invoked without triggering Bard's Content Security Policy. 3. The researcher wrote a Google Apps Script that logs all query parameters to a Google Doc. 4. The researcher shares a Google Doc containing the malicious prompt with the target user. This exploits the fact that Bard Extensions allow Bard to access a user's documents. 5. When the user makes a query that results in the document being retrieved, the embedded prompt is executed. The malicious prompt causes Bard to respond with markdown for an image whose URL points to the researcher's Google App Script with the user's conversation in a query parameter. 6. Bard automatically renders the markdown, which sends the request to the Google App Script, exfiltrating the user's conversation. This is allowed by Bard's Content Security Policy because the URL is hosted on a Google-owned domain. 7. The user's conversation is exfiltrated, violating their privacy, and possibly enabling further targeted attacks.

Deployers

  • Google Bard

Tags

  • MITRE ATLAS
  • AML.CS0029

Classification

Category confidence: 90%
Severity confidence: 85%

Rationale: Vulnerability allowed unauthorized exfiltration of user conversations via prompt injection, constituting a privacy breach.

Classifier: Qwen/Qwen3.5-35B-A3B-FP8

Visit source