Skip to content
Dustin's AI Lab
Go back

From Miasma to Hades: How One Group Turned AI Tools Into a Supply-Chain Attack Vector

Two June 2026 npm/Python supply-chain attacks: Miasma backdoored Red Hat packages, then TeamPCP/UNC6780 upgraded to Hades, turning Claude Code, Cursor and 14 other AI tools into an attack vector. Includes self-check steps.


In June 2026, one attack group was exposed in two consecutive waves within two days. The first wave, codenamed Miasma, targeted npm. The second, codenamed Hades, was an upgrade by the same group (TeamPCP/UNC6780): it crossed into the Python ecosystem and turned AI tools directly into an attack vector. The two waves are an evolution — reading them in sequence is the only way to see how the attackers sharpened the blade step by step.

Wave One: Miasma (June 9)

Security researchers exposed a large-scale supply-chain attack against the npm ecosystem, codenamed Miasma. The attackers compromised about 32 packages under the @redhat-cloud-services namespace, pushed more than 100 malicious versions, and spread via a worm mechanism to another 57 packages and 286+ versions (a second stage codenamed Phantom Gyp).

Attack mechanism: the malicious code hides in a preinstall script and triggers automatically when you run npm install, planting the following persistence files:

Important: uninstalling the npm package itself does not remove these planted files — you must verify each one manually.

The stolen data includes AWS, GCP, and Azure IAM credentials, GitHub tokens, npm publish tokens, SSH keys, and more, encrypted and uploaded to a remote endpoint controlled by the attacker.

Miasma Self-Check Steps

  1. Check whether you have installed an affected package: npm ls -g 2>/dev/null | grep redhat-cloud
  2. Check for unknown hooks in your Claude Code settings: cat ~/.claude/settings.json and inspect whether preToolUse/postToolUse contain unfamiliar scripts or curl/wget outbound commands.
  3. Scan for suspicious planted files: ls ~/.claude/setup.mjs 2>/dev/null / find . -name "tasks.json" -path "*/.vscode/*" 2>/dev/null | head -10

If you have never installed a @redhat-cloud-services package and the scans above show nothing abnormal, you are not affected by this attack.

Wave Two: Hades (June 11)

Before last month’s Miasma attack (the Red Hat npm package backdoor) had even settled, the same attack group — TeamPCP/UNC6780 — upgraded its weapons and released a new wave codenamed Hades. This time they crossed into the Python ecosystem and turned 14 AI tools, including Claude Code, Cursor, Copilot, and Gemini CLI, directly into an attack vector. So far 294,842 secrets have been confirmed exfiltrated from 6,943 machines.

New techniques in this wave:

Important: do not rush to rotate your API keys! Hades monitors whether your token has been revoked, and once it detects a revocation it triggers rm -rf ~/. Clean up the persistence scripts before you rotate credentials — getting the order wrong can cause far greater damage.

Hades Self-Check Steps

  1. Check Python site-packages for suspicious startup scripts: find ~/.local/lib /usr/local/lib -name "*-setup.pth" 2>/dev/null
  2. Check for traces of a Bun payload run: ls /tmp/.bun_ran 2>/dev/null
  3. Scan the Claude Code config for unknown instructions: cat ~/.claude/settings.json and inspect whether the hooks section contains unfamiliar scripts or curl calls
  4. Check for suspicious monitor processes in the background: pgrep -lf "gh-token-monitor|pgsql-monitor|kitty-monitor"

If the scans above show nothing abnormal and you have not recently run pip install on bioinformatics-related packages (ensmallen, gpsea, spateo-release, etc.), you are not affected for now.

If you have been compromised, the correct cleanup order is: (1) isolate from the network → (2) delete the .pth file and remove the planted instructions from AI configs → (3) uninstall the malicious packages → (4) only then rotate all credentials.

Sources


Share this post on:

Previous Post
The Five-Step SOP for Sneaking Claude Code Runs From the Hotel Over Dinner
Next Post
Reading the Claude Fable 5 / Mythos 5 System Card Feels Like a Sci-Fi Novel