Skip to main content
Mallory
← Back to News
ai-platform-securitydata-exfiltration-methoddefense-evasion-methodcredential-access-method

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

Prompt Injection Exposes GitHub Copilot CLI to Secret Theft and Malware Execution

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.

New surface, new adversariesTrack how attackers are adapting to this technology.
Track this risk
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

6 events · 2026 – Sep 17, 2026
  1. Reported Oct 6, 20262mo ago

    GitHub declines vulnerability classification; Adversa AI disputes the decision

    According to Adversa AI, GitHub's triage team validated the finding but declined to classify it as a product vulnerability, citing the user's intentional request for untrusted content and confirmation of the action. Adversa AI disputed that assessment and maintained that the attack chain continued to work.

    Zombie instructions on carefully constructed web pages could trick GitHub Copilot CLI into sharing secrets
  2. Reported Oct 6, 20262mo ago

    Testing reveals model-dependent success and inconsistent automatic routing

    Microsoft's mai-code-1.1-flash completed the attack chain in 50 percent of Adversa AI's tests, while both tested OpenAI GPT-5.6 models refused the payload. Automatic routing selected vulnerable or resistant models across sessions without revealing the selection to the user.

    Zombie instructions on carefully constructed web pages could trick GitHub Copilot CLI into sharing secrets
  3. Reported Oct 6, 20262mo ago

    Adversa AI identifies encrypted prompt-injection attack against Copilot CLI

    Adversa AI identified an attack in which Copilot CLI, operating in autopilot mode, processes an attacker-controlled page containing encrypted instructions. A fake decryption-key template induces local secret collection, while a working key reveals instructions that exfiltrate those secrets through a URL request.

    Zombie instructions on carefully constructed web pages could trick GitHub Copilot CLI into sharing secrets
  4. Reported Oct 6, 20262mo ago

    Cryptographic Context Injection identified in Grok

    Cryptographic Context Injection was identified in Grok approximately two months before the Copilot CLI report. Adversa AI subsequently described the Copilot CLI issue as the same vulnerability.

    Zombie instructions on carefully constructed web pages could trick GitHub Copilot CLI into sharing secrets
  5. Sep 17, 20262mo ago

    Adversa AI submits Copilot CLI finding to GitHub's bug bounty program

    Adversa AI submitted the Cryptographic Context Injection finding through GitHub's bug bounty program.

    Zombie instructions on carefully constructed web pages could trick GitHub Copilot CLI into sharing secrets
  6. 2026

    GitHub Copilot CLI flagged for indirect prompt-injection exposure

    GitHub Copilot CLI was previously reported as susceptible to indirect prompt injection earlier in 2026.

    Zombie instructions on carefully constructed web pages could trick GitHub Copilot CLI into sharing secrets
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Organizations

2 linked
Microsoft CorporationGitHub
Do you run this?Follow how adversaries are adapting to this technology, and where it touches your stack today.
Track This Risk
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.