ASL AWS IAM Assume Role Policy Brute Force
The following analytic detects multiple failed attempts to assume an AWS IAM role, indicating a potential brute force attack. It leverages AWS CloudTrail logs to identify `MalformedPolicyDocumentException` errors…
Description
The following analytic detects multiple failed attempts to assume an AWS IAM role, indicating a potential brute force attack. It leverages AWS CloudTrail logs to identify `MalformedPolicyDocumentException` errors with a status of `failure` and filters out legitimate AWS services. This activity is significant as repeated failures to assume roles can indicate an adversary attempting to guess role names, which is a precursor to unauthorized access. If confirmed malicious, this could lead to unauthorized access to AWS resources, potentially compromising sensitive data and services.
Detection logic
Detection requirements
- Platform
- ContainersESXiIaaSIdentity ProviderLinuxmacOSNetwork DevicesOffice SuiteSaaSWindows
The rule states no platform. This is derived from the 2 ATT&CK techniques it maps to.
- Log source category
- asl_aws_cloudtrail
Known benign triggers
- This detection will require tuning to provide high fidelity detection capabilties. Tune based on src addresses (corporate offices, VPN terminations) or by groups of users.
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| rhinosecuritylabs.com/aws/assume-worst-aws-assume-role-enumeration/ | 3from 2 sources |
| www.elastic.co/guide/en/security/current/aws-iam-brute-force-of-assume-role-policy.html | 2 |
| www.praetorian.com/blog/aws-iam-assume-role-vulnerabilities/ | 2 |
From the source
- At source
- Open at source
- Upstream identifier
- 726959fe-316d-445c-a584-fa187d64e295
- Tagged by the source as
- AWS IAM Privilege EscalationScattered Lapsus$ HuntersAWS AccountcloudSplunk CloudSplunk EnterpriseSplunk Enterprise Securityaccess
Licence
- Published under
- Apache License 2.0Read the licence
- Attribution
- Required
- Obtained under
- Apache-2.0Read the origin licence
Authorship
- Written by
- Published
- Aug 26, 2026
- Version
- 1