← All Threat Hunting ReportsThreat Hunting Exercise

Threat Hunting Exercise: Analyzing Firewall Outbound SMTP Relay Spam Botnet Dataset

This hunt uses a simulated perimeter firewall dataset (firewall_smtp_relay_2022-11-02T031500.json) capturing T1583.001 / T1071.003 (via compromised host abuse), where a compromised internal host is repurposed as an open relay, sending high-volume outbound SMTP traffic on port 25/587 to hundreds of distinct external mail servers - a hallmark of spam-botnet or BEC-infrastructure abuse.

Step 1: Hypothesis Formation

Hypothesis: A non-mail-server host (workstation or server not on the approved SMTP relay list) establishes an abnormally high number of distinct outbound SMTP connections in a short window, indicating it has been compromised and conscripted into a spam-sending botnet or is being used to relay BEC phishing emails. Indicators:

Null Hypothesis: The host is a legitimate application server (e.g., a marketing automation or ticketing system) configured to send transactional email directly rather than through the corporate MTA. Invalidate by checking CMDB/application-inventory records and DNS PTR/SPF alignment for the source IP.

Rationale: Spam botnets and BEC actors frequently abuse compromised internal hosts as email relays because outbound port 25/587 is often left open for legitimate application mail, making it a low-friction path that blends with normal business traffic unless fan-out and host-role are cross-checked.

Step 2: Data Sources and Scope

Step 3: Key Findings

Parsed events (5 shown) confirm WKS-FIN-114, a standard finance workstation, sent SMTP connections to 214 distinct external mail servers in under an hour, immediately following a phishing-delivered macro execution.

Timestamp (UTC)HostEventDetailIOC/Why Suspicious?
2022-11-02 03:12:40WKS-FIN-114(EDR process event)winword.exe spawned powershell.exe -enc <b64>, which dropped svchost32.exe in %APPDATA%Delivery IOC: process lineage shows a macro-triggered dropper immediately preceding the mass-mail activity, consistent with a spam-bot payload installation.
2022-11-02 03:15:02WKS-FIN-114Firewall (allow, TCP/25)First of 214 unique SMTP connections, HELO string mail-out-921.local (does not resolve)Fan-Out IOC: this host has no history of direct SMTP traffic; the sudden onset of mass connections to unrelated external mail servers is a classic spam-botnet signature.
2022-11-02 03:15:02 - 04:04:51WKS-FIN-114Firewall (aggregate)214 unique destination IPs, port 25/587, ~1,900 total connection attemptsVolume IOC: this volume vastly exceeds any legitimate transactional-mail use case for a finance workstation, and matches known spam-relay throughput patterns.
2022-11-02 03:16:10WKS-FIN-114(EDR process event)svchost32.exe reading contacts.csv and outlook_addresses.txt from user profileTargeting IOC: local harvesting of address-book data immediately before mass-SMTP activity suggests the bot is using stolen contacts as a spam/BEC target list.
--(CMDB/relay-inventory check)WKS-FIN-114 is absent from the authorized-MTA host list; SPF record for the domain does not include this host's IPConfirms the host has no legitimate business reason to originate direct SMTP traffic.

Validation:

Step 4: Recommendations & Next Steps

Hypothesis confirmed - a phishing-compromised finance workstation harvested local contact data and was conscripted into a spam-relay botnet, firing SMTP connections at 214 external mail servers within an hour!