Skip to main content
1102SecuritySystemSecurity tier 1

Event ID 1102: The audit log was cleared

Event ID 1102 records that someone cleared the Windows Security event log. Microsoft's own guidance is blunt: you should almost never see this event, and every occurrence deserves investigation. The event names the account (SubjectUserName, SubjectDomainName) and the SubjectLogonId that performed the clear, which is your starting point for tracing who did it and why.

What Triggers Event 1102

Event 1102 lives in the Other Events audit subcategory. Clearing the Security log is treated as a first-class action Windows will always record, because the whole point of the event is to survive the very act someone is trying to hide.

The provider is Microsoft-Windows-Eventlog, the service that manages the event log subsystem itself, not the Security-Auditing provider that generates the bulk of 4624/4625/4688-style events. That distinction matters operationally: 1102 is the log service reporting on itself, so it lands in the Security channel but is generated independently of whatever audit policy is configured for logon or object access.

The payload is deliberately narrow. Instead of the usual EventData block, 1102 carries a LogFileCleared structure with four fields: SubjectUserSid, SubjectUserName, SubjectDomainName, and SubjectLogonId.

SubjectUserSid and SubjectUserName identify the account that issued the clear, SubjectDomainName tells you whether that account is a domain account (NETBIOS or FQDN form) or a local account (in which case the field holds the local computer name), and SubjectLogonId is the hexadecimal logon session identifier tying this action back to the session that authenticated the user.

That last field is the single most useful piece of the event for an analyst, because it lets you pivot to the 4624 logon event that opened the session and see exactly how and when that account got onto the box in the first place.

On a single workstation, this event is rare enough that seeing it at all is notable. On a domain controller or a server holding anything of value, it should be treated as a break-glass alert every time, full stop, because there is essentially no routine administrative task that requires clearing the Security log rather than archiving and rotating it. Windows already handles log rotation through size limits and archival settings; an administrator who wants to manage log size configures retention, they do not manually invoke a clear.

The instruments that produce 1102 are narrow and well known: wevtutil cl Security from an elevated command prompt or script, the PowerShell Clear-EventLog -LogName Security cmdlet (deprecated in newer PowerShell but still functional on many hosts), or clicking Clear Log inside the Event Viewer GUI. All three route through the same underlying eventlog service call, which is why all three produce the identical 1102 record with the same field set regardless of which tool the operator used.

A SOC sees this event in a few recurring shapes. The most common malicious pattern is post-compromise cleanup: an attacker who has already escalated privileges, moved laterally, or exfiltrated data runs wevtutil cl Security as one of the last steps before disengaging, hoping to erase the logon and process-creation trail that would otherwise show how they got in and what they touched.

The second pattern is log-clearing as an anti-forensic habit baked into commodity malware and ransomware deployment scripts, where a batch file loops through all major logs (Security, System, Application) and clears each one in sequence right before or after the payload detonates.

The third, rarer pattern is a misconfigured monitoring or compliance script that someone wrote years ago to keep log files small on a legacy server, which is exactly the kind of stale automation this event is designed to surface so it can be decommissioned.

1102's closest neighbor is the System log's Event ID 104, generated by the same Eventlog provider when any log other than Security is cleared (System, Application, or a custom channel). The two events share the identical LogFileCleared schema and the same triggering mechanisms, but they land in different channels and carry different forensic weight.

1102 in the Security log is the higher-priority signal because the Security log is the one attackers have the strongest incentive to erase; 104 against the System or Application log is worth watching but is more often tied to benign disk-space housekeeping on log-heavy application servers.

A batch script that clears every log on a host will produce one 1102 and one or more 104 events in the same few seconds, and seeing that combination together is a stronger indicator of deliberate anti-forensic activity than either alone.

The reason attackers who clear the Security log still get caught by this exact mechanism is structural: the clear action is not exempt from being logged, it is the log service logging its own state change, and that entry is written to the newly-emptied log immediately after the clear completes.

An adversary who wants zero trace left behind cannot avoid generating 1102 through the standard clearing tools; the only way around it is to delete the underlying .evtx file directly from disk (which requires touching a locked file and usually needs the eventlog service stopped first, a much noisier and more detectable action) or to have never let the event reach a durable store in the first place.

That last point is the real defensive lesson: forwarding Security logs off-host in near-real-time, whether via Windows Event Forwarding, a SIEM agent, or Sysmon-adjacent shipping, defeats the entire tactic, because by the time an attacker clears the local log the 1102 event and everything preceding it has already left the machine.

Event 1102 Fields

