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

AdminSDHolder Modifications

Back
Id52aec824-96c1-4a03-8e44-bb70532e6cea
RulenameAdminSDHolder Modifications
DescriptionThis query detects modification in the AdminSDHolder in the Active Directory which could indicate an attempt for persistence.

AdminSDHolder Modification is a persistence technique in which an attacker abuses the SDProp process in Active Directory to establish a persistent backdoor to Active Directory.

This query searches for the event id 5136 where the Object DN is AdminSDHolder.

Ref: https://attack.stealthbits.com/adminsdholder-modification-ad-persistence
SeverityHigh
TacticsPersistence
TechniquesT1078
Required data connectorsSecurityEvents
KindScheduled
Query frequency1h
Query period1h
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Detections/SecurityEvent/AdminSDHolder_Modifications.yaml
Version1.0.4
Arm template52aec824-96c1-4a03-8e44-bb70532e6cea.json
Deploy To Azure
SecurityEvent
| where EventID == 5136 and EventData contains "<Data Name=\"ObjectDN\">CN=AdminSDHolder,CN=System"
| parse EventData with * 'ObjectDN">' ObjectDN "<" *
| summarize StartTime = min(TimeGenerated), EndTime = max(TimeGenerated) by Computer, SubjectAccount, SubjectUserSid, SubjectLogonId, ObjectDN
| extend HostName = tostring(split(Computer, ".")[0]), DomainIndex = toint(indexof(Computer, '.'))
| extend HostNameDomain = iff(DomainIndex != -1, substring(Computer, DomainIndex + 1), Computer)
| extend Name = tostring(split(SubjectAccount, "\\")[1]), NTDomain = tostring(split(SubjectAccount, "\\")[0])
kind: Scheduled
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Detections/SecurityEvent/AdminSDHolder_Modifications.yaml
query: |
  SecurityEvent
  | where EventID == 5136 and EventData contains "<Data Name=\"ObjectDN\">CN=AdminSDHolder,CN=System"
  | parse EventData with * 'ObjectDN">' ObjectDN "<" *
  | summarize StartTime = min(TimeGenerated), EndTime = max(TimeGenerated) by Computer, SubjectAccount, SubjectUserSid, SubjectLogonId, ObjectDN
  | extend HostName = tostring(split(Computer, ".")[0]), DomainIndex = toint(indexof(Computer, '.'))
  | extend HostNameDomain = iff(DomainIndex != -1, substring(Computer, DomainIndex + 1), Computer)
  | extend Name = tostring(split(SubjectAccount, "\\")[1]), NTDomain = tostring(split(SubjectAccount, "\\")[0])  
requiredDataConnectors:
- dataTypes:
  - SecurityEvent
  connectorId: SecurityEvents
tactics:
- Persistence
name: AdminSDHolder Modifications
metadata:
  source:
    kind: Community
  author:
    name: Vasileios Paschalidis
  support:
    tier: Community
  categories:
    domains:
    - Security - Others
relevantTechniques:
- T1078
severity: High
entityMappings:
- fieldMappings:
  - identifier: FullName
    columnName: SubjectAccount
  - identifier: Name
    columnName: Name
  - identifier: NTDomain
    columnName: NTDomain
  entityType: Account
- fieldMappings:
  - identifier: FullName
    columnName: Computer
  - identifier: HostName
    columnName: HostName
  - identifier: DnsDomain
    columnName: HostNameDomain
  entityType: Host
queryFrequency: 1h
description: |
  'This query detects modification in the AdminSDHolder  in the Active Directory which could indicate an attempt for persistence. 
  AdminSDHolder Modification is a persistence technique in which an attacker abuses the SDProp process in Active Directory to establish a persistent backdoor to Active Directory.
  This query searches for the event id 5136 where the Object DN is AdminSDHolder.
  Ref: https://attack.stealthbits.com/adminsdholder-modification-ad-persistence'  
triggerThreshold: 0
triggerOperator: gt
version: 1.0.4
queryPeriod: 1h
id: 52aec824-96c1-4a03-8e44-bb70532e6cea