← All research
TLP:CLEARAdvisory2026-06-13

VE-Detection-Guide — AI Coding Agent Supply Chain Attack Surface

Classification: TLP:CLEAR Researcher: VertexElite Security Research Date: June 13, 2026 Context: Companion to ClawHavoc/OpenClaw Submission (May 2, 2026) GitHub: github.com/VertexElite/miasma-detection Scope: Detection only — no exploit code, no unreleased IOCs


Campaign Summary: Miasma/Shai-Hulud (June 1–13, 2026)

Self-propagating supply chain worm campaign across npm and PyPI ecosystems, targeting AI coding agent platforms as both delivery and persistence mechanisms.


Original Contribution: 5-Level Attack Surface Ladder

Level Vector Trigger Defenses Bypassed Status
1 Preinstall hook (npm scripts) npm install None — caught by hook monitoring Observed — Wave 1 Jun 1
2 Phantom Gyp (binding.gyp) node-gyp rebuild Preinstall/postinstall monitoring Observed — Wave 2 Jun 3
3 AI agent SessionStart hook Agent session start Registry-level scanners Observed — Wave 3 Jun 3–5
4 MCP data poisoning (AgentJacking) MCP tool call EDR, WAF, IAM, firewalls Disclosed Jun 12 2026
5 No-tool-call file injection (CLAUDE.md etc.) Agent reads file All of the above Architectural — not yet observed

Each wave studied defenses deployed after the prior wave and engineered around them.


Key Detection Rule

Phantom Gyp zero-false-positive detection: Any package with binding.gyp + type:none + zero C/C++ source files = definitionally malicious

This single rule would have caught Wave 2 entirely.


Wave Details

Wave 1 — Preinstall Hook (Jun 1)

Wave 2 — Phantom Gyp (Jun 3)

Wave 3 — AI Agent SessionStart Hooks (Jun 3–5)

Wave 4 — AgentJacking / MCP Data Poisoning (Jun 12)

Level 5 — No-Tool-Call File Injection (Architectural)


Cross-Contamination Risk

gemini hooks migrate --from-claude — Gemini CLI migration command copies Claude hooks, enabling cross-platform propagation.


Published Detection Assets

GitHub Repository (VertexElite/miasma-detection)

Sigma Rules (3)


Disclosure Distribution

Recipient Channel Response
Anthropic T&S (Jamie) usersafety@anthropic.com Auto-reply only
GitHub Security security@github.com Auto-acknowledgment #148111
npm Security HackerOne (hackerone.com/npm)
Ravie Lakshmanan ravie@thehackernews.com
Google Security security@google.com

Published by VertexElite Security Research · research@vertexelite.org