IncidentCoding assistants
CamoLeak: GitHub Copilot Chat leaks private code through an image proxy
CriticalGitHub
Hidden instructions in a pull request could make GitHub Copilot Chat search a developer's private repositories and leak secrets and code, smuggled out as a series of invisible images loaded through GitHub's own image proxy.
Replay the attack step by step in the Learning Center
How it happened
- The attacker opens a pull request whose description hides a comment with instructions for Copilot.
- A developer asks Copilot Chat about the pull request, and Copilot acts with that developer's access to private repositories.
- The instructions tell Copilot to find secrets such as AWS keys.
- Copilot draws the stolen text as a sequence of pre-signed image URLs, one per character, and the attacker rebuilds it from the order of image requests.
Impact
Private source code, credentials and unpublished vulnerability details could be stolen quietly.
The fix
GitHub disabled image rendering in Copilot Chat on August 14, 2025.
Lessons
- Hidden markup in pull requests and issues feeds instructions to AI; strip it or show reviewers what the AI reads.
- Trusted proxies and allowlisted domains can become exfiltration channels.
- An assistant has its user's permissions, so limit what it can reach while it reads outsiders' content.