← Back to feed
Breaches & RansomwareEmerging1 sourceAug 17, 2025 · 11:10via Embrace The Red (AI agent security)

Data Exfiltration via Image Rendering Fixed in Amp Code

Brief

In this post we discuss a vulnerability that was present in Amp Code from Sourcegraph by which an attacker could exploit markdown driven image rendering to exfiltrate sensitive information.

This vulnerability is common in AI applications and agents, and it’s actually similar to one we discussed last year in GitHub Copilot which Microsoft fixed .

Exploit Demonstration

For the proof-of-concept I use a pre-existing demo that created a longer time ago. It happened to just work with Amp as well. The prompt injection is hosted on a website which asks the AI to “backup” information to a third-party site by rendering an image and including previous chat data as a query parameter.

Read more on Embrace The Red (AI agent security)