Malicious strutil-core 1.0.1 on RubyGems runs a credential-stealing worm at install
A RubyGems worm steals keys and wipes your home folder if you revoke its token.
Are you affected?
The free scanner that answers this opens soon. Until then, the steps below work by hand.
What happened
Malicious strutil-core 1.0.1 stole credentials. Socket says the RubyGems account jamnajiea published a clean 1.0.0 on 2026-11-01 and the malicious 1.0.1 at 04:05 UTC the same day; RubyGems removed both versions between 08:52 and 09:13 UTC. A native extension script (extconf.rb) runs the payload during gem install, with no require needed. It reads cloud, CI, package registry, Git host, SSH, Docker, Kubernetes, Vault, wallet and AI coding tool credentials, including .aws/credentials, .npmrc, .pypirc, .gem/credentials and .claude/.credentials.json, and exfiltrates them. If a stolen GitHub token starts returning 401 or 403, a net-health-checker service deletes the home directory. Socket assesses it as a later build of the testmetest worm.
- Exposure starts
- 2026-11-01
- Exposure ends
- 2026-11-01
- Confidence
- high
- Scope
- every credential readable on a machine or CI runner that installed strutil-core 1.0.1
What to do, in this order
- Isolate the affected host, then stop and remove the net-health-checker and pkg-runtime services and their systemd units or launch agents
Socket says the monitor deletes the home directory when the stolen GitHub token stops working, so remove it before revoking that token.
- From a clean device, revoke GitHub, GitLab and package registry tokens (RubyGems, npm, PyPI)
The payload holds republishing routines for RubyGems, npm and PyPI and uses GitHub and GitLab for exfiltration and spreading.
github_pat, github_oauth_token, github_fine_grained_pat, npm_token
- Cloud, Vault and Kubernetes credentials, SSH keys and AI provider credentials
Socket lists cloud, SSH, Vault, Kubernetes and AI provider credentials among those to rotate.
aws_access_key_id, aws_secret_access_key, private_key, anthropic_api_key, openai_api_key, gemini_api_key
- Every other credential the machine or runner could read
Socket says to treat the system and every credential reachable from it as compromised.
anything else stored there
- Rebuild the host, and remove unrecognized MCP entries, SessionStart hooks, .github/init.js, AGENTS.md, CLAUDE.md and .vscode/tasks.json changes from repositories and home directories
Socket says the payload commits these files with stolen Git credentials so it runs again.
Notes
- Socket found no public projects depending on strutil-core and has not confirmed any victims; a download tracker recorded 0 downloads of 1.0.1 at 04:05:29 UTC, 25 seconds after publication. The rest of Socket's analysis is static.
- The window ends with the removal, but the payload persists outside the gem directory, so uninstalling the gem does not end an infection.
- Related to testmetest-npm-2026-10 (shared backdoor, wiper and GitHub markers) but a separate build with a different C2.
How to tell if you’re affected
- strutil-core 1.0.1 in a Gemfile.lock, CI cache or container image
- net-health-checker or pkg-runtime services or launch agents; ~/.config/index.js; /var/tmp/.fontconfig_state
- bun run started from /tmp/.b_<pid> by a Ruby process
- Egress to paleasbest.top
- New public repositories described as project-utils, chore/ci-* branches, commits containing skip-checks:true or AutoSyncComplete
- extconf.rb with SHA-256 c5264f3b9cf2f95c83a70b7dd7430aab8abc262b853dbbcd5386c3a8a9c74769
Sources
Rotating the keys
Pro, $49 a year when it opens, plans the rotation of each affected key for this incident, in this order. Automatic rotation is in testing and included.
By hand, free: the steps above.