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

Inspect INC-OBS-004 in Interactive Incidents & Cases Hub

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

Mapped defensive controls

Source citation records