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.
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
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
- Monitor network traffic in the AWS Management Console developer tools while browsing.
- Notice requests to an unusual service called iamadmin.
- Set up a test harness to sign and send requests to the iamadmin API.
- Call iamadmin methods and observe that no CloudTrail events are generated.
- 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.