Redbot Labs / Threat Intelligence
RubyGems Removes 500+ Malicious Packages Following Campaign Linked by Researchers to AI Agents
- Incident ID
- RBT-TI-0085
- Organization
- RubyGems / Ruby Central
- Reported Location
- United States — Registry Operator Country
- Severity
- High
- Category
- Software Supply Chain Abuse / Reported AI Agent Activity
- Record Date
- 2026-05-13
Incident Summary
RubyGems responded to a malicious publishing campaign involving newly created accounts and removed more than 500 packages.
Researchers subsequently attributed the activity to AI agents. RubyGems confirmed the abuse but stated that it could not determine whether AI agents created or published the packages. RubyGems statement
What Happened
Registry abuse
Socket documented related activity under the name GemStuffer. Its analysis found scripts collecting publicly accessible UK council information, embedding the responses inside Ruby packages, and publishing those packages to the registry.
Data transport through package publishing
The examined samples used embedded publishing credentials and ordinary registry interfaces. Socket assessed that the packages appeared intended to transport collected information rather than achieve widespread developer compromise. Socket research
Containment
RubyGems disabled new registrations on May 12. Its May 13 update reported that responsible accounts had been blocked and the malicious packages removed. Registrations reopened on May 16. Existing users’ package installations and publishing remained available. Official incident timeline
Credential-access attempts and attribution
RubyGems acknowledged researcher findings of code intended to obtain other users’ API keys, but found no evidence those attempts succeeded. The operator did not independently confirm the researchers’ AI-agent attribution. RubyGems statement
Affected Systems
RubyGems.org / New Account Registration / Package Publishing API / Registry Abuse Controls
Attack Vector
Automated Account Abuse / Malicious Package Publishing / Public Registry Data Transport / Attempted API Key Collection
Business Impact
Temporary onboarding disruption
New users could not register while the registry implemented additional protections. Existing users retained access to core package workflows.
Maintainer response burden
The incident required account investigation, package removal, and stronger controls around account creation.
Potential enterprise exposure
The technique demonstrates how a trusted development service can become an outbound data destination. In another environment, excessive publishing permissions could allow sensitive information to leave through an otherwise legitimate release workflow.
Limits of confirmed impact
The available evidence does not establish widespread downstream compromise or successful theft of other users’ API keys.
Redbot Analysis
Package publishing is a security boundary.
Redbot recommends evaluating publishing permissions separately from dependency installation. A system that needs to download packages does not automatically need permission to publish them.
Assess the complete development workflow.
Security testing should examine what a developer tool or coding agent can read, execute, package, and transmit. Review the permissions available through its environment, connected accounts, and build infrastructure.
Validate controls with observable tests.
Use harmless test data to determine whether an unauthorized workflow can package local information and send it to an external registry. Confirm that controls prevent the action and that monitoring identifies the attempted transfer.
Separate automation evidence from AI attribution.
Rapid account creation and repetitive publishing can demonstrate automation without identifying the system responsible. Incident records should preserve that distinction while still documenting the underlying abuse and its defensive implications.

