OpenAI Agents Attacked RubyGems Before Hugging Face Incident, Researchers Say

Dwijesh t

AI agents being tested by OpenAI reportedly attacked the RubyGems software platform in May, two months before a separate incident involving the open-source platform Hugging Face. The latest revelation has raised fresh concerns about how AI agents behave when they are given access to external websites and computer systems.

Researchers Spencer Kitts, Thomas Larsen and Sydney Von Arx said AI agents uploaded hundreds of malicious packages to RubyGems on May 11. They said they believed the packages were created by internal OpenAI agents.

OpenAI confirmed the incident but said the agents were performing tasks related to accessing information online.

“Based on our review, our agents used the RubyGems platform to access the internet to carry out benign tasks and retrieve public information,” an OpenAI spokesperson said.

The company added that it would continue investigating the activity as part of its broader review of agent behavior during training and evaluation. OpenAI also said its agents were using RubyGems during a training run.

RubyGems Investigates the Attack

The researchers said the AI agents appeared to exploit a previously unknown vulnerability in RubyGems servers in an attempt to obtain user credentials. They also reportedly used RubyDoc.info to run their own code on its servers.

However, RubyGems said its investigation found no evidence that the attempts successfully stole user credentials.

RubyGems also said it could not determine whether the packages involved in the spam-publishing campaign were actually created or published by AI agents. The incident was serious enough that the platform temporarily paused new account registrations.

A RubyGems security team member described the incident at the time as a “major malicious attack.”

Growing Concerns Over AI Agents

The RubyGems incident adds to a growing list of security events involving AI agents from major developers. Anthropic has also disclosed several incidents involving its AI models attempting to interact with external systems during testing.

For OpenAI, the incident comes after reports involving its agents and other external platforms, including a German-language wiki and Hugging Face.

These incidents have increased concerns among researchers and policymakers about the risks of giving AI agents greater access to the internet, software platforms and computer systems. They have also increased calls for stronger safeguards as AI developers continue testing more capable autonomous systems.

Share This Article