Detection rules › Sigma

Roles Assigned Outside PIM

Status
test
Severity
high
Log source
product azure, service pim
Author
Mark Morowczynski '@markmorow', Gloria Lee, '@gleeiamglo'
Source
github.com/SigmaHQ/sigma

Identifies when a privilege role assignment has taken place outside of PIM and may indicate an attack.

Known false positives

  • Investigate where users are being assigned privileged roles outside of Privileged Identity Management and prohibit future assignments from there.

MITRE ATT&CK coverage

TacticTechniques
Initial Access
Persistence
Privilege Escalation
Stealth

Rule body

title: Roles Assigned Outside PIM
id: b1bc08d1-8224-4758-a0e6-fbcfc98c73bb
status: test
description: Identifies when a privilege role assignment has taken place outside of PIM and may indicate an attack.
references:
    - https://learn.microsoft.com/en-us/entra/id-governance/privileged-identity-management/pim-how-to-configure-security-alerts#roles-are-being-assigned-outside-of-privileged-identity-management
author: Mark Morowczynski '@markmorow', Gloria Lee, '@gleeiamglo'
date: 2023-09-14
tags:
    - attack.initial-access
    - attack.stealth
    - attack.t1078
    - attack.persistence
    - attack.privilege-escalation
logsource:
    product: azure
    service: pim
detection:
    selection:
        riskEventType: 'rolesAssignedOutsidePrivilegedIdentityManagementAlertConfiguration'
    condition: selection
falsepositives:
    - Investigate where users are being assigned privileged roles outside of Privileged Identity Management and prohibit future assignments from there.
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    riskEventType: 'rolesAssignedOutsidePrivilegedIdentityManagementAlertConfiguration'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
riskEventTypeeq
  • rolesAssignedOutsidePrivilegedIdentityManagementAlertConfiguration
field:"azure_ad::risk_event_types" kind:eq value:"rolesAssignedOutsidePrivilegedIdentityManagementAlertConfiguration"