← All Threat Hunting ReportsThreat Hunting Exercise

Threat Hunting Exercise: Analyzing Firewall Egress Rule Abuse for Data Exfiltration Dataset

This hunt examines a simulated firewall dataset (fw_egress_abuse_exfil_2022-04-09T130000.json) capturing T1048.003: Exfiltration Over Unencrypted Non-C2 Protocol and T1567: Exfiltration Over Web Service, where an adversary abuses an overly-permissive "any-any" egress rule (originally created for a legacy application) to push a large volume of data to an unsanctioned external FTP server.

Step 1: Hypothesis Formation

Hypothesis: An internal host generates a sustained, high-volume outbound transfer (multiple GB) over FTP (TCP/21 control, high ephemeral data ports) or a permissive legacy rule, to an external destination that has never previously received traffic from the internal subnet, occurring outside business hours. Indicators:

Null Hypothesis: The transfer is a legitimate, scheduled batch job (e.g., nightly vendor file transfer, backup replication) that happens to use the legacy rule. Invalidate by checking change-management/CMDB records for a documented, approved job matching this source/destination/schedule.

Rationale: Legacy firewall rules accumulate over years and are rarely re-reviewed; this hunt validates whether stale, overly-broad rules are being actively exploited as an exfiltration path, and produces evidence to justify rule cleanup.

Step 2: Data Sources and Scope

Step 3: Key Findings

Parsed events (8 shown) confirm 6.4 GB transferred to a previously-unseen external FTP host via the legacy any-any rule, entirely outside business hours.

Timestamp (UTC)Src IPDest IP:PortRule MatchedBytes OutIOC/Why Suspicious?
2022-04-09 13:02:0410.30.5.1291.214.63.19:21ANY-ANY-LEGACY-APP41 KB (control)FTP control channel opened via a rule scoped for a decommissioned vendor integration.
2022-04-09 13:02:1110.30.5.1291.214.63.19:50221ANY-ANY-LEGACY-APP1.8 GBVolume IOC: single passive-mode data transfer exceeding all prior 90-day traffic from this host combined.
2022-04-09 13:19:4710.30.5.1291.214.63.19:50344ANY-ANY-LEGACY-APP2.1 GBSecond large transfer 17 minutes later - sustained exfil session, not a one-off.
2022-04-09 13:41:0210.30.5.1291.214.63.19:50501ANY-ANY-LEGACY-APP2.5 GBThird transfer; cumulative 6.4 GB - matches the approximate size of the file server's Finance share.
-10.30.5.12(90-day history)N/ANovelty IOC: 91.214.63.19 has zero prior appearances in 90 days of logs from this source - first-ever contact immediately followed by multi-GB transfer.
2022-04-09 13:45:3010.30.5.1291.214.63.19:21ANY-ANY-LEGACY-APP2 KBFTP QUIT - session cleanly closed after transfer completion.
-SRV-FILE-08(CMDB check)N/ALegitimacy check IOC: no change record, maintenance window, or documented vendor integration references this destination - the legacy rule's original justification (a 2018 payroll vendor) uses a different, unrelated IP range.
2022-04-09 13:00-15:3010.30.5.12(baseline)N/ATiming IOC: activity occurs entirely within a 2.5-hour window with no prior host logon/RDP session recorded on SRV-FILE-08 at that time - suggests a scheduled task or remotely-triggered script rather than an interactive admin action.

Validation:

Step 4: Recommendations & Next Steps

Hypothesis confirmed - a stale, overly-permissive legacy firewall rule was actively exploited to exfiltrate 6.4 GB of data to a previously unseen external FTP server outside business hours!