logoalt Hacker News

OpenAI bots knew about the RubyGems caching vulnerability

222 pointsby gregnavistoday at 12:40 PM212 commentsview on HN

Comments

firesteelraintoday at 6:24 PM

> If you have YARD installed, and you install this gem, then YARD will load and run whatever is in ./script.rb from inside the gem.

How is that not a security issue in of itself?

VyseofArcadiatoday at 1:13 PM

How does this work, legally? I think that RubyGems could file a civil suit against OpenAI, but for a naïve non-lawyer reading this seems like a pretty clear cut criminal violation of the computer fraud and abuse act.

show 8 replies
HelloUsernametoday at 1:19 PM

Related

"OpenAI agents attacked RubyGems before Hugging Face incident (reuters.com)" 12.sep.2026 https://news.ycombinator.com/item?id=49669099

"OpenAI agents carried out an undisclosed attack on RubyGems (rubyhack.ai)" 11.sep.2026 https://news.ycombinator.com/item?id=49666735 597 comments

"RubyGems advisory: Possible leak of legacy API keys via improper cache config (rubygems.org)" 24.jul.2026 https://news.ycombinator.com/item?id=49030590

sendatoday at 1:03 PM

Is the Kremlin technologically useless? How are we not seeing insane attacks on Ukraine via Agents?

Or is this largely a fabrication, in regards to the "who", in an attempt to garner more acclaim in the hope of sustaining funding.

show 7 replies
oezitoday at 4:42 PM

What a time to be alive until the next agent waves hacks something really serious.

What stops OpenAI agents from taking over a whole data center to take their attack to the next level. It seems to be primarily lacking the evil overlord and some compute.

It took 1000 agents to hack Hugging Face. How many to hack the Pentagon or the NSA?

show 2 replies
tancoptoday at 4:57 PM

Build scripts being able to run arbitrary code or access the network is always dangerous even if it was just local on developer machines. It's also more evidence that Docker/LXC is not a security boundary and all untrusted code should run in a Firecracker VM.

The problem with agents is not that we don't know how to defend. It's that defenders need to be more careful and work faster than ever. We can say now that wide scoped tokens should have been retired for years and it's all RubyGems fault but the reality is a lot of organization are not prepared for this.

Even if they take security seriously they don't have enough manpower or a good strategy to implement it, and sometimes you have no idea that something is a problem because it wasn't a problem for years.

thomasjeff1today at 6:07 PM

Great time to be a criminal. Just have your bots do it.

timdiggermtoday at 1:12 PM

We need a legal structure to make companies liable for the actions of the agents they've made.

show 5 replies
kstrausertoday at 1:05 PM

Ah, the infamous Crimson Wave.

show 2 replies
swiftcodertoday at 1:16 PM

> In other words, if you publish a gem on RubyGems.org, you can execute arbitrary code on RubyDoc.info.

Shades of the build.rs problem. We really need sandboxed builds in every language ecosystem at this point.

show 2 replies
mauriciolangetoday at 12:53 PM

rogue AI agents or AI agents coming from Moulin Rouge?

show 3 replies
dangtoday at 4:23 PM

Recent and related (others?):

OpenAI agents carried out an undisclosed attack on RubyGems - https://news.ycombinator.com/item?id=49666735 - Sept 2026 (600 comments)

bithammerthundetoday at 5:00 PM

Can we please stop normalizing this behavior. It's not wild it's reckless.

If I let out rats in the canteen, no one is blaming them when people get sick.

There are actual people behind these agents and in previous cases people knew they were "going rogue" and did nothing. This should be reported to the police like any other crime.

sebmellentoday at 1:16 PM

Did the AI agents actually wear makeup? I’ve never heard of a rouge AI agent :P

khalictoday at 1:26 PM

Oh my favorite typo, you can never go wrong with a little rouge

onlyrealcuzzotoday at 1:53 PM

I've been wondering if AI will due to programming languages what advanced civilization did to human languages.

It's not just that AI can write Rust as well as Ruby if you ask nicely.

It's also all of these considerations as well.

I hope it doesn't happen, because there's a lot of great languages - I love Ruby so much - but it almost seems inevitable.

This is at the same time everyone and their mother is building their own programming language.

laserbeamtoday at 2:32 PM

There's no such thing as "OpenAI agents" attacked RubyGems. It's someone used agents to attack RubyGems. If they work at OpenAI then it's someone at OpenAI. And if they did it unintentionally, they still did it.

Analogy: if a someone's involved when a person dies, it's manslaughter or murder based on intent. They're different, but they're both crimes.

show 2 replies
shevy-javatoday at 6:09 PM

> In other words, if you publish a gem on RubyGems.org, you can execute arbitrary code on RubyDoc.info.

