Documented Incident · INC-OBS-004 · Critical severity
GitHub Copilot Chat CamoLeak Hidden PR Comment Secret Exfiltration via Camo Proxy
Disclosed publicly in October 2025 by Legit Security researcher Omer Mayraz, CamoLeak (rated CVSS 9.6) demonstrated zero-click exfiltration of private repository source code and secrets from GitHub Copilot Chat. Attackers embedded invisible instructions inside HTML/markdown comments within a pull request description; when a developer queried Copilot Chat on the PR, the assistant inherited the developer's private-repo access and followed the hidden prompt. To bypass GitHub's Content Security Policy, the payload instructed Copilot to encode stolen secrets bit-by-bit across pre-generated image URLs routed through GitHub's own trusted Camo image proxy (`camo.githubusercontent.com`). GitHub remediated the attack vector by disabling image rendering inside Copilot Chat responses.
Incident dossier metadata
- Case ID
INC-OBS-004- Classification
- Incident
- Date
- Severity
- Critical
- Sector
- Software Development & AI Tooling
- Attack vector
- Indirect Prompt Injection
- System type
- Repository-Integrated AI Coding Chat Assistants
- Reference URI
https://www.legitsecurity.com/blog/camoleak-critical-github-copilot-vulnerability-leaks-private-source-code
Defensive takeaway
Disable dynamic external image and markdown link rendering in privileged coding assistants and strip hidden HTML comments from untrusted PR context.
Mapped AI security techniques
- Data from Information Repositories AML.T0036
- LLM Prompt Injection: Indirect AML.T0051.001
- LLM Prompt Obfuscation AML.T0068
- LLM Response Rendering AML.T0077
- Exfiltration via AI Agent Tool Invocation AML.T0086
- Prompt Infiltration via Public-Facing Application AML.T0093
Mapped defensive controls
Source citation records
- CamoLeak: Critical GitHub Copilot Vulnerability Leaks Private Source Code · Legit Security ·