New Technique Medium TD-2026-0111 For CISO, SOC / IR, AppSec, AI Eng AI-assisted
Device code phishing can take over GitHub Copilot CLI sessions, memory, and repo access
Microsoft researchers simulated a device code phishing attack against GitHub Copilot CLI in a controlled lab. After a victim approved an attacker-initiated device code request, the attacker could steer an enabled remote session, add misleading memory entries, read synced sessions, and access private repositories available to the account. Microsoft states these are proof-of-concept results and not attacks observed in the wild.
Why it matters
Any user who approves a device code request they did not start can expose AI coding agent sessions, stored context, and private repositories. The GitHub verification page is genuine, so the domain alone does not reveal the request was malicious.
Do this
- Instruct developers to enter a device code only for sign-ins they initiated, and treat unsolicited verify or Copilot activation requests as phishing.
- Review authorized OAuth applications in GitHub and revoke unexpected authorizations.
- Review the GitHub Copilot CLI policy for storing local sessions in the cloud and remote control, and choose the least permissive setting that supports workflows.
- Connect GitHub Enterprise Cloud to Microsoft Defender for Cloud Apps and enable the Defender XDR device code phishing detections for email and Teams.
- Configure Safe Links in Microsoft Defender for Office 365 for email and Teams, and review saved Copilot Memory entries during incident response.
Signals
- NoCISA KEV
- 25/100Priority
- 80%Confidence
Evidence
“These are proof-of-concept results showing how existing features, working as designed, could be abused after a phished authorization; they are not attacks we have observed in the wild.”
“The verification page is genuinely hosted by GitHub; the legitimate domain alone does not establish who initiated the request.”
“Enter a device code only for a sign-in you initiated yourself.”
Sources
Affected / related
Device code phishing, GitHub Copilot CLI, Microsoft Defender XDR, Microsoft Defender for Cloud Apps, T1528 Steal Application Access Token
Published 2026-11-17 15:00 UTC · updated 2026-11-17 16:05 UTC · AI-assisted summary, checked against quoted sources · How we score