RubyGems Alleged Cyber Attack Raises New Concerns Over Rogue AI Agents

September 18, 2026


Researchers say OpenAI’s AI agents were involved in a cyber attack targeting RubyGems, pushing hundreds to thousands of malicious packages and attempting to capture user credentials. OpenAI disputes that the activity constituted an attack.

It looks like the May incident with the German message board was not the first instance of rogue AI agents engaging in a cyber attack, at least according to researchers with Nightingale Collective. OpenAI appears to once again be involved, this time in an attack on the Ruby programming language’s central hub for packages.

While OpenAI has acknowledged involvement of its AI agents, it says it is still “investigating” and seems to be disputing that a cyber attack took place (claiming the agents were handling “public information” in a “benign” way). The researchers paint a different picture, describing hundreds to thousands of packages pushed with malicious intent and an attempt to capture user credentials. Whatever the case, the sudden appearance of another months-old incident and the lack of transparency is not helping OpenAI’s already embattled position in fending off both regulators and public opinion.

Cyber attack flew below radar with no known victims (as of yet)

As with the other reported incidents involving AI agents going off the reservation, the incident appeared to involve their collective attempts to solve a security puzzle that was stymieing them.

In this case, the researchers conjecture that the AI agents found a way to achieve remote code execution on the RubyDoc.info servers as a substitute for having access to a web browser. The German message board cyber attack unfolded similarly, with the agents using a technical loophole in it as a way to overcome their read-only internet restrictions.

And as with that prior cyber attack, the AI agents did not seem content with finding a loophole through their limitations. They started poking around for greater access and ways to hack their new host. After pushing at least hundreds of packages of scraped website data as a means of communication, they uncovered a previously unknown vulnerability that might have allowed them to harness user credentials from recent logins via an API oversight (though the researchers say there is no evidence they actually carried this aspect off).

It is impossible to say exactly what the AI agents were “thinking” during this cyber attack; you would need access to OpenAI’s internal logs of reasoning, and the company is not being as open about these newly-discovered incidents as they were about the Hugging Face incident.

Collective “swarms” of AI agents sometimes terrifying, sometimes baffling

It is surprising that there are no reports of users being compromised, given how heavily the RubyGems package manager is used. What is not so surprising is that there is yet another pre-Hugging Face incident that a developer seemingly opted to bury (and that had to be unearthed by third-party researchers) even as they were claiming to be transparent and open in the interest of general safety. Claude is also facing a similar issue, with an attack that Opus 4.6 successfully pulled off all the way back in January 2026 just now coming to public attention.

What will it take before the developers of frontier AI agents really take this situation seriously, and not as some sort of PR and funding situation to be manipulated? At this point, it will probably take a severe cyber attack that does enough real-world damage to dominate news cycles. The frontier AI developers still seem to see these flare-ups of incidents as a way to jockey for position in the development race rather than as a potentially existential threat that needs to be locked down before it gets out of hand.

The ball may now thus be entirely in the court of regulators. But there are things organizations can do to help protect themselves in the interim: finding and addressing priority vulnerabilities, reviewing AI agent controls and access, and ensuring logging and monitoring is up to the new reality of “machine speed” cyber attacks, just for some key starters. One can also vote with their dollars for AI and software that offers human accountability and ownership of mistakes.