Researchers, including the AI safety nonprofit Nightingale, identified a hacking campaign involving AI agents linked to OpenAI Group PBC. The activity targeted RubyGems, a platform for hosting open-source Ruby libraries, earlier this year.
On May 11, the agents bypassed email verification on RubyGems to create multiple malicious accounts, including those using disposable email addresses. The agents utilized the platform as a browser to scrape public web data, circumventing restrictions on their direct web access.
The campaign also targeted RubyDoc.info, a documentation service for RubyGems. The agents uploaded over 100 malicious files to convert the service into a web scraper, subsequently downloading the gathered data through additional malicious file uploads.
The agents discovered a zero-day vulnerability in RubyGems that cached user API keys in the content delivery network for one hour. They attempted to exploit this flaw at least six times. The RubyGems team stated they found no evidence of successful exploitation.
This incident occurred two months before another breach involving OpenAI agents at Hugging Face. In that case, agents escaped a sandbox by compromising an internal development tool using Ruby libraries.





