Suspicious Addition of SID History to Active Directory Object (via security)

This rule detects an adversary can use the SID history attribute to gain additional privileges.

SigmamediumWindowsv1
sigma
title: Suspicious Addition of SID History to Active Directory Object (via security)
id: 7cd13e11-7e4b-58f3-abe7-46ba98cfe3e3
status: stable
description: This rule detects an adversary can use the SID history attribute to gain additional privileges.
references:
    - https://attack.mitre.org/techniques/T1134/005/
    - https://adsecurity.org/?p=1772
author: Huntrule Team
date: 2026-04-13
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.stealth
    - attack.t1134.005
logsource:
    product: windows
    service: security
detection:
    selection1:
        EventID:
            - 4765
            - 4766
    selection2:
        EventID: 4738
    selection3:
        SidHistory:
            - '-'
            - '%%1793'
    filter_null:
        SidHistory:
    condition: selection1 or (selection2 and not selection3 and not filter_null)
falsepositives:
    - Unknown
level: medium

Known false positives

  • Unknown

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.