Labs / The Rule That Let Them In
The Rule That Let Them In
ChaiCorp's server team found a successful remote desktop (RDP) login on one of its internal servers at 02:31, from an address on the internet. The firewall has a rule that is supposed to block RDP from the internet, so how did the attacker get through?
You have three files: the firewall's inbound rules, the firewall log from that night, and the IDS alerts.
- Use the log to find the attacker's IP address and the server it reached on port 3389.
- Read the rules from the top, the way the firewall does, and find the first rule that matches that connection.
Flag format: SK{rule ID}, using the number in the ID column. For example, if the answer were the default deny rule, the flag would be SK{999}.
firewall-rules.txt
ChaiCorp Lahore office - edge firewall FW-01 Inbound rules, exported 2026-03-15 09:00 Rules are checked from top to bottom. The first rule that matches decides. ID ACTION PROTO SOURCE DESTINATION PORT DESCRIPTION 100 allow tcp any 192.0.2.10 443 Public website (DMZ) 105 allow tcp any 192.0.2.11 25 Mail server (DMZ) 110 allow tcp any 192.0.2.12 443 SSL VPN gateway, MFA required 115 allow tcp 198.51.100.5 192.0.2.10 22 SSH to web server, admin office only 120 allow tcp 198.51.100.5 10.0.20.0/24 3389 RDP to servers, admin office only 125 deny tcp any 192.0.2.10 22 Block SSH to web server from others 130 allow tcp any 10.0.20.15 any TEMP: vendor support for accounting app (January) 135 deny tcp any 10.0.20.0/24 3389 Block RDP from the internet 140 deny tcp any any 23 Block Telnet 999 deny all any any any Default deny Servers on 10.0.20.0/24: 10.0.20.15 ACC-SRV01 accounting server 10.0.20.16 FILE-SRV01 file server 10.0.20.21 DB-SRV01 database server