Microsoft Sentinel Analytic Rules
cloudbrothers.infoAzure Sentinel RepoToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

PaloAlto - User privileges was changed

Back
Id38f9e010-51ca-11ec-bf63-0242ac130002
RulenamePaloAlto - User privileges was changed
DescriptionDetects changing of user privileges.
SeverityMedium
TacticsInitialAccess
TechniquesT1190
T1133
Required data connectorsCefAma
KindScheduled
Query frequency1h
Query period14d
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/PaloAltoCDL/Analytic Rules/PaloAltoCDLPrivilegesWasChanged.yaml
Version1.0.4
Arm template38f9e010-51ca-11ec-bf63-0242ac130002.json
Deploy To Azure
let q_period = 14d;
let dt_lookBack = 24h;
let p = PaloAltoCDLEvent
| where TimeGenerated between (ago(q_period)..ago(dt_lookBack))
| summarize OldPrivileges = make_set(DestinationUserPrivileges) by DstUsername;
PaloAltoCDLEvent
| where TimeGenerated > ago(dt_lookBack)
| summarize NewPrivileges = make_set(DestinationUserPrivileges) by DstUsername
| join kind=innerunique (p) on DstUsername
| where tostring(OldPrivileges) != tostring(NewPrivileges)
| extend AccountCustomEntity = DstUsername
description: |
    'Detects changing of user privileges.'
kind: Scheduled
tactics:
- InitialAccess
requiredDataConnectors:
- connectorId: CefAma
  dataTypes:
  - CommonSecurityLog
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/PaloAltoCDL/Analytic Rules/PaloAltoCDLPrivilegesWasChanged.yaml
severity: Medium
name: PaloAlto - User privileges was changed
triggerThreshold: 0
queryPeriod: 14d
query: |
  let q_period = 14d;
  let dt_lookBack = 24h;
  let p = PaloAltoCDLEvent
  | where TimeGenerated between (ago(q_period)..ago(dt_lookBack))
  | summarize OldPrivileges = make_set(DestinationUserPrivileges) by DstUsername;
  PaloAltoCDLEvent
  | where TimeGenerated > ago(dt_lookBack)
  | summarize NewPrivileges = make_set(DestinationUserPrivileges) by DstUsername
  | join kind=innerunique (p) on DstUsername
  | where tostring(OldPrivileges) != tostring(NewPrivileges)
  | extend AccountCustomEntity = DstUsername  
relevantTechniques:
- T1190
- T1133
id: 38f9e010-51ca-11ec-bf63-0242ac130002
queryFrequency: 1h
status: Available
triggerOperator: gt
version: 1.0.4
entityMappings:
- entityType: Account
  fieldMappings:
  - columnName: AccountCustomEntity
    identifier: Name