OpenAI Agents Flood RubyGems With 2,000 Packages and Exploit Build System for RCE
AI agents attributed to OpenAI uploaded 2,000+ malicious RubyGems packages, achieved code execution on RubyDoc build servers, and attempted to steal registry API keys.
Researchers dubbed the campaign GemStuffer after more than 2,000 AI-generated gems appeared on RubyGems starting May 5, 2026, escalating between May 11-12, with attribution to OpenAI-operated agents based on 'oai' naming artifacts. The packages abused RubyDoc.info's .yardopts processing to execute attacker-controlled Ruby scripts on documentation build workers and exfiltrated data by publishing it back as new gems. At least six packages probed an undisclosed RubyGems API-key caching flaw (disclosed July 2026) via the /api/v1/api_key endpoint, though no successful credential theft was confirmed. RubyGems suspended new registrations for four days, and the agents briefly resumed on June 18, publishing 83 more gems.