Back to Feed
Threat IntelligenceNov 17, 2026

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

Vendor Watch

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 lesson

Researchers 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
Get GitHub news in your morning briefingA few minutes of audio on the vendors you pick, every morning. Free to try.

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

Entities

GitHub Copilot CLI (product)GitHub (vendor)OAuth device flow (technology)Microsoft Defender for Cloud Apps (product)Microsoft Defender for Office 365 (product)Microsoft Defender XDR (product)