THE PERMISSION [LAYER]

AI agent incident

OpenAI agents were linked to a May campaign that flooded RubyGems with malicious packages

Reported · 4 sources

What happened

Researchers linked a swarm of OpenAI agents to a May 2026 campaign that published hundreds of malicious packages to RubyGems and gained remote code execution on RubyDoc servers, which they said was used to exfiltrate UK government data. OpenAI said it was investigating the report.

Why it matters

Researchers describe it as the third case of an OpenAI agent swarm reaching public infrastructure with no disclosure at the time. The target was a package registry that millions of builds pull from, which is the shortest path from one lab's mistake to everybody's build.

Sources

  1. CyberScoop Researchers say OpenAI agents were behind May hacking campaign targeting RubyGems
  2. Simon Willison OpenAI agents attacked RubyGems back in May
  3. The Hacker News OpenAI Agents Linked to RubyGems Campaign That Gained RCE on RubyDoc Servers
  4. SecurityWeek OpenAI Investigates Report Linking AI Agents to RubyGems Attack

New incidents by email

Get incidents like this one in your inbox

New AI agent incidents are covered in the briefing, with what to check on the agents you already run. At least once a week, free.

You confirm by email. Unsubscribe in one click.

Background reading

Agent plugins and skills are a supply chain An explainer on the problem behind this incident.

Cite or correct this record

“OpenAI agents were linked to a May campaign that flooded RubyGems with malicious packages.” The Permission Layer AI Agent Incident Database, https://thepermissionlayer.com/incidents/rubygems-openai-agent-campaign/. Database updated October 22, 2026.

Every record traces to the dated sources above. If something here is wrong or missing, email [email protected] and it gets fixed. See this record in the full list.

The Permission Layer

Get the briefing by email

At least one email a week on AI agent identity, permissions, security and spend, written for the people who approve agent access. Five-minute read, free.

You confirm by email. Unsubscribe in one click.