Event ID 4929: ad replica source naming context removed
What Event ID 4929 (ad replica source naming context removed) means, the fields to check, what is normal and what is suspicious, with PowerShell and KQL queries to find it.
Event ID 4929 is the partner of 4928: a domain controller stopped replicating a naming context from a source. Normal when a DC is demoted or the replication topology changes. In a DCShadow attack the rogue DC is added as a source, pushes its changes and is removed again, so 4928 and 4929 for the same unfamiliar source a few minutes apart is the pattern to look for.
The fields that matter
| Field | What it tells you |
|---|---|
| Destination DRA | The DC that recorded the removal. |
| Source DRA | The partner that was removed. Compare with your DC list. |
| Source Address | DNS or GUID-based address of the source. |
| Naming Context | The directory partition concerned. |
| Options / Status Code | Replication options and the result; 0 is success. |
What is normal
Removals during DC demotion, decommissioning or site link changes, matching a change ticket.
When Event ID 4929 is suspicious
- A 4929 for a source that never was a domain controller.
- A 4928 and 4929 pair for the same source within a short window, with directory changes (5136) in between.
Common false positive: Demoting or replacing domain controllers produces 4929 on every remaining DC.
Find Event ID 4929 with PowerShell
Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4929; StartTime=(Get-Date).AddDays(-7)} -MaxEvents 50 |
ForEach-Object {
$d = [ordered]@{ Time = $_.TimeCreated; Computer = $_.MachineName }
([xml]$_.ToXml()).Event.EventData.Data | ForEach-Object { $d[$_.Name] = $_.'#text' }
[pscustomobject]$d
} | Format-List
Microsoft Sentinel (KQL)
SecurityEvent
| where TimeGenerated > ago(7d) and EventID == 4929
| project TimeGenerated, Computer, Account, Activity, EventData
| order by TimeGenerated desc
Related events
- Event ID 4928: AD replica source naming context established
- Event ID 5136: Directory object modified
- Event ID 4662: Operation performed on an AD object
FAQ
Do I need both 4928 and 4929 to detect DCShadow?
Either is a good signal on its own if the source is not a real DC. Seeing both, close together, is close to conclusive.
Windows Event Triage reads a CSV, EVTX-to-JSON or XML export in your browser and flags brute force, new admins, suspicious services and log clearing.
IOC Triage, our free browser extension: right-click it for a verdict from 15 threat-intel sources, then copy a ready ticket note.