Lab 18: Network Penetration Testing

Objective

Perform a full network penetration test workflow against a live Docker network from Kali Linux:

  1. Network discovery — identify live hosts and open ports with nmap

  2. Service enumeration — fingerprint software versions to identify known CVEs

  3. Vulnerability scanning — identify exploitable misconfigurations automatically

  4. Packet capture and analysis — intercept unencrypted credentials in transit

  5. Build a network pentest report — map the attack surface with risk ratings


Background

Network pentesting predates web app testing and remains the most common engagement type. Understanding how to go from "IP range" to "root shell" is the core skill of offensive security.

Real-world examples:

  • 2013 Target breach — attacker entered via a third-party HVAC contractor's VPN credentials, then performed internal network scanning to discover the POS system network; pivoted to 40M card records.

  • 2016 SWIFT banking attacks — attacker spent months doing internal network recon after initial compromise to map SWIFT messaging terminals before initiating fraudulent transfers totalling $81M.

  • 2020 Garmin ransomware (WastedLocker) — network recon identified file servers and backup infrastructure specifically to maximise impact; attackers spent ~72h mapping before deploying ransomware.

  • Typical pentest engagement: week 1 is almost entirely network recon and enumeration; exploitation comes after understanding the full attack surface.

MITRE ATT&CK: T1046 (Network Service Discovery), T1040 (Network Sniffing), T1595 (Active Scanning)


Architecture

Time

50 minutes


Lab Instructions

Step 1: Setup — Multi-Service Target


Step 2: Launch Kali — Network Discovery

📸 Verified Output:


Step 3: Service Fingerprinting + Vulnerability Research


Step 4: Hidden Endpoint Discovery

📸 Verified Output:


Step 5: Cleartext Credential Capture (HTTP on 8080)


Step 6: Telnet Service Banner Grab


Steps 7–8: Network Pentest Report + Cleanup


Further Reading

Last updated