Merge pull request #1605 from setprice2245/patch-1

Create AccountAddedtoPrivilegedPIMGroup
This commit is contained in:
Shain 2021-11-21 11:51:53 -08:00 коммит произвёл GitHub
Родитель 368e61b808 97f57087e2
Коммит 9844966008
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 36 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,36 @@
id: 67ca982d-9d61-48cb-a409-acf029ed7311
name: Account Added to Privileged PIM Group
description: |
'Identifies accounts that have been added to a PIM managed privileged group'
requiredDataConnectors:
- connectorId: Azure Active Directory
dataTypes:
- AuditLogs
tactics:
- Persistence
- PrivilegeEscalation
relevantTechniques:
- T1098
- T1548
query: |
AuditLogs
| where ActivityDisplayName =~ "Add eligible member to role in PIM requested (timebound)"
| where AADOperationType =~ "CreateRequestEligibleRole"
| where TargetResources has_any ("-PRIV", "Administrator", "Security")
| extend BuiltinRole = tostring(parse_json(TargetResources[0].displayName))
| extend CustomGroup = tostring(parse_json(TargetResources[3].displayName))
| extend TargetAccount = tostring(parse_json(TargetResources[2].displayName))
| extend Initiatedby = Identity
| project TimeGenerated, ActivityDisplayName, AADOperationType, Initiatedby, TargetAccount, BuiltinRole, CustomGroup, LoggedByService, Result, ResourceId, Id
| sort by TimeGenerated desc
entityMappings:
- entityType: Account
fieldMappings:
- identifier: FullName
columnName: Initiatedby
- identifier: FullName
columnName: TargetAccount
- entityType: Azure resource
fieldMappings:
- identifier: ResourceId
columnName: ResourceId