This detection identifies the execution of PortRacer.exe, a utility often leveraged by adversaries for network reconnaissance or lateral movement to map open ports and services within the environment. Proactive hunting is essential in Azure Sentinel to distinguish legitimate administrative usage from potential stealthy reconnaissance activities that could precede data exfiltration or unauthorized access attempts.
rule PortRacer {
meta:
description = "Auto-generated rule on file PortRacer.exe"
author = "yarGen Yara Rule Generator by Florian Roth"
hash = "2834a872a0a8da5b1be5db65dfdef388"
strings:
$s0 = "Auto Scroll BOTH Text Boxes"
$s4 = "Start/Stop Portscanning"
$s6 = "Auto Save LogFile by pressing STOP"
condition:
all of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 3 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the PortRacer.exe detection rule, including suggested filters and exclusions:
Scenario: Scheduled Network Discovery by Admin Staff
PortRacer.exe as a background utility to map open ports and active services across the enterprise subnet.PortRacer.exe is spawned by SolarWindsAgent.exe, ccmexec.exe, or wuauserv.exe. Additionally, exclude execution from specific administrative service accounts (e.g., DOMAIN\NetAdmins).Scenario: Endpoint Security Health Check
PortRacer.exe during its daily “Network Traffic Analysis” task to verify firewall rule compliance and detect unauthorized listening ports. This often occurs during off-hours (e.g., 2:00 AM) via a scheduled Windows Task.--health-check, --compliance-scan, or --scheduled-task.Scenario: Third-Party Asset Management Inventory