Has utilized PsExec to execute batch scripts that modify firewall settings.1 Medusa Group has also enabled and modified firewall rules to allow for RDP connections for lateral movement and device interactions.1
Disable or Modify System Firewall T1686
- Tactic
- Defense Impairment
- Platforms
- ESXi, Linux, macOS, Network Devices, Windows
- Version
- 1.0
- Created
- 14 April 2026
- Last modified
- 12 May 2026
Adversaries may disable or modify host-based or network firewalls to impair defensive mechanisms and enable further action. Once an adversary has gathered sufficient privileges, they can tamper with firewall services, policies, or rule sets to remove restrictions on inbound or outbound traffic. For example, this may include turning off firewall profiles, altering existing rules to permit previously blocked ports or protocols, or adding new rules that create covert communication paths (e.g., adding a new firewall rule for a well-known protocol (such as RDP) using a non-traditional and potentially less securitized port.[1]
Disable or Modify System Firewall MITRE reference T1686
13 groups have been recorded using this technique. Newest first; each entry carries MITRE’s procedure text and a link to the group’s full record. Click a name to filter the rules below.
Has used the TABLEFLIP traffic redirection utility and the esxcli command line to modify firewall rules.123
Modified system firewall settings during PlugX installation using netsh.exe to open a listening, random high number port on victim devices.1
Has made changes to the Access Control List (ACL) and loopback interface address on compromised devices.1
Modified firewall rules on victim machines to enable remote system discovery.12
Prior to executing a backdoor ToddyCat has run cmd /c start /b netsh advfirewall firewall add rule name="SGAccessInboundRule" dir=in protocol=udp action=allow localport=49683 to allow the targeted system to receive UDP packets on port 49683.1
All 13 groups for this technique · 6 newest in this preview
2 campaigns have been recorded using this technique. Listed newest first; dates are year-granularity and attribution is MITRE’s.
Leviathan modified system firewalls to add two open listening ports on 9998 and 9999 during Leviathan Australian Intrusions.1
During the SolarWinds Compromise, APT29 used netsh to configure firewall rules that limited certain UDP outbound packets.1
All 2 campaigns for this technique
15 software entries are documented implementing this technique. MITRE files each as a tool or as malware; newest first, then by how many groups carry them.
Can use the Django python module "django.views.decorators.csrf” along with the decorator “csrf_exempt” within victim firewalls to disable cross-site request forgery protections.1
Can modify local firewall settings via netsh commands to open a listening UDP port.1
Turns on the system firewall and deletes all of its rules during execution.12
Starts a shell on a high TCP port starting at 42391 up to 43391, then changes the local iptables rules to redirect all packets from the attacker to the shell port.1
Has modified firewall rules to allow incoming SMB, NetBIOS, and RPC connections using netsh.exe on remote machines.1
Can block the Deibold Warsaw GAS Tecnologia security tool at the firewall level.1
All 15 software entries for this technique · 6 newest in this preview
Offense vs defense T1686
Is defensive coverage keeping up with adversary use? Eight counts, each ranked against all 697 ATT&CK techniques. Attack sits left, defense right, so a shape leaning left means adversaries are better documented here than defenders are equipped. Hover any spoke for its percentile and the share of techniques that have more. The timeline below shows when each side arrived.
How it got here
Adversary activity (campaign spans) over cumulative rule output. Each source is plotted independently from zero, so neither line includes the other. Campaign dates are year-granularity.
Disable or Modify System Firewall detection strategy DET0145
MITRE names one behaviour worth catching for this technique and breaks it into 5 analytics, one per platform. Each carries the log sources it needs and the fields you tune per environment.
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.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Process CreationDC0032 | WinEventLog:Security | EventCode=4688 |
| Windows Registry Key ModificationDC0063 | WinEventLog:Sysmon | EventCode=13, 14 |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| MonitoredCommands | List of admin tools and scripts allowed to legitimately modify firewall settings. |
| AlertThreshold | Number of firewall rule changes within a time window before triggering alert. |
AN0407 · Linux
Detection of iptables, nftables, or firewalld rule modifications. Correlation of sudden drops in active firewall rules with suspicious processes suggests adversarial evasion.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Process CreationDC0032 | linux:osquery | execution of known firewall binaries |
| Command ExecutionDC0064 | auditd:SYSCALL | execve: iptables, nft, firewall-cmd modifications |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| AllowedScripts | Baseline admin scripts allowed to make firewall modifications. |
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.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Command ExecutionDC0064 | macos:unifiedlog | pfctl -d, socketfilterfw --setglobalstate off, or modifications to com.apple.alf |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| PFConfigFiles | Monitor for baseline pf.conf and custom rule file modifications. |
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.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Firewall Rule ModificationDC0051 | esxi:hostd | vSphere API calls modifying firewall settings |
| Command ExecutionDC0064 | esxi:hostd | esxcli network firewall set commands |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| APIMethods | Whitelist of authorized vSphere API methods for firewall configuration. |
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.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Firewall Rule ModificationDC0051 | networkdevice:cli | firewall disable commands or suspicious ACL modifications |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| AuthorizedAdmins | List of approved admin accounts allowed to modify firewall ACLs. |
Routinely check account role permissions to ensure only expected users and roles have permission to modify system firewalls.
Ensure proper process and file permissions are in place to prevent adversaries from disabling or modifying firewall settings.
Ensure proper Registry permissions are in place to prevent adversaries from disabling or modifying firewall settings.
Ensure proper user permissions are in place to prevent adversaries from disabling or modifying firewall settings.
Tests from Atomic Red Team (MIT licence) · technique definition