Miasma Worm Hijacking AI Coding Agents
Score: 9/10

Miasma Worm Hijacking AI Coding Agents

TeamPCP uses the Miasma worm to compromise developers and CI/CD pipelines by hijacking AI coding agents and poisoning package registries.

Executive Summary

In June 2026, a sophisticated self-replicating JavaScript worm known as Miasma (a variant of Shai-Hulud) was attributed to the threat cluster TeamPCP. The campaign notably targeted Microsoft's GitHub ecosystem, resulting in the compromise of 73 repositories including Azure and Durable Task projects. The threat actor leverages a crowd-sourced affiliate model, previously offering bounties on BreachForums to scale supply-chain attacks using their leaked worm toolkit.

The technical tradecraft represents a significant shift in supply-chain methodology, specifically weaponizing AI-assisted IDEs like Cursor and Claude Code. By planting malicious configuration files, the worm forces AI agents to execute code that harvests cloud provider credentials, SSH keys, and CI/CD secrets. The malware also features advanced anti-analysis capabilities, including EDR process detection and a 'Russian locale' guard to evade sandboxes and specific geographic regions.

This threat is critical for organizations using AI-integrated development tools or maintaining open-source packages. Beyond immediate credential theft, Miasma's ability to poison GitHub Actions releases and npm packages with valid Sigstore provenance creates long-term, downstream trust issues in the software supply chain. Immediate rotation of all secrets accessible from developer workstations or CI environments is required upon detection.

Key Details

Threat Name

Miasma (Mini Shai-Hulud) Supply-Chain Worm

Affects

—

Adversary

TeamPCP

Malware/Tools

Miasma, Mini Shai-Hulud, Shai-Hulud, Phantom Gyp, Hades

Report Score

9out of 10
Quality Score
Excellent
IOC Quality9
TTP Details10
Detection Guidance7
Enterprise Relevance10
Clarity & Structure10
Technical Depth10

Sources