Detection rules › Splunk
AWS High Number Of Failed Authentications For User
The following analytic detects an AWS account experiencing more than 20 failed authentication attempts within a 5-minute window. It leverages AWS CloudTrail logs to identify multiple failed ConsoleLogin events. This behavior is significant as it may indicate a brute force attack targeting the account. If confirmed malicious, the attacker could potentially gain unauthorized access, leading to data breaches or further exploitation of the AWS environment. Security teams should consider adjusting the threshold based on their specific environment to reduce false positives.
Known false positives
- A user with more than 20 failed authentication attempts in the span of 5 minutes may also be triggered by a broken application.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Discovery |
Telemetry coverage
Rules detecting the same action
These rules filter on the same operation.
- AWS Console Login (Panther)
- AWS Console Login Failed During MFA Challenge (Splunk)
- AWS ConsoleLogin Failed Authentication (Sigma)
- AWS CreateLoginProfile (Splunk)
- AWS Credential Access Failed Login (Splunk)
- AWS High Number Of Failed Authentications From Ip (Splunk)
- AWS Multiple Failed MFA Requests For User (Splunk)
- AWS Multiple Users Failing To Authenticate From Ip (Splunk)
Rule body
name: AWS High Number Of Failed Authentications For User
id: e3236f49-daf3-4b70-b808-9290912ac64d
version: 10
creation_date: '2023-01-27'
modification_date: '2026-05-13'
author: Bhavin Patel, Splunk
status: production
type: Anomaly
description: The following analytic detects an AWS account experiencing more than 20 failed authentication attempts within a 5-minute window. It leverages AWS CloudTrail logs to identify multiple failed ConsoleLogin events. This behavior is significant as it may indicate a brute force attack targeting the account. If confirmed malicious, the attacker could potentially gain unauthorized access, leading to data breaches or further exploitation of the AWS environment. Security teams should consider adjusting the threshold based on their specific environment to reduce false positives.
data_source:
- AWS CloudTrail ConsoleLogin
search: |-
`cloudtrail` eventName=ConsoleLogin action=failure
| bucket span=10m _time
| rename user_name as user
| stats dc(_raw) AS failed_attempts values(src) as src values(user_agent) as user_agent
BY _time, user, signature,
dest, vendor_account vendor_region,
vendor_product
| where failed_attempts > 20
| `security_content_ctime(firstTime)`
| `security_content_ctime(lastTime)`
| `aws_high_number_of_failed_authentications_for_user_filter`
how_to_implement: You must install Splunk AWS Add on and Splunk App for AWS. This search works with AWS CloudTrail logs.
known_false_positives: A user with more than 20 failed authentication attempts in the span of 5 minutes may also be triggered by a broken application.
references:
- https://www.trendmicro.com/cloudoneconformity/knowledge-base/aws/IAM/password-policy.html
intermediate_findings:
entities:
- field: user
type: user
score: 20
message: User $user$ failed to authenticate more than 20 times in the span of 5 minutes for AWS Account $vendor_account$
analytic_story:
- Compromised User Account
- AWS Identity and Access Management Account Takeover
asset_type: AWS Account
mitre_attack_id:
- T1201
product:
- Splunk Enterprise
- Splunk Enterprise Security
- Splunk Cloud
category: cloud
security_domain: threat
Stages and Predicates
Stage 1: search
`cloudtrail` eventName=ConsoleLogin action=failure
Stage 2: bucket
| bucket span=10m _time
Stage 3: rename
| rename user_name as user
Stage 4: stats
| stats dc(_raw) AS failed_attempts values(src) as src values(user_agent) as user_agent
BY _time, user, signature,
dest, vendor_account vendor_region,
vendor_product
Stage 5: where
| where failed_attempts > 20
Stage 6: search
| `security_content_ctime(firstTime)`
Stage 7: search
| `security_content_ctime(lastTime)`
Stage 8: search
| `aws_high_number_of_failed_authentications_for_user_filter`
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
action | eq |
| field:"action" kind:eq value:"failure" |
eventName | eq |
| field:"aws::eventName" kind:eq value:"ConsoleLogin" |
failed_attempts | gt |
| field:"failed_attempts" kind:gt value:"20" |
sourcetype | eq |
| field:"sourcetype" kind:eq value:"aws:cloudtrail" |