VeriKQL by Kaushik Saha

T1686 Disable or Modify System Firewall

Defense Impairmenton attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0145 Detection of Disabled or Modified System Firewalls across OS Platforms.

AN0406 Windows

Detection of firewall tampering by monitoring processes executing netsh, PowerShell Set-NetFirewallProfile, or sc stop mpssvc. Registry modifications under HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy also indicate adversarial actions.

MITRE log sourceIn Microsoft Sentinel
WinEventLog:SecurityEventCode=4688
  • Windows Security Events via AMA → SecurityEvent
    SecurityEvent | where EventID in (4688)
  • Security Events via Legacy Agent → SecurityEvent
    SecurityEvent | where EventID in (4688)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel == "Security" | where EventID in (4688)

The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only.

WinEventLog:SysmonEventCode=13, 14
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (13, 14)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (13, 14)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

AN0407 Linux

Detection of iptables, nftables, or firewalld rule modifications. Correlation of sudden drops in active firewall rules with suspicious processes suggests adversarial evasion.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLexecve: iptables, nft, firewall-cmd modificationsNot mapped to Sentinel yet.
linux:osqueryexecution of known firewall binariesNot mapped to Sentinel yet.

AN0408 macOS

Detection of PF firewall rule modifications via pfctl, socketfilterfw, or defaults write to com.apple.alf. Adversaries often disable firewall profiles entirely or whitelist malicious processes.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedlogpfctl -d, socketfilterfw --setglobalstate off, or modifications to com.apple.alfNot mapped to Sentinel yet.

AN0409 ESXi

Detection of firewall changes using esxcli network firewall set or vSphere API modifications. Sudden disabling of firewall rules across management interfaces is a strong adversarial signal.

MITRE log sourceIn Microsoft Sentinel
esxi:hostdesxcli network firewall set commandsNot mapped to Sentinel yet.
esxi:hostdvSphere API calls modifying firewall settingsNot mapped to Sentinel yet.

AN0410 Network Devices

Detection of firewall ACL or rule base changes through CLI (e.g., no access-list, permit any any). Monitor configuration commits from unusual users or sessions.

MITRE log sourceIn Microsoft Sentinel
networkdevice:clifirewall disable commands or suspicious ACL modificationsNot mapped to Sentinel yet.

Content Hub rules tagged with it (19)

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

In Sigma rules

36 SigmaHQ community rules name it or one of its sub-techniques in their tags.

Showing 25 of 36: stable rules first, then by level.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

Sub-techniques

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.