Science & Tech · Cybersecurity · 7 hrs ago
Exposed credentials in Docker Hub images were used within seconds
Researchers at Stony Brook University planted test credentials in public container images to measure how quickly attackers could find them.
They published 300 test images across eight container registries, including Docker Hub, over four months.
The fastest observed use of an AWS key came 7.86 seconds after publication, and all 100 test AWS keys received a call within 15 minutes.
The exposed keys also included credentials for OpenAI and Anthropic, and attackers used them to drain the test accounts.
Most activity came from automated scanners that inspected image files without running the containers, making the secrets easy to extract at scale.
This matters because leaked credentials can be used to access services, consume account balances or explore cloud resources, and revoking them can take significant work.
The researchers recommended that Docker Hub scan images for secrets and limit access to feeds of newly published images; they said they reported their findings in May but saw no changes in an August test.
Credentials and access secrets in public Docker Hub images were used by attackers within as little as 7.86 seconds of publication.
Researchers Billy Tsouvalas and Nick Nikiforakis tested 300 honeypot images across eight public container registries over four months.
The images were pulled more than 75,000 times, and planted AWS keys received over 140,000 API calls from 5,000 unique IP addresses.
All 100 planted AWS keys were used within 15 minutes, while exposed OpenAI and Anthropic keys were used to exhaust test-account balances.
The researchers said scanners mostly extracted credentials by inspecting image contents without running the containers.
- Who
- Attackers and automated scanners extracted and used credentials planted by researchers Billy Tsouvalas and Nick Nikiforakis.
- What
- A study found that exposed credentials in public container images could be extracted and exploited within seconds.
- When
- The experiment ran over four months; the fastest observed AWS key use was 7.86 seconds after publication.
- Where
- Docker Hub and seven other public container registries.
- Why
- The sources say scanners extracted credentials by inspecting image layers or querying registry APIs. Their motive is not stated.
This story does not have two clearly opposing sides.
The researchers published 300 honeypot images across eight public container registries and monitored their use.
The researchers reported their findings to Docker and sent the full paper.
The researchers ran a small-scale test and found no changes to defenses on Docker Hub.
The researchers presented the experiment and its findings at the ACM Conference on Computer and Communications Security.
- Honeypot images
- 300 across eight public container registries
- Fastest AWS key use
- 7.86 seconds after Docker Hub publication
- Median time to first AWS API call
- 51.19 seconds
- AWS keys used
- All 100 within 15 minutes
- AWS API calls
- More than 140,000 from 5,000 unique IP addresses
- Image pulls
- More than 75,000
What people are saying
The scanners interacting with our images 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.