Sub-technique of T1686 Disable or Modify System Firewall.View on attack.mitre.org
Adversaries may disable or modify the Windows host firewall to bypass controls limiting network usage. This can include disabling the Windows host firewall entirely, suppressing specific profiles (domain, private, public), or adding, deleting, and modifying firewall rules to allow or restrict traffic.
Adversaries may perform these modifications through multiple mechanisms depending on the Windows operating system and access level. For example, adversaries may use command-line utilities (e.g., `netsh advfirewall` or PowerShell cmdlets like `Set-NetFirewallProfile`, `New-NetFirewallRule`), Windows Registry modifications (e.g., altering firewall states and rule configurations via registry keys), or the Windows Control Panel to modify firewall settings through the Windows Security interface.
By disabling or modifying Windows firewall services, adversaries may enable access to remote services, open ports for command and control traffic, or configure rules for further actions.
Rules on DetectionCode tagged with T1686.003.
| Used by | Procedure example |
|---|---|
| GroupLazarus Group | Various Lazarus Group malware modifies the Windows firewall to allow incoming connections or disable it entirely using netsh. |
| GroupMagic Hound | Magic Hound has added the following rule to a victim's Windows firewall to allow RDP traffic - `"netsh" advfirewall firewall add rule name="Terminal Server" dir=in action=allow protocol=TCP localport=3389`. |
| GroupMirrorFace | MirrorFace can modify the system firewall to allow communication to certain ports. |
| GroupMoses Staff | Moses Staff has used batch scripts that can disable the Windows firewall on specific remote machines. |
| GroupOilRig | OilRig has modified Windows firewall rules to enable remote access. |
| GroupVOID MANTICORE | VOID MANTICORE has disabled Windows Defender protections to allow for follow-on activities within the compromised host. |
| Used by | Procedure example |
|---|---|
| MalwareBADCALL | BADCALL disables the Windows firewall before binding to a port. |
| MalwareBlackByte 2.0 Ransomware | BlackByte 2.0 Ransomware modifies the Windows firewall during execution. |
| MalwareDarkComet | DarkComet can disable Security Center functions like the Windows Firewall. |
| MalwareH1N1 | H1N1 kills and disables services for Windows Firewall. |
| MalwareHARDRAIN | HARDRAIN opens the Windows Firewall to modify incoming connections. |
| MalwareHiddenFace | HiddenFace can reconfigure Windows firewalls to enable communication by adding a rule named “Cortana” to allow inbound connection to TCP/47000. |
| MalwarenjRAT | njRAT has modified the Windows firewall to allow itself to communicate through the firewall. |
| MalwareRemsec | Remsec can add or remove applications or ports on the Windows firewall or disable it entirely. |
| Used by | Procedure example |
|---|---|
| CampaignAPT28 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. |
| CampaignOperation Wocao | During Operation Wocao, threat actors used PowerShell to add and delete rules in the Windows firewall. |
Data from MITRE ATT&CK® (Enterprise). ATT&CK® is a registered trademark of The MITRE Corporation.