Host Firewall Rule Modification Immediately After Remote Access
Detects modification of Windows Firewall rules within minutes of a new remote logon session being established. Autonomous AI agents performing defense evasion programmatically modify host firewall rules to open additional ports for C2, lateral movement, or exfiltration immediately after gaining access — before a human defender can observe the initial compromise. ARTEX worker agents tasked with post-exploitation routinely disable firewall profiles or add allow rules for tools they need (reverse shells, proxy listeners, tunneling software). The correlation between a fresh logon (Event 4624 Type 3 or 10) and subsequent firewall modification (Event 4946/4947 or netsh/Set-NetFirewallProfile execution) within a compressed window is the detection anchor. Requires Windows Security Event 4624 and Sysmon Event ID 1 for process command line capture. BQL (Bloo Query Language): stream=ep-process where action='PROCESS_ADDED' and (lower(image) like '%\\netsh.exe' or lower(image) like '%\\powershell.exe' or lower(image) like '%\\pwsh.exe') and (lower(commandline) like '%firewall%' or lower(commandline) like '%advfirewall%' or lower(commandline) like '%set-netfirewallprofile%' or lower(commandline) like '%new-netfirewallrule%')
Sigma
