ranilojohn/claude-blue/defensive-network-forensics
Claude Code and agent skill by ranilojohn/claude-blue
- community
Checking that the SKILL.md file is still in the repository.
Network forensics and full packet capture operations: capture architecture (Arkime, Stenographer, tcpdump/dumpcap ring buffers, Security Onion), evidence handling and hashing of PCAPs, session reconstruction, file carving (NetworkMiner, Zeek file extraction, tshark export-objects), protocol forensics (HTTP, DNS, SMB, Kerberos, TLS metadata, SMTP), decrypting TLS with key logs, reconstructing attacker activity and exfil volumes, timeline correlation with Zeek/flow/EDR, Zui/Brim, and reporting fi…
Install
npx vskill@latest install ranilojohn/claude-blue/defensive-network-forensicsSKILL.md
The same SKILL.md was published earlier as ranilojohn/claude-blue/defensive-network-forensics.
Network Forensics
Packets are the ground truth of what crossed the wire. Use them to confirm exploitation, recover payloads and exfiltrated files, and quantify data loss. Interactive Wireshark technique is in defensive-pcap-analysis; this skill covers capture capability, evidence handling, and investigation workflow.
Quick Workflow
- Preserve: copy relevant PCAP ranges, hash, record chain of custody
- Index: Zeek logs + Suricata alerts over the PCAP for fast triage
- Scope: identify hosts, sessions, and time windows of interest
- Reconstruct: sessions, files, credentials, commands
- Quantify: bytes and objects transferred
- Correlate with endpoint and log timelines; report
1. Capture Capability
| Tool | Use | |
|---|---|---|
| Arkime (formerly Moloch) | Indexed full PCAP with web UI, session search, PCAP export | |
| Stenographer | High-speed PCAP to disk with time/BPF retrieval (removed from Security Onion 3.x, which uses Suricata PCAP) | |
| Suricata PCAP logging | pcap-log output with conditional/ring capture (Security Onion 3.x default) | |
| dumpcap / tcpdump ring buffer | Ad hoc or small sites | |
| Packet broker + slicing | Keep headers + first N bytes to extend retention | |
| Cloud | VPC Traffic Mirroring / Azure vTAP / GCP Packet Mirroring to capture instances |
Retention planning: TB/day ≈ average Gbps × 10.8 (1 Gbps = 125 MB/s × 86,400 s). Size for average, not peak, then add 20% headroom.
2. Evidence Handling
Record: sensor, interface, capture filter, time source (NTP), drops, who collected, hashes. Work only on copies.
3. Triage Indexing
Load into Zui (Brim) or Security Onion for searching; pivot with Community ID.
4. Reconstruction
| Task | Command | |||||
|---|---|---|---|---|---|---|
| Follow a TCP stream | tshark -r window.pcap -q -z follow,tcp,ascii,12 | |||||
| Export HTTP/SMB/IMF/TFTP objects | tshark -r window.pcap --export-objects http,./http_objs (also smb, imf, tftp, dicom) | |||||
| Zeek file extraction | zeek -r window.pcap /opt/zeek/share/zeek/policy/frameworks/files/extract-all-files.zeek | |||||
| Carve with NetworkMiner | Files, images, credentials, hosts view (GUI) | |||||
| DNS queries by host | tshark -r window.pcap -Y "dns.flags.response==0 && ip.src==10.1.1.10" -T fields -e frame.time -e dns.qry.name | |||||
| Kerberos principals | tshark -r window.pcap -Y kerberos -T fields -e kerberos.CNameString -e kerberos.SNameString -e kerberos.etype | |||||
| SMB file operations | Zeek smb_files.log; tshark -Y "smb2.cmd==5" -T fields -e smb2.filename | |||||
| Credentials in clear text | `tshark -r window.pcap -Y "http.authorization | ftp.request.command==\"PASS\" | pop.request.command==\"PASS\""` | |||
| TLS metadata | tshark -Y "tls.handshake.type==1" -T fields -e ip.dst -e tls.handshake.extensions_server_name -e tls.handshake.ja4 (field availability depends on Wireshark version) |
Decrypting TLS
Only possible with session keys: SSLKEYLOGFILE from a controlled client, server private key for non-PFS RSA key exchange (legacy), or keys exported from a TLS-inspection proxy.
5. Quantifying Exfiltration
Report bytes sent by the victim (orig_bytes when the victim initiated), protocol, destination, time range, and any recovered file names — evidence for breach notification decisions.
6. Correlation
| Source | Join key | |
|---|---|---|
| EDR network events | Community ID, or 5-tuple ± few seconds | |
| Firewall/NAT logs | Translate public ↔ private IP:port | |
| Proxy logs | User identity for web sessions | |
| DHCP logs | IP → MAC → hostname at that time | |
| Zeek | uid / Community ID |
Engagement Cheatsheet
Key References
- Arkime; Stenographer; Wireshark/tshark docs; Zeek; NetworkMiner; Zui
- SANS FOR572 (Advanced Network Forensics) topics
- Related:
defensive-pcap-analysis,defensive-zeek,defensive-netflow-ndr,defensive-timeline-analysis,defensive-incident-response
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSkills/network/defensive-network-forensics/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ranilojohn/claude-blue/defensive-network-forensics)