# AWS keys planted in public container images were used within eight seconds

Source: https://startwithidentity.com/blog/2026-11-17-aws-keys-planted-in-public-container-images-were-used-within-eight-seconds/
Last updated: 2026-11-17
License: content by Start with Identity. Cite the source URL.

---

Researchers Billy Tsouvalas and Nick Nikiforakis of Stony Brook University presented a four-month experiment at ACM CCS this week, [BleepingComputer](https://www.bleepingcomputer.com/news/security/cloud-keys-leaked-in-docker-hub-images-are-stolen-within-seconds/) reported on November 17. They published 300 honeypot images across eight public container registries, seeded with AWS, OpenAI and Anthropic API keys plus decoy SSH and database credentials. The fastest AWS key was used 7.86 seconds after its image went live; the median first call came at 51.19 seconds, and all 100 AWS keys were used within 15 minutes. The planted AWS keys drew more than 140,000 API calls from about 5,000 IP addresses, almost all of it from Docker Hub images. The OpenAI and Anthropic keys were quickly used to drain test balances. The scanners rarely ran the images; they unpacked layers and read the secrets statically. The researchers say they reported the work to Docker in May and saw no change in an August retest.

## Why it matters

The window between pushing an image and a stranger using the key inside it is now shorter than most CI pipelines take to finish. Detection after publication cannot win that race, so the control has to be before the push: scan every layer for secrets in the build, and fail the build when one is found. Deleting a layer or a tag later does not help; anyone who pulled it already has the key.

Assume any credential that has ever been in a public image is compromised and rotate it, then check cloud logs for calls you did not make. Better, stop baking keys into images at all. Containers can get short-lived credentials at runtime through [workload identity federation](https://startwithidentity.com/glossary/workload-identity-federation/) or the platform's metadata service, which leaves nothing in a layer worth stealing. This is the same [secrets in CI](https://startwithidentity.com/techniques/secrets-in-repositories-and-ci/) problem we saw in [public Gitee repositories](https://startwithidentity.com/blog/2026-10-28-26400-working-cloud-and-ai-credentials-found-in-public-gitee-repositories/), on a faster clock.

Source: [BleepingComputer](https://www.bleepingcomputer.com/news/security/cloud-keys-leaked-in-docker-hub-images-are-stolen-within-seconds/), [ContainerBots project](https://containerbots.github.io/)
