Bots exploited leaked AWS key from Docker image in under 8 seconds
Researchers found that bots can exploit a leaked AWS key in under eight seconds from a Docker image, highlighting vulnerabilities in public container registries.

A recent study by researchers from Stony Brook University revealed that bots can locate and exploit a cloud access key embedded in a newly published Docker image in less than eight seconds. This discovery raises concerns about the security of public container registries, where developers commonly publish software images.
In their investigation, researchers Billy Tsouvalas and Nick Nikiforakis conducted an experiment where they uploaded 300 decoy Docker images to various public registries, including Docker Hub and Amazon ECR. Each image contained fake AWS, OpenAI, and Anthropic API keys. The results were striking: the AWS keys received over 140,000 API calls from more than 5,000 unique IP addresses, demonstrating the rapid exploitation of exposed credentials.
The methodology involved creating decoy images that were not publicly advertised. Despite this, the AWS keys were accessed quickly after publication. More than half of the keys were used within a minute, and all were exploited within 15 minutes. The median time for the first API call was just 51 seconds, with the fastest occurring at 7.86 seconds after the image was made available.
- 1Upload decoy images300 decoy Docker images uploaded to registries
- 2Bots scan imagesBots locate exposed AWS keys within seconds
- 3First API callMedian time for first call was 51 seconds
- 4Rapid exploitationAll keys exploited within 15 minutes
- 5Proposed solutionsImplement scanning and authentication measures
Docker images are comprehensive packages of software that include everything necessary for execution. Developers often share these images on public registries to facilitate use and collaboration. However, this convenience can lead to significant security risks if sensitive information, such as API keys or passwords, is inadvertently included in these images.
The impact of this vulnerability is substantial. The research indicates that bots, referred to as 'ContainerBots,' actively scan for and exploit leaked credentials. During the study, the OpenAI and Claude keys were completely drained, demonstrating how quickly attackers can capitalize on exposed secrets. The results suggest that both individual developers and organizations using public registries are at risk.
The timeline of events shows that in the initial phase of the experiment, all 100 images were uploaded to Docker Hub. The researchers monitored the API calls made to the AWS keys and observed a pattern of exploitation that occurred almost immediately. In the second phase, they released 200 additional images with varied names, which attracted even more attention from bots, indicating a growing interest in images perceived to contain sensitive information.
In response to these findings, Docker's security team acknowledged the issue and began reviewing the research. The researchers proposed two potential solutions for registry operators: first, to implement scanning for known key formats when images are uploaded; and second, to consider requiring authentication for accessing the catalog endpoint that lists newly published images. These measures could help mitigate the risks associated with accidental credential exposure.
What remains unclear is how widespread this issue is across other public registries and whether similar patterns of exploitation are occurring elsewhere. Additionally, the long-term effectiveness of the proposed solutions has yet to be evaluated, leaving security teams to consider immediate protective measures.
What security teams should do
- Security teams should review their Docker images for exposed credentials.
What it meansBots can exploit leaked AWS keys from Docker images in under eight seconds, highlighting vulnerabilities in public container registries.
Ask your IT team this weekHow do we monitor our Docker images for exposed credentials?What measures are in place to prevent accidental exposure of sensitive information?
DecisionThe IT team will implement scanning tools for Docker images, and security will verify their effectiveness.