Skip to content
SOC Analyst Role
  • Loading index…

↑↓ navigate · ↵ open · Esc close

en

Security · Account

4726 · A user account was deleted

Event 4726 is logged when a user account is deleted. Attackers delete the accounts they created to cover their tracks, and destructive actors may delete legitimate accounts to cause disruption. Pairing a 4726 with an earlier 4720 for the same name or SID often reveals a short-lived backdoor account.

medium prioritySecurity logAccountMITRE T1531

Where it is logged

Domain accounts: Security log on the domain controller. Local accounts: Security log on the machine. Requires Audit User Account Management for Success.

Key fields to read

FieldWhat it tells you
TargetUserNameAccount that was deleted.
TargetSidSID of the deleted account, the reliable pivot to its 4720 and logons.
SubjectUserNameAccount that deleted it.
SubjectLogonIdLogon ID of the operator session.
PrivilegeListAdditional privileges used, normally -.

Sample event

4726 — synthetic example
EventID: 4726
TimeCreated: 2026-03-16T23:48:09.560Z
Computer: NW-DC-01.northwind.local
SubjectUserName: adm.jlopez
SubjectDomainName: NORTHWIND
SubjectLogonId: 0x9A40B37
TargetUserName: svc_backup2
TargetDomainName: NORTHWIND
TargetSid: S-1-5-21-3623811015-3361044348-30300820-2841
PrivilegeList: -

How to triage it

  1. 1Search for a 4720 with the same TargetSid: an account created and deleted within days, especially by the same operator, is a strong backdoor indicator.
  2. 2Review everything the deleted account did while it existed (4624, 4768, 4688, group changes), because it can no longer be inspected in AD.
  3. 3Validate the deletion against offboarding records and tickets.
  4. 4Check the operator session (SubjectLogonId) and look for other cleanup actions (1102, 4725, 4719).
  5. 5Escalate deletions of privileged or unticketed accounts; AD Recycle Bin may allow restoration if needed as evidence.

Benign vs suspicious

Usually benign

  • Planned cleanup of leaver accounts after a retention period.
  • Removal of test or temporary accounts by IT.
  • Software uninstallers removing local service accounts they created.

Red flags

  • An account deleted shortly after its own creation (4720) and use.
  • Deletion out of hours by an account that also created or modified the same account.
  • Bulk deletions or deletion of admin and service accounts without a ticket.

Hunt for it: Splunk & KQL

Splunk SPL
index=wineventlog (EventCode=4720 OR EventCode=4726)
| stats min(eval(if(EventCode=4720,_time,null()))) AS created max(eval(if(EventCode=4726,_time,null()))) AS deleted values(src_user) AS operators BY Target_Account_Name
| where isnotnull(created) AND isnotnull(deleted)
| eval lifetime_h=round((deleted-created)/3600,1)
| where lifetime_h < 168
Sentinel KQL
let created = SecurityEvent
| where EventID == 4720
| project CreatedTime = TimeGenerated, TargetSid, Creator = SubjectUserName;
SecurityEvent
| where EventID == 4726
| project DeletedTime = TimeGenerated, TargetSid, TargetUserName, Deleter = SubjectUserName, Computer
| join kind=inner created on TargetSid
| extend LifetimeHours = datetime_diff("hour", DeletedTime, CreatedTime)
| where LifetimeHours < 168

Field names depend on your add-on and table. More translations in the Splunk vs KQL cheat sheet.

Interview question

“An account was deleted last night. How do you reconstruct what it was used for?”

✓ Strong answer sketch

I start from the TargetSid in the 4726, because the SID is stable even if names are reused. I search back for the 4720 that created it, any group membership changes, and every logon (4624, 4768) and process creation tied to that account, since the SIEM still has those events even though the object is gone from AD. A short-lived account created and deleted by the same operator, with logons to servers in between, is a classic backdoor pattern. I then pivot on the operator account, because whoever created and deleted it is likely compromised too.

More SOC interview questions

Frequently asked questions

What does Event ID 4726 mean?

Event ID 4726 means a user account was deleted. It records the deleted account's name and SID and the account that deleted it.

How can I tell who deleted a user in Active Directory?

Look for Event ID 4726 in the domain controllers' Security logs; SubjectUserName is the account that performed the deletion. Directory Service Changes auditing (5141) can add more detail.