Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › News › Ruby

News Analysis

Malicious Ruby Gem Steals 51 Credential Types, Backdoors AI Coding Tools

A fake Ruby package named strutil-core, disguised as a harmless text utility, deploys a credential-stealing worm and plants backdoors in AI coding tool configurations upon installation, according to Cybersecurity News.

RubyMalwareAI

Key points

  • Fake RubyGems package strutil-core disguised as a text utility actually runs a credential-stealing worm on install.
  • The malware can steal 51 different types of credentials and backdoors AI coding tool configurations.
  • It can delete a victim's home folder if they try to revoke a stolen GitHub token, acting as a destructive failsafe.

A malicious Ruby package named strutil-core has been found posing as a simple text-helper library while actually delivering a credential-stealing worm, according to a report from Cybersecurity News.

Once a developer installs the package, it reportedly executes immediately, harvesting as many as 51 different types of credentials from the infected system. Beyond basic data theft, the malware also writes backdoors into the configuration files of AI coding tools, giving attackers a persistent foothold inside development environments that increasingly rely on AI-assisted coding assistants.

According to the report, the malware includes a particularly destructive failsafe: if a victim attempts to revoke a stolen GitHub token, the worm can delete the user's entire home folder in retaliation. This makes the package dangerous not just as a data-theft vector but as a potential source of significant data loss if detected and countered improperly.

Why it matters

Supply-chain attacks via package registries like RubyGems remain a persistent risk for developers, who often install dependencies with minimal scrutiny. This case is notable for combining credential theft, AI tool compromise, and destructive anti-remediation behavior in a single package, raising the stakes for anyone who may have pulled in strutil-core as a dependency.

For full technical details, readers should consult the original report from Cybersecurity News.

What to do

Developers and organizations using Ruby/RubyGems should check whether strutil-core or similar suspicious packages are present in their dependency trees, rotate any potentially exposed credentials, and review AI coding tool configuration files for unauthorized changes before attempting to revoke tokens.

What to do

  1. Audit Ruby dependency trees for the strutil-core package or similarly named suspicious gems.
  2. Rotate GitHub tokens and other credentials cautiously, backing up data before revocation given the destructive failsafe.
  3. Review AI coding tool configuration files for unauthorized backdoor entries.
  4. Restrict automatic installation of unvetted third-party packages in development environments.

Our article, written with AI assistance from the facts of the original report and the official vulnerability data below. Read the original for full details.

Original report

Cybersecurity Newscybersecuritynews.com

“Malicious Ruby Gem Steals 51 Types of Credentials and Plants Backdoors in AI Coding Tools”

A fake Ruby package called strutil-core looked like a harmless text helper. In fact, it ran a credential-stealing worm the moment a developer installed it. The worm also wrote backdoors into the settings of AI coding tools. It could even delete a victim’s home folder if they tried to cancel a stolen GitHub token. The […] The post Malicious Ruby Gem Steals 51 Types of Credentials and Plants Backdo…

More on this topic