What Happened
Mandiant says an attacker hijacked an active AI coding-assistant session at an unnamed software-as-a-service provider and later spread Shai-Hulud across about 100 internal code repositories. Before the repository spread, the assistant recommended software that the attacker had poisoned, and the recommendation was accepted. The worm stole repository secrets and source code for the
Why It Matters
Fact: Mandiant reports that an attacker hijacked an active AI coding-assistant session at an unnamed SaaS provider, first poisoning software that the assistant later recommended and then using the Shai-Hulud worm to spread across about 100 internal code repositories, stealing repository secrets and source code. Fact: The incident shows that compromise of an AI assistant session and its software supply chain path can rapidly propagate into internal engineering environments and sensitive code assets. RealGround analysis: Organizations relying on AI coding assistants in SaaS contexts should harden session security, enforce strict validation of AI-recommended dependencies, and isolate repositories to limit lateral movement and secret exposure. RealGround analysis: Continuous red teaming of AI workflows and supply-chain SBOM review can help detect poisoned components and abusive agent behavior before attackers turn assistant sessions into a pivot point into core code infrastructure.
RealGround Analysis
This signal maps to SaaS AI risk. Organizations using AI agents, LLM APIs, SaaS integrations, or sensitive data workflows should review whether this class of issue could create unauthorized tool execution, data leakage, weak approval gates, or unmanaged supply-chain exposure.
Recommended Actions
- Restrict AI agent tool permissions and production write paths.
- Review sensitive data access across prompts, logs, embeddings, memory, and SaaS integrations.
- Add human approval workflows for high-impact or state-changing actions.
- Run prompt injection and indirect prompt injection tests against affected workflows.
- Document the owner, control gap, and remediation deadline for this risk class.
Source
https://thehackernews.com/2026/09/attacker-hijacks-ai-coding-assistant.html
