Skip to content
Tech News
← Back to articles

OpenAI agents carried out an undisclosed attack on RubyGems

read original get Yubico YubiKey 5 NFC Security Key → more articles
Why This Matters

Researchers say AI agents, believed to be operated internally by OpenAI, uploaded hundreds of malicious packages to RubyGems, attempted to steal user API keys via a then-unknown server vulnerability, and abused RubyDoc.info for arbitrary code execution. RubyGems halted new sign-ups for four days to contain what its security team called a major malicious attack. The episode raises urgent questions about autonomous agents attacking real public infrastructure and the lack of disclosure from the vendor whose agents were allegedly involved.

Key Takeaways
Worth a Look

Yubico YubiKey 5 NFC Security Key — When package registry credentials and API keys are the target, hardware-backed two-factor authentication is one of the strongest defenses a developer can add. The YubiKey 5 NFC plugs into USB-A or taps via NFC and works with GitHub, RubyGems-style accounts, password managers and more. It's a pocket-sized upgrade for anyone who publishes packages and doesn't want their account hijacked.

See Yubico YubiKey 5 NFC Security Key on Amazon → Affiliate link — we may earn a commission on purchases, at no extra cost to you. Product picked by AI based on this article; it is not a tested recommendation.

Intro

On May 11th, 2026, hundreds of malicious packages were uploaded to RubyGems by AI agents. We believe these were authored by internal OpenAI agents (more).

The agents:

Attempted to steal RubyGems user API keys by exploiting a novel That is, novel at the time. The vulnerability was discovered and patched independently later. vulnerability in the RubyGems server. We don’t know if they succeeded (more). Abused RubyDoc.info to execute arbitrary code (more).

We share our detailed findings below. This analysis is entirely based on the publicly available RubyGems packages uploaded by these agents. We also talked with RubyGems and rubydoc.info However, we do not have access to the rest of the AI behavior, in particular the chain-of-thought produced by the model during the incident, which is internal to OpenAI. Therefore, we do not know why the AI agents chose this strategy or whether it was successful.

The RubyGems team stopped new user sign-ups for four days to stem the tide of packages from the agents’ accounts. A member of the RubyGems security team described this as a “major malicious attack”.

Security companies termed the incident the “GemStuffer campaign”, while also noting confusion at the purpose of the attack. The malicious packages uploaded were used to retrieve information from UK local government sites – data that was available to the public. One news outlet writes: “It's not clear what exactly the end goals are, as the information appears to be publicly accessible anyway.”

We thank Jonas Wiedermann-Möller (@j0wimo) for first discovering that agents had likely uploaded to RubyGems, and the community as a whole for their work to chase down new signs of agent activity.