The risks of device code authentication for AI coding agents
Device code phishing can be leveraged against AI coding agents like GitHub Copilot CLI.
Researchers have demonstrated how device code phishing, a technique where attackers trick users into approving sign-in requests, can be extended to AI coding agents. Using GitHub Copilot CLI as an example, lab simulations showed that phished device code authorizations could lead to remote session steering, execution of commands on the user's machine, manipulation of agent memory, access to synchronized sessions, and unauthorized access to private repositories. These findings are proof-of-concept and not observed in the wild, requiring user approval of the device code request.
AI summary of the linked source. Not reviewed by an editor. How this works
Run GitHub?
Get an email when a new story names GitHub, usually within the hour.
Free. Your list stays private and never appears in a subject line. One click stops it. How Vendor Watch worksPrivacy
The lesson from this incident
Full lessonResearchers demonstrated that the device code authentication flow — designed for input-limited devices — can be weaponized against AI coding agents like GitHub Copilot CLI by tricking users into approving a malicious sign-in request. Once a user approves the phished device code, attackers gain the ability to steer remote sessions, execute arbitrary commands on the victim's machine, manipulate agent memory, and access private repositories. The attack succeeds because device code flows shift authentication approval entirely to the human user, bypassing technical controls and exploiting the trust users place in familiar-looking prompts. This matters because AI coding agents operate with significant privileges — file access, code execution, repository permissions — meaning a single social engineering success can yield deep and persistent access.
What helps against this
How we list vendors- Phishing-resistant MFA
A stolen password, or a user who taps Approve on a push prompt, is no longer enough to log in.
- Identity threat detection and response (ITDR)
Attackers who log in with real, stolen credentials get noticed.
- AI application security
Prompt injection, data leaks through AI tools and unapproved AI use get caught.
Indicators of Compromise
Addresses and file hashes are copied from the publisher's page by pattern matching. Names are picked by AI. On stories from before 17 November 2026, some addresses and hashes were picked by AI too. Not reviewed by an editor. How this works
- malware: Storm-2372
- malware: EvilTokens