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).[1]
Adversaries may also modify host networking settings that indirectly manipulate system firewalls, such as interface bandwidth or network connection request thresholds.[2] 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.[3][4]
| ID | Name | Description |
|---|---|---|
| C0051 | APT28 Nearest Neighbor Campaign |
During APT28 Nearest Neighbor Campaign, APT28 added rules to a victim's Windows firewall to set up a series of port-forwards allowing traffic to target systems.[5] |
| G0082 | APT38 |
APT38 have created firewall exemptions on specific ports, including ports 443, 6443, 8443, and 9443.[6] |
| S0031 | BACKSPACE |
The "ZR" variant of BACKSPACE will check to see if known host-based firewalls are installed on the infected systems. BACKSPACE will attempt to establish a C2 channel, then will examine open windows to identify a pop-up from the firewall software and will simulate a mouse-click to allow the connection to proceed.[7] |
| S0245 | BADCALL |
BADCALL disables the Windows firewall before binding to a port.[8] |
| G1043 | BlackByte |
BlackByte modified firewall rules on victim machines to enable remote system discovery.[9][10] |
| S1181 | BlackByte 2.0 Ransomware |
BlackByte 2.0 Ransomware modifies the Windows firewall during execution.[11] |
| S1161 | BPFDoor |
BPFDoor starts a shell on a high TCP port starting at 42391 up to 43391, then changes the local |
| G0008 | Carbanak |
Carbanak may use netsh to add local firewall rule exceptions.[13] |
| S0492 | CookieMiner |
CookieMiner has checked for the presence of "Little Snitch", macOS network monitoring and application firewall software, stopping and exiting if it is found.[14] |
| S0687 | Cyclops Blink |
Cyclops Blink can modify the Linux iptables firewall to enable C2 communication on network devices via a stored list of port numbers.[15][16] |
| S0334 | DarkComet |
DarkComet can disable Security Center functions like the Windows Firewall.[17][18] |
| G0035 | Dragonfly |
Dragonfly has disabled host-based firewalls. The group has also globally opened port 3389.[19] |
| G0046 | FIN7 |
FIN7 has added a firewall rule to allow TCP port 59999 inbound and a rule to allow sshd.exe on TCP port 9898.[20] |
| S0531 | Grandoreiro |
Grandoreiro can block the Deibold Warsaw GAS Tecnologia security tool at the firewall level.[21] |
| S0132 | H1N1 | |
| S1211 | Hannotog |
Hannotog can modify local firewall settings via |
| S0246 | HARDRAIN |
HARDRAIN opens the Windows Firewall to modify incoming connections.[24] |
| S0376 | HOPLIGHT | |
| S0260 | InvisiMole |
InvisiMole has a command to disable routing and the Firewall on the victim’s machine.[26] |
| S0088 | Kasidet |
Kasidet has the ability to change firewall settings to allow a plug-in to be downloaded.[27] |
| G0094 | Kimsuky |
Kimsuky has been observed disabling the system firewall.[28] |
| G0032 | Lazarus Group |
Various Lazarus Group malware modifies the Windows firewall to allow incoming connections or disable it entirely using netsh. [29][30][31] |
| C0049 | Leviathan Australian Intrusions |
Leviathan modified system firewalls to add two open listening ports on 9998 and 9999 during Leviathan Australian Intrusions.[32] |
| G0059 | Magic Hound |
Magic Hound has added the following rule to a victim's Windows firewall to allow RDP traffic - |
| G1051 | Medusa Group |
Medusa Group has utilized PsExec to execute batch scripts that modify firewall settings.[35] Medusa Group has also enabled and modified firewall rules to allow for RDP connections for lateral movement and device interactions.[35] |
| G1009 | Moses Staff |
Moses Staff has used batch scripts that can disable the Windows firewall on specific remote machines.[36] |
| S0336 | NanoCore | |
| S0108 | netsh |
netsh can be used to disable local firewall settings.[39][40] |
| S0385 | njRAT |
njRAT has modified the Windows firewall to allow itself to communicate through the firewall.[41][42] |
| G0049 | OilRig |
OilRig has modified Windows firewall rules to enable remote access.[43] |
| C0014 | Operation Wocao |
During Operation Wocao, threat actors used PowerShell to add and delete rules in the Windows firewall.[44] |
| S0013 | PlugX |
PlugX has modified local firewall rules on victim machines to enable a random, high-number listening port for subsequent access and C2 activity.[45] |
| S1032 | PyDCrypt |
PyDCrypt has modified firewall rules to allow incoming SMB, NetBIOS, and RPC connections using |
| S0125 | Remsec |
Remsec can add or remove applications or ports on the Windows firewall or disable it entirely.[46] |
| G0106 | Rocke |
Rocke used scripts which killed processes and added firewall rules to block traffic related to other cryptominers.[47] |
| G1045 | Salt Typhoon |
Salt Typhoon has made changes to the Access Control List (ACL) and loopback interface address on compromised devices.[48] |
| S1178 | ShrinkLocker |
ShrinkLocker turns on the system firewall and deletes all of its rules during execution.[49][50] |
| C0024 | SolarWinds Compromise |
During the SolarWinds Compromise, APT29 used |
| G0139 | TeamTNT | |
| S1223 | THINCRUST |
THINCRUST 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.[53] |
| G1022 | ToddyCat |
Prior to executing a backdoor ToddyCat has run |
| S0263 | TYPEFRAME |
TYPEFRAME can open the Windows Firewall on the victim’s machine to allow incoming connections.[55] |
| G1048 | UNC3886 |
UNC3886 has used the TABLEFLIP traffic redirection utility and the esxcli command line to modify firewall rules.[56][57][53] |
| G1047 | Velvet Ant |
Velvet Ant modified system firewall settings during PlugX installation using |
| S0412 | ZxShell |
ZxShell can disable the firewall by modifying the registry key |
| ID | Mitigation | Description |
|---|---|---|
| M1047 | Audit |
Routinely check account role permissions to ensure only expected users and roles have permission to modify system firewalls. |
| M1022 | Restrict File and Directory Permissions |
Ensure proper process and file permissions are in place to prevent adversaries from disabling or modifying firewall settings. |
| M1024 | Restrict Registry Permissions |
Ensure proper Registry permissions are in place to prevent adversaries from disabling or modifying firewall settings. |
| M1018 | User Account Management |
Ensure proper user permissions are in place to prevent adversaries from disabling or modifying firewall settings. |
| ID | Name | Analytic ID | Analytic Description |
|---|---|---|---|
| DET0145 | Detection of Disabled or Modified System Firewalls across OS Platforms. | AN0406 |
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. |
| AN0407 |
Detection of iptables, nftables, or firewalld rule modifications. Correlation of sudden drops in active firewall rules with suspicious processes suggests adversarial evasion. |
||
| AN0408 |
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. |
||
| AN0409 |
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. |
||
| AN0410 |
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. |