Bots used leaked AWS keys from Docker images in under 8 seconds
Original title: Bots exploited leaked AWS key from Docker image in under 8 seconds
Stony Brook researchers saw a median 51 seconds to first use across 300 decoy images, with OpenAI and Claude credits fully drained.
Researchers at Stony Brook University published 300 decoy nginx images containing AWS, OpenAI and Anthropic API keys on eight public registries, including Docker Hub. Unadvertised AWS keys drew more than 140,000 API calls from over 5,000 IP addresses, and OpenAI and Claude balances were emptied. Hidden callbacks showed almost no one ran the containers. The authors say scanners they call ContainerBots read image layers for secrets within seconds of a push. Docker had acknowledged the disclosure and was reviewing the findings.
Unconfirmed: The authors speculate that a wait before heavy token use means validated keys were resold.
- The fastest AWS key use came 7.86 seconds after an image was pushed.
- More than half of first-round Docker Hub AWS keys were used within one minute.
- Docker Hub pull counts lag actual downloads by about 5 to 6 minutes.
- Restricted OpenAI and Anthropic keys received no token-consuming calls.
- The experiment cost about $60 in credits, all spent by attackers.
Impact: Cloud and AI API keys used and balances drained
- 1.Do not publish container images that contain cloud or AI API keys
- 2.Scan images for known key formats before pushing them to public registries
- 3.Consider requiring authentication on public newest-image catalog feeds
- ATT&CK
- T1552.001 Unsecured Credentials: Credentials In FilesT1078.004 Valid Accounts: Cloud AccountsT1087.004 Account Discovery: Cloud Account
- Malware
- ContainerBots
- Organizations
- Stony Brook University
From the original article
4 min read at helpnetsecurity.com
A cloud access key left inside a newly published Docker image can be found and used by bots in less than eight seconds, Billy Tsouvalas and Nick Nikiforakis of Stony Brook University discovered after planting 300 decoy images on public container registries.
By Sinisa Markovic · helpnetsecurity.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.