Skip to content
AgentProv

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?

The question layer 4 asks, and failed here.
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