Cross-source coverage

T1562.004 / ATT&CK

Impair Defenses: Disable or Modify System Firewall

ATT&CK has retired this technique. Rules still tag it; the current id is T1686 Disable or Modify System Firewall.

26 rules across 6 sources.

From MITRE ATT&CK 19.2

Adversaries may disable or modify system firewalls in order to bypass controls limiting network usage. Changes could be disabling the entire mechanism as well as adding, deleting, or modifying particular rules. This can be done numerous ways depending on the operating system, including via command-line, editing Windows Registry keys, and Windows Control Panel.

Modifying or disabling a system firewall may enable adversary C2 communications, lateral movement, and/or data exfiltration that would otherwise not be allowed. For example, adversaries may add a new firewall rule for a well-known protocol (such as RDP) using a non-traditional and potentially less securitized port (i.e. Non-Standard Port).

Adversaries may also modify host networking settings that indirectly manipulate system firewalls, such as interface bandwidth or network connection request thresholds. Settings related to enabling abuse of various Remote Services may also indirectly modify firewall rules.

In ESXi, firewall rules may be modified directly via the esxcli command line interface (e.g., via esxcli network firewall set) or via the vCenter user interface.

Tactics
Stealth
Platforms
ESXi · Linux · macOS · Network Devices · Windows
Telemetry

Wazuh Core Ruleset

9 rules
Detection Severity Format
Netsh used to add firewall rule referencing port 5900, usually used for VNC Critical Wazuh XML
Netsh used to add firewall rule High Wazuh XML
ASA: Firewall configuration changed. Medium Wazuh XML
ASA: User created or modified on the Firewall. Medium Wazuh XML
Fortigate: Multiple default tunneling setting events from same source. Medium Wazuh XML
Netscreen firewall: configuration changed. Medium Wazuh XML
PIX: Firewall configuration changed. Medium Wazuh XML
PIX: Firewall configuration deleted. Medium Wazuh XML
PIX: User created or modified on the Firewall. Medium Wazuh XML

elastic/detection-rules

7 rules
Detection Severity Format
FortiGate Overly Permissive Firewall Policy Created High Elastic TOML
Attempt to Disable IPTables or Firewall Medium Elastic TOML
Disable Windows Firewall Rules via Netsh Medium Elastic TOML
Enable Host Network Discovery via Netsh Medium Elastic TOML
Potential Evasion via Windows Filtering Platform Medium Elastic TOML
Remote Desktop Enabled in Windows Firewall by Netsh Medium Elastic TOML
Windows Firewall Disabled via PowerShell Medium Elastic TOML

socfortress/Wazuh-Rules

6 rules
Detection Severity Format
Access to UFW firewall log detected — potential reconnaissance before firewall tampering (T1562.004) command= tail /var/log/ufw.log High Wazuh XML
Attempt to disable UFW firewall logging — potential defense evasion (T1562.004) command= ufw logging off High Wazuh XML
Execution of iptables-save — possible firewall config enumeration or backup (T1562.004) command = iptables-save High Wazuh XML
iptables -F executed — firewall rules flushed (T1562.004) command= iptables -F High Wazuh XML
iptables INPUT rule added — possible firewall rule injection (T1562.004) still need to be fixed , it's not matching yet with the command = iptables -A INPUT -p tcp --dport 9999 -j ACCEPT and sudo iptables -A INPUT -p tcp --dport 9999 -j ACCEPT High Wazuh XML
UFW firewall disable attempt detected — potential defense evasion (T1562.004) command = ufw disable High Wazuh XML

panther-labs/panther-analysis

2 rules
Detection Severity Format
AWS WAF Disassociation Critical Panther Python
Azure Firewall Policy Deleted High Panther Python

Azure/Azure-Sentinel

1 rule
Detection Severity Format
Potential rootkit network activity missing from MDE Undefined KQL

elastic/protections-artifacts

1 rule
Detection Severity Format
Windows Firewall Exception List Modified via Untrusted Process Undefined Elastic TOML

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.