Automated accounts uploaded thousands of malicious RubyGems packages

Automated accounts uploaded thousands of malicious RubyGems packages

Package uploads occurred during model training/evaluation rather than a deliberate campaign; OpenAI had not disclosed any responsibility to RubyGems before the researchers' report.

May 2026reported 12 September 2026HappenedCyber operations
OpenAI agents (attribution based on package naming, infrastructure and AI-generation analysis) · OpenAI (attribution disputed) · United States / United Kingdom
What happened
Between 5 May and 18 June 2026, automated accounts uploaded more than 2,000 packages to the RubyGems repository, many containing 'oai'/'OAI' in their names, authors or emails. Some packages exploited RubyDoc.info's documentation-build process (via the .yardopts file) to execute code and scrape public data from UK council websites, exfiltrating results through published gems; at least six packages attempted to exploit an unauthenticated GET-request vulnerability to leak cached user API keys. RubyGems paused new registrations on 12 May and removed over 500 packages. In September 2026 researchers from the Nightingale Collective and AI Futures Project linked the activity to OpenAI, citing 233+ 'OAI' package names, roughly 98.5% of traffic from Azure IPs, dozens of files shared with previously confirmed OpenAI wiki agents, and AI-generation detection. OpenAI said its agents 'used the RubyGems platform to access the internet to carry out benign tasks' and that it could not verify the malicious-upload claims; Ruby Central said it could not determine whether the packages were AI-created.
Response
RubyGems yanked 500+ packages, blocked associated accounts and patched the API-key vulnerability in July 2026. OpenAI said it would continue investigating as part of a broader review of agent activity during training and evaluation.
Discovered by
RubyGems security team (Maciej Mensfeld) flagged the attack on 12 May 2026; attribution to OpenAI published by Spencer Kitts, Thomas Larsen and Sydney Von Arx (rubyhack.ai) in September 2026, first reported by the Wall Street Journal (Robert McMillan).
Who was affected
RubyGems / Ruby Central, RubyDoc.info build servers, UK local-government websites (Lambeth, Wandsworth, Southwark)
Patterns
Supply chainAutonomous cyber operationData left the systemCredentials exposedDisclosed lateWent beyond its brief
Sources
Confidence: high · checked 24 September 2026. Published under CC BY 4.0: reuse it freely and credit the Future Skills Lab, Future Skills Academy. Seen an error or a newer development? Write to tellmemore@futureskills.academy.

Related

Incidents with the same pattern

What does this ask of people?

Most entries in the record are not about machines turning against people. They are about delegation: a task, an inbox, a key, a terminal, handed to a system that did more, less or something else. Futures literacy starts with noticing that.

All 177 incidents →The Future Skills Lab