CISO Voice

Breaches & Vulnerabilities / News

New Shai-Hulud malware variant steals credentials and poisons AI tools

The new Miasma malware variant collected cloud, package registry, AI coding tool and wallet credentials.

Akshaya Asokan
Akshaya Asokan Cybersecurity Reporter · November 9, 2026 · 2 min read
A red digital worm made of binary code coiled around a glowing ruby gem

Hackers are deploying a new Shai-Hulud malware variant designed to steal credentials and manipulate AI tools through a malicious RubyGems package.

In research published Friday, Socket Security said attackers pushed a malicious RubyGems package called strutil-core. Once installed, the package deployed a new build of the testmetest worm, part of the Miasma malware family that grew out of the publicly released Shai-Hulud toolkit. JFrog previously linked testmetest to 42 hijacked GitHub repositories.

RubyGems removed the malicious package and a benign version of it about five hours after the malicious release.

“We found no public projects that depended on it, and we have not confirmed any victims or any packages the worm infected from it,” Socket Security said.

A sandbox run by Bitbison confirmed the package ran its payload on install. Socket said attackers disguised strutil-core as a lightweight string manipulation helper that executed the payload when victims installed the package. The payload, which contained a RubyGems propagation module, then proceeded to collect credential files and environment variables for cloud providers, package registries, Git hosts and AI coding tools.

When a stolen GitHub token was accepted, the malware installed a background monitor. If the token was then revoked, the monitor would delete the user’s home directory, Socket said.

In addition to the RubyGems injector, the bundle contained publishing routines for npm and PyPI packages.

The worm also writes rogue MCP server entries, session hooks and agent instruction files such as AGENTS.md and Claude and Cursor settings into local configurations and repositories. Opening an affected repository in an AI coding tool can re-run the worm, depending on the tool’s trust settings, Socket said.

Socket advised affected organizations to isolate the machine and remove the malware’s monitor before revoking any stolen GitHub token, as revoking it is what triggers the deletion.

Socket Security did not immediately respond to a request for comment.

Akshaya Asokan
Akshaya Asokan Cybersecurity Reporter

Akshaya Asokan is a U.K.-based cybersecurity and technology journalist with experience covering nation‑state hacking operations, cyber and tech policy, and emerging cybercrime trends. She previously served as the senior European cybersecurity correspondent for Information Security Media Group’s Global News Desk. Before that, she reported on IT developments for IDG Media and covered artificial intelligence and machine learning for Analytics India Magazine. Earlier in her career, she wrote on sexual and religious minority rights as a reporter for The New Indian Express.

Keep reading for free,
one signup unlocks everything

We'll send you the CISO Voice newsletter. Unsubscribe anytime.

More from CISO Voice

Sign up to CISO Voice, the free newsletter trusted by senior security leaders.

Secret Link