300 decoy images, eight registries
Stony Brook University researchers Billy Tsouvalas and Nick Nikiforakis put fake AWS, OpenAI and Anthropic keys inside 300 copies of the official nginx image and published them on eight public registries, including Docker Hub, Amazon ECR and Red Hat Quay.[1] Nobody was told where they were. The fastest bot used an AWS key 7.86 seconds after the image went up.[1][2]
The study, “Gone in 8 Seconds: Uncovering Malicious Bots Operating on Public Container Registries,” is listed to appear at the ACM Conference on Computer and Communications Security (CCS) 2026.[3] BleepingComputer first reported it on November 17, and Help Net Security published a fuller account on November 25.[2][1] We couldn’t open the paper itself; the ACM library refused our request, so the figures here are the researchers’ numbers as those two outlets report them.
It lands two days after VulnCheck reported that attempts to steal credentials went from about 1% of the exploitation it records in January to 25–35% in September and October.[4] Put the two together and the message for a small company is blunt.
A key that ships in a public image is a stolen key.
Most keys were used inside a minute
In the first round, 100 images on Docker Hub, more than half of the AWS keys were used within a minute, 93% within five minutes and all of them within 15 minutes, Help Net Security reports.[1] Across the study, the AWS keys drew more than 140,000 API calls from more than 5,000 IP addresses, and the images were pulled more than 75,000 times.[1][2]
Share of planted AWS keys used, by time after upload
Hardly anyone ran the images. Hidden callbacks, which fired if anyone built, ran or opened a shell in an image, never fired in the first round and fired three times in the second round of 200.[1] The bots, which the researchers call “ContainerBots,” read the image layers and pulled the keys out without ever starting the software.[2] “In effect, publication and compromise are, for practical purposes, the same event,” the researchers wrote.[1]
Here’s a plain sum of our own. A developer who spots the mistake one hour after pushing is about 70 times the median too late: 3,600 seconds against 51. Speed of cleanup doesn’t save the key. Only a new key does.
The AI keys were tested, then drained later
The OpenAI and Anthropic keys behaved differently from the AWS ones, and the difference matters to anyone paying an AI bill. Bots checked them with small bursts of use, then waited.[1] About a month after the last OpenAI push, one key took 143 requests in under 24 hours, using more than 18 million input tokens. The Claude keys were drained in a single day, after an image update on day 8.[1]
The authors suggest checked keys may be resold and held until a buyer uses them.[1] That would explain the quiet weeks. It also means a bill that looks normal on Monday is no proof that nobody has your key.
One finding is good news. No restricted OpenAI or Anthropic key received a call that spent tokens, which suggests the scanners can tell what a key is allowed to do.[1] The whole AI side of the test cost about $60 in credits, all of it used by attackers.[1]
Real companies leak the same keys
The study used decoys. The leaks it imitates are real. Flare scanned Docker Hub images uploaded in November 2025 and found 10,456 that held one or more exposed keys; AI model keys were the most common, with “almost 4,000 exposed.”[5] Flare’s key findings add that developers often removed a leaked secret but “75% failed to revoke or rotate the underlying keys.”[5]
AI coding tools add a new route. GitGuardian reported on November 9 that Claude Code’s settings.local.json file, which can save an approved command with the key inside it, put 613 distinct secrets into Docker Hub images, 99 of them valid.[6] The file is kept out of git, but “COPY takes the working tree, not the git index,” so it still ships in an image unless .dockerignore excludes the .claude/ folder.[6]
And attackers are asking for these keys directly. VulnCheck’s Patrick Garrity found that credential harvesting grew “from about 1% of exploitation records in January 2026 to 25–35% in September and October.”[4] Of 694 exploited vulnerabilities its honeypots track, 127 (18%) saw at least one attempt to grab credentials, and 77 of those were in open-source software, AI products or developer tools.[4] Attempts aimed at AI provider and coding-agent credentials numbered 1,756, from 406 IP addresses.[4]
Deleting a key is not the fix
The instinct after a leak is to remove the key and push a clean image. That hides the key from the next reader. It does nothing about the bots that already copied it, and old tags, forks and history can still hold copies.[6]
What each response to a leaked key actually does
| Response | Stops new readers | Stops someone who already copied it |
|---|---|---|
| Delete the key and push a new image | Partly; old tags and copies remain | No |
| Revoke the key and issue a new one | Yes | Yes |
| Restricted key (only the models and endpoints a tool needs) | No | Limits what a thief can do |
| Hard spend limit on the project | No | Caps the bill |
What to do this week
You don’t need to read a Dockerfile to act on this. Ask your developer, contractor or AI vendor these questions:
- Which AI and cloud keys exist, and who made them? Anthropic’s documentation says service account and workspace keys “continue to work” after the person who created them leaves the organization.[8] Removing a contractor doesn’t switch off their keys.
- Was any key ever in a build, image or repository? If so, revoke it and issue a new one. Flare and GitGuardian both say to rotate, not just delete.[5][6]
- Are secrets kept out of images? They should be passed in when the software runs, from a secrets manager, never baked into the build. The
.claude/folder and.envfiles belong in.dockerignore.[5][6] - Are the AI keys narrow? OpenAI lets a key be restricted to chosen endpoints and kept to one project.[7] VulnCheck’s advice: “Scope keys to the smallest set of models and projects possible.”[4]
- Is there a hard spend limit? OpenAI’s hard limit makes requests fail once tracked spending reaches it, though recorded spending can run slightly over.[7] Anthropic lets admins set rate limits per workspace.[8]
- Does anything scan for secrets? Flare recommends scanning repositories, images, registries, commit history and build logs continuously.[5]
Our guide to AI security and data privacy covers the wider set of controls.
The researchers name no real company whose keys were stolen; every key in the study was a decoy. We don’t estimate how many businesses are affected.
What to watch
The researchers want registries to scan for known key formats at upload and warn the person pushing, and suggest Docker Hub require a login, add rate limits or show less on its public feed of the newest images.[1][2] They told BleepingComputer they sent Docker the paper in May and heard nothing beyond an acknowledgment, and a check in August found no change.[2] Help Net Security reports that Docker acknowledged the disclosure and its security team was reviewing the findings.[1] Until registries change, assume nobody is checking your images for you.
Related reading: Dragos found bait it hid in AI prompts on three breached AI hosts, and the Fireworks AI breach reached stored secrets through a vendor.
Questions
How fast are leaked keys in Docker images used?
In a Stony Brook University study, the fastest planted AWS key was used 7.86 seconds after upload, the median was 51 seconds, and all 100 AWS keys in the first round were used within 15 minutes, Help Net Security reports.[1]
Is deleting a leaked API key from a Docker image enough?
What happens to a leaked OpenAI or Anthropic key?
In the study, bots tested the AI keys in small bursts, waited, then drained the balances later: one OpenAI key took more than 18 million input tokens in under 24 hours about a month after the last push.[1]
Do restricted API keys help?
Do API keys stop working when a contractor leaves?
Not always. Anthropic’s documentation says personal keys stop working when their user is removed, but service account and workspace keys continue to work.[8] Check and rotate keys when someone leaves.
Sources
- Sinisa Markovic, Help Net Security, Bots exploited leaked AWS key from Docker image in under 8 seconds, November 25, 2026.
- Bill Toulas, BleepingComputer, Cloud keys leaked in Docker Hub images are stolen within seconds, November 17, 2026.
- Billy Tsouvalas, Stony Brook University, Publications: “Gone in 8 Seconds: Uncovering Malicious Bots Operating on Public Container Registries” (ACM CCS 2026, to appear), Accessed November 29, 2026.
- Patrick Garrity, VulnCheck, Attackers Exploit CVEs to Harvest Credentials, November 23, 2026.
- Assaf Morag, Flare, Thousands of Exposed Secrets Found on Docker Hub, Putting Organizations at Risk, December 10, 2025.
- Guillaume Valadon, GitGuardian, Claude Code settings.local.json Secrets: 17 months of exposure on GitHub, & Docker Hub, November 9, 2026.
- OpenAI Help Center, Assign API key permissions, Accessed November 29, 2026.
- Anthropic, Claude Platform documentation, Admin API, Accessed November 29, 2026.
Related pages on this site