New Windows Firewall Rule Added Via New-NetFirewallRule Cmdlet
Last updated on:
In this page
About the rule
Rule Type
Standard
Rule Description
Detects calls to the "New-NetFirewallRule" cmdlet from PowerShell in order to add a new firewall rule with an "Allow" action.
Severity
Attention
Rule Requirement
Criteria
Action1:
actionname = "Process started" AND (PROCESSNAME endswith "\powershell.exe,\pwsh.exe,\powershell_ise.exe" OR ORIGINALFILENAME = "PowerShell.EXE,pwsh.dll") AND (COMMANDLINE contains "New-NetFirewallRule " AND COMMANDLINE contains " -Action " AND COMMANDLINE contains "allow")
select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME,Action1.DOMAIN,Action1.ORIGINALFILENAME,Action1.PARENTPROCESSID,Action1.PROCESSID,Action1.PRODUCT_NAME,Action1.SECURITYID
Detection
Execution Mode
realtime
Log Sources
Windows
Author
frack113


