Brifing

AI Coding Assistant Hijacked to Spread Worm Across 100 Repositories

Attackers used poisoned AI recommendations to deploy self-spreading malware in a SaaS provider's internal systems.

The Hacker News2 min

1Session hijacking via AI assistant

Attackers compromised an active AI coding-assistant session at an unnamed SaaS provider, marking a novel attack vector. The malicious actor then used this access to recommend poisoned software, which was accepted by the developer. This initial breach demonstrates how AI tools can become new attack surfaces when integrated into development workflows without proper security controls.

2Worm deployment mechanism

After gaining access, the attacker installed an infostealer through a compromised PyPI package. The malware then stole GitHub OAuth tokens, enabling lateral movement. Using these credentials, the attacker deployed the self-spreading Shai-Hulud worm across approximately 100 internal code repositories, highlighting how stolen credentials amplify attack impact in cloud-native environments.

3Secondary infection vector

The attacker strategically poisoned a package in the company's official namespace, which was later pulled by another employee. This caused a second infection wave, demonstrating how supply chain attacks can persist even after initial detection. The case shows attackers leveraging multiple infection paths to maintain persistence in target environments.

4Evolution of AI in attacks

Mandiant's March 2026 report documented attackers' progression from using generative AI for productivity to actively incorporating LLMs in malware. This September 2026 case shows the next phase - attackers exploiting AI tools integrated into victim environments. The timeline suggests rapid weaponization of AI capabilities in cyber operations.

5Credential harvesting patterns

Recent Shai-Hulud variants have targeted developer credentials across multiple systems. One variant scanned 469 locations including CI/CD tools and cloud configurations. This matches the Mandiant case's focus on OAuth tokens, showing attackers' systematic approach to credential theft in development environments.

6Related but separate campaigns

While August 2026 saw Keyv-linked npm worms targeting similar infrastructure, Mandiant found no evidence connecting these to their case. This suggests multiple threat actors are independently developing AI-assisted attack tools, creating a diverse threat landscape for development environments.

7Recommended security controls

Mandiant suggests three key measures for AI-assisted development: strict session validation, package provenance verification, and credential rotation. These controls specifically address the attack vectors demonstrated in this case - session hijacking, supply chain compromise, and credential theft respectively.

8Emerging threat landscape

This attack represents a new class of threats where AI tools become both targets and amplifiers. As development environments increasingly integrate AI assistants, such incidents may become more frequent. Organizations must balance productivity gains with security considerations in AI adoption strategies.

Original article: The Hacker News — AI Coding Assistant Hijacked to Spread Worm Across 100 Repositories