Case · DiggingBeagle record

Copilot CLI device-code phishing can steer an authenticated coding-agent session

Microsoft researchers showed that a GitHub device-code consent flow can be misused to connect a coding agent session to an attacker-controlled OAuth authorization, then steer agent instructions and access available user-authorized context.

Published by DiggingBeagle:

Scope

The cited research is not evidence of observed criminal exploitation and depends on user approval and granted scopes. Microsoft researchers showed that a GitHub device-code consent flow can be misused to connect a coding agent session to an attacker-controlled OAuth authorization, then steer agent instructions and access available user-authorized context.

Assessment profile

Assessment method
Setting
research demonstration
Exploitation
demonstrated
Evidence
Grade B
Remediation
mitigation available
AI role
AGAINST AI
Basis and provenance

Microsoft documented a controlled device-code social-engineering technique and downstream agent-access capabilities, not observed mass exploitation of enterprise accounts. Impact grade is left null rather than converting a vendor statistic, controlled attack result or unmeasured installed-base exposure into a standardized realized-harm score.

Assessed Nov 19, 2026 using diggingbeagle.assessment/1.

At a glance

Claims & evidence

CLM-DB264-COPILOT-DEVICE-CODE-BOUNDARYThe controlled demonstration described persistent memory influence and attempted access to conversation history and private repositories where scopes permit. The cited research is not evidence of observed criminal exploitation and depends on user approval and granted scopes.supported

Basis: reported finding

Link to claim
CLM-DB264-COPILOT-DEVICE-CODE-MECHANISMMicrosoft researchers showed that a GitHub device-code consent flow can be misused to connect a coding agent session to an attacker-controlled OAuth authorization, then steer agent instructions and access available user-authorized context.supported

Basis: reported finding

Link to claim

Implications

Device-code authorization must be bound to an intended requesting application and human-visible context; possession of a code must not silently decide the future agent session.

Controls and mitigations

  • Show client identity and effective OAuth scope at device-code consent, restrict coding-agent grants and treat unexpected device-code requests as account-takeover attempts.

Unknowns and contradictions

  • Whether the technique has been exploited outside the demonstration.
  • Which exact connector scopes and consent signals prevent the attack in deployed versions.

Sources and citation

Material revision history

  1. Nov 19, 2026 · Published version · first publication · revision 266