2026-11-06 · 2026-Q4
Socket: Shai-Hulud Descendant Ruby Gem "strutil-core" Plants a Fake MCP Server and Hooks in Claude Code, Codex, Cursor, and Aider
Where did this code come from?
- Fixable
- Architectural
- Vendor response
- Unknown
- In the wild
- No
- Actor
- Attacker
Target
Ruby developers and their AI coding tool configurations
Impact
`strutil-core` 1.0.1, published November 1, 2026 and live for about five hours, read 51 credential stores in a sandbox run, enumerated AWS Secrets Manager and SSM across 17 regions and ECR across 11, and added a fake "workspace-tools" MCP server and SessionStart hooks to `.claude/settings.json`, `.cursor/mcp.json`, CLAUDE.md, AGENTS.md, and `.aider.conf.yml`. It checks the stolen GitHub token every 45 seconds and deletes the home directory on a 401 or 403. Socket links it to the testmetest worm in the Miasma family. The gem had 89 downloads, none of 1.0.1, attributed to mirrors and scanners; no victims were confirmed
Root cause
Install-time code can rewrite agent configuration files that later auto-load tools and hooks
Sources
Catalog
Cite this: AgentProv incident record: Socket: Shai-Hulud Descendant Ruby Gem "strutil-core" Plants a Fake MCP Server and Hooks in Claude Code, Codex, Cursor, and Aider (2026-11-06). https://agentprov.com/incidents/2026-11-06-socket-shai-hulud-descendant-ruby-gem-strutil-core-plants-a-fake-mcp-server-and
Related
- Also L4 · 2026-11-11Microsoft "Lazarus": Editing Fewer Than 10 Neurons Backdoors an Agent Model Into Running an Attacker's CommandL4Code / Package
- Also L4 · 2026-11-04Backdoored ARTEX Docker Image Pulled 9,000+ Times Gives Root Shells on Attackers' Own Pentest ConsolesL4Code / Package
- Also L4 · 2026-10-29"SolanaCry": Fake Solana Starter Kit Ranks First in Agent Web Search and Its README Installs NetSupport RATL4Code / Package