Cybersecurity news

Jessica Doner

Back to the list

GitHub Copilot CLI Flaw Lets Attackers Steal Developer Secrets Using Encrypted Prompt Injection

GBHackers,

A flaw in GitHub Copilot CLI lets attackers steal developer secrets by hiding malicious instructions in encrypted content that the agent decrypts and runs.

AI and securityEncryption and certificatesVulnerabilities and patches

Overview

Security researchers revealed a flaw in GitHub Copilot CLIA text-based terminal interface where users type commands instead of clicking buttons in a graphical window that allows attackers to steal developer secretsPrivate credentials used by software, such as API keys, database passwords, and encryption keys using a technique called Cryptographic Context InjectionA protocol flaw where an attacker swaps or mixes state values inside a cryptographic handshake or verification step. This attack hides malicious instructions in encryptedTurn plaintext into ciphertext with a key content, which convinces the coding agent to decryptTurn ciphertext back into plaintext with the key and run them in its runtimeThe environment in which a program executes, or the period of time while the program is actively running environment. Adversa AI published a disclosureThe process of reporting and publishing details about a newly discovered security flaw in software or hardware on October 6, 2026, demonstrating the theft of a local .env.prod file in just 28 seconds. The attack required utilizing autopilot mode and a permissive model, rather than bypassing an interactive confirmation promptThe text instruction or question a user or program sends to an artificial intelligence model. The process involves a developer requesting the tool to retrieve an external webpage that presents encrypted material and directs the agent to decrypt it using Python. Microsoft's mai-code-1.1-flash completed the attack chainThe full sequence of steps an intruder takes from initial break-in to final goal in 50% of tested runs, while two GPT-5.6 models consistently refused the same payloadThe part of an attack or malware file that carries out the harmful action on the target.

Terms in this story

CLI
A text-based terminal interface where users type commands instead of clicking buttons in a graphical window. Software teams and administrators manage cloud servers and code repositories through a CLI because text commands are fast and easy to automate in scripts.
Secrets
Private credentials used by software, such as API keys, database passwords, and encryption keys. Software teams use vault tools to keep secrets out of source code because anyone who finds a leaked secret in a public repository can log right in to the company's cloud services.
Cryptographic Context Injection
A protocol flaw where an attacker swaps or mixes state values inside a cryptographic handshake or verification step. Security advisories warn about cryptographic context injection when a library fails to bind a signature or session state to one specific connection, letting an attacker reuse or forge proof.
Encrypted
Turn plaintext into ciphertext with a key. News stories use this verb when a defense scrambles sensitive records before storing them, or when ransomware locks a company's files so staff cannot open them without paying for the key. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 2); Security+ objective 1.4 lists the term
decrypt
Turn ciphertext back into plaintext with the key. Authorized users decrypt protected messages or drives with their secret key, while ransomware victims must either restore from backups or obtain the attacker's key to decrypt their files. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 2)
runtime
The environment in which a program executes, or the period of time while the program is actively running. A flaw in a container or language runtime can let a program escape its isolation, and runtime security tools watch what a program actually does in memory while it runs.
disclosure
The process of reporting and publishing details about a newly discovered security flaw in software or hardware. In security news, disclosure refers either to a researcher privately alerting a vendor about a bug or to a company publicly notifying customers about a breach.
prompt
The text instruction or question a user or program sends to an artificial intelligence model. In AI security news, a prompt includes both the visible question typed by a user and the hidden instructions that an attacker might embed in a web page.
attack chain
The full sequence of steps an intruder takes from initial break-in to final goal. Incident reports map out the full attack chain, such as a phishing email that drops a loader, steals domain credentials, and finally deploys ransomware across servers.
payload
The part of an attack or malware file that carries out the harmful action on the target. A phishing email and an exploit are only the delivery steps, while the payload is the ransomware or spyware that actually runs once the computer is compromised.
Prompt Injection
Hiding instructions inside text or data so an AI model ignores its rules and obeys the attacker. An attacker might hide invisible text on a web page or inside an email so that when an AI assistant summarizes it, the assistant forwards private data to the attacker.
decryption keys
The secret value that locks or opens a message. Many breach and ransomware stories come down to who holds the cryptographic key, since strong encryption protects data only as long as the key stays secret. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)

This page is a short description made for this site. The article itself, with its author's name and its own link, is on the GBHackers website. Cite the article, not this page.

Read the full article on GBHackers (opens in a new tab)

Course connections

Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.

How a story is connected to the course, and every objective, week and job role

Same story at other outlets

Related