Try in Splunk Security Cloud

Description

The following analytic detects the registration of a new Multi-Factor Authentication (MFA) method for a user account within Office 365. It leverages O365 audit logs to identify changes in MFA configurations. This activity is significant as it may indicate an attacker's attempt to maintain persistence on a compromised account. If confirmed malicious, the attacker could bypass existing security measures, solidify their access, and potentially escalate privileges or access sensitive data. Immediate verification and remediation are required to secure the affected account.

  • Type: TTP
  • Product: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud
  • Datamodel: Authentication
  • Last Updated: 2024-05-15
  • Author: Mauricio Velazco, Splunk
  • ID: 4e12db1f-f7c7-486d-8152-a221cad6ac2b

Annotations

ATT&CK

ATT&CK

ID Technique Tactic
T1098 Account Manipulation Persistence, Privilege Escalation
T1098.005 Device Registration Persistence, Privilege Escalation
Kill Chain Phase
  • Installation
  • Exploitation
NIST
  • DE.CM
CIS20
  • CIS 10
CVE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
`o365_management_activity` Workload=AzureActiveDirectory  Operation="Update user."  
| eval propertyName = mvindex('ModifiedProperties{}.Name', 0) 
| search propertyName = StrongAuthenticationMethod 
| eval oldvalue = mvindex('ModifiedProperties{}.OldValue',0) 
| eval newvalue = mvindex('ModifiedProperties{}.NewValue',0) 
| rex field=newvalue max_match=0 "(?i)(?<new_method_type>\"MethodType\")" 
| rex field=oldvalue max_match=0 "(?i)(?<old_method_type>\"MethodType\")" 
| eval count_new_method_type = coalesce(mvcount(new_method_type), 0) 
| eval count_old_method_type = coalesce(mvcount(old_method_type), 0) 
|  where count_new_method_type > count_old_method_type 
|  stats earliest(_time) as firstTime latest(_time) as lastTime values(propertyName) by user newvalue oldvalue 
| `security_content_ctime(firstTime)` 
| `security_content_ctime(lastTime)` 
| `o365_new_mfa_method_registered_filter`

Macros

The SPL above uses the following Macros:

:information_source: o365_new_mfa_method_registered_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.

  • _time
  • Workload
  • Operation
  • ModifiedProperties{}.Name
  • ModifiedProperties{}.OldValue
  • ModifiedProperties{}.NewValue

How To Implement

You must install the Splunk Microsoft Office 365 Add-on and ingest Office 365 management activity events.

Known False Positives

Users may register MFA methods legitimally, investigate and filter as needed.

Associated Analytic Story

RBA

Risk Score Impact Confidence Message
30.0 60 50 A new MFA method was added for $user$

:information_source: 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