Suspicious Windows Firewall Disabled through PowerShell (via process_creation)

This rule detects attempts to disable the Windows Firewall using PowerShell

SigmamediumWindowsv1
sigma
title: Suspicious Windows Firewall Disabled through PowerShell (via process_creation)
id: e7a6e4a5-f39b-54f4-a0f4-f267ea457564
status: stable
description: This rule detects attempts to disable the Windows Firewall using PowerShell
references:
    - https://attack.mitre.org/techniques/T1685/
    - https://www.elastic.co/guide/en/security/current/windows-firewall-disabled-via-powershell.html
author: Huntrule Team
date: 2026-07-26
tags:
    - attack.defense-impairment
    - attack.t1685
logsource:
    category: process_creation
    product: windows
detection:
    selection_name:
        - Image|endswith:
              - '\powershell.exe'
              - '\pwsh.exe'
              - '\powershell_ise.exe'
        - OriginalFileName:
              - 'PowerShell.EXE'
              - 'pwsh.dll'
    selection_args:
        CommandLine|contains|all:
            - 'Set-NetFirewallProfile '
            - ' -Enabled '
            - ' False'
    selection_opt:
        CommandLine|contains:
            - ' -All '
            - 'Public'
            - 'Domain'
            - 'Private'
    condition: all of selection_*
falsepositives:
    - Unknown
level: medium

Known false positives

  • Unknown

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.