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

Event ID 5025

Event ID 5025: Windows Firewall Stopped

The Windows Firewall service was stopped

Log source
Security
How to enable it
System > Audit Other System Events (Success)
Category
Defense Evasion
Priority
Critical
Typical volume
Rare
MITRE ATT&CK

What Event ID 5025 means

5025 is logged when the Windows Firewall service (mpssvc) stops. On current versions an administrator cannot stop it with ordinary commands, because the service is protected and Microsoft does not support running without it. A stop outside of shutdown therefore implies something deliberate and privileged.

Most people who turn the firewall off do so through its profiles, with netsh advfirewall set allprofiles state off or Set-NetFirewallProfile. That does not stop the service and does not create this event. It is reported as 4950 (a setting has changed) and in the Firewall operational log, so monitor both.

The event has no fields at all. Everything useful comes from its surroundings: the host, the time, and what else happened in the same minute.

Key fields to inspect

FieldMeaningSuspicious when
Computer Host that logged it, from the event header. Any server or workstation that was not shutting down.
TimeCreated When it happened, from the event header. A time with no restart (System events 1074 and 6006) nearby.
ProcessID Process that wrote the event, from the Execution element of the header. Identifies the writer and not the cause, so use 4688 for that.
EventRecordID Sequence number, from the event header. A gap just before or after, which suggests log tampering.

Detection queries

Alert when the service stops and no shutdown was recorded on that host within five minutes. Adjust names and thresholds to your environment. About these queries.

Splunk SPL

index=windows ((source="XmlWinEventLog:Security" EventCode=5025) OR (source="XmlWinEventLog:System" (EventCode=1074 OR EventCode=6006)))
| bin _time span=5m
| stats values(EventCode) AS codes BY _time Computer
| where isnotnull(mvfind(codes, "5025")) AND isnull(mvfind(codes, "1074|6006"))

Microsoft Sentinel KQL

let shutdowns = Event
| where EventLog == "System" and EventID in (1074, 6006)
| project Computer, Shutdown = TimeGenerated;
SecurityEvent
| where EventID == 5025
| join kind=leftouter shutdowns on Computer
| extend Near = isnotnull(Shutdown) and abs(datetime_diff("second", TimeGenerated, Shutdown)) <= 300
| summarize NearShutdown = max(toint(Near)) by TimeGenerated, Computer
| where NearShutdown != 1

PowerShell

Get-WinEvent -FilterHashtable @{ LogName = 'Security'; Id = 5025; StartTime = (Get-Date).AddDays(-30) } |
  Select-Object TimeCreated, MachineName, RecordId, Message |
  Format-List

Attack scenarios

Disabling host protection as SYSTEM

With SYSTEM or TrustedInstaller rights an attacker can end or disable the service so that tools, tunnels and remote administration work without any rule. Expect 7040 for mpssvc if the start type was changed.

Collateral damage from a kernel attack

Tools that end protected processes through a vulnerable driver may take the firewall down together with the security agent. The driver service (7045) appears a few moments earlier.

Investigation checklist

  1. Rule out a shutdown or restart with System events 1074, 6006 and 6005.
  2. Check the state of mpssvc and of each firewall profile.
  3. Look for 7040, 7045 and stops of security services in the same minute.
  4. Review inbound connections while protection was down.
  5. Isolate the host if no legitimate cause is found.

Common benign causes

Event ID 5025 FAQ

Is 5025 logged when I turn off the firewall with netsh?

No. Turning off a profile leaves the service running. Look for 4950 in the Security log, or event 2003 in the Windows Firewall With Advanced Security log, where newer versions use 2082.

Can an administrator stop the Windows Firewall service?

Not through normal means on current Windows versions, where access is denied even to administrators. Stopping it requires higher rights or tampering, which is why the event is suspicious.

Why does event 5025 have no details?

Its definition contains no data fields. Use the header for time and host, and correlate with service and process events to find the cause.

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.