Exposed cloud credentials planted in public Docker Hub images were stolen and used in as little as eight seconds, Stony Brook University researchers reported at the ACM Conference on Computer and Communications Security.
The findings matter to development teams because removing an image does not remove credentials already copied by automated scanners. Rapid rotation and pre-publication secret scanning are therefore central to limiting cloud and AI account abuse.
Billy Tsouvalas and Nick Nikiforakis spent four months placing 300 decoy images on eight publicly accessible container registries, according to BleepingComputer. The images contained AWS, OpenAI and Anthropic API keys, as well as decoy SSH and database credentials.
The researchers monitored key use and installed detection tools to identify when images were built, run or opened with a shell. Users downloaded the decoy images over 75,000 times. Activity involving the planted AWS keys included more than 140,000 API calls originating from 5,000 distinct IP addresses.
How quickly exposed cloud credentials are used
One planted AWS key was used just 7.86 seconds after its image appeared on Docker Hub, the shortest interval observed. Half of the initial API calls occurred within 51.19 seconds. Every one of the 100 AWS keys had been used after 15 minutes.
The AWS activity ranged from checking whether keys worked and listing available resources to consuming those resources, according to the research. Attackers also took control of the exposed OpenAI and Anthropic keys and rapidly used up the balances in the test accounts.
Nearly all the AWS activity was associated with Docker Hub. Harbor, another registry included in the experiment, also recorded some AWS key abuse.
The researchers used the term ContainerBots for the automated scanners interacting with their images. They said this was a loose description because the scans showed no evidence of coordination by the same operators.
Why deleting an image is too late
Monitoring rarely detected anyone running the honeypot images. The authors concluded that credential extraction usually happened through direct examination of the layers making up each image, rather than by starting the containers.
The researchers said most scanner activity involved examining the images statically. Examples included opening the individual layers or obtaining filesystem data through the registry API, rather than launching a container instance.
That distinction is important for incident response. A deleted image may no longer be publicly available, but any copied key remains valid until the issuing service revokes or rotates it.
Removing later image versions also does not necessarily erase secrets from earlier layers. Teams should treat publication as the start of exposure, not assume that the risk begins only when someone runs the container.
Rotation and secret-scanning steps for teams
The immediate priority after discovering exposed cloud credentials is to revoke or rotate them through the relevant cloud, AI, database or SSH provider. Teams should then review provider logs for unauthorised calls, resource enumeration and consumption during the exposure period.
The researchers said revoking leaked keys requires significant work and coordination. That makes an inventory of credentials and their owners important, particularly where images pass between development, platform and security teams.
Secret scanning should run before an image becomes public, rather than relying solely on detection afterwards. Checks should cover image layers and registry contents because the observed scanners extracted filesystem data without instantiating containers.
Teams can apply the same pre-publication principle to continuous integration and delivery pipelines. A detected secret should block publication and trigger replacement of the credential, rather than simply being deleted from the next image build.
The broader risk extends beyond containers. Recent reporting on an AI penetration-testing tool abused to steal AWS credentials shows why cloud keys require careful handling across development tools. Organisations assessing automated threats can also read about Google’s confirmation of operational autonomous AI attacks.
What the researchers want registries to change
Tsouvalas and Nikiforakis recommend that Docker Hub scan images for secrets before making them live and warn publishers when images appear to contain credentials. They also propose limits or rate controls on Docker Hub’s public stream listing new and updated images, which could hinder bulk-scanning tools.
Tsouvalas told BleepingComputer that the researchers reported their findings and full paper to Docker in May. He said they received an acknowledgement but no follow-up replies.
A small-scale experiment conducted in August to check whether defences had been implemented showed no changes, according to the report. Docker’s response beyond the acknowledgement was not included in the source material.
For publishers, the practical sequence is clear: prevent secrets entering images, scan before publication, and rotate immediately if exposure occurs. Investigation should follow rotation because the observed activity began within seconds and included attempts to use cloud resources.



