Hey everyone! π As a cybersecurity student diving into Blue Team operations, one of the first concepts you learn is the Cyber Kill Chain.
- Before an adversary can exploit a system, they need to perform reconnaissance.
ΒΏWhat is one of the most classic techniques? A port scan.
- Think of it as a digital burglar walking down a street, rattling every single doorknob to see which house left a door unlocked.
π§ͺ 1. The Lab Setup: Simulating the Scan
- To understand the telemetry, we need real data. In a controlled home lab environment:
- The Attacker: π A machine running Kali Linux.
- The Target: π» A local test virtual machine.
- The Action: β‘ Executing a basic SYN stealth scan using Nmap:
nmap -sS -p 1-100 <TARGET_IP>
π 2. The Network View: Wireshark & The Handshake Trick
If you capture the traffic passing through your network interface, regular traffic l*ooks peaceful.*
During a port scan, however, the TCP Three-Way Handshake gets weird:
- Normal Flow: Client sends SYN β‘οΈ Server replies with SYN-ACK β‘οΈ Client replies with ACK
- The Port Scan Flow: The scanner sends a SYN packet. If the port is open, the target replies with SYN-ACK. But instead of completing the handshake with an ACK, the scanner instantly slams the brakes with a RST.
π‘ ΒΏWhy do this? Attackers use this trick to avoid leaving full connection logs in the application layer. But network monitors spot this rapid-fire burst of SYN -> RST.
π₯οΈ 3. The Operating System View: ΒΏWhat Do the Logs Say?
- Depending on the operating system target, the system logs will catch the sudden spike in connection attempts:
π₯ In Windows (Event Viewer):
- If Windows Defender Firewall with Advanced Security is logging dropped/allowed packets, you'll spot a flood of security events.
π§ In Linux (Syslog / Kernel Logs):
- If you inspect kernel logs or packet filtering logs (iptables / nftables), you'll notice a massive wave of incoming packets targeting closed ports, triggering kernel warnings about unhandled connection drops.
π¨ 4. How SOCs Detect This Automatically
- In a real-world Security Operations Center (SOC), analysts don't manually sift through thousands of event viewer lines. Instead, SIEM tools process these logs and trigger automated alerts.
π― Final Thoughts
Understanding how offensive tools leave footprints in defensive logs is the core of becoming a solid Blue Team analyst π‘οΈ. Bridging the gap between how an attack is executed and how it is logged is the ultimate superpower for threat detection! π
Top comments (0)