Windows Firewall Disabled via PowerShell

 Original Source: [Sigma source]
Title: Windows Firewall Disabled via PowerShell
Status: test
Description:Detects attempts to disable the Windows Firewall using PowerShell
References:
  -https://www.elastic.co/guide/en/security/current/windows-firewall-disabled-via-powershell.html
Author: Tim Rauch, Elastic (idea)
Date: 2022-09-14
modified:2023-02-13
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