Merge pull request #4883 from BlackB0lt/patch-2

New Detection - KrbRelayUp Tool
This commit is contained in:
aprakash13 2022-06-10 13:13:12 -07:00 коммит произвёл GitHub
Родитель c71e501f69 57faeee943
Коммит 35364def51
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 38 добавлений и 0 удалений

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

@ -0,0 +1,38 @@
id: 06f83b36-a1df-4045-98a5-deda74d84e4a
name: KrbRelayUp Local Privilege Escalation Service Creation
description: |
'This query detects the default service name created by KrbRelayUp. KrbRelayUp is Local Privilege Escalation tool that combine features of Rubeus and KrbRelay.
severity: High
requiredDataConnectors:
- connectorId: SecurityEvents
dataTypes:
- Event
queryFrequency: 1h
queryPeriod: 1h
triggerOperator: gt
triggerThreshold: 0
tactics:
- PrivilegeEscalation
relevantTechniques:
- T1543
query: |
let MaliciousService = dynamic (["KrbSCM"]);
Event
| where Source == "Service Control Manager" and EventID == 7045
| parse EventData with * 'ServiceName">' ServiceName "<" * 'ImagePath">' ImagePath "<" *
| where ServiceName has_any (MaliciousService) or ImagePath has_any (MaliciousService)
| parse EventData with * 'AccountName">' AccountName "<" *
|summarize StartTime = min(TimeGenerated), EndTime = max(TimeGenerated) by EventID, Computer, ServiceName, ImagePath, AccountName
entityMappings:
- entityType: Account
fieldMappings:
- identifier: FullName
columnName: AccountName
- entityType: File
fieldMappings:
- identifier: Name
columnName: ImagePath
- entityType: Host
fieldMappings:
- identifier: FullName
columnName: Computer