Skip to content
EventPast event

Microsoft demonstrates that after device code phishing is approved, Copilot CLI can be remotely controlled

2 reports2 reporting sourcesLatest report

Start here

AI overview

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

Nov 23Nov 24Now 36

Progress timeline

Nov 23
  1. 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.

Nov 19
Nov 18
Nov 17
  1. Microsoft Security
    Microsoft 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

Total 30 items

Attention trend

New sources per day

26 in 13 days·most 15 (Nov 18)·today 0

  • 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)

Hourly attention

Current attention 36·Peak in the comparable period 39 (Nov 23 10:00)·Change over the comparable past 24 hours -3%

010203040Nov 2222:00Nov 2314:00Nov 2406:00Nov 2422:00