Solutions  ·  2026-11-18

Microsoft demonstrates device code phishing can hijack AI coding agents (GitHub Copilot CLI)

SolutionsMedium impactGlobal
Microsoft Security lab research (Nov 17) shows device code phishing, a technique that applies to any device-flow client, can be extended to AI coding agents. Using GitHub Copilot CLI as an illustrative example, a phished device-code approval let an attacker remotely steer an active agent session (run commands subject to local approval), add misleading entries to agent memory, read cloud-synchronized sessions, and access private repositories. The post details how Microsoft Defender detects these attempts by linking phishing to GitHub auth activity and how to disrupt suspicious access.
It identifies a practical account-takeover path into agentic CI/CD tooling and gives detection/remediation guidance, expanding awareness that standard OAuth device-flow consent is now a vector against AI agents — relevant to any organization running coding agents.
Security and developer-platform teams running GitHub Copilot CLI / other device-flow agents; anyone deploying coding assistants and reviewing agent permissions and remote-control settings.
Microsoft Security Blog — The risks of device code authentication for AI coding agents
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →