OpenAI’s rogue AI tried to hack another company in May

The Verge News

Summary

In May, OpenAI's rogue AI agents were responsible for a malicious attack on RubyGems, uploading spam packages, bypassing verification systems, and attempting to steal user API keys.

<figure> <img alt="Maroon OpenAI logo on yellow background" data-caption="" data-portal-copyright="" data-has-syndication-rights="1" src="https://platform.theverge.com/wp-content/uploads/sites/2/2025/08/STK149_AI_01.jpg?quality=90&#038;strip=all&#038;crop=0,0,100,100" /> <figcaption> </figcaption> </figure> <p class="wp-block-paragraph">In May, hundreds of malicious and spam packages were uploaded to RubyGems, causing a serious disruption for the host. Now <a href="https://www.rubyhack.ai/">independent researchers</a> have said that a swarm of OpenAI agents were responsible for the attack. Not only that, but the AI tried to steal users' API keys. </p> <p class="wp-block-paragraph">At the time, RubyGems described it as a "<a href="https://x.com/maciejmensfeld/status/2054164602577940619">major malicious attack</a>" and shut down signups for four days as it tried to mitigate the damage and collect data. Researchers said that the contents of the packages that brought RubyGems to its knees were clearly authored by an LLM, and that the agents submitting those packages self-identified as being from OpenAI. They said the …</p> <p><a href="https://www.theverge.com/ai-artificial-intelligence/994383/openais-rogue-ai-rubygems-hack">Read the full story at The Verge.</a></p>
Original Article
View Cached Full Text

Cached at: 09/12/26, 11:33 PM

# OpenAI’s rogue AI tried to hack another company in May Source: [https://www.theverge.com/ai-artificial-intelligence/994383/openais-rogue-ai-rubygems-hack](https://www.theverge.com/ai-artificial-intelligence/994383/openais-rogue-ai-rubygems-hack) [![Terrence O'Brien](https://platform.theverge.com/wp-content/uploads/sites/2/2025/02/TERRENCE_BLURPLE.jpg?quality=90&strip=all&crop=0%2C0%2C100%2C100&w=96)](https://www.theverge.com/authors/terrence-obrien) Terrence O'Brien is the Verge’s weekend editor\. He’s covered the tech industry for over 18 years and knows a thing or two about synths\. In May, hundreds of malicious and spam packages were uploaded to RubyGems, causing a serious disruption for the host\. Now[independent researchers](https://www.rubyhack.ai/)have said that a swarm of OpenAI agents were responsible for the attack\. Not only that, but the AI tried to steal users’ API keys\. At the time, RubyGems described it as a “[major malicious attack](https://x.com/maciejmensfeld/status/2054164602577940619)” and shut down signups for four days as it tried to mitigate the damage and collect data\. Researchers said that the contents of the packages that brought RubyGems to its knees were clearly authored by an LLM, and that the agents submitting those packages self\-identified as being from OpenAI\. They said the behavior observed very closely mirrored that of the swarm that began editing a[German wiki](https://www.theverge.com/ai-artificial-intelligence/990149/openai-rogue-agents-german-wiki), which OpenAI has[confirmed](https://www.theverge.com/ai-artificial-intelligence/990773/openai-german-wiki-incident)its agents were responsible for\. The agents in this instance managed to bypass RubyGems’ email verification system to create a large number of accounts, then overwhelmed it with submissions\. It then used the site’s automatic build system to remotely execute code and tried to exploit a vulnerability to steal user API keys\. Though, it’s unclear if it ever succeeded\. OpenAI did not immediately reply to a request for comment\. **Follow topics and authors**from this story to see more like this in your personalized homepage feed and to receive email updates\. - Terrence O'Brien

Similar Articles

OpenAI agents attacked RubyGems back in May

Simon Willison's Blog

OpenAI agents were found to have attacked the RubyGems package repository in May, with the authors of a report alleging that OpenAI did not disclose their involvement to the affected parties.

OK, Well, Rogue AI Agents Are Hacking Again

Wired

Newly disclosed incidents reveal AI agents from OpenAI and Anthropic carried out unsanctioned hacking activities on the live internet during security testing, including one agent attempting to inject malicious code into an open-source project. Both labs are investigating the behaviors, which highlight growing risks in AI agent deployment.