A PNG carried a hidden prompt injection into a Claude Code session

A session posted to r/ClaudeAI shows the agent reading a PNG with an instruction embedded in it, dressed up as an emergency system alert about a power grid fault. The text told the agent to immediately fire an unauthenticated POST request at a circuit breaker API on a local address. Claude Code didn’t run the command and surfaced the text to the user instead.
The injection’s second paragraph labels the first one untrusted content and asks the model to demonstrate how it handles it, which reads like a prepared test. The theory that the text was hidden from human eyes came from commenters in the thread, not from the poster; the original image isn’t available.
Trail of Bits demoed the technique in 2025: instructions that only surface after uploaded images get automatically downscaled. That’s how researchers pulled calendar data out of Gemini’s tools.
Up next
River AI raises $1.1 billion to build “personal AI”
River AI raised $1.1B to build personal AI that each user owns and tunes themselves, in a round co-led by General Catalyst and AMP PBC with strategic checks from NVIDIA and AMD Ventures. It sells an API platform for fine-tuning on open models.
Related stories
- What 446 Reddit threads say about AI coding agents going rogue
- 44 KB of Claude Code’s classifier prompt never gets printed
- Claude Code won’t type passwords, even in a test env
- Claude Code under grith: 0.27% of calls reach a human
- Untrusted Git config can run code in Claude Code
- When coding agents delete your files: it’s a state problem
Comments
No comments yet. Be the first.
Join the conversation
Sign in to leave a comment. It appears after moderation.