FieldWhat it tells youSimulated value
SubjectUserSidSID of the account that cleared the Security audit log.S-1-5-21-424242-765066
SubjectUserNameAccount name of the user or process that issued the clear.a.chen
SubjectDomainNameDomain or local computer name for the acting account; local accounts show the host name here.corp.socsimulator.example
SubjectLogonIdHex logon session ID for the acting account, used to pivot back to the originating 4624 logon event.simulated-subjectlogonid-39C4A7

Inspect Event 1102 Values

Click a field to inspect the full simulated value, the way you would expand it in a SIEM event view.

Example Event 1102 Log

A representative Security entry for Event 1102, generated deterministically by our telemetry engine so every field holds a realistic, internally consistent value.

Simulated example generated by SOCSimulator Research
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-Eventlog" />
    <EventID>1102</EventID>
    <Version>0</Version>
    <Level>0</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8020000000000000</Keywords>
    <TimeCreated SystemTime="2025-11-23T23:20:57.000Z" />
    <EventRecordID>625504</EventRecordID>
    <Channel>Security</Channel>
    <Computer>WS-SIM-001.corp.socsimulator.example</Computer>
    <Security />
  </System>
  <EventData>
    <Data Name="SubjectUserSid">S-1-5-21-424242-765066</Data>
    <Data Name="SubjectUserName">a.chen</Data>
    <Data Name="SubjectDomainName">corp.socsimulator.example</Data>
    <Data Name="SubjectLogonId">simulated-subjectlogonid-39C4A7</Data>
  </EventData>
</Event>

Detecting Event 1102

Security log cleared on any host

index=wineventlog sourcetype=WinEventLog:Security EventCode=1102
| stats count min(_time) as first_seen max(_time) as last_seen by ComputerName, Account_Name, Logon_ID
| convert ctime(first_seen) ctime(last_seen)

Security log cleared alongside System log cleared (dual anti-forensic clear)

Lucene is the base filter; correlate the two channels in your SIEM.

(index=wineventlog sourcetype=WinEventLog:Security EventCode=1102) OR (index=wineventlog sourcetype=WinEventLog:System EventCode=104)
| stats count values(EventCode) as codes by ComputerName, Account_Name, _time
| where mvcount(codes) > 1

Log clear with a resolvable Logon ID, joined to its preceding 4624 logon

Lucene is the base filter; the Logon ID join runs in your SIEM.

index=wineventlog sourcetype=WinEventLog:Security EventCode=1102
| rename Logon_ID as clear_logon_id
| join clear_logon_id [ search index=wineventlog sourcetype=WinEventLog:Security (EventCode=4624 OR EventCode=4672) earliest=-1h | rename Logon_ID as clear_logon_id ]
| table _time, ComputerName, Account_Name, clear_logon_id, EventCode

Security log cleared by an account outside the approved admin list

index=wineventlog sourcetype=WinEventLog:Security EventCode=1102
| lookup domain_admins.csv Account_Name OUTPUT is_admin
| where isnull(is_admin) OR is_admin="false"
| table _time, ComputerName, Account_Name, Account_Domain

True Positive vs False Positive

The honest baseline here is that legitimate log clears are close to nonexistent in a well-run environment, which makes 1102 one of the highest-signal, lowest-volume events available to a SOC.

The rare benign case is a planned maintenance window where an administrator is decommissioning a machine, resetting a golden image, or intentionally scrubbing a test VM before re-imaging, and in every one of those cases there should be a corresponding change ticket, and the SubjectUserName should map to a known administrator whose SubjectLogonId correlates to an interactive or RDP session that started shortly before the clear, not a service account or an unfamiliar identity.

The true-positive pattern an analyst looks for starts with the account itself: does SubjectUserName correspond to an account that has no documented reason to be touching that host's audit configuration, or does the SubjectDomainName format look like a local account on a server where only domain admins should be logging on locally? From there, pull the SubjectLogonId and walk it backward to the 4624 that created it.

If that logon was itself unusual, an off-hours interactive logon, a new source IP, a logon type inconsistent with how that account normally connects, or if the same logon session shows privilege-escalation events like 4672 (special privileges assigned) immediately before the clear, the case for malicious intent gets strong fast.

A clear that follows within minutes of suspicious process creation, PsExec or WMI lateral movement, or a spike in failed logons that suddenly stops is a textbook cover-tracks sequence and should be treated as a near-certain compromise indicator rather than something to triage slowly.

The false-positive side is narrow but real, and analysts need to rule it out quickly rather than dismiss every 1102 as noise. Confirm there is an actual change ticket or scheduled maintenance record for that host and timestamp; confirm the acting account is a real, known administrator rather than a shared or service account; and confirm no other suspicious activity, lateral movement indicators, new scheduled tasks, or unexpected outbound connections appear in the window immediately before the clear on that host or its neighbors.

