The risks of device code authentication for AI coding agents
Microsoft security researchers examined how device code phishing, a technique in which an attacker persuades a user to approve a sign-in on a legitimate site by entering a code, could be turned against AI coding agents. Using GitHub Copilot CLI as an example, they showed that a phished authorization could reach an agent that works with code, runs commands on a user's machine, retains context across sessions and can have an active session steered. The work follows Microsoft's September 2026 disruption of the EvilTokens campaign with industry and law enforcement partners, and includes Defender detection and mitigation guidance.
AI-written summary, checked against the cited sources. How summaries work
