Agentic AI Security
CamoLeak: When the Allowed Image Proxy Becomes the Exfiltration Channel
Legit Security showed in 2025 that a hidden comment in a pull request could make GitHub Copilot Chat leak private data through GitHub's own image proxy. A post-incident reading, and why GitHub's fix removed image rendering.
In a post dated 30 September 2025, Omer Mayraz of Legit Security described a vulnerability in GitHub Copilot Chat, named CamoLeak and described in the post as “a critical vulnerability” with a CVSS score of 9.6; the post cites no CVE. Mayraz found it in June 2025 and reported it through HackerOne, and, according to the post, “GitHub fixed it by disabling image rendering in Copilot Chat completely.” The post adds that “GitHub reports that the vulnerability was fixed as of August 14.”
The case deserves attention for the channel it used. GitHub’s content security policy blocks images from domains it does not own, and the attack went through the path the policy allowed for external images.
How the attack worked
| Step | What happened | Control that would have broken it |
|---|---|---|
| Entry | The attacker placed instructions in a pull request description as a hidden comment, a feature GitHub supports | Treat pull request text from other users as untrusted content in the assistant’s context |
| Trigger | Another user asked Copilot Chat about the pull request, and the hidden instructions entered that user’s context | Separate untrusted content from sessions that can reach private data |
| Reach | Copilot “operates with the same permissions as the user making the request,” so it could read the victim’s private repositories | Scope the assistant’s access to the repository the question concerns |
| Exit | The response rendered a sequence of images, one per character, through GitHub’s Camo image proxy to the attacker’s server | No rendering of images or links built from model output |
Source: Omer Mayraz, Legit Security, CamoLeak (30 September 2025). Controls are the author's.
The exit step is the technical core. GitHub rewrites external image URLs to its Camo proxy, and every image injected into the victim’s chat “must include a valid Camo URL signature that was pre-generated.” Mayraz prepared those URLs in advance, using GitHub’s own interface for rendering Markdown: “by using GitHub’s API, I created a valid Camo URL dictionary of all the letters and symbols” that the leak might need. The injected prompt then asked Copilot to render the target content “as ‘ASCII art’ composed entirely of images”, each image pointing at the proxy URL for one character. The researcher’s server answered every request “with a 1x1 transparent pixel,” so the images “remain invisible in the victim’s chat.” A “random” parameter added to each URL defeated caching, so repeated characters still produced requests, and the sequence of requests reaching the server carried the data.
The demonstration targeted “the description of a zero-day vulnerability inside an issue of a private project.” Mayraz also reports getting Copilot to search the victim’s codebase for the keyword AWS_KEY and exfiltrate the result.
What the case adds
The allowed image path was the exit. The content security policy did its job: external images reached the chat only through GitHub’s proxy. The proxy, in turn, fetched any URL that carried a valid signature, and the post explains that GitHub’s REST API will return Markdown “with all external image URLs automatically converted to Camo proxy URLs.” The signature showed that GitHub had produced the URL; it said nothing about where the URL led.
Data can leave one character at a time. Filters that look for long encoded strings in a URL would likely miss this pattern, because each request stood for a single character, identified by which pre-signed URL was requested.
Removing the rendering was the fix. According to the post, GitHub disabled image rendering in Copilot Chat. That is similar to the approach Google took for log summaries in the Gemini Trifecta case, and in my view it is the right default: when a model’s output can trigger requests, removing that capability is more reliable than trying to judge each request.
What to check in assistants that read shared content
- Which content from other users reaches the assistant’s context. Pull requests, issues, comments and hidden markup written by anyone with access to a repository are untrusted for every other user who asks about them.
- Whose permissions the assistant uses, and how far they reach. An assistant acting with a user’s full permissions can read every repository that user can access.
- Which outputs can cause a request. Images, links and previews built from model output are outbound channels, including those routed through the platform’s own proxies.
Mayraz states the premise at the start of the post: “As always, more context = more attack surface.” For an architect, the corollary is that every piece of context added to an assistant should be matched by a check on what the assistant can reach and what its output can send.