AWS keys planted in public container images were used within eight seconds
Stony Brook researchers published 300 honeypot images across eight registries with planted AWS, OpenAI and Anthropic keys. The fastest AWS key was used 7.86 seconds after publication, the median in 51 seconds, and all 100 AWS keys within 15 minutes, mostly from Docker Hub.
Researchers Billy Tsouvalas and Nick Nikiforakis of Stony Brook University presented a four-month experiment at ACM CCS this week, BleepingComputer 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 or the platform's metadata service, which leaves nothing in a layer worth stealing. This is the same secrets in CI problem we saw in public Gitee repositories, on a faster clock.
Source: BleepingComputer, ContainerBots project
Related on Start with Identity
- Blog4,837 hijacked GitHub accounts planted a CI secret stealer that adds cloud federated credentials
Aikido said on November 12 that an attacker used 4,837 compromised GitHub accounts from November 10 to plant a stealer that ran in at least 1,806 repositories,
- BlogLiteLLM traces its poisoned release to an admin key leaked in May and never revoked
LiteLLM's October 23 attack-chain report says an Agent Platform admin key committed to a public repo on May 27 was deleted but never revoked. On October 10 it r
- BlogPoisoned LiteLLM 1.107.0 shipped a credential stealer to PyPI and Docker for under three hours
LiteLLM said on October 21 that attackers published a malicious litellm 1.107.0 to PyPI, Docker Hub and GHCR, built from a lookalike Berri-AI/litellm repository
- CVEtj-actions/changed-files tags repointed to dump CI secrets into logs
An attacker repointed tj-actions/changed-files version tags to a commit that read the GitHub Actions runner's memory and printed its secrets into workflow logs.
- CVETrivy release and GitHub Action tags hijacked to steal CI secrets
With credentials left valid by a non-atomic rotation, an attacker shipped a malicious Trivy v0.69.4 and repointed 76 of 77 trivy-action tags to code that dumped
- CVEOver-scoped CodeBuild GitHub token let an attacker ship code in Amazon Q Developer 1.84.0
An inappropriately scoped GitHub token in the CodeBuild configuration for the Amazon Q Developer VS Code extension let an attacker commit code that shipped auto