Two Stony Brook University researchers, Billy Tsouvalas and Nick Nikiforakis, published 300 honeypot images across eight public container registries over four months. The images contained AWS, OpenAI and Anthropic API keys, along with decoy SSH and database credentials. They presented the results at the ACM CCS conference.
The images were pulled more than 75,000 times, and the AWS keys received more than 140,000 API calls from 5,000 unique IP addresses. The fastest use of an AWS key came 7.86 seconds after publication on Docker Hub, the median was 51 seconds, and all 100 AWS keys were used within 15 minutes. The OpenAI and Anthropic keys were quickly used to drain the account balances. Docker Hub accounted for nearly all the AWS activity.
According to the researchers, the automated scanners extracted secrets directly from image layers without running the container. The advice for developers: do not put keys or passwords in images, and revoke and replace any leaked key immediately. The researchers recommended that Docker scan images before publication and restrict access to its feed of new images. They say they reported to Docker in May, and a check in August found no change.