Science & Tech · Cybersecurity · 7 hrs ago

Exposed credentials in Docker Hub images were used within seconds

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.

1 source

Related

What people are saying

ResearchersStony Brook University researchers
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.
via BleepingComputer