AWS New MFA Method Registered For User
Description
The following analytic identifies the registration of a new Multi Factor authentication method for an AWS account. Adversaries who have obtained unauthorized access to an AWS account may register a new MFA method to maintain persistence.
- Type: TTP
-
Product: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud
- Last Updated: 2023-01-31
- Author: Bhavin Patel, Splunk
- ID: 4e3c26f2-4fb9-4bd7-ab46-1b76ffa2a23b
Annotations
ATT&CK
Kill Chain Phase
- Installation
- Actions on Objectives
NIST
- DE.CM
CIS20
- CIS 3
- CIS 5
- CIS 16
CVE
Search
1
2
3
4
5
`cloudtrail` eventName=CreateVirtualMFADevice
| stats count values(requestParameters.virtualMFADeviceName) as virtualMFADeviceName min(_time) as firstTime max(_time) as lastTime by eventSource aws_account_id errorCode userAgent eventID awsRegion userIdentity.principalId user_arn src_ip
| `security_content_ctime(firstTime)`
| `security_content_ctime(lastTime)`
| `aws_new_mfa_method_registered_for_user_filter`
Macros
The SPL above uses the following Macros:
aws_new_mfa_method_registered_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_ip
- eventName
- eventSource
- requestParameters.virtualMFADeviceName
- errorCode
- userIdentity.principalId
- userAgent
- awsRegion
- user_name
- userIdentity.arn
- _time
How To Implement
You must install Splunk AWS add on and Splunk App for AWS. This search works when AWS CloudTrail logs.
Known False Positives
Newly onboarded users who are registering an MFA method for the first time will also trigger this detection.
Associated Analytic Story
RBA
Risk Score | Impact | Confidence | Message |
---|---|---|---|
64.0 | 80 | 80 | A new virtual device $virtualMFADeviceName$ is added to user $user_arn$ |
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
- https://aws.amazon.com/blogs/security/you-can-now-assign-multiple-mfa-devices-in-iam/
- https://attack.mitre.org/techniques/T1556/
- https://attack.mitre.org/techniques/T1556/006/
- https://twitter.com/jhencinski/status/1618660062352007174
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: 1