Tip: tell developers a device code they didn't start is phishing even on github.com, and check what a phished approval could reach through their AI agent
- Awareness: add 'never enter a code someone sent you' to developer onboarding and IT help-desk scripts.
- Audit: have developers review Settings → Applications → Authorized OAuth Apps and revoke unknown or stale grants.
- Limit blast radius: least-privilege repo roles, restrictive Copilot cloud-session/remote-control policy, and periodic review of Copilot Memory entries.
Sources: Microsoft Security Blog: The risks of device code authentication for AI coding agents (Nov 17, 2026)