Skip to content

Windows Event ID 4766: An attempt to add SID History to an account failed

Written when adding SID History to an account fails. Paired with the success version 4765, it captures attempts at SID History operations.

Overview

The subcategory is Audit User Account Management. It is generated when a SID addition to sIDHistory fails. It appears on failures due to duplication, conflict, insufficient privilege, and so on.

How it is triggered

  • When a SID History addition by a migration tool or manual operation fails for some reason.

Security review points

  • It lacks the direct impact of success 4765, but it can be a trace of an attempt to inject SID History. It may indicate attacker trial and error, so monitor it together with the success version.
  • If 4766 appears with no migration plan, suspect an illicit SID History attempt and investigate the source.

Notes for log review

  • It is normally rare. Do not ignore it because it is a failure; record and check it as the fact that someone tried to touch SID History.
  • Together with 4765, track all SID History-related operations.

MITRE ATT&CK mapping

TechniqueTacticWhat this event shows
T1134.005 SID-History InjectionStealth, Privilege EscalationTraces of a failed SID History injection attempt

Mapping as of ATT&CK v19.2. To search by technique, see the ATT&CK reverse lookup.

Detection rules

SigmaHQ has 1 public detection rule that uses this event ID as a condition.

RuleTypeSeverity
Addition of SID History to Active Directory ObjectSigmaMedium

Rules are collected from SigmaHQ r2026-07-01 and from Azure-Sentinel as of 2026-10-09, limited to those whose conditions include this event ID. Sentinel rules are limited to those that query the SecurityEvent or WindowsEvent table. “Threat-specific” rules target a particular threat group or malware, and “needs setup” rules require values for your environment. Severity is the value each rule’s author assigned.

Key fields

FieldMeaning
Target Account\Account NameThe target account
Subject\Account NameThe subject that attempted the operation

References