Event ID 4725
Event ID 4725: User Account Disabled
A user account was disabled
- Log source
- Security
- How to enable it
- Account Management > Audit User Account Management (Success)
- Category
- Account Management
- Priority
- Medium
- Typical volume
- Low
- MITRE ATT&CK
What Event ID 4725 means
4725 marks an account being turned off. It is usually good news: a leaver processed on time, or a responder containing a compromised identity. Security teams rely on it to confirm that containment really happened and when.
It is also a weapon. Disabling accounts removes defenders from the fight without deleting anything, and a destructive actor with directory rights can disable hundreds in a loop. The signal is the number of targets and who they are.
The event records the moment but not the reason. Existing sessions are not ended by it, and a Kerberos ticket that has already been issued can keep working for hours. A disabled account that still generates activity is therefore expected for a while, and worth watching closely.
Key fields to inspect
| Field | Meaning | Suspicious when |
|---|---|---|
TargetUserName | Account that was disabled. | Several administrators, security staff or backup accounts together. |
SubjectUserName | Who disabled it. | An account that does not belong to the identity or security team. |
TargetDomainName | Domain, or computer for local accounts. | The same local account disabled on many hosts. |
SubjectLogonId | Session that made the change. | A session that also deleted logs or changed policy. |
TargetSid | Security identifier of the account. | Use it for correlation, because it survives renaming. |
Detection queries
Alert when one person disables many accounts within thirty minutes. Adjust names and thresholds to your environment. About these queries.
Splunk SPL
index=windows source="XmlWinEventLog:Security" EventCode=4725
| bin _time span=30m
| stats dc(TargetSid) AS disabled values(TargetUserName) AS names BY _time SubjectUserName Computer
| where disabled>=5 Microsoft Sentinel KQL
SecurityEvent
| where EventID == 4725
| summarize Disabled = dcount(TargetSid), Names = make_set(TargetUserName, 100) by SubjectUserName, Computer, bin(TimeGenerated, 30m)
| where Disabled >= 5 PowerShell
Get-WinEvent -FilterHashtable @{ LogName = 'Security'; Id = 4725; StartTime = (Get-Date).AddDays(-7) } |
ForEach-Object { $d = @{ Time = $_.TimeCreated }; ([xml]$_.ToXml()).Event.EventData.Data | ForEach-Object { $d[$_.Name] = $_.'#text' }; [pscustomobject]$d } |
Select-Object Time, SubjectUserName, TargetUserName, TargetDomainName | Format-Table -AutoSize Attack scenarios
Account access removal before ransomware
With domain administrator rights, the operator disables other administrators, so that nobody can intervene while encryption runs. Expect 4725 in a burst, accompanied by resets (4724) and changes to Group Policy.
Covering the use of a temporary account
An intruder who enabled a dormant account may disable it again to restore the earlier state. A short 4722 to 4725 interval with logons between is the trace that remains.
Investigation checklist
- Confirm with the subject, out of band, that the change was intended.
- Count targets and check whether they share a role.
- Search for activity by the disabled accounts afterwards, including Kerberos service tickets.
- If it is hostile, use a break-glass account to regain control before you re-enable anything.
Common benign causes
- Offboarding jobs, often nightly and under one service account.
- Cleanup of inactive accounts.
- Containment by the security team during an incident.
Event ID 4725 FAQ
Does disabling an account end its active sessions?
No. Open sessions continue, and Kerberos tickets that were already issued can be used until they expire. Sign the user out of their computers and wait out or purge tickets to complete containment.
What is the difference between 4725 and 4740?
4725 is a deliberate administrative action that disables an account. 4740 is automatic, and happens when too many wrong passwords trigger the lockout policy.
Does account expiry generate 4725?
No. An expired account stays enabled and simply refuses logons after its date. The event is written only when the disabled flag is set.