AWS Multiple Failed MFA Requests For User
Description
The following analytic identifies multiple failed multi-factor authentication (MFA) requests to an AWS Console for a single user. It leverages AWS CloudTrail logs, specifically the additionalEventData
field, to detect more than 10 failed MFA prompts within 5 minutes. This activity is significant as it may indicate an adversary attempting to bypass MFA by bombarding the user with repeated authentication requests. If confirmed malicious, this could lead to unauthorized access to the AWS environment, potentially compromising sensitive data and resources.
- Type: Anomaly
-
Product: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud
- Last Updated: 2024-05-31
- Author: Bhavin Patel
- ID: 1fece617-e614-4329-9e61-3ba228c0f353
Annotations
ATT&CK
Kill Chain Phase
- Weaponization
- Exploitation
NIST
- DE.AE
CIS20
- CIS 10
CVE
Search
1
2
3
4
5
`cloudtrail` eventName= ConsoleLogin "additionalEventData.MFAUsed"=Yes errorMessage="Failed authentication"
| bucket span=5m _time
| stats dc(_raw) as mfa_prompts values(userAgent) as userAgent values(src) as src by _time user_name user_arn aws_account_id eventName errorMessage
| where mfa_prompts > 10
| `aws_multiple_failed_mfa_requests_for_user_filter`
Macros
The SPL above uses the following Macros:
aws_multiple_failed_mfa_requests_for_user_filter is a empty macro by default. It allows the user to filter out any results (false positives) without editing the SPL.
Required fields
List of fields required to use this analytic.
- src
- eventName
- eventSource
- aws_account_id
- errorCode
- errorMessage
- userAgent
- eventID
- awsRegion
- user_name
- userIdentity.arn
How To Implement
The Splunk AWS Add-on is required to utilize this data. The search requires AWS CloudTrail logs.
Known False Positives
Multiple Failed MFA requests may also be a sign of authentication or application issues. Filter as needed.
Associated Analytic Story
RBA
Risk Score | Impact | Confidence | Message |
---|---|---|---|
64.0 | 80 | 80 | User $user_name$ is seen to have high number of MFA prompt failures within a short period of time. |
The Risk Score is calculated by the following formula: Risk Score = (Impact * Confidence/100). Initial Confidence and Impact is set by the analytic author.
Reference
Test Dataset
Replay any dataset to Splunk Enterprise by using our replay.py
tool or the UI.
Alternatively you can replay a dataset into a Splunk Attack Range
source | version: 2