Skip to content

Response, New York. Noah Park: Check Point Patches Actively Exploited Management Server Path Traversal. Detection, Dallas. Ava Okello: Report Finds Nearly Half of Deployed Detections Need Attention Before SOCs Can Trust Them.

SOCtember

Always First. Fast SOC News.

A line chart from the Gone in 8 Seconds study showing, for each API call index in an attacker session, the share of sessions in the validate, enumerate and exploit stages. Validate dominates the first call at above 90 percent, enumerate rises past 90 percent by later calls, and exploit peaks near 40 percent around the seventh to ninth calls.
Image: Billy Tsouvalas and Nick Nikiforakis, Stony Brook University, ContainerBots artifact (CC BY 4.0), how bots moved from validating a leaked AWS key to enumerating and using the account.

Detection

Bots Tried a Cloud Key Hidden in a Public Container Image 7.86 Seconds After It Was Pushed, Stony Brook Researchers Find, and They Never Ran the Container to Get It

Two researchers seeded 300 decoy images across eight registries with live AWS, OpenAI and Anthropic keys. Every AWS key in the first round was used, the median first call came 51 seconds after publication, and the scanners pulled the secrets straight out of image layers, which means a key that reaches a public registry has to be treated as stolen the moment it is pushed.

Ava Okello, DetectionStony Brook6 min read

STONY BROOK, N.Y. - The fastest bot did not need ten seconds. A decoy Amazon Web Services key that two Stony Brook University researchers had buried inside a public container image was first used 7.86 seconds after the image was pushed to Docker Hub.

That number is the headline of "Gone in 8 Seconds: Uncovering Malicious Bots Operating on Public Container Registries," a paper by Billy Tsouvalas and Nick Nikiforakis presented this month at the ACM Conference on Computer and Communications Security. Over two rounds spanning about four months, the pair published 300 instrumented images across eight public registries, each carrying honeytokens: AWS, OpenAI and Anthropic API keys plus decoy SSH and MySQL credentials. They then watched what happened to every one.

The answer, for security teams, is that the window between a secret leaking into an image and an attacker holding it is effectively zero. The study's published artifact, released under a Creative Commons license, gives the numbers behind that conclusion.

Every key was found, and fast

In the first round, the researchers pushed 100 images to Docker Hub and did not advertise them anywhere. The images were still pulled 58,819 times. All 100 AWS keys were used, drawing 66,321 requests from 3,842 distinct IP addresses. The median time to the first call on a key was 51.19 seconds and the mean was 89.63 seconds, according to the artifact. Help Net Security, reporting on the paper, said more than half of the keys were used within a minute and all of them within 15 minutes.

The second round spread 200 images across Docker Hub, Amazon ECR Public and Red Hat Quay as hosted services, and self-hosted Harbor, Zot, CNCF Distribution, Sonatype Nexus and Quay instances. Fifty-six AWS keys were used, with 75,742 calls in total. Almost all of that came from Docker Hub; the fastest second-round use took 34.70 seconds, while the first key abused from a self-hosted Harbor registry took about 6.57 days. Across both rounds the AWS keys drew more than 140,000 API calls from more than 5,000 IP addresses.

One detail undercuts a common assumption about self-monitoring. The paper notes that Docker Hub's pull counter lags actual downloads by roughly five to six minutes, so "even a vigilant image owner monitoring their own pull count cannot react before a leaked credential has already been used," the authors wrote, as quoted by Help Net Security.

Read, not run

Each image also carried lifecycle beacons that would call home if anyone built it, ran it or opened a shell inside it. In the first round, not one fired. In the second, only three run beacons fired, on two Docker Hub images.

The researchers concluded that the scanners extract credentials statically, by unpacking image layers or querying the registry API, without ever starting a container. Runtime hardening, admission controls and container security agents do nothing against that path. If a key sits in any layer, including one a later layer appears to delete, it can be read.

A horizontal bar chart from the Gone in 8 Seconds study showing AWS API events that each made up more than 1 percent of attacker activity on the decoy keys. GetCallerIdentity leads at about 29 percent, followed by ListClusters, InvokeModel, DescribeInstances, ListTables, ListFunctions, DescribeDBInstances, ListSecrets and others including GetSendQuota, GetSMSAttributes, ListBuckets, ListRoles and ListUsers.
Image: Billy Tsouvalas and Nick Nikiforakis, Stony Brook University, ContainerBots artifact (CC BY 4.0), AWS API calls that each made up more than 1 percent of activity on the decoy keys.

