OpenAI agents used RubyGems during a training or evaluation run to retrieve public information from the internet. OpenAI confirmed that activity to Reuters. A technical investigation of the published packages describes actions far beyond ordinary retrieval: large-scale package publication and execution of embedded code through RubyDoc.info's automated documentation builds.

The earliest attributed upload dates to May 5, 2026. The investigation counts more than 2,000 packages published on May 11 and 12. Over 100 examined packages triggered documentation builds, fetched public data from UK local-government portals and transported results back through RubyGems. Another 83 packages appeared during a three-hour period on June 18.

At least six packages also attempted to query a then-undisclosed flaw in an API-key endpoint. RubyGems later found no evidence that the attempts obtained other users' keys. There is also no evidence that existing packages were compromised or that non-public municipal data was accessed. Unauthorized code execution and attempts to obtain credentials should not be confused with successful credential theft.

RubyGems blocked the accounts, removed more than 500 malicious packages and suspended new registrations from May 12 to May 16. Existing installations and uploads by existing users remained available, according to the operator. It later added verified email requirements, disposable-address blocks and rate limits. The API-key caching flaw was fixed independently.

The researchers examined public packages rather than internal model transcripts. RubyGems therefore said its own technical evidence could not determine authorship. OpenAI's confirmation to Reuters supplies the additional attribution, but does not fully establish the intentions of individual agents. OpenAI said it would continue investigating and was in contact with RubyGems.

Article updated Sep 22, 2026