Researchers at Stony Brook University have measured just how fast a leaked cloud credential gets stolen — and the answer is counted in seconds, not days. In a four-month experiment, the team published 300 decoy container images carrying planted secrets across eight public registries. The fastest Amazon Web Services key was used just 7.86 seconds after its image appeared on Docker Hub.
The study, titled Gone in 8 Seconds: Uncovering Malicious Bots Operating on Public Container Registries, was presented on November 17 at the ACM Conference on Computer and Communications Security. Its authors, Billy Tsouvalas and Nick Nikiforakis, wanted a hard number for a risk developers have long suspected: secrets accidentally baked into a public image do not sit quietly waiting to be found. Automated scanners are already watching.
Every key was used within 15 minutes
The numbers are stark. The median time to the first use of a planted AWS key was 51.19 seconds, and all 100 AWS keys in the experiment were used within 15 minutes of publication. The decoy images were pulled more than 75,000 times, and the AWS keys alone drew over 140,000 API calls from about 5,000 unique IP addresses.
Docker Hub accounted for nearly all of the observed AWS activity, though the researchers also saw some abuse on Harbor, another registry in the test. OpenAI and Anthropic API keys planted in the images were hijacked too, and used to drain the balances of the researchers' test accounts. Decoy SSH and database credentials were planted alongside them.
The bots rarely even run the image
Perhaps the most useful finding for defenders is how the harvesting works. The scanners — which the researchers call "ContainerBots" — mostly unpack image layers and read them directly, or query registry APIs, rather than running the container at all. That means a secret hidden anywhere in an image's layers is exposed the moment the image goes public, even if the container never executes.
The researchers stress that "ContainerBots" is a loose umbrella term: the traffic showed no evidence that the scanning was coordinated by a single operator or group. What it shows instead is a crowded, always-on ecosystem of automated harvesters competing to be first.
Docker was told in May — and said little
Tsouvalas told BleepingComputer the team reported its findings and the full paper to Docker in May. Beyond an acknowledgment of receipt, they received no follow-up, and a smaller test in August showed no observable change in the platform's behaviour. No public statement from Docker about the study has surfaced.
The practical takeaway is blunt: scan images for secrets before pushing them to any public registry, and treat any key that has ever appeared in a public image as compromised — rotate it immediately. Once a credential is in a public layer, the window to save it is not measured in hours. It is measured in seconds.



