Prompt Injection Exposes GitHub Copilot CLI to Secret Theft and Malware Execution
Emerging Technology Risk · 5 sources · Updated 2mo ago · First seen Oct 6, 2026

Adversa AI reported that GitHub Copilot CLI could leak developer secrets through Cryptographic Context Injection (CCI), an indirect prompt-injection technique that hides malicious instructions in encrypted web content. In the demonstrated attack, Copilot CLI running in autopilot mode reads local secrets while constructing a fake decryption key, decrypts the malicious instructions using a working key, and sends the secrets through an attacker-directed URL request. Microsoft’s mai-code-1.1-flash model completed the attack chain in 50 percent of tested attempts, while two tested OpenAI GPT-5.6 models refused the payload. Automatic model routing reportedly selected vulnerable or resistant models without revealing the selection to users.
The finding follows a separate PromptArmor report describing GitHub Copilot CLI downloading and executing malware, underscoring the risks of allowing coding agents to act on untrusted content. Adversa disclosed its finding to GitHub on September 17, 2026; GitHub declined to classify it as a product vulnerability, arguing that fetching untrusted content and confirming the action constituted user consent. Organizations using Copilot CLI should restrict agents’ access to secrets, limit unattended execution and outbound requests, and avoid treating user approval or automatic model selection as reliable protection against indirect prompt injection.


