List Local Firewall Deletions
Local Firewall Deletions
Query
DeviceProcessEvents
| where ProcessCommandLine contains "firewall delete"
| where InitiatingProcessFileName != "Microsoft.Tri.Sensor.Updater.exe" // DFI sensor
| project-reorder
Timestamp,
DeviceName,
AccountName,
ProcessCommandLine,
InitiatingProcessCommandLineAbout this query
List Local Firewall Deletions
Query Information
Description
List Local Firewall Deletions
Defender XDR
Sentinel
DeviceProcessEvents
| where ProcessCommandLine contains "firewall delete"
| where InitiatingProcessFileName != "Microsoft.Tri.Sensor.Updater.exe" // DFI sensor
| project-reorder
TimeGenerated,
DeviceName,
AccountName,
ProcessCommandLine,
InitiatingProcessCommandLine
Explanation
This query is designed to identify and list instances where local firewall rules have been deleted on devices. It searches through device process events to find any command lines that include the phrase "firewall delete," which indicates a firewall rule deletion. The query excludes any deletions initiated by the "Microsoft.Tri.Sensor.Updater.exe" process, as these are likely legitimate updates from Microsoft's Defender for Identity sensor.
The query retrieves and organizes the following information for each deletion event:
- Timestamp/TimeGenerated: The exact time when the event occurred.
- DeviceName: The name of the device where the deletion took place.
- AccountName: The user account that executed the deletion command.
- ProcessCommandLine: The full command line that was used to delete the firewall rule.
- InitiatingProcessCommandLine: The command line of the process that initiated the deletion.
This information is useful for security monitoring and auditing, helping to identify unauthorized or suspicious firewall rule deletions on devices within a network.
Details

Bert-Jan Pals
Released: December 1, 2024
Tables
Keywords
Operators