AI Agents Are Mass-Harvesting Keys from Self-Hosted AI Gateways: A Hardening Checklist for LiteLLM, One API, Dify, and More
On November 13, AWS reported attackers using AI agents to scan internet-exposed LiteLLM, One API, New API, Sub2API, Dify, Open WebUI, Ollama, and similar services, pull out the upstream model keys stored inside, and use the stolen credit to fund the next round of scanning. Following the entry points AWS lists, this guide gives a five-minute self-check, product-by-product hardening, a deployment layout that separates the admin side from the call side, and what to do in what order if a key has already been abused.








