← All Threat Hunting ReportsThreat Hunting Exercise

Threat Hunting Exercise: Analyzing Firewall Internal Port Scan Reconnaissance Sweep Dataset

This hunt uses a simulated internal firewall/segmentation log dataset (firewall_portscan_2022-08-24T093000.json) capturing T1046: Network Service Discovery, where a compromised internal host performs a broad TCP port sweep against many peer hosts to map reachable services ahead of lateral movement.

Step 1: Hypothesis Formation

Hypothesis: A single internal host generates connection attempts to a wide range of destination IPs and/or ports in a short window, with a high ratio of denied/reset connections (indicating the host is probing rather than using known services) - consistent with post-compromise internal reconnaissance. Indicators:

Null Hypothesis: An authorized vulnerability management or asset-discovery scan (e.g., Qualys, Nessus, Rapid7) is running on schedule from an approved scanning host. Invalidate by checking the source IP against the registered scanner inventory and the scan-schedule calendar.

Rationale: Internal port scanning is one of the earliest and most detectable stages of the post-compromise attack lifecycle, occurring before an attacker has established which lateral-movement path will succeed; this hunt validates internal segmentation-firewall deny-log analysis as an early-warning control that can catch an intrusion well before data exfiltration or ransomware deployment.

Step 2: Data Sources and Scope

Step 3: Key Findings

Parsed events (5 shown) confirm WKS-ENG-051 attempted connections to 47 distinct internal hosts across 68 distinct ports in 6 minutes, with a 91% deny/reset rate, and was not a registered scanning asset.

Timestamp (UTC)SourceEventDetailIOC/Why Suspicious?
2022-08-24 09:30:04WKS-ENG-051Firewall (deny)Connection attempts to 10.290.1.10-10.290.1.60, ports 22,80,443,3389 sequentiallySweep IOC: sequential IP range and standard-port ordering matches automated scanning tool behavior (Nmap default top-ports scan), not organic application access.
2022-08-24 09:30:04 - 09:36:00WKS-ENG-051Firewall (aggregate)47 distinct destination IPs, 68 distinct destination ports, 91% denied by segmentation policyVolume/Ratio IOC: no legitimate developer workstation traffic pattern touches this many internal hosts/ports with this high a denial rate in 6 minutes.
2022-08-24 09:31:15WKS-ENG-051 → 10.290.1.22Firewall (allow)Connection to port 445 (SMB) succeeded - one of the few allowed hitsLateral-Movement Target IOC: SMB access success among a broader failed sweep flags a viable next-stage pivot point for the attacker.
-WKS-ENG-051(EDR process check)nmap.exe (portable, run from C:\Users\Public\tools\) active during the scan windowTooling IOC: confirms use of a known scanning utility, not a legitimate business application generating this traffic.
--(scanner inventory check)WKS-ENG-051 is not listed in the approved vulnerability-scanner inventory; no Qualys/Nessus scan is scheduled for this windowConfirms this is unauthorized reconnaissance, not sanctioned vulnerability management activity.

Validation:

Step 4: Recommendations & Next Steps

Hypothesis confirmed - a compromised developer workstation used a portable Nmap scanner to sweep 47 internal hosts across 68 ports, identifying a viable SMB lateral-movement target!