The Library

Leaked AWS Keys in Docker Hub Images: A Bot Used One in 7.86 Seconds, What Is Confirmed and What to Do This Week

Stony Brook researchers planted AWS, OpenAI and Anthropic keys in 300 public container images. One AWS key was used 7.86 seconds after it went up on Docker Hub. Here is what is confirmed and what to do this week.

Elite Performance Exclusive LLC 6 min read

Where Worldwide

Leaked AWS Keys in Docker Hub Images: A Bot Used One in 7.86 Seconds, What Is Confirmed and What to Do This Week
On this page 7 sections

Researchers at Stony Brook University hid cloud and AI keys inside public container images to see how fast strangers would find them. The fastest use of a planted AWS key came 7.86 seconds after the image went up on Docker Hub, so if your developers, contractors or build tools ever publish an image with a key inside it, treat that key as stolen the moment the image is live.

What happened: leaked AWS keys in Docker Hub images

Two researchers at Stony Brook University, Billy Tsouvalas and Nick Nikiforakis, published a total of 300 honeypot images across eight public container registries. A honeypot is bait. Here it meant container images holding credentials the researchers controlled, so they could see who picked the keys up and how quickly they tried them.

The images exposed AWS, OpenAI and Anthropic API keys over a period of four months. The reported results:

Measure Reported result
Fastest use of a planted AWS key 7.86 seconds after publishing on Docker Hub
Median time to the first API call 51.19 seconds
AWS keys used All 100, within 15 minutes
Times the images were pulled More than 75,000
API calls to the planted AWS keys Over 140,000, from 5,000 unique IP addresses

Malwarebytes put it in one line: "A bot tested an AWS key just 7.86 seconds after researchers published it."

What is confirmed and what is not

Confirmed in our sources: the figures above, the researchers' names and university, the 300 images across eight registries, the four-month period and the types of keys exposed. BleepingComputer and Malwarebytes both reported the work, and BleepingComputer's coverage holds most of the detail.

An important limit: the researchers' own write-up was not among our sources. These figures come from those two outlets, and we could not check them against the original study.

Not known from our sources:

  • Which seven registries were tested besides Docker Hub.
  • Whether the OpenAI and Anthropic keys were used, or how fast. The timing figures we have cover AWS keys only.
  • What the callers tried to do once a key worked, and who runs the scanners.
  • The exact start and end dates of the four-month study.

Docker's response: Tsouvalas told BleepingComputer that they reported their findings to Docker in May, "but besides an acknowledgment, they received no follow-up replies." Our sources contain no statement from Docker.

How bots find keys in public container images

The researchers said: "The scanners interacting with our images overwhelmingly do so through static analysis". In plain terms, the bots read the files inside the image without running it. Nobody has to install or start your software for a key to be found. Publishing the image is enough.

That matters because a key in a config file or a settings file is just text to a scanner. Reading files is fast, and that fits the speed the researchers measured.

Why exposed cloud keys matter for a business

Many websites, apps and APIs are packaged and shipped as container images. If your business runs a web app, a customer portal or an internal tool, those images may be built by your own developer, an agency, or an AI coding assistant working from a prompt.

A key left in one of those images opens whatever that key can reach: cloud servers, storage, or a paid AI account billed to you. The sources do not say what the callers did with the keys, so we will not guess. What matters for a business is the timing. With a median of 51.19 seconds to the first API call, no manual review, weekly scan, or a fix-it-Monday plan gets there first.

It comes back to a theme we keep returning to: who keeps an AI-built app running and who is patching the software that runs your business. The work that matters happens after launch, and someone has to own it. If you run your own containers and servers, see our self-hosting and infrastructure page.

What to do this week

Step What to do How to check
1 List every container image your company publishes on any public registry, including images made by contractors Ask each developer or agency for the registry accounts and image names
2 Check those images for keys, both already published and before each new release Scan the files inside each image, the same way the bots do
3 Treat any key that was ever in a public image as stolen Revoke it and issue a new one. Deleting the image afterward does not undo the exposure
4 Review account activity and billing for the time the key was exposed Look in your cloud and AI provider dashboards for calls you do not recognize
5 Limit what each key can do Give each key only the access its job needs
6 Keep keys out of images entirely Supply keys when the app runs, from a secrets store, instead of building them into the image
7 Keep images private unless they must be public Confirm with whoever manages the registry account which images are public and why
8 Include AI keys in the review OpenAI and Anthropic keys were part of the same bait

Leaked AWS keys questions people are asking

How fast are leaked AWS keys used?

In this study the fastest was 7.86 seconds after the image was published on Docker Hub. The median time to the first API call was 51.19 seconds, and all 100 AWS keys were used within 15 minutes.

Is Docker Hub safe to use?

The study covered eight public registries, and the fastest AWS key use happened on Docker Hub. It measured what happens when keys sit inside images anyone can pull, so the fix is to keep keys out of public images.

If I delete the image, is the key safe?

No. In this study keys were used within seconds to minutes, so assume the key was copied. Revoke it and issue a new one.

Were the OpenAI and Anthropic keys stolen too?

They were exposed in the same honeypot images. Our sources give timing figures for the AWS keys only, so we cannot say whether or how the AI keys were used.

What did Docker say about the research?

Tsouvalas told BleepingComputer the team reported its findings to Docker in May and got an acknowledgment but no follow-up replies. Our sources contain no comment from Docker.

How do bots find secrets in Docker images?

Mostly by reading the files in the image without running it. The researchers said the scanners overwhelmingly use static analysis.

How many times were the bait images downloaded?

More than 75,000 times, and the planted AWS keys received over 140,000 API calls from 5,000 unique IP addresses.

The bigger lesson

A cloud key is a password with a bill attached. Once it leaves your control the clock runs in seconds, not days. The only reliable defense is to keep keys out of anything you ship and to replace any key the moment it may have been seen. That is a process question more than a tools question: someone has to know what you publish, where your keys live and who replaces them.

For help putting that process in place on your apps and servers, see security hardening or request a quote.

Get security alerts by email, with the free checklist, at security alerts.

Sources: BleepingComputer; Malwarebytes.

Share X LinkedIn Facebook

Was this article helpful?

We only keep the note with this article. No name, no email.

Protected by reCAPTCHA - Privacy and Terms.

Have a question about this article?

Ask it here and we will answer you directly by email. Questions are private, never posted.

Protected by reCAPTCHA - Privacy and Terms.

Security alerts by email

Hear about the next one first.

When attackers start using a flaw in software businesses run on, we email what it is, whether it touches you and what to do that week, with a round-up of our latest security writing. Free, one-click unsubscribe. You get the checklist straight away: 12 things to secure this week.

Protected by reCAPTCHA - Privacy and Terms.

Want a result like this?

Security alerts, breaches and the technology a business runs on: what happened, who it affects and what to do.

Get a Tech Quote

Security alerts by email

The next security hole is already out there. Hear about it from us first.

When attackers start using a flaw in software businesses run on, we email what it is, whether it touches you and what to do that week, with a round-up of our latest security writing. Free, one-click unsubscribe. You get the checklist straight away: 12 things to secure this week.

Protected by reCAPTCHA - Privacy and Terms.