Try in Splunk Security Cloud

Description

The following analytic identifies the assignment of sensitive and privileged Azure Active Directory roles to an Azure AD user. Adversaries and red teams alike may assign these roles to a compromised account to establish Persistence in an Azure AD environment.

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

  • Last Updated: 2022-08-29
  • Author: Mauricio Velazco, Splunk
  • ID: a28f0bc3-3400-4a6e-a2da-89b9e95f0d2a

Annotations

ATT&CK

ATT&CK

ID Technique Tactic
T1098 Account Manipulation Persistence
T1098.003 Additional Cloud Roles Persistence
Kill Chain Phase
  • Installation
NIST
  • DE.CM
CIS20
  • CIS 3
  • CIS 5
  • CIS 16
CVE
1
2
3
4
5
6
7
8
9
10
 `azuread` "body.operationName"="Add member to role" 
| rename body.properties.* as * 
| rename targetResources{}.userPrincipalName as userPrincipalName 
| rename initiatedBy.user.userPrincipalName as initiatedBy 
| rename targetResources{}.modifiedProperties{}.newValue as roles 
| eval role=mvindex(roles,1) 
| lookup privileged_azure_ad_roles azureadrole AS role OUTPUT isprvilegedadrole description 
| search isprvilegedadrole = True 
| stats values(userPrincipalName) by _time, initiatedBy, result, body.operationName, role, description 
| `azure_ad_privileged_role_assigned_filter`

Macros

The SPL above uses the following Macros:

:information_source: azure_ad_privileged_role_assigned_filter is a empty macro by default. It allows the user to filter out any results (false positives) without editing the SPL.

Lookups

The SPL above uses the following Lookups:

Required fields

List of fields required to use this analytic.

  • _time
  • body.properties.targetResources{}.userPrincipalName
  • body.properties.targetResources{}.type
  • 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

Administrators will legitimately assign the privileged roles users as part of administrative tasks. Filter as needed.

Associated Analytic Story

RBA

Risk Score Impact Confidence Message
63.0 70 90 A privileged Azure AD role was assigned for User $userPrincipalName$ initiated 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