Malicious Ruby Gem Deploys Shai-Hulud-Descended Worm and Poisons AI Coding Tools
Supply Chain Risk · 7 sources · Updated 25d ago · First seen Nov 6, 2026

Socket researchers uncovered a credential-stealing worm in strutil-core 1.0.1, a malicious RubyGems package that executes during installation without requiring an application to load it. Socket reported flagging the package 70 seconds after publication; RubyGems removed it approximately five hours after publication. Researchers assessed the payload as a later build of the testmetest worm in the Miasma family, descended from the publicly released Shai-Hulud toolkit, while cautioning that shared code does not establish common operators. Sandbox testing confirmed install-time execution and access to credential files, but researchers identified no confirmed victims or successful downstream infections.
The payload includes credential theft, propagation across multiple package ecosystems, a persistent backdoor, AI coding configuration poisoning, and conditional file-wiping capabilities. Its token-monitoring component can trigger file deletion when a stolen GitHub token is revoked, making containment order critical. Responders handling affected installations should isolate hosts and disable the token-monitoring wiper before revoking GitHub credentials, then rotate exposed credentials from a clean device and rebuild affected systems. Investigations should also examine AI coding configurations and potential downstream package compromise rather than treating removal of the gem alone as sufficient remediation.
Why it matters
Installing strutil-core 1.0.1 could compromise developer workstations and CI runners, exposing credentials, repositories, cloud secrets, and package-publishing privileges; conditional wiping also creates a serious data-loss risk. Socket confirmed installation-time execution and credential-file access in a sandbox, but reported no confirmed victims or successful downstream infections, so demonstrated capability should not be confused with established operational impact. Potential exposure extends beyond the original host through stolen credentials, modified repositories, and package-propagation routines (Socket).
- Industry-specific impact is not established. Developer tooling and software supply chains are exposed, but the supplied evidence identifies no affected organizations or specifically targeted industry; generic RubyGems, cloud, and AI-tool use does not establish sector-specific impact.
- Geography-specific impact is not established. Locale exclusions describe malware execution conditions, not confirmed affected countries; cloud-region enumeration likewise does not establish victim geography.
- Exposure limits: The package was removed approximately five hours after publication, and Socket found no public dependent projects. The reported 89 early downloads belonged to clean version 1.0.0, not demonstrated malicious-version infections.
- Unverified downstream activity: A separate report fragment claimed the payload surfaced in at least 14 GitHub repositories. The supplied excerpt does not establish whether those were infected repositories, research copies, or successful propagation; it does not resolve Socket's lack of confirmed downstream infections.