Validate, enumerate, exploit

What the bots did with the AWS keys followed a consistent arc that the paper describes as validate, enumerate and exploit. The first call was almost always GetCallerIdentity, the "who am I" request that confirms a key is live. Across 81 distinct AWS event types, the most common after that were inventory calls: ListClusters, DescribeInstances, ListTables, ListFunctions, DescribeDBInstances, ListSecrets, ListBuckets, ListRoles and ListUsers. InvokeModel, the Amazon Bedrock call that spends money on AI inference, ranked third, and GetSendQuota and GetSMSAttributes point at bots checking whether an account can send email or text messages.

Malwarebytes, summarizing the paper, said about half of the IP addresses that tested an AWS key stopped after that first identity check, and only about 6 percent went on to sustained use of account resources. That does not make the rest harmless. A validated key can be logged, sold and used later.

The AI keys show that pattern most clearly. The OpenAI keys saw small bursts after each image push, then went quiet for weeks before one key received a burst of requests that emptied the account. "We speculate that the wait phase reflects validated keys being resold and held idle until a buyer eventually uses them," the authors wrote. In the second round, 28 OpenAI keys and 4 Anthropic keys were used, and every one of them carried open, unrestricted permissions. None of the restricted keys were abused that way.

A line chart from the Gone in 8 Seconds study comparing average pulls over 30 days for decoy images with sensitive-sounding names against baseline names. The sensitive images climb to about 510 pulls and the baseline images to about 220, with jumps after each image push on days 1, 6, 11 and 16.
Image: Billy Tsouvalas and Nick Nikiforakis, Stony Brook University, ContainerBots artifact (CC BY 4.0), pulls of sensitive-named versus baseline-named decoy images.

The bots were also selective about where they looked. Images with sensitive names drew more than twice the pulls of those with baseline names, and every update to an image triggered a fresh wave. On the self-hosted registries, pulls arrived shortly after the servers' SSL certificates were renewed. The decoy database and server credentials saw far less interest: the honeypots behind them recorded two SSH logins and 95 MySQL queries.

Two stacked charts from the Gone in 8 Seconds study showing cumulative OpenAI and Claude tokens consumed with the first-round decoy keys. Usage rises in small steps after each image push, then the OpenAI keys jump to more than ten million input tokens weeks later and the Claude keys jump to more than one million input tokens after an image update.
Image: Billy Tsouvalas and Nick Nikiforakis, Stony Brook University, ContainerBots artifact (CC BY 4.0), cumulative tokens consumed with the first-round OpenAI and Claude decoy keys.

What detection teams should take from it

The study's practical message is about timing. A secret scan after publication, or an alert that waits on pull counts, arrives after the attacker. For SOC and cloud security teams, that points to a short list:

  • Scan images for secrets in CI before they are pushed to any registry, including every intermediate layer, not just the final filesystem.
  • Treat a push that contained a key as a confirmed compromise: revoke the key first, then investigate. Deleting the image or the tag does not undo a copy already taken.
  • Alert in CloudTrail on GetCallerIdentity from an unfamiliar IP address or autonomous system for long-lived access keys, followed in quick succession by List and Describe calls across many services. That burst is the enumerate stage in the paper's data.
  • Watch for InvokeModel, GetSendQuota and GetSMSAttributes from identities that have no business using Bedrock, SES or SNS.
  • Scope AI provider keys narrowly and prefer short-lived cloud credentials; in the second round, only unrestricted AI keys were drained.
  • Plant canary keys of your own in build images and internal registries. The study shows how reliably scanners take the bait, which makes honeytokens a cheap tripwire.

Malwarebytes reported that the researchers shared their findings with Docker, which acknowledged the disclosure. The full dataset, including CloudTrail events with keys and source addresses hashed, is published with the paper so that defenders can test their own detections against the same traffic.

About the Author

Ava Okello

Ava Okello covers detection engineering, EDR telemetry, and SOC hunting for SOCtember from London.

Related stories

Detection desk