-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathOwnerAddedToHighPrivilegedApplication.yaml
45 lines (45 loc) · 1.4 KB
/
OwnerAddedToHighPrivilegedApplication.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
id: b6d4f7fe-2f5b-45e8-8f3d-b259ebe4100a
name: Owner added to high privileged application
version: 1.0.1
kind: Scheduled
description: An owner was added to application holding high privileged API permissions
severity: Medium
queryFrequency: 30m
queryPeriod: 30m
triggerOperator: gt
triggerThreshold: 0
tactics:
- PrivilegeEscalation
query: |-
AuditLogs
| where OperationName == "Add owner to application"
| extend SearchKey = tostring(TargetResources[1].id)
| join kind=inner _GetWatchlist('HighRiskApps') on SearchKey
| extend TargetUser = tostring(TargetResources[0].userPrincipalName)
| extend Actor = tostring(InitiatedBy.user.userPrincipalName)
| extend TargetResourcesName = iff(isnotempty(TargetResources[0].displayName),TargetResources[0].displayName,TargetResources[0].id)
suppressionEnabled: false
incidentConfiguration:
createIncident: true
groupingConfiguration:
matchingMethod: AllEntities
reopenClosedIncident: false
groupByCustomDetails: []
groupByEntities: []
groupByAlertDetails: []
lookbackDuration: 5h
enabled: false
eventGroupingSettings:
aggregationKind: AlertPerResult
customDetails:
TargetApp: TargetResourcesName
entityMappings:
- entityType: Account
fieldMappings:
- columnName: TargetUser
identifier: FullName
- entityType: Account
fieldMappings:
- columnName: Actor
identifier: FullName
suppressionDuration: 5h