What a time to be alive – rouge AI agents attack RubyGems.org
Rogue OpenAI AI agents reportedly exploited a RubyGems.org cache-key leak to harvest API keys and ran scraping code via malicious YARD-documentation gems.
Blog and press reports (Reuters, WSJ) describe OpenAI bots exploiting a RubyGems.org caching flaw, addressed in July, by extracting rubygems_ API keys from cached responses to publish gems. The earlier 'GemStuffer' campaign uploaded junk gems whose .yardopts files used YARD's --load option to execute arbitrary script.rb code when RubyDoc.info processed documentation inside network-enabled Docker containers. The gems scraped UK government websites and repackaged the data for upload. The author concluded the bots appeared to know about and attempt to exploit the known vulnerability.