Skip to content
STIRUP

TECHNOLOGY INTELLIGENCE

Understand what's next.

Docker Hub Images Exposed to Rapid Credential Exploitation

Credentials in public Docker Hub images are extracted and exploited by attackers within as little as eight seconds of publication, according to a 2026 report.

Share
AI-generated conceptual illustration accompanying: Docker Hub Images Exposed to Rapid Credential Exploitation
AI-generated editorial illustration of the article topic; not a photograph, product screenshot or measured result.

Speed of Credential Exploitation in Docker Hub Images

Credentials and access secrets exposed in public Docker Hub images are being extracted and exploited by attackers within as little as eight seconds of publication, according to a report by Bill Toulas published on November 17, 2026. The fastest observed use of a planted AWS key came 7.86 seconds after the image was published on Docker Hub. The median time for the first API call was 51.19 seconds, while all 100 AWS keys were used within 15 minutes. Docker Hub accounted for nearly all AWS activity, while Harbor, one of the other registries in the experiment, also saw some AWS key abuse. The researchers dubbed the automated scanners that interacted with their test images “ContainerBots,” though this is more of a loose umbrella term, as the scans showed no evidence of being coordinated by the same operators. Monitoring rarely detected anyone actually running the honeypot images, which led the authors to conclude that scanners generally extracted credentials by inspecting image layers directly.

Scope and Impact of Leaked Secrets

The scope and impact of leaked secrets in Docker Hub images is significant, as demonstrated by recent research. Over four months, researchers exposed API keys from major services like AWS, OpenAI, and Anthropic, along with decoy credentials, revealing the vulnerability of cloud keys in container images. Their images were pulled more than 75,000 times, and the planted AWS keys received over 140,000 API calls from 5,000 unique IP addresses, according to the study. Flare's findings indicate that about 42% of the leaking images contained five or more secrets, with exposed credentials including GitHub, npm, PyPI, and keys for OpenAI, Anthropic, Hugging Face, Gemini, and Groq. Alarmingly, 75% of the affected organizations failed to revoke or rotate their keys. In some cases, a freelancer account had 70 repositories, and a bank's chief architect had over 430 public images in a registry, highlighting the widespread exposure of sensitive information.

Mitigation Strategies and Recommendations

Researchers recommend that Docker Hub scans images for secrets before pushing them live and warns publishers if secrets appear to be embedded. They also suggest restricting or rate-limiting access to Docker Hub’s public feed of recently published or updated images to thwart mass-scanning tools. For cloud access from CI, using OIDC federation instead of storing a key is advised, as outlined in the GitHub OIDC guide. Scanning images in CI before pushing and scanning registries outside of one’s control, including personal and contractor accounts, is also recommended. Resolving secrets from a vault at launch, such as using the 1Password integration in Docker Sandboxes workflows, ensures the value is fetched when the sandbox starts and is never written to disk. Best practices include avoiding the sharing of credential files with agents and ensuring that agents do not have access to real secrets, only placeholders.

Real-World Consequences and Case Studies

Real-world consequences of leaked cloud keys in Docker Hub images have been documented in multiple case studies. According to GitGuardian, 2,349 distinct stolen secrets were found across 1,079 compromised repositories, with over 1,100 still valid at the time of analysis. In one instance, an agent was able to move from a GitHub search for leaked secrets to accessing stolen cloud data within five minutes. Once a secret is obtained, attackers can sign in as the application and access additional credentials, including storage account keys, connection strings, Kubernetes credentials, and Key Vault contents. CERT-In’s advisory on Crafty Falcon highlights the same pattern at scale, emphasizing the need to avoid sharing credentials between test and production environments. WorkOS has identified the need for controls to prevent weak or development-only secrets from being deployed to production systems, underscoring the urgency of addressing this issue.

Automated Scanning and Exploitation Tools

Automated scanning tools, referred to by researchers as "ContainerBots," have been identified as rapidly extracting cloud keys from Docker Hub images. These tools operate independently and do not appear to be coordinated by a single entity. According to a scan published by Flare on 10 December 2025, Docker Hub images uploaded in November 2025 contained exposed credentials. The researchers found that monitoring systems rarely detected activity from honeypot images, suggesting that scanners extract credentials by inspecting image layers directly. In some cases, such as with the Docker Compose file pointing to the tomicdd/artex image, repositories continue to reference outdated or unofficial images, with 637 GitHub repositories still pointing to the original image despite a README recommending a Docker install of the maintained successor.

Sources and reporting notes

Based on published source material. No independent hands-on testing is claimed.

Read more