0Pricing
Cyber Security Academy · Lesson

Network Forensics with Wireshark

Analyze PCAP files for C2 beaconing, credential theft, data exfiltration, and protocol anomalies.

Network Forensics with Wireshark is a free Cyber Security Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cyber Security Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Network Forensics Overview

Network forensics analyzes captured packet data (PCAP files) to reconstruct network-level attacker activity: lateral movement, C2 communication, credential theft, data exfiltration, and protocol anomalies invisible in host-based forensics.

Capturing Traffic

Collect network evidence with Wireshark (interactive), tcpdump (CLI), or dedicated network taps. Deploy span ports or network taps on critical segments before incidents occur. Retrospective analysis requires pre-existing capture infrastructure.

tcpdump -i eth0 -w capture.pcap -s 0
tcpdump -r capture.pcap host 192.168.1.10

Wireshark Display Filters

Display filters narrow analysis: http shows HTTP, tcp.port==443 for HTTPS, ip.addr==10.0.0.5 for a specific host, dns for name queries, tcp.flags.syn==1 && tcp.flags.ack==0 for SYN-only packets (port scan detection).

Following TCP Streams

Right-click a packet → Follow → TCP Stream to reconstruct the full conversation in human-readable form. For HTTP, this shows complete request and response bodies — useful for reconstructing exfiltrated data or C2 commands.

Detecting C2 Beaconing

C2 beaconing appears as regular, periodic connections to the same external IP. Apply ip.dst == [suspicious_ip] and check frame timing — consistent intervals (every 60, 300, or 600 seconds) with small data volumes is characteristic of beacon behavior.

DNS Forensics

DNS queries reveal C2 domains, domain generation algorithm (DGA) patterns, and DNS tunneling. High-entropy domain names (e.g., a1b2c3d4e5f6.evil.com), unusual TXT record queries, and unusually large DNS responses indicate DNS-based C2 or data exfiltration.

Credential Theft in PCAPs

Cleartext protocols (HTTP, FTP, SMTP, LDAP, Telnet) transmit credentials in plaintext visible in packet captures. Filter with http contains "password" or ftp contains "PASS" to identify credential exposure during the incident window.

TLS Traffic Analysis

Encrypted TLS traffic cannot be decrypted without private keys or pre-master secrets. However: JA3 fingerprints identify TLS client libraries (malware has characteristic JA3 hashes), certificate Subject Alternative Names reveal C2 infrastructure, and traffic timing remains visible.

Data Exfiltration Detection

Exfiltration indicators: large outbound data transfers to unusual destinations, HTTP POST requests with base64-encoded bodies, unusually large DNS responses (DNS tunneling), ICMP packets with large payloads, and outbound traffic during non-business hours.

NetworkMiner for Stream Reconstruction

NetworkMiner passively reconstructs transferred files from PCAPs — images, documents, executables transferred over HTTP or SMB appear as extractable files. It also extracts credentials, certificates, and messages from captured traffic automatically.

PCAP to Incident Timeline

Extract timestamps of key network events: first connection to C2, credential transmission, lateral movement (authentication attempts to internal hosts), and data staging/exfiltration. These network timestamps correlate with host-based artifacts to build the complete incident timeline.

Knowledge Check

What Wireshark display filter would show only HTTP traffic?

Summary

Network forensics with Wireshark reconstructs attacker network activity from PCAP evidence. C2 beaconing detection, DNS analysis for tunneling, credential theft in cleartext protocols, TLS JA3 fingerprinting, and data exfiltration pattern recognition collectively reveal network-layer attack evidence.

Frequently asked questions

Is the “Network Forensics with Wireshark” lesson free?

Yes — the full text of “Network Forensics with Wireshark” is free to read here on the web, and the Cyber Security Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cyber Security Academy course, upgrade to CoddyKit PRO.

What will I learn in “Network Forensics with Wireshark”?

Analyze PCAP files for C2 beaconing, credential theft, data exfiltration, and protocol anomalies. You practise Cyber Security Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cyber Security Academy?

No prior experience is required. Cyber Security Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Network Forensics with Wireshark” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cyber Security Academy lesson?

Yes. Every Cyber Security Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Disk Imaging and File System Forensics
  2. Memory Acquisition and Volatility Framework
  3. Timeline Analysis and Artifact Correlation
  4. Network Forensics with Wireshark
← Back to Cyber Security Academy