Event ID 4726: A user account was deleted
Event ID 4726 records that an account was permanently deleted, an irreversible action since Windows never reuses a SID. Correlating it with an earlier same-day 4720 creation for the same TargetSid catches the disposable-account pattern: an attacker who creates, uses, and deletes an account within hours to erase the persistence artifact.
What Triggers Event 4726
Event 4726 records that an account object was permanently deleted. Unlike a disable, 4725, which leaves the account, its SID, and its history intact and reversible, deletion removes the object outright. The account's SID is never reused by Windows, which is why this event marks a genuinely final state: there is no undelete operation, and any later account with the same username is a completely new object with a new SID, no relationship to the deleted one beyond a coincidentally shared display name.
SubjectUserSid, SubjectUserName, and SubjectLogonId identify who performed the deletion, correlating back to their own 4624 logon session. TargetUserName, TargetSid, and TargetDomainName identify the account that was removed. Because the SID is never reused, TargetSid is the reliable join key for correlating this event against everything else that account ever did: its creation, its group memberships, its logon history, all of it ties back to the same SID even after the account name itself no longer exists anywhere in the directory.
Routine account deletion is a normal part of account lifecycle management: offboarding cleanup, decommissioning service accounts tied to retired systems, and periodic hygiene passes removing stale objects that were disabled long ago and are now being cleared out for good. None of that is inherently notable, and in most environments the majority of 4726 volume falls into exactly this bucket, performed by a known, narrow set of IT-admin identities as a deliberate, usually batched, cleanup step.
The pattern that turns this event from routine cleanup into an attacker signature is speed, specifically the gap between an account's creation and its deletion. An attacker who creates a backdoor account, 4720, uses it for whatever the operation required, and deletes it, 4726, the same day or within a few hours is removing the persistence artifact before a routine account-listing audit would ever notice it existed. A disposable account with a lifespan measured in hours rather than the weeks or months a legitimate account typically survives is a distinctive shape a static, point-in-time directory audit structurally cannot catch, since by the time anyone looks, the account is already gone.
A second pattern worth its own check: deletion of an account that still held privileged group membership at the moment it was removed. Legitimate offboarding processes typically remove group memberships before deleting the account, or the memberships simply drop away as a side effect of deletion, but a privileged account deleted without any preceding membership cleanup is either a shortcut in an otherwise legitimate process or, less benignly, an attacker removing evidence of an account they had already escalated, in a single step, without the intermediate cleanup a careful human administrator would typically perform.
Mass deletion waves are the third pattern, structurally identical to the mass-disable pattern covered on the 4725 page but categorically more severe, since deletion cannot be undone by simply re-enabling the account. A high-volume deletion event outside any documented decommissioning project is a strong candidate for destructive, impact-stage activity under the same MITRE T1531 umbrella as mass account disabling.
Event 4726 Fields
| Field | What it tells you | Simulated value |
|---|---|---|
SubjectUserSid | SID of the account that performed the delete operation. | S-1-5-21-424242-1050 |
SubjectUserName | Account name that performed the delete operation. | adm.lopez |
SubjectLogonId | Logon session ID of the Subject, correlates back to their 4624. | 0x3a58c4 |
TargetUserName | Account name that was deleted. | j.smith |
TargetSid | SID of the account that was deleted; the SID is never reused, which is why the deletion is forensically final. | S-1-5-21-424242-801716 |
TargetDomainName | Domain or computer name of the account that was deleted. | corp.socsimulator.example |
Inspect Event 4726 Values
Click a field to inspect the full simulated value, the way you would expand it in a SIEM event view.
Example Event 4726 Log
A representative Security entry for Event 4726, generated deterministically by our telemetry engine so every field holds a realistic, internally consistent value.
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-Security-Auditing" />
<EventID>4726</EventID>
<Version>0</Version>
<Level>0</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8020000000000000</Keywords>
<TimeCreated SystemTime="2025-08-08T12:45:29.000Z" />
<EventRecordID>508050</EventRecordID>
<Channel>Security</Channel>
<Computer>WS-SIM-001.corp.socsimulator.example</Computer>
<Security />
</System>
<EventData>
<Data Name="SubjectUserSid">S-1-5-21-424242-1050</Data>
<Data Name="SubjectUserName">adm.lopez</Data>
<Data Name="SubjectLogonId">0x3a58c4</Data>
<Data Name="TargetUserName">j.smith</Data>
<Data Name="TargetSid">S-1-5-21-424242-801716</Data>
<Data Name="TargetDomainName">corp.socsimulator.example</Data>
</EventData>
</Event>Detecting Event 4726
Account deleted within minutes of a suspicious action (attacker deleting the account they abused, T1070-adjacent cleanup)
Lucene is the base filter; the short-window correlation against prior activity runs in your SIEM.
index=wineventlog sourcetype=WinEventLog:Security EventCode=4726
| join Target_Account_Name [ search index=wineventlog sourcetype=WinEventLog:Security EventCode=4720 earliest=-1d
| rename _time as created_time, Subject_Account_Name as creator
| fields Target_Account_Name, created_time, creator ]
| eval created_and_deleted_within_a_day=1
| table _time, created_time, creator, Subject_Account_Name, Target_Account_NameDeletion of an account still holding privileged group membership at time of delete
index=wineventlog sourcetype=WinEventLog:Security EventCode=4726 | lookup privileged_accounts.csv Target_Account_Name OUTPUT is_privileged | where is_privileged="true" | table _time, Subject_Account_Name, Target_Account_Name
Mass account-deletion wave
index=wineventlog sourcetype=WinEventLog:Security EventCode=4726 | bucket _time span=1h | stats dc(Target_Account_Name) as deleted_count by _time | where deleted_count >= 10
True Positive vs False Positive
The baseline for 4726 is narrow in most organizations, similar in shape to the other administrative account-lifecycle events on this dataset: a small, known set of IT-admin accounts performing deletions as part of scheduled cleanup or documented offboarding, usually in batches, usually traceable to a specific decommissioning project or a periodic hygiene cycle.
The create-then-delete-same-day correlation is the highest-value single check available for this event, and it is worth running continuously rather than as a periodic review, since it catches exactly the disposable-account pattern that a static directory listing cannot. Join every 4726 against 4720 events for the same TargetSid within the preceding 24 hours; any match deserves investigation into what the account actually did during its brief existence, since the deletion itself was almost certainly a deliberate attempt to erase that history before anyone went looking for it.
Deletion of a currently privileged account is the second axis, and the threshold for review should be low: maintain the same privileged-account watchlist used for the reset, disable, and group-membership detections on this dataset, and treat any deletion touching that list as worth a look regardless of Subject identity, since privileged-account lifecycle changes should always have a documented trail, and their absence is informative on its own.
Mass deletion waves warrant the same volume-threshold treatment as mass disables, with an even lower tolerance given the irreversibility involved: a documented decommissioning project is easy to allowlist by Subject account and time window once identified, and any deletion volume outside that allowlist reaching a similar threshold deserves immediate escalation rather than a queued review, since the window to intervene closes the moment the deletion completes.
Subject identity remains the baseline secondary check: deletions performed by an account outside your known IT-admin or decommissioning-automation population are worth investigating on their own merits even when the Target account itself looks unremarkable, since an unfamiliar Subject exercising delete rights is itself worth understanding. False positives cluster around under-documented cleanup automation and infrequent but legitimate bulk decommissioning projects; both are best handled by explicitly allowlisting the responsible Subject accounts and time windows once confirmed, the same pattern that resolves false positives across every other account-management event in this dataset.
Practice Investigating Event 4726
No published room targets Event 4726 directly yet. The detection skills transfer, though: practice alert triage on realistic consoles across 37 free rooms in SOCSimulator Operations.
Browse free operationsFrequently Asked Questions
- What does event ID 4726 mean?
- It means an account object was permanently deleted. Unlike a disable (4725), deletion removes the account and its SID entirely; Windows never reuses a SID, so the deletion is forensically final and the account cannot simply be re-enabled.
- What is the difference between event 4726 and event 4725?
- 4725 disables an account, a reversible state that keeps the object intact. 4726 deletes the account object outright, an irreversible action that also drops the account from every group it belonged to.
- Why would an attacker delete an account they created?
- A disposable account created for one operation and deleted the same day removes evidence of the account's existence, shortening the window a defender has to notice it during a routine account-listing audit. Pairing 4720 creation with a same-day 4726 deletion is a stronger tell than either event alone.
Sources
“Field schema (SubjectUserSid/SubjectUserName/SubjectLogonId/TargetUserName/TargetSid/TargetDomainName) for the account-deleted event, and that a deleted SID is never reused”
“T1531 Account Access Removal frames account deletion as an access-removal/impact technique”
Related SOC Training Resources
Event ID 4725: A User Account Was Disabled & Ransomware-Prep Detection
Event ID 4725 fires when an account is disabled. Learn the Subject/Target fields, the 4725 vs 4726 distinction, and how …
Read more Event IDEvent ID 4720: User Account Created & How to Detect It
Event ID 4720 logs every new user account, local or domain. Learn the SubjectUserName vs TargetUserName fields and detec…
Read more Event IDEvent ID 4723: Password Change Attempt (Self-Service) & Detection
Event ID 4723 fires when a user changes their own password. Learn the difference from 4724, the Audit Failure signal, an…
Read more GlossaryWhat is Persistence? SOC Glossary
Persistence is the set of techniques an adversary uses to keep access to a compromised system after whatever gave them t…
Read more GlossaryWhat is Least Privilege? SOC Glossary
The principle of least privilege states that users, processes, and systems should hold only the minimum access rights re…
Read more GlossaryWhat is SIEM? SOC Glossary
Security Information and Event Management (SIEM) is a platform that aggregates, normalizes, and correlates log data from…
Read more Career PathSOC Analyst (Tier 1) Career Guide: Salary & Skills
Tier 1 SOC Analysts are the front line. You monitor alert queues, triage incoming detections, classify them as true or f…
Read more Career PathIncident Responder Career Guide: Salary & Skills
Incident Responders lead the technical response when confirmed breaches happen. You coordinate containment, run forensic…
Read more ComparisonSOCSimulator vs. LetsDefend: Platform Comparison
SOCSimulator wins on operational realism. You get multi-tool shift simulation with SLA pressure, noise injection, and al…
Read more Event IDWindows Event ID Library: SOC Reference
Windows Security and Sysmon event IDs with simulated log samples, field tables, and tested detection queries.
Read more FeatureShift Mode: Real-Time SOC Simulation
Practice alert triage under realistic time pressure with SLA timers and noise injection.
Read more FeatureOperations: Guided Training Operations
Structured CTF-style investigation operations covering real-world attack scenarios.
Read more