Key facts
- A bot tested an exposed AWS access key 7.86 seconds after researchers published it in a public software package.
- Stony Brook University researchers Billy Tsouvalas and Nick Nikiforakis released 300 decoy images onto eight public registries over a four-month period.
- The decoy packages held valid keys for Amazon Web Services, OpenAI, and Anthropic.
- Nearly every bot testing an AWS key started with a GetCallerIdentity request to confirm the key was live.
Stony Brook University researchers Billy Tsouvalas and Nick Nikiforakis released 300 decoy images onto eight public registries over a four-month period, and a bot tested an exposed AWS access key 7.86 seconds after the researchers published it in a public software package, according to research reported by Malwarebytes.
The decoy packages held valid keys for Amazon Web Services, OpenAI, and Anthropic. The images were downloaded tens of thousands of times despite receiving no advertisement.
Nearly every bot testing an AWS key started with a GetCallerIdentity request to confirm the key was live. Roughly half of the IP addresses scanning for AWS keys stopped after that first check. Only around 6% of the scanning IP addresses moved on to sustained use of account resources.
Attackers spent all the roughly $60 that researchers had loaded onto OpenAI and Anthropic accounts. OpenAI keys stayed unused for weeks before one key was used to exhaust its remaining balance in under 24 hours.
In later tests, every OpenAI and Anthropic key used to burn through credits carried unrestricted permissions, while restricted keys were not used that way. A key for an AI service used in an app or script can be abused to run up charges on the account without a company cloud account.
OpenAI warns that an exposed key could be used to exhaust an account’s quota and interrupt service. Docker acknowledged the disclosure, and its security team was reviewing the findings, according to the researchers’ paper. The researchers speculate that validated keys are sold and kept unused until a buyer eventually uses them.
Malwarebytes says there is barely enough time in eight seconds to notice a mistake, let alone fix it. AWS advises using temporary credentials rather than long-term access keys when possible.
“We speculate that the wait phase reflects validated keys being resold and held idle until a buyer eventually uses them,” the researchers said. The researchers say registries should scan images as they are uploaded because checking for exposed keys after publication is too late. Anyone who publishes a key must treat it as compromised, revoke it, issue a new one, and inspect account activity and charges.

Join the discussion