Microsoft Security Research
aidefend-sf0094
GitHub Copilot CLI: Phished Device Code Authorization Enables Session Steering and Memory Poisoning
- Autonomous Agents
- Edge & Client AI
- Credential & Identity Theft
- System Compromise & RCE
- Data Exfiltration
- Model Poisoning & Integrity
GitHub Copilot CLI is a coding assistant that runs in a terminal. Microsoft showed in a lab that a developer could be tricked into approving an attacker's device sign-in on the real GitHub site. GitHub then issues an OAuth access token to the initiating client. Depending on the permissions and enabled features, the token could steer an active local session, plant misleading Copilot Memory, read cloud-synced conversations, or access private repositories. Each outcome has its own prerequisites.
Mapped threat techniques
AML.T0052PhishingAML.T0091.000Application Access TokenAML.T0050Command and Scripting InterpreterAML.T0080.000MemoryAML.T0085.002Conversation Context and MemoryAML.T0036Data from Information Repositories