Windows Host Firewall

T1686.003

Sub-technique of T1686 Disable or Modify System Firewall.View on attack.mitre.org

About this technique

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.

Detection rules17

Rules on DetectionCode tagged with T1686.003.

Sigma17

Splunk0

No Splunk rules are mapped to this technique yet.

Groups6

Software9

Campaigns2

Procedure examples17

Groups6

Used byProcedure 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.

Software9

Used byProcedure 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.

View all 9 software examples

Campaigns2

Used byProcedure 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.

References1

  1. Nearest Neighbor Volexity Open source
    Koessel, Sean. Adair, Steven. Lancaster, Tom. (2024, November 22). The Nearest Neighbor Attack: How A Russian APT Weaponized Nearby Wi-Fi Networks for Covert Access. Retrieved February 25, 2025.

Data from MITRE ATT&CK® (Enterprise). ATT&CK® is a registered trademark of The MITRE Corporation.