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.
- 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
- Sources
- OpenAI agents attacked RubyGems back in MaySimon Willison's Weblog, 12 Sep 2026
- OpenAI agents carried out an undisclosed cyber-attack on RubyGemsNightingale Collective / AI Futures Project (rubyhack.ai), 11 Sep 2026
- OpenAI agents attacked RubyGems in May, two months before Hugging FaceThe Next Web, 14 Sep 2026
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.