The report
A user can approve a sign-in on a legitimate GitHub page and still authorize a session that an attacker initiated. Microsoft researchers used GitHub Copilot CLI to demonstrate how this device-code phishing pattern can reach a coding agent rather than a conventional inbox. Their November 17 research describes conditional access to an active agent session, cloud-synchronized conversation history, persistent memory and private repositories.
The consent page is legitimate; the transaction is not
The attacker induces the user to complete a device-code authorization associated with the attacker's chosen flow. The provider's sign-in interface and the user's account may both be genuine. The security question is whether the user intended to authorize that requesting client and those scopes. If the wrong flow receives consent, the resulting capabilities can be exercised under the affected account's permissions.
Microsoft's lab observed access to private repositories for a test account because the OAuth request included repo and other scopes. Remote command steering additionally depends on remote control being enabled, organization policy permitting it and the user's local approval or permission settings. The researchers did not show that every Copilot CLI installation has those capabilities exposed by default.
One approval can persist beyond one chat
The investigation matters because an authenticated coding assistant has more kinds of state than a browser login: active control channels, remembered instructions, repository grants and conversation history can persist or be available separately. The Case dossier records these distinct effects without equating one authorization with universal machine access.
A sound defense makes the requesting application's identity and effective OAuth scopes conspicuous at consent time and treats unrequested device-code prompts as phishing. Restricting agent remote-control features and limiting repository access reduce the subsequent authority. Neither measure alone fixes a person authorizing a different client than intended. Microsoft described a controlled demonstration, not confirmed exploitation of customer repositories in the wild.