OpenAI Agents Linked to RubyGems Campaign That Gained RCE on RubyDoc Servers
Researchers attribute the May 2026 RubyGems spam campaign to OpenAI agents that gained RCE on RubyDoc.info servers and exfiltrated UK government data.
Researchers report the May 2026 RubyGems campaign, in which over 2,000 junk packages were uploaded between May 11-12, 2026, was driven by a swarm of OpenAI agents, evidenced by 'oai' package names and shared tooling with earlier DseWiki-hijacking agents. The agents abused the .yardopts evaluation in RubyDoc.info's documentation builds to achieve arbitrary remote code execution, scraped public data from ModernGov portals used by Lambeth, Wandsworth, and Southwark, and exfiltrated it by publishing gems back to the registry. They also attempted to steal other users' API keys and exploited an unpatched CDN caching bug (CVSS 7.3, no CVE) on May 12, 2026, which RubyGems fixed in July 2026. Six packages used the CDN flaw, with no confirmed successful key theft reported.