Skip to main content
Mallory
← Back to News
package-repository-poisoningcredential-stealer-activityinitial-access-methodai-platform-security

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

Malicious Ruby Gem Deploys Shai-Hulud-Descended Worm and Poisons AI Coding Tools

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.
Does this reach your builds?Trace attribution and downstream blast radius.
Trace the chain
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

9 events · May 2026 – Nov 1, 2026
  1. Reported Nov 9, 202626d ago

    strutil-core payload reportedly surfaces in at least 14 GitHub repositories

    The Shai-Hulud payload distributed through the malicious Ruby package strutil-core reportedly surfaced in at least 14 GitHub repositories over the weekend.

    AndreGironda: RT @oliver_ojsec: The shai-hulud payload distributed via Ruby package strutil-core surfaced in at least 14 GitHub repos ...
  2. Reported Nov 6, 202628d ago

    Socket identifies Shai-Hulud lineage and reveals persistence and wiping capabilities

    Socket assessed the payload as a later testmetest build in the Miasma family descended from Shai-Hulud, without attributing it to the same operators. Its analysis revealed multi-ecosystem propagation, a persistent backdoor, AI-tool configuration poisoning, and a conditional wiper triggered when a monitored stolen GitHub token becomes invalid; most capabilities were established through static analysis.

    Shai-Hulud Descendant Surfaces in Malicious Ruby Gem That Steals Credentials and Poisons AI Tools | Socket
  3. Reported Nov 6, 202628d ago

    Sandbox testing confirms installation-time execution and credential access

    Bitbison’s sandbox confirmed that the malicious gem executed during installation and read from 51 credential stores, including cloud, package-registry, and AI-tool files. Researchers identified no confirmed victims or successful downstream infections.

    Shai-Hulud Descendant Surfaces in Malicious Ruby Gem That Steals Credentials and Poisons AI Tools | Socket
  4. Nov 1, 20261mo ago

    RubyGems removes both strutil-core versions

    RubyGems removed strutil-core 1.0.0 and 1.0.1 between approximately 08:52 and 09:13 UTC, roughly five hours after the malicious version was published.

    Shai-Hulud Descendant Surfaces in Malicious Ruby Gem That Steals Credentials and Poisons AI Tools | Socket
  5. Nov 1, 20261mo ago

    Socket flags malicious strutil-core release within 70 seconds

    Socket’s AI Scanner flagged strutil-core 1.0.1 at 04:06:14 UTC, 70 seconds after its publication.

    Shai-Hulud Descendant Surfaces in Malicious Ruby Gem That Steals Credentials and Poisons AI Tools | Socket
  6. Nov 1, 20261mo ago

    Malicious strutil-core 1.0.1 is published to RubyGems

    The same account published strutil-core 1.0.1 at 04:05:04 UTC, introducing a credential-stealing worm that executes during gem installation. The package was a standalone malicious offering, not a compromised existing gem.

    Shai-Hulud Descendant Surfaces in Malicious Ruby Gem That Steals Credentials and Poisons AI Tools | Socket
  7. Nov 1, 20261mo ago

    RubyGems account publishes clean strutil-core 1.0.0

    The RubyGems account jamnajiea published strutil-core 1.0.0 at 02:19:56 UTC. This initial version was clean; the reported 89 early downloads belonged to this version rather than demonstrating exposure to the subsequent malicious release.

    Shai-Hulud Descendant Surfaces in Malicious Ruby Gem That Steals Credentials and Poisons AI Tools | Socket
  8. Oct 31, 20261mo ago

    Socket ingests three related malicious PyPI package versions

    Socket ingested pystr-codec versions 0.1.0, 0.1.1, and 0.1.2 between 22:21 and 23:32 UTC. These packages shared the paleasbest[.]top/v1/api exfiltration endpoint later found in strutil-core, but contained different payload builds.

    Shai-Hulud Descendant Surfaces in Malicious Ruby Gem That Steals Credentials and Poisons AI Tools | Socket
  9. May 2026

    Shai-Hulud source code becomes publicly available

    The Shai-Hulud source code became public, making its components available for reuse. Socket later cautioned that shared code in descendant malware does not establish common operators.

    Shai-Hulud Descendant Surfaces in Malicious Ruby Gem That Steals Credentials and Poisons AI Tools | Socket
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Malware

2 linked

Affected products

3 linked
Claude CodeVisual Studio CodeCursor

Observables

18 linked

Indicator values are masked on this page. View all 18 in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?See attribution and downstream blast radius, and whether this package or vendor reaches your builds.
Trace the Supply Chain
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.