Lab research shows how device code phishing, a technique that applies to any device-flow client, can extend to AI coding agents, using GitHub Copilot CLI as an illustrative example. The post The risks of device code authentication for AI coding agents appeared first on Microsoft Security Blog. In th
Briefing
Written from the coverage below · deepseek-v4.1-flash
Microsoft researchers described how device code phishing, which abuses OAuth device authorization flows, can be applied to AI coding agents, using GitHub Copilot CLI as the illustrative target. The post explains how a single user approval lets an attacker obtain tokens and spread access, and how Defender can be tuned to flag the attempt.
Why it mattersAI coding agents hold repository and cloud credentials, so one approved device-code prompt can hand attackers persistent access to source code and CI pipelines.
ActionRestrict or disable OAuth device code flow for AI coding agents; require conditional access and review sign-in logs for anomalous device-code grants.
Coverage
1 article