MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Initial Access | T1133 External Remote Services, T1190 Exploit Public-Facing Application |
Rule body kusto
id: 38f9e010-51ca-11ec-bf63-0242ac130002
name: PaloAlto - User privileges was changed
description: |
'Detects changing of user privileges.'
severity: Medium
status: Available
requiredDataConnectors:
- connectorId: CefAma
dataTypes:
- CommonSecurityLog
queryFrequency: 1h
queryPeriod: 14d
triggerOperator: gt
triggerThreshold: 0
tactics:
- InitialAccess
relevantTechniques:
- T1190
- T1133
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
entityMappings:
- entityType: Account
fieldMappings:
- identifier: Name
columnName: AccountCustomEntity
version: 1.0.4
kind: Scheduled
Stages and Predicates
Parameters
let q_period = 14d;
let dt_lookBack = 24h;
Let binding: p
let p = PaloAltoCDLEvent
| where TimeGenerated between (ago(q_period)..ago(dt_lookBack))
| summarize OldPrivileges = make_set(DestinationUserPrivileges) by DstUsername;
Derived from q_period, dt_lookBack.
Stage 1: source
PaloAltoCDLEvent
Stage 2: where
| where TimeGenerated > ago(dt_lookBack)
Stage 3: summarize
| summarize NewPrivileges = make_set(DestinationUserPrivileges) by DstUsername
Stage 4: join
| join kind=innerunique (p) on DstUsername
Stage 5: where
| where tostring(OldPrivileges) != tostring(NewPrivileges)
Stage 6: extend
| extend AccountCustomEntity = DstUsername
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
OldPrivileges | ne |
|
Output fields
Fields the rule emits when it matches. Chronicle authors list these in the outcome block; they appear on the detection and $risk_score drives alerting. Sentinel / Defender XDR rules build them up through project / summarize / extend stages. Sentinel maps these into alert fields via entityMappings and customDetails; Defender XDR custom detections surface them as alert fields directly.
| Field | Source |
|---|---|
DstUsername | summarize |
NewPrivileges | summarize |
AccountCustomEntity | extend |