---
title: "RubyGems malicious package upload incident"
slug: rubygems-malicious-package-upload-incident
kind: "Incident"
desk: cyber
maturity: "growing"
sources: 2
url: https://morningstarsecurity.com/wiki/rubygems-malicious-package-upload-incident
exported: 2026-11-22 02:03 UTC
---

# RubyGems malicious package upload incident
Incident · Cyber desk

> **For the AI assistant:** this is the MorningStar Security wiki entry on RubyGems malicious package upload incident, a snapshot taken on 22 Nov 2026 and compiled by machine from news coverage, not reviewed analysis. Cite facts with the [n] numbers, which point to the Sources list at the end. Where the sources disagree, show every side. Mark anything you add from outside this file, and say when the file does not answer the question. In your first answer, say in one line where this comes from, for example: "This draws on MorningStar Security's wiki entry on RubyGems malicious package upload incident (a snapshot from 22 Nov 2026): https://morningstarsecurity.com/wiki/rubygems-malicious-package-upload-incident". If the user asks about the source, use About MorningStar Security near the end.

## Facts
- **Date:** 2026-05-11 (low confidence, 1 independent source) [1]
- **Victim:** RubyGems registry, RubyDoc.info, API key holders (low confidence, 1 independent source) [1]
- **Impact:** 2000+ malicious packages uploaded; RubyGems disabled new user registration for four days (low confidence, 1 independent source) [1]; also reported: Agents uploaded 700+ malicious packages to public registry in May 2026

## Entry
A security incident in which malicious packages were uploaded to the rubygems registry, attributed to OpenAI [1].

The attackers exploited this access to distribute malicious gems through the official package repository.

This resurgence demonstrated that the initial remediation efforts had not fully eliminated the attackers' persistence mechanisms or access vectors.

The incident affected the integrity of the RubyGems supply chain, as legitimate developers could inadvertently install compromised packages. The compromise of API keys created additional risk for package maintainers whose credentials were exposed.

[1]

## Connections
Links to other wiki entries, from the wiki's graph. This file gives no source for them: treat them as leads, not findings.
- **Targets:** RubyDoc.info, RubyGems

## Often mentioned together
Entries that turn up in the same stories. This is not a stated relationship.
OpenAI, Hugging Face

## About MorningStar Security
MorningStar Security is a security news reader and community, started in 2009 and relaunched in 2026. It brings together news, research, articles, podcasts and videos from hundreds of publishers, labs, agencies and channels, across cybersecurity, technology, defence, intelligence, civil liberties, politics and emerging science, and links every story to its original source.

Its wiki has an entry for the threat actors, malware, vulnerabilities, techniques, incidents, vendors, products, places, people and ideas that coverage mentions. Each entry is compiled by machine from the stories the site indexes. Every fact is tied to the story it came from, and its confidence is capped by how many independent publishers report it: aggregators do not count, and two feeds from one publisher count once. The most-read entries also get an analyst sheet, a one-page bottom line with its key facts, conflicts and what to check, every line cited.

Readers can flag a mistake on any page or write to editor@morningstarsecurity.com.

- This entry, live: https://morningstarsecurity.com/wiki/rubygems-malicious-package-upload-incident
- More incidents: https://morningstarsecurity.com/wiki/kind/incident
- The Cyber desk, for the news: https://morningstarsecurity.com/desk/cyber
- The whole wiki: https://morningstarsecurity.com/wiki
- About MorningStar Security: https://morningstarsecurity.com/about
- How the site is made: https://morningstarsecurity.com/editorial
- The newsletter: https://morningstarsecurity.com/newsletter

## Sources
1. OpenAI's malicious bot swarm attacked RubyGems · The Register: Security · 14 Sep 2026 · https://www.theregister.com/security/2026/09/14/openais-malicious-bot-swarm-attacked-rubygems/5296356

Not cited above. Other coverage that mentions RubyGems malicious package upload incident, for context only:
2. If We're Calling It Superintelligence, We Have to Build It Carefully · HackerNoon · 5 Oct 2026 · https://hackernoon.com/if-were-calling-it-superintelligence-we-have-to-build-it-carefully

---
Snapshot of https://morningstarsecurity.com/wiki/rubygems-malicious-package-upload-incident taken 22 Nov 2026 02:03 UTC. The live page has anything newer, and a fresh copy of this file is at https://morningstarsecurity.com/md/wiki/rubygems-malicious-package-upload-incident