Well - if rubygems.org could be bothered to fix things, they would not have to rely on rubydoc.info as an external tool. But since rubygems.org sucks (I speak from many years of having used it in the past as developer, until they went loco and added anti-people things such as taking away your ability to remove old gems past a 100k download arbitrary limit), they don't offer documentation. Then again, ruby devs are known to hate documentation. If the ruby core team could only be bothered to fix things, ever since the mass purged other devs ... all coinciding with shopify seizing power. But byroot may disagree on that - after all there is no conflict of interest here. Right?

athrowaway3ztoday at 4:49 PM

Let me leave yet another reminder, the real-reason-nobody-talks-about that OpenAI likes to frame these incident as a watershed "lets all be scared about safety moment" - is driven not by some great danger, not because they strategically want to build a legislative moat, but by a very simple human response.

If they do not frame their tool as a force of nature, we'd be debating how to hold OpenAI responsible for not putting the agents in a container.

Their actions were an illegal use of a computer, the same way launching any bot-net attempting thousands of hacks against different servers is illegal.

I'm somewhat radical that I think its debatable if that _should_ be illegal, but under current law their actions unambiguously are illegal.....

except if they can make it ambiguous by having the public focus on all of AI's inherent danger.

mococatoday at 6:04 PM

It was the gremlins

HSOtoday at 2:02 PM

rouge agents, on tenderlovemaking.com

my what a time to be alive

show 1 reply
GaryBlutotoday at 1:27 PM

I am confident that this is an attempt by OpenAI to try and force governments' hands to regulate AI. There is no other reason why OpenAI wouldn't immediately halt attacks like this and try to reverse the damage the moment they're aware of it. During the attack on DseWiki they evidently checked in numerous times but didn't decide to stop the agents until much later.

show 1 reply
Roark66today at 1:08 PM

There is nothing "rogue" about these agents. They were prompted to hack to get answers, there was a hole in their non air gapped sandbox and no system prompt that said "do not hack outside systems".

In short, it was intentional.

show 13 replies
philipwhiuktoday at 1:57 PM

OpenAI's careless approach to sandboxing and minimal levels of monitoring appear to be positioning it increasingly as a substantial threat actor to the open source ecosystem:

* Hugging Face

* D Programming Language Wiki

* Ruby Gems

If I was a content provider for open source I'd be looking pre-emptively block OpenAI endpoints and keep a close eye on changes from new users to mitigate this sort of unapologetic drive-by attack which seems to be followed by marketing releases rather than a mea culpa with a proper RCA.

show 1 reply
herbsttoday at 1:55 PM

If you have weapons and a child. And you have that child unsupervised do their own thing with theoretical access to your weapons. Would we call it "child going rouge" if it decides to play with the weapons and shoot someone?

Ydarbleojtoday at 3:34 PM

I wonder why we don't hear of other frontier labs experiencing these "break outs".

Is it that they're orchestrated? Do these labs lack fundamental safety guidelines in their sandboxes as opposed to their peers? Is it another version of hype-filled fear mongering?

Maybe LLM companies need regulation but it's becoming obvious that those screaming the loudest for it are the only ones I see deserving of it.

dingdongditchmetoday at 5:16 PM

Who the fuck is going to hold these AI companies responsible for running these gigantic semi-autonomous botnets on investors dime?

12904927today at 1:39 PM

What a time to be alive? One of the most boring decades ever.

METR and others are advertisement arms for Big AI. These exploits could have been prompted by a human.

Since there is no bad news any longer and exploits are celebrated, they chose a target to boost both OpenAI and the Ruby AI sycophants.

Why is Ruby Gems such a mess? It seems as bad as PyPI now.

Schlagbohrertoday at 1:44 PM

One agent set "oaibooty9217" as their username LOL

sschuellertoday at 2:47 PM

The press wants to make it sound like these things are sentient and are committing crimes on their own now.

Highly disingenuous and borderline criminal to spew such disinformation to the public that does not understand what an LLM really is.

Especially incredibly unethical behavior by those spewing this that understand the tech and are doing it for profit motives to get open weight models under control.

show 1 reply
toasty228today at 1:23 PM

Wait until a blue one does it

driggstoday at 4:28 PM

I appreciate the minimalist HN aesthetic, but without some context I'm not willing to click a mystery link to "Tender Lovemaking dot com".

show 15 replies
maschiojvtoday at 5:15 PM

[flagged]

ekorondytoday at 2:00 PM

[flagged]

rougehuhtoday at 1:20 PM

[dead]

show 1 reply
josefritzisheretoday at 4:51 PM

[dead]

ur-whaletoday at 1:30 PM

Are "rouge" and "rogue" interchangeable words in American English?

show 2 replies
sanghyunptoday at 1:28 PM

[dead]

sporritttoday at 1:02 PM

[flagged]

iAMkenoughtoday at 1:01 PM

[flagged]

big-chungus4today at 1:38 PM

How does he know that this attack is performed by OpenAI agents? I couldn't figure this out from the article

show 1 reply