Skip to main content
Mallory
← Back to News
ai-platform-securitycloud-service-vulnerabilityleaked-secret-api-keybuild-pipeline-compromise

RoguePilot Prompt-Injection Flaw in GitHub Codespaces Allowed Copilot to Leak `GITHUB_TOKEN`

Emerging Technology Risk · 2 sources · Updated 5mo ago · First seen Feb 25, 2026

RoguePilot Prompt-Injection Flaw in GitHub Codespaces Allowed Copilot to Leak `GITHUB_TOKEN`

Microsoft patched an AI-mediated vulnerability in GitHub Codespaces dubbed RoguePilot (reported by Orca Security) that could let an attacker seize control of repositories by embedding hidden instructions in a GitHub issue. When a developer launched a Codespace from a malicious issue, the issue text could be automatically ingested by the built-in GitHub Copilot agent, enabling passive/indirect prompt injection that coerced the agent into executing attacker-directed actions and leaking sensitive credentials—most notably a privileged GITHUB_TOKEN—potentially enabling repository takeover and downstream supply-chain impact.

The disclosure reinforces a broader risk pattern where developer tools and AI agents become high-trust entry points for supply-chain compromise, as highlighted by commentary describing how dev-platform footholds can cascade into cloud and SaaS environments via token theft and trusted integrations. Separate reporting also notes increasing attacker speed and AI-enabled tradecraft, but those items are not specific to RoguePilot; the core actionable takeaway is that AI agents embedded in developer workflows can be manipulated through untrusted content (e.g., issues/PRs) unless strong isolation, least-privilege token scoping, and explicit user confirmation/guardrails prevent autonomous execution and secret exfiltration.

Why it matters

Impact assessment

RoguePilot affected GitHub Codespaces users who launched development environments from untrusted GitHub content, especially teams using GitHub Copilot in repository workflows. The primary impact was potential repository takeover through theft of a privileged GITHUB_TOKEN, with downstream supply-chain risk if attackers modified code, CI/CD workflows, or dependencies.

The exposure was high-value but workflow-dependent rather than indiscriminate: exploitation required a developer to open a Codespace from attacker-controlled content such as an issue, pull request, commit, repository, or template. The story does not cite confirmed in-the-wild exploitation of RoguePilot, but the attack path is credible and aligns with broader real-world compromises of developer platforms and trusted integrations.

Supporting facts

  • Entity: GitHub Codespaces
  • Entity: GitHub Copilot
  • Entity: Microsoft
  • Entity: Orca Security
  • Researcher: Roi Nisimi
  • Vulnerability name: RoguePilot
  • Affected population: developers using Codespaces and Copilot in trusted repository workflows
  • Business impact: repository compromise, secret theft, CI/CD abuse, supply-chain propagation
  • Sensitive asset at risk: privileged GITHUB_TOKEN
  • Scope: targeted exploitation via malicious GitHub content rather than unauthenticated internet-wide exploitation
  • Exploitation status: Microsoft patched the issue after responsible disclosure; no confirmed active exploitation reported in the provided content

Related ecosystem context from references

  • SC Media describes a broader pattern of developer-tool compromise leading to downstream SaaS exposure.
  • Threat actor UNC6395 allegedly moved from Salesloft GitHub access to AWS, then to Drift OAuth tokens, then accessed data from more than 700 Salesforce customer tenants.
  • The same reference highlights prior supply-chain precedents: Codecov Bash Uploader and CircleCI, plus the GlassWorm VS Code extension campaign.
New surface, new adversariesTrack how attackers are adapting to this technology.
Track this risk
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

9 events · Apr 15, 2021 – Feb 24, 2026
  1. Feb 24, 20269mo ago

    Microsoft patched the RoguePilot issue after disclosure

    Microsoft remediated the GitHub Codespaces/Copilot issue following responsible disclosure, closing the prompt-injection path described by Orca Security.

  2. Feb 24, 20269mo ago

    Orca Security disclosed RoguePilot in GitHub Codespaces

    Orca Security revealed the RoguePilot flaw, showing that hidden prompt-injection instructions in a GitHub issue could manipulate Copilot in Codespaces and expose sensitive data such as a privileged GITHUB_TOKEN.

  3. Feb 24, 20269mo ago

    Google tracked the Salesloft-linked actor as UNC6395

    Google identified and tracked the threat actor behind the Salesloft-related activity as UNC6395, adding attribution to the campaign.

  4. Jan 30, 202610mo ago

    GlassWorm campaign identified via malicious Open VSX updates

    On January 30, 2026, researchers identified the GlassWorm campaign, in which compromised Open VSX publishing credentials were used to push malicious VS Code extension updates that harvested secrets.

  5. Mar 11, 20252y ago

    Drift OAuth tokens used to access 700+ Salesforce tenants

    Using stolen Drift-related OAuth tokens, the attacker allegedly accessed data from more than 700 Salesforce customer tenants over roughly 10 days while blending in with normal integration traffic.

  6. Mar 1, 20252y ago

    Attacker pivoted from Salesloft GitHub into AWS environment

    After the initial GitHub compromise, the attacker reportedly moved into Salesloft's AWS environment and obtained OAuth tokens tied to the Drift chatbot integration.

  7. Mar 1, 20252y ago

    Attacker allegedly compromised Salesloft's GitHub organization

    In March 2025, an attacker allegedly breached Salesloft's GitHub organization, beginning a SaaS supply-chain intrusion chain later linked to downstream customer data access.

  8. Dec 1, 20224y ago

    CircleCI disclosed a late-2022 compromise

    CircleCI reported a compromise in late 2022, later cited as another major example of CI/CD and developer-environment supply-chain risk.

  9. Apr 15, 20216y ago

    Codecov Bash Uploader supply-chain compromise disclosed

    Attackers compromised Codecov's Bash Uploader in a software supply-chain incident that became a notable precedent for later developer-tool compromises.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Github Copilot

Organizations

1 linked
GitHub
Do you run this?Follow how adversaries are adapting to this technology, and where it touches your stack today.
Track This Risk
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.