Skip to content
SIEMBench
100% Client-Side Tool • Inputs Never Sent to Our Servers

Event ID 1102

Event ID 1102: Security Log Cleared

The audit log was cleared

Log source
Security
How to enable it
Always on. It cannot be disabled by audit policy
Category
Defense Evasion
Priority
Critical
Typical volume
Rare
MITRE ATT&CK
  • T1685.005 Disable or Modify Tools: Clear Windows Event Logs

T1685.005 replaces T1070.001, which older guides still use.

What Event ID 1102 means

1102 is the first record in a Security log that has just been emptied. Windows writes it regardless of audit settings, so clearing the log always leaves this one trace, naming the account and session that did it.

There is almost never a good reason to clear the Security log on a production system. Size limits are handled by overwriting, and archiving does not require clearing. Treat every occurrence as hostile until a named person explains it, since the action destroys evidence by definition.

What the event does not show is what was removed. That answer has to come from elsewhere: forwarded copies, the System and application logs, PowerShell and Sysmon channels, shadow copies of the log file, and the records of other computers that this one talked to.

Key fields to inspect

FieldMeaningSuspicious when
SubjectUserName Account that cleared the log. Any person or service. There is no expected value.
SubjectDomainName Domain or computer of the account. The local computer name, which shows a local administrator.
SubjectLogonId Session that cleared it. Look for it in forwarded logs, since local history is gone.
SubjectUserSid Security identifier of the account. S-1-5-18 (SYSTEM), which suggests a tool or exploit instead of a person.
ClientProcessId Process that asked for it. Windows 11 and newer builds. Match it to Sysmon event 1 for wevtutil.exe or powershell.exe.

Detection queries

Alert on every occurrence, and add other activity by the same account on that host in the hour before. Adjust names and thresholds to your environment. About these queries.

Splunk SPL

index=windows source="XmlWinEventLog:Security" EventCode=1102
| rename SubjectUserName AS actor
| table _time Computer actor SubjectLogonId
| map maxsearches=10 search="search index=windows Computer=$Computer$ earliest=$_time$-3600 latest=$_time$ (EventCode=4624 OR EventCode=4688 OR EventCode=4672) | stats count BY Computer EventCode"

Microsoft Sentinel KQL

SecurityEvent
| where EventID == 1102
| extend Actor = extract(@"<SubjectUserName>([^<]+)", 1, EventData)
| project TimeGenerated, Computer, Account, Actor, Activity

PowerShell

Get-WinEvent -FilterHashtable @{ LogName = 'Security'; Id = 1102; StartTime = (Get-Date).AddDays(-365) } |
  ForEach-Object { $d = @{ Time = $_.TimeCreated }; ([xml]$_.ToXml()).Event.UserData.FirstChild.ChildNodes | ForEach-Object { $d[$_.LocalName] = $_.InnerText }; [pscustomobject]$d } |
  Select-Object Time, SubjectUserName, SubjectDomainName, SubjectLogonId | Format-Table -AutoSize

Attack scenarios

Cleanup at the end of an intrusion

wevtutil cl Security, Clear-EventLog or a menu in Event Viewer empties the log after the work is done. Ransomware operators commonly clear Security, System and Application together, which adds event 104.

Cleanup in the middle

Some tools clear the log after each stage. Several 1102 events on one host mean several phases, and the interval between them is a window with surviving evidence.

Tampering that avoids 1102

Stopping the event log threads or editing the file leaves no 1102. Gaps in EventRecordID, or a host that falls silent while it is clearly running, reveal that method.

Investigation checklist

  1. Preserve the host: take memory and disk images before anyone restarts it.
  2. Collect forwarded Security events for the host up to the time of clearing.
  3. Read System, PowerShell, Sysmon, Defender and TaskScheduler logs, which may be intact.
  4. Check volume shadow copies for an older Security.evtx.
  5. Follow the account to every other host it used in the same period.

Common benign causes

Event ID 1102 FAQ

Can event 1102 be prevented by an attacker?

Not by audit policy. It can be avoided by not using the clear function, for example by suspending the event log service or editing the file. Forward events to another system so that local tampering cannot remove them.

Can a cleared Security log be recovered?

Sometimes. Forwarded copies are the best source. Records may also be carved from unallocated space or from the file itself, and shadow copies may contain an earlier version of Security.evtx.

Is 1102 logged when the log becomes full?

No. A full log is either overwritten or archived according to its settings. Archiving is recorded as 1105, and a full log that cannot be written is recorded as 1104.

Techniques follow MITRE ATT&CK® v20.1. © 2026 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation (license). Field names were checked against Microsoft documentation and provider schemas.