RC RANDOM CHAOS

Planted AWS key used 7.86 seconds after publication

Researchers planted AWS keys in public Docker Hub images; the fastest was used 7.86 seconds after publication, and all 100 keys within 15 minutes.

· 3 min read
Planted AWS key used 7.86 seconds after publication

The fastest observed use of a planted AWS key happened 7.86 seconds after the image carrying it went live on Docker Hub. The median was 51.19 seconds, and all 100 of the researchers’ AWS keys had been used within 15 minutes of publication.

Those numbers come from Billy Tsouvalas and Nick Nikiforakis of Stony Brook University, who presented the work at the ACM Conference on Computer and Communications Security (CCS). Over four months they published 300 honeypot images across eight public container registries, seeding them with AWS, OpenAI, and Anthropic API keys plus decoy SSH and database credentials. They wired up detection so they would know when an image was built, run, or had a shell opened, and then watched what happened to the keys.

The images were pulled more than 75,000 times. The planted AWS keys drew over 140,000 API calls from 5,000 unique IP addresses. The traffic ran the range you would expect from someone working through found credentials: checking whether the key worked, listing available resources, and sometimes going on to consume them. The OpenAI and Anthropic keys were hijacked to drain the test accounts’ balances.

The detail worth sitting with is how the keys were found. The monitoring rarely caught anyone actually running the honeypot images, which led the researchers to conclude that scanners were pulling credentials straight out of the image layers. In their words, the scanners “overwhelmingly do so through static analysis, e.g., unpacking image layers or querying the registry API to extract filesystem contents, without ever instantiating the container.” Nobody needs to run your container to read what you baked into it. The registry API hands over the filesystem contents, and that is enough.

The researchers call the automated scanners that touched their images “ContainerBots,” but they keep the term loose. The scans showed no evidence of being coordinated by the same operators.

Docker Hub accounted for nearly all of the AWS activity. Harbor, one of the other registries, saw some AWS key abuse as well, but the volume lived on Docker Hub. If you publish there, assume a secret baked into a public image will be found and used fast.

What follows from this is mostly about timing. Credential rotation as an incident response assumes you have time to notice and revoke. Here the fastest planted key was in use within eight seconds of publication, and the researchers note that revoking a leaked key requires significant work and coordination. Pre-publication scanning operates on the right timescale. Secret scanning in CI, before the layer is ever pushed, catches the key while it is still yours to catch.

The researchers’ own recommendations go to the platform. They want Docker Hub to scan images for secrets before pushing them live and to warn publishers whose images appear to embed any secrets. They also suggest restricting or rate-limiting access to Docker Hub’s public feed of recently published and updated images, to thwart mass-scanning tools.

That part has not moved. Tsouvalas told BleepingComputer that they reported their findings to Docker in May, with the full paper attached, and received an acknowledgment and nothing further. A smaller follow-up experiment in August, checking whether any defenses had appeared, found no changes.

Share

Keep Reading

Latest on the Wire

Full wire →

New signal daily · RSS

Stay in the loop

New writing delivered when it's ready. No schedule, no spam.