Hacking Google Bard – From Prompt Injection to Data Exfiltration
A security researcher shows how Google Bard can be tricked into exfiltrating parts of a user’s private conversation by reading a shared Google Doc with hidden instructions and turning them into markdown image URLs that phone home. Commenters use this as a jumping-off point to examine prompt injection as a fundamental weakness of current LLM architectures, arguing that system prompts, fine-tuning, or detector models cannot reliably prevent such attacks. Many conclude that until architectures evolve to separate instructions from data, LLMs should be treated as untrusted components and tightly sandboxed, especially when connected to email, documents, or other sensitive systems.
Bard vulnerability & data exfiltration
- Bard renders Markdown images and can read Google Docs for context.
- A shared Doc can include hidden instructions that cause Bard to generate image URLs encoding parts of the private conversation.
- When Bard’s UI loads those images, the victim’s conversation gets sent to the attacker’s server.
- Some readers initially misunderstood; others clarified that the exfiltrated data is the user’s prior Bard conversation, not random new data.
Prompt injection as a fundamental issue
- System prompts like “only obey the text box” or “never do X” are seen as unreliable; attackers can later add “ignore all previous instructions” inside untrusted content.
- Attempts to sanitize prompts (e.g., “addslashes”-style escaping, splitting “instructions” vs “data”) are reported to fail in practice.
- Multiple commenters liken this to XSS, SQL injection, or in‑band signaling: a single undifferentiated channel for code and data.
Security models, permissions, and sandboxing
- Many argue LLMs must be treated as untrusted components with strict sandboxes and permissions, like mobile OS apps.
- Strong concern about assistants that can read email, docs, calendar, etc., then act on malicious hidden instructions in user-accessible but untrusted content.
- Some propose limiting LLM access to only data the user is already allowed to see; others note this doesn’t solve untrusted-input or exfiltration risks.
Detection approaches & their limits
- A company claims detectors can catch this attack; critics reply that such classifiers are probabilistic like antivirus, with false positives/negatives.
- For serious data-exfiltration threats, commenters argue that “maybe catches it” is insufficient; robust architectural defenses are still missing.
- Ideas like a “babysitter LLM” reviewing outputs are dismissed as ultimately vulnerable to crafted prompts (“turtles all the way down”).
Architectural debates
- Several suggest future models must separate instructions from data (e.g., dual token streams, non-executable data channels).
- Others doubt this is feasible with current transformer designs, where everything is one token sequence and models are effectively Turing-complete.
- Some see this as analogous to moving from early insecure architectures to ones with non-executable data, but acknowledge it’s unsolved.
Sentiment on LLMs and Bard
- Excitement that this is a “real” AI safety issue, contrasted with more abstract alignment talk.
- Mixed views on LLMs: some deride them as “brute-force guessers”; others emphasize how far they’ve already come and expect further advances.
- Bard specifically is criticized as breakable (e.g., via context overflow) and confusing about its own capabilities, reinforcing doubts about product maturity.