← All Threat Hunting ReportsThreat Hunting Exercise

Threat Hunting Exercise: Analyzing Firewall SMB Null Session Enumeration Dataset

This hunt uses a simulated internal segmentation-firewall dataset (fw_smb_nullsession_2022-11-05T140200.json) capturing T1135: Network Share Discovery combined with T1046: Network Service Discovery, where an attacker uses anonymous/null SMB sessions to enumerate shares, users, and groups across many internal hosts as a precursor to lateral movement.

Step 1: Hypothesis Formation

Hypothesis: A single internal host initiates SMB (TCP/445) connections to an unusually large number of distinct internal IP addresses in a short window, with a high proportion of the sessions using anonymous/null authentication, indicating a network-share and account-enumeration sweep rather than normal file-server access. Indicators:

Null Hypothesis: The traffic originates from an approved vulnerability-management or asset-discovery scanner performing its scheduled internal sweep. Invalidate by checking the source IP against the organization's authorized-scanner inventory and scan-schedule calendar.

Rationale: Null-session SMB enumeration is an old but still-effective reconnaissance technique because many internal segments retain legacy SMB configurations for compatibility, and the resulting traffic can be mistaken for benign network-management activity unless authentication type and source-host role are examined together.

Step 2: Data Sources and Scope

Step 3: Key Findings

Parsed events (5 shown) confirm WKS-CORP-207 conducted an anonymous SMB enumeration sweep against 187 internal hosts, immediately following execution of a known enumeration toolkit.

Timestamp (UTC)HostEventDetailIOC/Why Suspicious?
2022-11-05 14:01:48WKS-CORP-207(EDR process event)Process python.exe launched with command line referencing enum4linux-ng.py -ATooling IOC: execution of a well-known SMB/NetBIOS enumeration script immediately precedes the network sweep.
2022-11-05 14:02:03DC-CORP-01Windows Security (4624)Logon Type 3, AccountName=ANONYMOUS LOGON, source 10.12.44.19Null-Session IOC: anonymous authentication against a domain controller's SAMR/LSA pipes is not generated by normal business file access.
2022-11-05 14:02:03 - 14:30:55WKS-CORP-207Firewall (aggregate)TCP/445 connections to 187 distinct internal hosts across VLANs 10/20/30/40Sweep IOC: this breadth and cross-VLAN reach is inconsistent with any single legitimate file-sharing workflow.
2022-11-05 14:05:17FS-CORP-03Windows Security (5140)Share access: IPC$, ANONYMOUS LOGON from 10.12.44.19Share-Enumeration IOC: IPC$ access via null session is the specific mechanism enum4linux/smbclient use to query SAMR for user/group lists.
--(Scanner-inventory check)10.12.44.19 is not present in the authorized vulnerability-scanner or asset-discovery inventoryConfirms this is not sanctioned scanning activity.

Validation:

Step 4: Recommendations & Next Steps

Hypothesis confirmed - a compromised corporate workstation ran a known SMB enumeration toolkit and conducted a 187-host, cross-VLAN anonymous-logon sweep against internal file servers and domain controllers!