Skip to content
Info disclosure Write-up Intermediate

AWS CloudTrail vulnerability: Undocumented API allows CloudTrail bypass

An undocumented AWS API service called iamadmin allowed IAM API calls to be made without generating CloudTrail logs. An attacker with a foothold could perform reconnaissance on IAM resources without leaving a trace in CloudTrail or triggering GuardDuty alerts.

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

Impact

An attacker with a foothold in an AWS account could perform IAM reconnaissance without leaving traces in CloudTrail, and GuardDuty could not alert on the activity because it relies on CloudTrail.

What the attacker needed

AWS account with IAM permissions; Ability to send signed API requests

The fix

AWS fixed the issue by updating iamadmin API calls to generate events in CloudTrail in the same way that the iam service does.

How it was found

  1. Monitor network traffic in the AWS Management Console developer tools while browsing.
  2. Notice requests to an unusual service called iamadmin.
  3. Set up a test harness to sign and send requests to the iamadmin API.
  4. Call iamadmin methods and observe that no CloudTrail events are generated.
  5. Confirm by calling the equivalent IAM method via AWS CLI, which does generate a CloudTrail log.

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.

CloudTrail is a logging service that records actions in an AWS account, like a security camera. The researchers found a hidden way to ask AWS for information about users and permissions that didn't show up in those logs. This means an attacker could look around without being recorded.

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.