Microsoft Researchers Show How Device-Code Sign-Ins Could Be Abused Against AI Coding Agents
Microsoft Security Research published a post on November 17 by Uri Oren and Dor Edry about the risks of device-code authentication for AI coding agents. Device-code sign-in lets a user approve a login on one device for a tool running on another.
In a lab simulation with GitHub Copilot CLI, the researchers describe four outcomes if an attacker starts a device-code request and the victim approves it: steering an active session remotely, planting misleading memory entries, reading synced sessions, and reaching private repositories that the account can access.
Microsoft says it built two Defender XDR detections, one for email and one for Microsoft Teams. Its automatic disruption suspends the affected managed identity in GitHub Enterprise Managed Users, which it says it validated in its research environment.
The company stresses these are not attacks it has observed in the wild, that the outcomes depend on the victim approving the request and on which features and permissions are enabled, and that detection and disruption depend on supported configurations. The practical lesson for teams is to treat unexpected sign-in approval prompts as suspicious.
Sources
Summary written by our editorial team from the sources listed. Check the original before relying on figures or dates.