Microsoft demonstrates that after device code phishing is approved, Copilot CLI can be remotely controlled
Start here
On November 17, the Microsoft security team published research demonstrating, in a controlled experiment, device code phishing against GitHub Copilot CLI: the attacker initiates an OAuth device flow request and tricks the user into approving it on the genuine GitHub verification page; the legitimate domain cannot indicate who initiated the request, and the attacker thereby obtains an access token, can remotely control a session with remote control enabled and execute commands, use the /memory command to write misleading memories, read session records synced to the cloud, and access private repositories available to that account. Microsoft stressed that these are proof-of-concept results, that each impact depends on account permissions and enabled features, and that it has not yet been observed in the real world; the technique is not limited to GitHub, and any public client that supports device flow can be abused in the same way. An iThome report on November 23 added that remote control also requires organizational policy to allow it and the session to still be running, and is limited by local permissions and approval mechanisms; Microsoft also launched two Microsoft Defender XDR detection mechanisms, targeting suspicious device verification code phishing messages delivered via email and Teams respectively, and recommends that enterprises check for anomalous OAuth authorizations and restrict agent remote control and cloud session storage.
Generated by AI from reports · Updated 6 days ago
Attention and developments
Attention, hourlyA report
Now 36, -3% in 24 hours·Peak 39 (Nov 23 10:00)·1 report in this range, 1 earlier
Progress timeline
- iThome (Taiwan)Microsoft exposes GitHub Copilot CLI phishing attack risk; hackers may use legitimate login procedures to control AI agents
Research published by Microsoft on November 17 points out that attackers can launch phishing via the GitHub device verification code login flow, inducing developers to approve login requests initiated by attackers, thereby obtaining OAuth access tokens. After obtaining the token, attackers can access resources available to the victim's GitHub account within the authorized scope, including private code repositories; if the Copilot CLI session records have been synced to the cloud, they may also be able to read development records containing code snippets, file paths, and system architecture discussions. The research also mentions that attackers can use the AI agent's memory function to write misleading content, and, when remote control is enabled, organizational policy permits, and the session is still executing, control the agent to execute commands on the user's computer, but subject to local permissions and approval mechanisms. Microsoft simultaneously launched two Microsoft Defender XDR detection mechanisms, targeting suspicious device verification code phishing messages delivered via email and Microsoft Teams respectively, and recommends that enterprises check for anomalous OAuth authorizations and restrict agents' remote control and cloud session storage.
- XiaohongshuXiaohongshu · Trustworthy AI Talk· DiscussionOne device code, and the AI assistant belongs to someone else(opens the original post in a new tab)
- Microsoft SecurityMicrosoft experiment shows device code phishing can affect GitHub Copilot CLI sessions, memory and private repositories
Microsoft's security team demonstrated in a controlled experiment that device code phishing against GitHub Copilot CLI can, after user approval, lead to four abuse paths: remotely controlling a session with remote control enabled and executing commands, writing misleading memory with the /memory command, reading cloud-synced session records, and accessing private repositories accessible to that account. The attacker initiates an OAuth device flow request and tricks the user into approving it on the genuine GitHub verification page; the legitimate domain cannot indicate who initiated the request. Microsoft stresses that these are proof-of-concept results, that each impact depends on account permissions and enabled features, and that none has yet been observed in the real world; the technique is also not limited to GitHub, as any public client supporting device flow can be abused in the same way.
Related discussion
- Older than 72 hours · Not included in the 72-hour figures
- XiaohongshuXiaohongshu · Trustworthy AI TalkOne device code, and the AI assistant belongs to someone else(opens the original post in a new tab)
- X@itsSanwalZiaMicrosoft tested a phishing attack against GitHub Copilot CLI. In the lab, approving an attacker-initiated device code…(opens the original post in a new tab)
- X@Bobalouie41Microsoft's first rule is simple: "enter a device code only for a sign-in you initiated yourself." It also says to "Cho…(opens the original post in a new tab)
- X@Bobalouie41The phishing technique is not specific to GitHub or Copilot CLI: "any public client that supports the device flow can b…(opens the original post in a new tab)
- X@Bobalouie41Two: adding misleading entries to the agent's memory. Three: reading Copilot CLI sessions that were synchronized to the…(opens the original post in a new tab)
- X@Bobalouie41The login prompt I worry about most is the one that looks completely normal. Microsoft's lab test: one phished GitHub s…(opens the original post in a new tab)
- X@aruntikaramDevice code phishing now reaches AI coding agents. Microsoft's lab PoC with Copilot CLI: victim approves a real GitHub…(opens the original post in a new tab)
2 likes·Nov 19 13:42Collect
- X@SaFeRamirez¿Copilot CLI con control remoto? Si apruebas un device code ajeno, el atacante maneja tu sesión y le mete memorias fals…(opens the original post in a new tab)
- X@DailyDarkWebA real GitHub login page can still authorize the wrong client. Microsoft's lab research shows how approving an attacke…(opens the original post in a new tab)
2 likes·Nov 19 06:46Collect
- X@TrustMountAIA real GitHub page, a short code and one approval. In a Microsoft lab test (17 Nov), that was enough to open up what a…(opens the original post in a new tab)
- X@EXINglobalMicrosoft used GitHub Copilot CLI, an AI coding agent, to show in a lab how device code phishing could expose private r…(opens the original post in a new tab)
- X@swif_aiMicrosoft lab: one phished GitHub device code let an attacker steer a remote-enabled Copilot CLI session and read priva…(opens the original post in a new tab)
Attention trend
New sources per day
- Nov 17: 4 new sources (1 outlets, 3 accounts)
- Nov 18: 15 new sources (0 outlets, 15 accounts)
- Nov 19: 6 new sources (0 outlets, 6 accounts)
- Nov 20: 0 new sources (0 outlets, 0 accounts)
- Nov 21: 0 new sources (0 outlets, 0 accounts)
- Nov 22: 0 new sources (0 outlets, 0 accounts)
- Nov 23: 1 new sources (1 outlets, 0 accounts)
- Nov 24: 0 new sources (0 outlets, 0 accounts)
- Nov 25: 0 new sources (0 outlets, 0 accounts)
- Nov 26: 0 new sources (0 outlets, 0 accounts)
- Nov 27: 0 new sources (0 outlets, 0 accounts)
- Nov 28: 0 new sources (0 outlets, 0 accounts)
- Nov 29: 0 new sources (0 outlets, 0 accounts)