← All Threat Hunting ReportsThreat Hunting Exercise

Threat Hunting Exercise: Analyzing Firewall Unauthorized Rule Change Audit Anomaly Dataset

This hunt uses a simulated firewall management-plane dataset (firewall_rule_change_2022-08-26T033000.json) capturing T1562.004: Impair Defenses (Disable or Modify System Firewall), where an attacker with stolen administrative credentials adds a permissive outbound "allow" rule to the perimeter firewall, opening a direct path for later data exfiltration or C2 that bypasses existing network controls.

Step 1: Hypothesis Formation

Hypothesis: A new firewall rule is created outside of a documented change window, granting broad outbound access (e.g., any-any on a non-standard port, or a rule scoped narrowly to a single internal host and single external IP) that does not correspond to any change-management ticket, and the rule is created by an administrative account at an unusual hour or from an unusual management-console source IP. Indicators:

Null Hypothesis: A network engineer made an emergency/out-of-band change under a valid incident or urgent business need, with after-the-fact documentation to follow. Invalidate by checking for a retroactive change ticket or engineer confirmation within a reasonable window, and confirming the source IP/session matches the engineer's normal access pattern.

Rationale: A single permissive firewall rule change can silently undo months of careful network segmentation, and because it's a management-plane action rather than a network-traffic anomaly, it's invisible to traffic-based detection until it's actually used; this hunt validates firewall change-log auditing against the change-management system as a control that catches the backdoor at the moment of creation, before any traffic even flows.

Step 2: Data Sources and Scope

Step 3: Key Findings

Parsed events (5 shown) confirm a broad outbound-allow rule was created at 03:30 UTC - well outside the approved Tue/Thu 14:00-16:00 change window - by an admin account authenticating from an unrecognized VPN session, with matching traffic beginning within 8 minutes.

Timestamp (UTC)FirewallEventDetailIOC/Why Suspicious?
2022-08-26 03:29:40FW-PERIM-01VPN authadmin.jsmith authenticates from 178.20.55.14 (a residential-ISP IP never seen for this account before)Session-Anomaly IOC: this account's normal management access originates exclusively from the corporate office egress IP range; a new, unrecognized source is a strong compromised-credential indicator.
2022-08-26 03:30:12FW-PERIM-01Rule createNew rule: Allow ANY:10.310.2.44 -> 91.219.237.50:ANYPermissiveness IOC: an any-port outbound allow rule scoped to a single external IP has no legitimate general-purpose business justification and is a classic exfiltration-channel setup.
2022-08-26 03:30:15FW-PERIM-01(change-window check)Change made at 03:30 UTC; approved window is Tue/Thu 14:00-16:00 UTC only; today is a FridayTiming IOC: the change falls entirely outside any approved maintenance window, on a day changes are not scheduled at all.
2022-08-26 03:30:20FW-PERIM-01(CM ticket check)No ServiceNow/Jira ticket references this rule, this firewall, or this admin account for the relevant periodConfirms the change was not part of any documented, approved process.
2022-08-26 03:38:05FW-PERIM-01Traffic logHost 10.310.2.44 begins outbound connections to 91.219.237.50 matching the new rule, port 443 and several non-standard portsUtilization IOC: the newly-opened path is put to use within 8 minutes of creation, confirming the rule was created specifically to enable this traffic.

Validation:

Step 4: Recommendations & Next Steps

Hypothesis confirmed - an attacker using compromised administrative credentials created an unauthorized, overly permissive outbound firewall rule outside the approved change window, and began using it for outbound traffic within 8 minutes!