Skip to content
Info disclosure Write-up Advanced

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.

Nick Frichette Follow

Published on securitylabs.datadoghq.com

Staff Security Researcher](https://securitylabs.datadoghq.com/articles/?author=NickFrichette)

Nick Frichette, on securitylabs.datadoghq.com

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

  1. Run Cert Spotter to watch for new TLS certificates on AWS-owned domains and forward hits to a queue.
  2. Pass each candidate domain to a Lambda function that compares responses against known AWS API behaviour.
  3. Store confirmed API endpoints and fingerprint which service each belongs to by trying AWS CLI actions.
  4. Call a non-production endpoint with normal credentials and observe whether the action succeeds or is denied.
  5. 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.

More by Nick Frichette

View all

8 more disclosed reports, best first.

More from AWS

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.