If any of those checks fail, or if the host is a domain controller, a jump box, or anything holding privileged credentials, escalate regardless of who the account claims to be, because the entire value of this event is that it should almost never fire, and an analyst who waves it through on the assumption that it's routine maintenance is the exact gap this event exists to close.

MITRE ATT&CK® Techniques

Event 1102 telemetry feeds detections for these ATT&CK® techniques:

Practice Investigating Event 1102

Reading about the audit log was cleared is one thing. Working the detection inside a live console is another. These free SOCSimulator operations cover the attack techniques Event 1102 helps you detect:

Start investigating free

Frequently Asked Questions

What does event ID 1102 mean?
It means the Windows Security event log was cleared, and the event itself records who did it. The LogFileCleared payload carries the SubjectUserName, SubjectDomainName, SubjectUserSid, and SubjectLogonId of the account that issued the clear, so the identity is captured in the same moment the log is wiped.
Is event ID 1102 always malicious?
Not always, but it should always be investigated. Legitimate clears happen occasionally during planned decommissioning or image resets, but they are rare enough that Microsoft's own guidance says you typically should not see this event at all. Any 1102 on a server or domain controller without a matching change ticket is a high-priority alert.
How do I detect event 1102 in Splunk?
Splunk Security Content's log-clearing detection matches on wineventlog_security EventCode=1102 combined with wineventlog_system EventCode=104 in an OR, since attackers frequently clear both the Security and System logs in the same script. It aggregates by host, user, and timestamp to surface the clearing pattern.
What is the difference between event 1102 and event 104?
Both are generated by the same Microsoft-Windows-Eventlog provider using the identical LogFileCleared schema, but 1102 fires specifically when the Security log is cleared while 104 fires when any other log, System, Application, or a custom channel, is cleared. 1102 is the higher-priority signal because attackers target the Security log to erase logon and privilege-use history.
Can attackers avoid generating event 1102 when they clear logs?
Not through the normal clearing tools. wevtutil cl, Clear-EventLog, and the Event Viewer GUI all route through the eventlog service, which writes the 1102 record as part of the clear operation itself. The only ways around it are directly deleting the .evtx file on disk, a noisier action that usually requires stopping the eventlog service, or forwarding logs off-host before the clear happens so the event never depended on the local copy surviving.

Sources

Event description, LogFileCleared field schema (SubjectUserSid/SubjectUserName/SubjectDomainName/SubjectLogonId), provider Microsoft-Windows-Eventlog, and the monitoring recommendation that this event should typically not occur

Splunk Security Content detection logic combining EventCode=1102 (Security log) with EventCode=104 (System log) via OR, grounding the 1102-vs-104 comparison and the SPL query pattern

Elastic detection-rules proposal for event.code:1102, its winlog.user_data.SubjectUserName field mapping, and the noted false-positive case of scheduled log-cleanup scripts

T1070 Indicator Removal is the current MITRE ATT&CK Enterprise technique covering log clearing as a defense-evasion tactic

Glossary

What is Log Management? SOC Glossary

Log management is the process of collecting, normalizing, storing, retaining, and analyzing log data from across the IT …

Read more
Glossary

What 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
Glossary

What is Incident Response? SOC Glossary

Incident response (IR) is the structured, repeatable process an organization follows before, during, and after a securit…

Read more
Career Path

SOC Analyst (Tier 2) Career Guide: Salary & Skills

Tier 2 SOC Analysts handle the investigations that Tier 1 escalates. You dig into multi-stage attacks, coordinate contai…

Read more
Career Path

Incident Responder Career Guide: Salary & Skills

Incident Responders lead the technical response when confirmed breaches happen. You coordinate containment, run forensic…

Read more
Technique

Indicator Removal (T1070): Detection Training

Indicator Removal is the cleanup step: an adversary deletes or alters the artifacts that would expose the intrusion, cle…

Read more
Comparison

SOCSimulator 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 ID

Windows Event ID Library: SOC Reference

Windows Security and Sysmon event IDs with simulated log samples, field tables, and tested detection queries.

Read more
Feature

Shift Mode: Real-Time SOC Simulation

Practice alert triage under realistic time pressure with SLA timers and noise injection.

Read more
Feature

Operations: Guided Training Operations

Structured CTF-style investigation operations covering real-world attack scenarios.

Read more
Blog

SOCSimulator Blog: Security Training Insights

Articles on SOC analyst skills, detection engineering, and career development.

Read more
Feature

SOCSimulator Pricing: Free Plan Available

Compare free and Pro tiers.

Read more