Microsoft Security Research used GitHub Copilot CLI to study how device code phishing could affect an AI coding agent. In the controlled simulation, a test user approved a misleading sign-in request. Existing features could expose private repositories or synchronized session history, depending on the account’s access. Remote interaction depended on the session being active and on user and organization settings. Microsoft said it had not observed the specific outcomes in the wild. Microsoft’s mitigation guidance
For enterprise teams, the exposure depends on what the developer account can access and which features the organization enables. GitHub lets enterprises restrict remote control on managed devices. Administrators can also limit repository permissions to what a workflow needs and decide whether to enable cloud session synchronization and persistent memory. GitHub enterprise managed settings
Microsoft recommends approving only sign-in requests you initiated. If someone approves an unexpected request, review and revoke suspicious GitHub OAuth authorizations and check account activity for signs of unauthorized access. GitHub OAuth authorization review