Try in Splunk Security Cloud

Description

The following analytic identifies an Azure AD user enabling a previously disabled account and resetting its password within 2 minutes. This behavior could represent an adversary who has obtained administrative access and is trying to establish a backdoor identity within an Azure AD tenant.

  • Type: TTP
  • Product: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud

  • Last Updated: 2022-08-29
  • Author: Mauricio Velazco, Splunk
  • ID: 1347b9e8-2daa-4a6f-be73-b421d3d9e268

Annotations

ATT&CK

ATT&CK

ID Technique Tactic
T1098 Account Manipulation Persistence
Kill Chain Phase
  • Installation
  • Actions on Objectives
NIST
  • DE.CM
CIS20
  • CIS 3
  • CIS 5
  • CIS 16
CVE
1
2
3
4
5
6
7
 `azuread` (body.operationName="Enable account" OR body.operationName="Reset password (by admin)" OR body.operationName="Update user") 
| transaction body.properties.targetResources{}.userPrincipalName startsWith=(body.operationName="Enable account") endsWith=(body.operationName="Reset password (by admin)") maxspan=2m 
| rename body.properties.* as * 
| rename targetResources{}.userPrincipalName as userPrincipalName 
| rename initiatedBy.user.userPrincipalName as initiatedBy 
| stats values(body.operationName) values(initiatedBy) by _time, userPrincipalName, result 
| `azure_ad_user_enabled_and_password_reset_filter`

Macros

The SPL above uses the following Macros:

:information_source: azure_ad_user_enabled_and_password_reset_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
  • body.operationName
  • body.properties.targetResources{}.userPrincipalName
  • body.properties.initiatedBy.user.userPrincipalName
  • body.properties.result

How To Implement

You must install the latest version of Splunk Add-on for Microsoft Cloud Services from Splunkbase(https://splunkbase.splunk.com/app/3110/#/details). You must be ingesting Azure Active Directory events into your Splunk environment. Specifically, this analytic leverages the AuditLogs log category.

Known False Positives

While not common, Administrators may enable accounts and reset their passwords for legitimate reasons. Filter as needed.

Associated Analytic Story

RBA

Risk Score Impact Confidence Message
45.0 50 90 A user account, $displayName$, was enabled and its password reset within 2 minutes by $initiatedBy$

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