Skip to content
News · Security·2026-11-18

Docker Hub credentials get harvested within seconds of publication

Stony Brook researchers published 300 honeypot container images and saw planted AWS keys used within 7.86 seconds; all 100 keys were touched inside 15 minutes.

dockercloud-securitysecretscontainersapi-keys

What happened

Two researchers at Stony Brook University, Billy Tsouvalas and Nick Nikiforakis, wanted to know how fast secrets left inside public container images get picked up. Across four months they published 300 honeypot images to eight public registries and monitored what happened, as BleepingComputer reports.

The images carried AWS, OpenAI and Anthropic API keys, plus decoy SSH and database credentials. Instrumentation alerted the pair whenever an image was built, started, or a shell was opened inside it.

The measurements, presented at the ACM Conference on Computer and Communications Security (CCS): the images were pulled more than 75,000 times, and the planted AWS keys drew over 140,000 API calls from 5,000 distinct IP addresses. The traffic ranged from plain validity checks to resource listings and sometimes actual consumption. The fastest AWS key use came 7.86 seconds after an image went live on Docker Hub. The median wait for a first API call was 51.19 seconds, and every one of the 100 AWS keys had been touched within 15 minutes. The OpenAI and Anthropic keys were hijacked quickly enough to drain the test account balances.

Docker Hub accounted for almost all AWS activity. Harbor, another registry in the study, also showed some abuse. The team labeled the automated scanners “ContainerBots”, while stressing that this is a loose umbrella term: the scans gave no indication of being run by one coordinating operator.

Notably, the honeypot images were almost never actually run. Scanners instead pulled credentials out of the image layers by inspection, “without ever instantiating the container”, the authors explain. Static analysis, not execution, drives the theft.

Who is affected

Any team that bakes credentials into an image and pushes it to a public registry. That includes application developers, CI/CD pipelines, and data or machine learning engineers who ship notebooks and jobs as containers. Because extraction requires no running workload, a build that is only briefly public, or an image nobody ever deploys, is still exposed.

What it means

Leaking secrets this way is a familiar problem in practice, and cleaning it up is laborious: affected keys have to be revoked and every dependent service updated in coordination. Detection often comes late, if at all.

The researchers told BleepingComputer they handed their findings and the full paper to Docker in May. Apart from an acknowledgement, they say no further reply arrived, and a smaller follow-up experiment in August found no new defenses on the platform. They argue that registries should scan uploaded images for secrets before publishing and warn the uploader, and that the public feed of newly published images should be restricted or rate limited so mass scanning becomes harder.

What to do now

  • Keep long-lived keys out of images entirely. Inject secrets at runtime from a secrets manager or use workload identity instead.
  • Treat any credential that has appeared in a public image as compromised and rotate it. Check cloud and AI provider billing plus API logs for calls you did not make.
  • Scan your own images in the pipeline before pushing them, rather than relying on the registry to catch problems.
  • Scope keys narrowly and set spend limits or alerts on cloud and AI accounts so abuse becomes visible quickly.
  • Prefer short-lived tokens over static keys wherever the platform supports it.

If you want to review how your build pipelines and images handle secrets, our security team is happy to take a look.

This post was summarised and put in context with AI assistance from the source named above. The original source is authoritative.

Ready for a real assessment?

Short scoping call, clear proposal, kick-off in two to four weeks.

Start the conversation

Newsletter

Substance over noise

One email every two weeks with a new blog post or a technical deep dive. No clickbait.