AWS IAM Assume Role Policy Brute Force Attempt
Detection of potential brute force attempts against AWS IAM assume role policies, indicating reconnaissance or privilege escalation attempts by a threat actor.
Triage facts
Revision 2- Evidence
- Unknown
- Severity
- Medium
- Sources
- 1 public source
- Freshness
- Revision 2Jan 25, 12:00 UTC
- Detection
- 2 rules
Revision history 1 entry · Revision 2
- Revision 2
Repaired a legacy canonical identity collision
Changed: slug
This alert detects potential brute force attempts on AWS IAM AssumeRole policies. While the provided source material is limited to the file's existence within a Splunk security content repository, the detection logic focuses on identifying a high volume of failed AssumeRole API calls originating from a single source IP or AWS identity within a short timeframe. Such activity could indicate an attacker attempting to discover valid roles they can assume to gain elevated privileges within an AWS environment. This activity is significant because successful role assumption grants the attacker access to resources and data associated with the assumed role, bypassing standard permission controls. A successful brute force may lead to data exfiltration, service disruption, or further lateral movement within the cloud infrastructure.
Attack Chain
- Initial Access Attempt: An attacker attempts to gain initial access to an AWS environment, potentially through compromised credentials or an exposed API endpoint.
- Identity Enumeration: The attacker begins enumerating available IAM roles within the AWS account to identify potential targets for privilege escalation.
- AssumeRole Request: The attacker initiates a series of
AssumeRoleAPI calls, each targeting a different IAM role and potentially using different session names or external IDs. - Policy Evaluation: AWS evaluates the IAM policies associated with each role to determine if the attacker's identity is authorized to assume the role.
- Failed Assumption Attempts: The majority of
AssumeRolerequests fail due to insufficient permissions or incorrect parameters, generating CloudTrail logs with error codes likeAccessDeniedorInvalidClientTokenId. - Successful Assumption (Potential): If the attacker successfully identifies a role they are authorized to assume, the
AssumeRoleAPI call returns temporary security credentials. - Privilege Escalation: The attacker uses the temporary security credentials to access resources and perform actions associated with the assumed role, effectively escalating their privileges.
- Lateral Movement/Data Exfiltration: With elevated privileges, the attacker may move laterally within the AWS environment, access sensitive data, or exfiltrate information to an external location.
Impact
A successful brute force attack on AWS IAM roles can lead to significant damage. While the number of victims is unknown, the potential impact includes unauthorized access to sensitive data, compromised AWS resources, and potential disruption of cloud-based services. The attacker may be able to escalate privileges, move laterally within the AWS environment, and exfiltrate sensitive data. The targeted sectors are broad, as any organization using AWS IAM roles is potentially vulnerable.
Detection coverage 2
Detect High Volume of Failed AssumeRole API Calls
mediumDetects a high number of failed AssumeRole API calls from the same source within a short timeframe, indicating a potential brute force attempt.
Detect Successful AssumeRole Followed by Unusual Activity
highDetects a successful AssumeRole API call followed by API calls that are not typically associated with that role, suggesting potential abuse.
Detection queries are available on the platform. Get full rules →