Researchers Find Bots Testing Exposed AWS Keys Within Seconds

Summary
A four-month honeypot study found bots tested exposed AWS keys as quickly as 7.86 seconds after publication. Attackers also used all $60 of prepaid OpenAI and Anthropic credits; the researchers recommend revoking exposed keys and limiting their permissions.
Key points
- Researchers published 300 honeypot images containing monitored AWS, OpenAI, and Anthropic keys across eight public registries.
- The images were downloaded tens of thousands of times despite not being advertised.
- The fastest observed AWS key test occurred 7.86 seconds after publication; most AWS probes began with GetCallerIdentity.
- About 6% of IP addresses scanning for AWS keys went on to sustained use of account resources.
- OpenAI keys remained unused for weeks before one was used to exhaust its remaining balance; the researchers speculate validated keys may have been resold.
- Attackers used the approximately $60 researchers loaded onto OpenAI and Anthropic accounts; every key used to burn credits had unrestricted permissions.
- Recommendations include scanning before publication, restricting key permissions, preferring short-lived credentials, and revoking exposed keys while reviewing account activity.
Article Details
- Publisher
- Malwarebytes
- Report Period
- Four months; dates not specified.
- Scope
- Researchers monitored use of exposed AWS, OpenAI, and Anthropic keys placed in honeypot images across public registries.
- Sample Size
- 300 honeypot images across eight public registries.
- Key Statistics
- The fastest observed AWS key test occurred 7.86 seconds after publication.
- The researchers reported tens of thousands of downloads of the honeypot images.
- About 6% of IP addresses that scanned for AWS keys went on to sustained use of account resources.
- Attackers used all of the approximately $60 loaded onto the researchers' OpenAI and Anthropic accounts.
- Every OpenAI and Anthropic key used to consume credits in the second test round had unrestricted permissions; no restricted key was used that way.
- Recommendations
- Keep keys out of code, public repositories, and container images; scan images before publishing.
- Limit each key's permissions to the actions and resources it needs.
- Prefer temporary credentials over long-term AWS access keys where possible.
- Set spending limits and alerts, and check whether budget settings impose a hard limit or only send an alert.
- If a key has been published, treat it as compromised: revoke and replace it, then review account activity and charges.
People
Vendors
Amazon Web ServicesA bot tested an AWS key just 7.86 seconds after researchers published itAnthropicAttackers used up about $60 in prepaid OpenAI and Anthropic creditDockerThe researchers published honeypot container images on Docker Hub and seven other registries, then shared their findings with Docker.OpenAIAttackers used up about $60 in prepaid OpenAI and Anthropic credit
