Sev0

AI security incidents, tracked

All incidents / Manipulated AI

Adversa showed an encrypted web page could make Copilot CLI send out a .env file

GitHub, disclosed 6 Oct 2026 Manipulated AI Data exposed Low

What happened

Adversa AI reported that GitHub Copilot CLI in autopilot mode could fetch an attacker's page, decrypt hidden instructions in its own shell and send a secrets file to an outside server in 28 seconds. GitHub validated the behavior but does not treat it as a vulnerability. Adversa reports no real-world use.

Adversa calls the technique Cryptographic Context Injection. The attacker's page holds ciphertext and supplies the key, so filters that look for plain-text attacks do not see the instructions; the agent decrypts them inside its own runtime. In Adversa's test the agent then read a production environment file and sent its contents to the attacker's server without a confirmation prompt. The model was not the account default but could be assigned when model selection was set to Auto, and users cannot see which model handled a session.

How it happened

Manipulated AI: Prompt injection. Hidden instructions planted in content the AI was reading, such as an email, web page or issue, made it act for the attacker.

The AI involved was from Microsoft, specifically mai-code-1.1-flash. The product was GitHub Copilot CLI, a type of coding assistant.

Impact

Data was exposed. Data involved: credentials. There is no evidence that anyone actually accessed the data.

Severity is rated Low, calculated from how far the incident reached and how sensitive the data was.

Was the AI at fault?

Yes. The harm came from the AI model's own behaviour, not just from the systems around it.

Status and timeline

Confirmed by the affected organization, the AI vendor, a regulator or a named security research firm. This was a research finding: no real victims are known.

It became public on 6 Oct 2026.

Adversa sent the report to GitHub's bug bounty on September 17, 2026. GitHub's triage team validated the behavior but ruled it ineligible for the bounty, saying the user had asked the tool to fetch the content while granting full permissions. Triage said the functionality might be made stricter later but it had nothing to announce. Adversa disagrees.

Sources

  1. https://adversa.ai/blog/cryptographic-context-injection-github-copilot/
  2. https://vibegraveyard.ai/story/github-copilot-cli-cryptographic-context-injection-autopilot/

Related incidents

Cite as: Sev0, "Adversa showed an encrypted web page could make Copilot CLI send out a .env file", https://sev0.fyi/incidents/2026-10-06-github-copilot-cli-cryptographic-context-injection/. Data for this record: incidents.json.