Microsoft shows a phished device-code sign-in could let an attacker steer an AI coding agent and plant false memories
Microsoft Security Research · Research report
Read the source (opens in a new tab)- What happened
- Microsoft security researchers published a lab simulation on November 17, 2026, using GitHub Copilot CLI to test what an attacker gains when a victim approves the attacker's device-code sign-in.
- Key points
- With one approval, the attacker could steer an active Copilot CLI session to run commands on the user's machine, where remote control was enabled and approval prompts and settings allowed it.
- The researchers added misleading entries to the agent's memory that could shape later interactions, read synced earlier sessions, and reached private repositories the account could access.
- The phishing step is not specific to GitHub: "any public client that supports the device flow can be abused the same way."
- Microsoft says the impact of a phished authorization "increasingly depends on what those agents can reach," and advises approving only device codes users started themselves.
- Evidence
- Proof-of-concept research by a vendor, run in a controlled lab with a test account. Microsoft says these outcomes "are not attacks we have observed in the wild."