Rogue Agents Watch › Records › mandiant-hijacked-coding-assistant-shai-hulud
Hijacked AI coding-assistant session at a SaaS provider led to the Shai-Hulud worm spreading across about 100 internal repositories
Disclosed · added to the index · last updated
Grades
- Verification status
- Reported — Publicly reported but not independently confirmed. Never present a reported incident as confirmed.
- Sourcing confidence
- Primary — Backed by primary sourcing — first-party disclosure, vendor incident report, government advisory, or court documents.
- AI role
- Significant — AI materially enabled or accelerated the operation, but was one of several important components.
- Severity
- High — Significant confirmed harm to one or more organizations.
Summary
Mandiant's special report "AI risk and resilience in 2026", dated September 2026, describes in its first case study an intrusion Mandiant investigated at an unnamed software-as-a-service provider. A threat actor compromised the provider and hijacked an active AI coding-assistant session on a developer's workstation. Acting as a trusted interpreter, the assistant recommended installing an external package the attacker had poisoned. Once the recommendation was accepted, the attacker used the developer's session to install an infostealer through a poisoned PyPI package, harvest GitHub OAuth tokens and deploy the self-propagating Shai-Hulud worm across about 100 internal code repositories. The worm stole repository secrets and exfiltrated proprietary product source code. The actor then poisoned a package in the organisation's official namespace, and a second employee was infected after pulling the compromised version. Mandiant does not name the victim, the assistant or model, or the actor. It does not say when the intrusion happened or how the session was hijacked. The same report separately describes UNC6780 (TeamPCP) using prompt injection against AI coding assistants. Neither Mandiant nor The Hacker News links that actor to this case. The assistant was the delivery channel, not the operator.
Impact as stated
Per Mandiant: proprietary product source code and repository secrets were exfiltrated from an unnamed SaaS provider; the Shai-Hulud worm was deployed across about 100 internal code repositories; and a package in the organisation's official namespace was poisoned, infecting a second employee. No data volume or financial figure is given.
Facts as stated by sources
- Actor
- Unknown (Unknown)
- Category
- Infrastructure abuse / supply chain
- Models named
- not named by sources
- Model families
- Other / unspecified
- Agentic autonomy level
- Not applicable
- Guardrail bypass
- Unknown
- Attack lifecycle phases
- Resource development, Initial access, Execution, Credential access, Exfiltration
- Target sectors
- Technology
- Target countries
- not stated
- Organisations affected
- 1
- Records exfiltrated
- not stated
Framework mappings
- MITRE ATLAS
- AML.T0011.001, AML.T0112.000
Mitigations as stated
- Mandiant recommends securing AI-assisted development with IDE and CLI verification hooks that check every AI-recommended third-party dependency against cryptographic checksums and approved allowlists.
- Mandiant recommends keeping local credentials away from extensions (no access to raw API keys, long-lived OAuth tokens or secrets) and restricting workstation network egress so all dependency traffic goes through secure internal repositories.
- Mandiant advises treating AI coding assistants and MCP servers as privileged sessions, with just-in-time secrets management and cryptographic integrity checks on all CLI hooks and plugins.
Map
No cited source states a location; this record is listed beside the map, never plotted.
Related records
Sources (2; 2 distinct publishers)
- AI risk and resilience in 2026: A Mandiant special report
Mandiant (Google Cloud) · Vendor report · archived copy - Attacker Hijacks AI Coding Assistant Session, Spreads Shai-Hulud Across About 100 Repositories
The Hacker News · News · · archived copy
Cite this record
Agentic Attack Index (MLSecOpsHub), dataset v0.9.0, record "mandiant-hijacked-coding-assistant-shai-hulud". https://raw.githubusercontent.com/MLSecOpsHub/agentic-attack-index/v0.9.0/dist/incidents/mandiant-hijacked-coding-assistant-shai-hulud.json — CC BY-SA 4.0.