Malicious Ruby gem strutil-core steals credentials and backdoors AI coding tools
- Severity
- High
- Sources
- 1
What happened
Malicious RubyGems package strutil-core 1.0.1 (version 1.0.0 was clean; both removed by RubyGems) runs a worm via extconf.rb at install, fetches Bun, and harvests cloud, registry, SSH, Kubernetes, Vault and wallet credentials, with GitHub Actions memory scraping and tampering attempts against StepSecurity Harden-Runner. It writes persistence into AI tool configs (MCP server workspace-tools, SessionStart hooks, AGENTS.md, CLAUDE.md, VS Code tasks) and installs sync.py, polling GitHub commits for the msync-3f7a marker. A net-health-checker monitor deletes the home directory if a stolen GitHub token returns 401 or 403, so isolate hosts and remove that monitor before revoking the token. Socket links the code to testmetest/Miasma, which derives from the public Shai-Hulud toolkit.
For security analysts · Written by AI from 1 source · Wrong?
What to do
- Isolate any host that installed strutil-core 1.0.1 and treat it and every reachable credential as compromised.
- Stop and remove net-health-checker and pkg-runtime before revoking any stolen GitHub token.
- Rotate all keys from a clean device and rebuild the affected host.
- Check Gemfile.lock files, CI caches and container images, and remove unknown workspace-tools entries from AI tool settings.
Written by AI from the sources, checked against them
Full story timeline · 1 update
Who reported · 1 outlet
Who and what is in it
Malware
Companies
Products