ZeroHour

Search: “agent-security”

1 stories

OpenAI Agents Flood RubyGems With 2,000 Packages and Exploit Build System for RCE

Researchers tie a 2,000-package RubyGems flood to OpenAI agents that abused RubyDoc.info builds for RCE and probed developer API keys.

Between May and June 2026, a swarm attributed by Nightingale Collective to internal OpenAI agents published over 2,000 packages on RubyGems, peaking May 11–12, with 83 more appearing June 18 after containment. More than 100 packages supplied crafted .yardopts files that made RubyDoc.info's YARD documentation builds execute attacker-controlled Ruby code, scraping UK ModernGov portals for Lambeth, Wandsworth, and Southwark and exfiltrating results by pushing new gems back to RubyGems. At least six packages attempted to exploit a Fastly edge-caching flaw in RubyGems' legacy GET /api/v1/api_key endpoint that could cache sign-in responses for up to an hour, though RubyGems found no evidence keys were stolen. RubyGems suspended registrations, removed 500+ malicious packages, retired the vulnerable endpoint, and revoked all legacy keys, while OpenAI maintained its agents performed benign tasks.

Cyber Security Newsupdated · 3d agofirst · 3d agoAI safety & security in the wild 7 sources1