A malicious Ruby gem ran a credential-stealing worm at install time, then wrote itself into MCP configs and AGENTS.md so AI tools would run it again. Also: GitHub to block pull_request_target.
Welcome to Socket Weekly. Each week, we share a short, opinionated snapshot of the most important security issues and ecosystem changes.
A malicious Ruby gem called strutil-core ran a credential-stealing worm at install time, then wrote itself into MCP configs, CLAUDE.md and AGENTS.md so AI tools would run it again. It’s a new build of the testmetest worm from the Miasma family, which grew out of the Shai-Hulud toolkit that went public in May. It also installs a monitor that deletes the user’s home directory when a stolen GitHub token starts returning 401 or 403. Revoking the token, the first thing a responder would do, triggers the wipe.
Rails shipped 8.0.5.2 and 8.1.4.1 on November 4, fixing 21 vulnerabilities including a critical Active Storage flaw that lets unauthenticated attackers write arbitrary files through a crafted upload. It affects apps processing untrusted uploads through ImageMagick with mini_magick. We’ve released a free Certified Patch for teams that can’t upgrade right away.
GitHub is blocking the pull_request_target trigger in public repos unless an Actions policy explicitly allows it, closing off the pwn request pattern behind the Nx, PostHog, and TanStack compromises. Safe workflows get caught too, so maintainers running it across dozens of repos will need to allowlist each one before enforcement starts.