RubyGems Sees Thousands of Malicious Package Uploads in 2026

Summary
ReversingLabs reviews 2026 RubyGems campaigns, including install-time credential theft, cryptominers, typosquats and packages used to store stolen data. It says malicious uploads have risen into the thousands.
Key points
- ReversingLabs says strutil-core, a standalone gem published in November, ran an encrypted payload at installation, stole credentials and attempted to republish itself across RubyGems, npm and PyPI.
- The strutil-core payload reportedly sent stolen credentials to a server behind paleasbest[.]top and included a wiper triggered when a stolen GitHub token was revoked.
- A campaign attributed by Socket to an actor using knot-theory and the GitHub account BufferZoneCorp published five malicious gems that collected secrets and CI-related credentials.
- The GemStuffer mass-publishing wave involved hundreds of packages; RubyGems suspended new account registrations from May 12 to May 16. Researchers’ proposed link between the activity and OpenAI agents was described as circumstantial.
- July activity included cryptomining packages and the SleeperGem campaign, whose malicious package versions reportedly acted as loaders for a backdoor.
- Across the campaigns, the article highlights install-time execution, typosquatting and revived packages, credential reuse across ecosystems, and RubyGems being used to store exfiltrated data.
Article Details
- Event Type
- Supply-chain attacks involving malicious RubyGems packages and related ecosystem activity
- Impact
- The article reports malicious package uploads ranging from credential-stealing gems and cryptominers to loaders delivering backdoors. The strutil-core payload reportedly steals cloud, CI, registry, and AI-tool credentials, can republish itself to RubyGems, npm, and PyPI, tampers with AI coding-tool and VS Code configurations, and includes a wiper that deletes the victim's home directory after a stolen GitHub token is revoked. Other campaigns scraped data from UK government websites or used RubyGems packages to store stolen secrets. RubyGems suspended new account registrations from May 12 to May 16 after a mass-publishing wave.
Indicators of compromise
| Type | Indicator | Context |
|---|---|---|
| DOMAIN | paleasbest[.]top | Domain of the server reportedly used by the strutil-core payload to send stolen credentials. |
MITRE ATT&CK
T1021.004 · SSHA cryptojacking payload reportedly spread to hosts found on the victim's machine over SSH.T1041 · Exfiltration Over C2 ChannelPayloads sent stolen credentials and other collected data to external servers or services.T1059 · Command and Scripting InterpreterPackage installation or loading triggered malicious scripts and payload execution.T1105 · Ingress Tool TransferMalicious packages downloaded runtimes, second-stage payloads, or an executable.T1195.001 · Compromise Software Dependencies and Development ToolsMalicious packages were published to RubyGems and other package ecosystems to deliver payloads through the software supply chain.T1485 · Data DestructionThe strutil-core payload reportedly included a wiper that deletes the victim's home directory after detecting that a stolen GitHub token was revoked.T1496.001 · Compute HijackingA RubyGems cryptojacking campaign downloaded the XMRig miner.T1552.001 · Credentials In FilesPayloads read credential files, including AWS, npm, RubyGems, GitHub CLI, and .netrc files.T1552.004 · Private KeysThe secret-stealing campaign read SSH keys, and stolen data included SSH private keys.T1555.003 · Credentials from Web BrowsersA second-stage stealer collected saved browser logins and cookies.
Threat Actors
Malware
Products
1Passworddescribes RubyGems packages they discovered in June, containing stolen data, complete contents of a 1Password vault. This included plaintext passwords, SSH private keys, AWS credentials, crypto wallet seed phrases,Claudenpm and PyPI using stolen credentials, tampers with the configuration of AI coding tools such as Claude, Cursor and Gemini as well as VS Code, and sets up a wiper. The wiper deletes the victim's home directoryCursornpm and PyPI using stolen credentials, tampers with the configuration of AI coding tools such as Claude, Cursor and Gemini as well as VS Code, and sets up a wiper. The wiper deletes the victim's home directory once itGeminiusing stolen credentials, tampers with the configuration of AI coding tools such as Claude, Cursor and Gemini as well as VS Code, and sets up a wiper. The wiper deletes the victim's home directory once it noticesGitHub Actionswas the one sitting it out. However, RubyGems is also lately being targeted. Shai Hulud worm hit GitHub Actions @7nohe/openapi-react-query-codegen, stealing among other things RubyGems credentials, which could benpmrepositories and in compromises of legitimate, popular packages. The bulk of these attacks still target npm, where the number of malicious packages remains stubbornly high despite npm's ongoing security measures.PyPIserver behind the domain paleasbest.top. It carries routines for republishing itself to RubyGems, npm and PyPI using stolen credentials, tampers with the configuration of AI coding tools such as Claude, Cursor andRubyGemsRubyGems hosts far fewer new packages every day, but it has been hit as well. While the overall volume differs, the shift is dramatic: malicious RubyGems uploads have climbed into the thousands this year, a starkVS Codetampers with the configuration of AI coding tools such as Claude, Cursor and Gemini as well as VS Code, and sets up a wiper. The wiper deletes the victim's home directory once it notices that a stolen GitHub
Tools
ArmandoWe decoded every layer of the malicious version with our AI agent Armando. The payload collects cloud, CI, registry and AI tool credentials and ships them to a server behind the domain paleasbest.top. It carriesXMRigPython projects (setup.py), Dockerfiles, git hooks and VS Code extensions, before downloading the XMRig miner. A second, simpler group of 23 gems, mostly typosquats, only fetched the latest XMRig release, with
