Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

4.5 KB
Raw Blame
id: splunk-security-content-59b0fc85-7a0d-4585-97ec-06a382801990
name: Windows AD Dangerous Group ACL Modification
description: 'This detection monitors the addition of the following ACLs to an Active
  Directory group object: "Full control", "All extended rights", "All validated writes",  "Create
  all child objects", "Delete all child objects", "Delete subtree", "Delete", "Modify
  permissions", "Modify owner", and "Write all properties".  Such modifications can
  indicate potential privilege escalation or malicious activity. Immediate investigation
  is recommended upon alert.'
severity: medium
enabled: false
tags:
  mitre:
  - T1222.001
  - T1484
  categories:
  - endpoint
references:
- https://learn.microsoft.com/en-us/windows/win32/secauthz/ace-strings
- https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adts/1522b774-6464-41a3-87a5-1e5633c3fbbb
- https://trustedsec.com/blog/a-hitchhackers-guide-to-dacl-based-detections-part-1-a
- https://lantern.splunk.com/Security/Product_Tips/Enterprise_Security/Enabling_an_audit_trail_from_Active_Directory
logsource:
  product: splunk
detection:
  splunk_spl: '`wineventlog_security` EventCode=5136 ObjectClass=group | stats min(_time)
    as _time values(eval(if(OperationType=="%%14675",AttributeValue,null))) as old_value
    values(eval(if(OperationType=="%%14674",AttributeValue,null))) as new_value values(OperationType)
    as OperationType values(dest) as dest by ObjectClass ObjectDN OpCorrelationID
    src_user SubjectLogonId  | rex field=old_value max_match=10000 "\((?P<old_values>.*?)\)"  |
    rex field=new_value max_match=10000 "\((?P<new_ace>.*?)\)"  | mvexpand new_ace  |
    where NOT new_ace IN (old_values)  | rex field=new_ace "(?P<aceType>.*?);(?P<aceFlags>.*?);(?P<aceAccessRights>.*?);(?P<aceObjectGuid>.*?);(?P<aceInheritedTypeGuid>.*?);(?P<aceSid>.*?)$"  |
    rex max_match=100 field=aceAccessRights "(?P<AccessRights>[A-Z]{2})"  | rex max_match=100
    field=aceFlags "(?P<aceFlags>[A-Z]{2})"  | lookup ace_type_lookup ace_type_string
    as aceType OUTPUT ace_type_value as aceType | lookup ace_flag_lookup flag_string
    as aceFlags OUTPUT flag_value as ace_flag_value | lookup ace_access_rights_lookup
    access_rights_string as AccessRights OUTPUT access_rights_value  | lookup msad_guid_lookup
    guid as aceObjectGuid OUTPUT displayName as ControlAccessRights ``` Optional SID
    resolution lookups | lookup identity_lookup_expanded objectSid as aceSid OUTPUT
    downLevelDomainName as user  | lookup admon_groups_def objectSid as aceSid OUTPUT
    cn as group ``` | lookup builtin_groups_lookup builtin_group_string  as aceSid
    OUTPUT builtin_group_name as builtin_group | eval aceType=coalesce(ace_type_value,aceType),
    aceInheritance=coalesce(ace_flag_value,"This object only"), aceAccessRights=if(aceAccessRights="CCDCLCSWRPWPDTLOCRSDRCWDWO","Full
    control",coalesce(access_rights_value,AccessRights)), aceControlAccessRights=if((ControlAccessRights="Write
    member" OR aceObjectGuid="bf9679c0-0de6-11d0-a285-00aa003049e2") AND (aceAccessRights="All
    validated writes" OR AccessRights="SW"),"Add/remove self as member",coalesce(ControlAccessRights,aceObjectGuid)),
    user=coalesce(user, group, builtin_group, aceSid) | stats values(aceType) as aceType
    values(aceInheritance) as aceInheritance values(aceControlAccessRights) as aceControlAccessRights
    values(aceAccessRights) as aceAccessRights values(new_ace) as new_ace values(aceInheritedTypeGuid)
    as aceInheritedTypeGuid by _time ObjectClass ObjectDN src_user SubjectLogonId
    user OpCorrelationID | eval aceControlAccessRights=if(mvcount(aceControlAccessRights)=1
    AND aceControlAccessRights="","All rights",''aceControlAccessRights'') | search
    NOT aceType IN ("*denied*","D","OD","XD") AND aceAccessRights IN ("Full control","All
    extended rights","All validated writes","Create all child objects","Delete all
    child objects","Delete subtree","Delete","Modify permissions","Modify owner","Write
    all properties",CC,CR,DC,DT,SD,SW,WD,WO,WP) | `windows_ad_dangerous_group_acl_modification_filter`'
provenance:
  source: splunk/security_content
  source_id: 59b0fc85-7a0d-4585-97ec-06a382801990
  source_commit: 4d4c7ee
  license: Apache-2.0
  license_url: https://github.com/splunk/security_content/blob/develop/LICENSE
  imported_at: '2026-05-04'
  imported_by: splunk_importer
  upstream_path: detections/endpoint/windows_ad_dangerous_group_acl_modification.yml
notes:
  splunk_status: production
  splunk_data_source: []
  quarantine_reason: raw SPL — needs translation to AiSOC detection schema