Non-Production Endpoints as an Attack Surface in AWS
The researchers found that many non-production AWS API endpoints accept normal IAM credentials and some do not write events to CloudTrail, so a holder of stolen credentials could call API actions and enumerate permissions without leaving an audit trail. They also found two specific API actions that bypassed CloudTrail logging, which AWS has since fixed.
Published on securitylabs.datadoghq.com
Staff Security Researcher](https://securitylabs.datadoghq.com/articles/?author=NickFrichette)
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely non-production AWS API endpoints share the global IAM authentication and authorisation layer but are not wired into the customer-visible CloudTrail logging pipeline.
Impact
An attacker holding stolen IAM credentials could enumerate permissions and, on some endpoints, act on production resources without any CloudTrail record, leaving the victim unable to detect the activity.
What the attacker needed
Stolen IAM credentials; internet access to the endpoint; knowledge of non-production hostnames
The fix
AWS fixed the two specific CloudTrail bypasses and disabled the isolated endpoint's functionality, and it is actively remediating other instances of the technique.
How it was found
- Run Cert Spotter to watch for new TLS certificates on AWS-owned domains and forward hits to a queue.
- Pass each candidate domain to a Lambda function that compares responses against known AWS API behaviour.
- Store confirmed API endpoints and fingerprint which service each belongs to by trying AWS CLI actions.
- Call a non-production endpoint with normal credentials and observe whether the action succeeds or is denied.
- Check CloudTrail to see whether the call was recorded.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
AWS keeps an audit log called CloudTrail that records who called which API action, so defenders can spot stolen credentials being used. The researchers found that some unofficial, test-style AWS API addresses still accept normal login credentials but do not write to that log. Someone who had stolen credentials could therefore quietly check what the account is allowed to do without the victim seeing it.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.