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.
RubyMalwareAIKey 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
- Audit Ruby dependency trees for the strutil-core package or similarly named suspicious gems.
- Rotate GitHub tokens and other credentials cautiously, backing up data before revocation given the destructive failsafe.
- Review AI coding tool configuration files for unauthorized backdoor entries.
- Restrict automatic installation of unvetted third-party packages in development environments.
Original report
“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…
- CVE-2026-126080: Denial-of-service flaw in Rails Active Support safe_constantize, reachable via Action Cable
- CVE-2026-122006: Active Storage Vulnerability in Ruby on Rails
- MongoDB Ruby Driver Vulnerability Enables Unauthenticated Data Manipulation
- MongoDB Ruby Driver Logic Flaw Enables Unauthorized Data Access
- MongoDB Ruby Driver Type Confusion Vulnerability in Extended JSON Parsing