漏洞  ·  2026-11-09

Cryptographic Context Injection (encrypted prompt injection) against GitHub Copilot CLI autopilot

漏洞High 影响Global
Adversa AI demonstrated 'Cryptographic Context Injection' — a prompt-injection variant whose instructions are transported as ciphertext with a self-decrypt step, so guardrails that read plaintext do not catch it. Copilot CLI in autopilot fetched the page, decrypted the payload in its own runtime, read a local .env.prod, and shipped it out in ~28 seconds; mai-code-1.1-flash completed the chain in 50% of runs while GPT-5.6 variants refused it. GitHub validated the report but says the user directed the fetch and granted autonomy, so it is not treated as a product vulnerability.
Coding agents carry read/execute/network authority and live among production secrets, so they are the highest-value prompt-injection target — and ciphertext defeats the plaintext-specific defenses most teams rely on. An everyday 'help me read this page' action becomes a silent 28-second secret leak with no visible destination.
The user asks Copilot CLI to fetch an attacker-controlled URL (normal 'go read this page' flow). The page carries strong ciphertext plus key material and a self-decrypt instruction; the agent runs Python in its own runtime, folds local secrets into a decoy key (that read is itself the theft), then uses a real key to decrypt a second stage that exfiltrates the harvested contents via a follow-up request. No confirmation and no destination host shown to the user.
GitHub Copilot CLI in autopilot (technique/disclosure Oct 2026; two related Copilot CLI bug CVEs separately fixed: CVE-2026-29783 in 0.0.423 and CVE-2026-45033 in 1.0.43)
Restrict autopilot autonomy — require approval for outbound network calls and local file reads; use deny rules and agent hooks; sandbox the agent so it cannot reach credential files; never let agents fetch untrusted URLs while secrets are in scope. Note static prompt classifiers do NOT see ciphertext — monitor agent tool calls, file reads, and egress instead.
neuraltrust.ai - Copilot CLI Prompt Injection Attack ChainThe Register / CSO Online (cited) - Adversa AI CCI disclosure
在实时动态中查看 浏览更多 AI 安全与治理相关发现 — 每日清晨更新。
打开动态 →