performing-network-packet-capture-analysis

Analyze PCAP and PCAPNG captures with Wireshark, tshark, and Scapy to detect malicious traffic.

4|Updated Apr 28, 2026
One-click install
npx skills add https://github.com/braydos-h/BreachPilot --skill performing-network-packet-capture-analysis-braydos-h
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: performing-network-packet-capture-analysis
Source: https://github.com/braydos-h/BreachPilot/tree/main/skills/performing-network-packet-capture-analysis
Command: npx skills add https://github.com/braydos-h/BreachPilot --skill performing-network-packet-capture-analysis-braydos-h

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires scapy, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve? Network forensic investigations require reconstructing communications, extracting transferred files, and proving data exfiltration or command-and-control activity from raw packet captures, which is slow and error-prone when done manually. ## Core Features & Use Cases - Protocol and Conversation Analysis: Compute protocol distributions, top talkers, and TCP/UDP conversation statistics using Scapy and tshark. - Threat Detection: Detect port scans, DNS exfiltration via oversized queries, beaconing intervals, and traffic on known C2 ports such as 4444 and 31337. - Artifact Extraction: Pull HTTP requests, DNS queries, TLS SNI values, credentials, and transferred files from captures, then generate a JSON forensic report. - Use Case: During incident response, run the suspicious-traffic detection against a capture from a compromised host to surface C2 beaconing and DNS tunneling evidence for the investigation report. ## Quick Start Analyze the attached capture.pcap file for suspicious traffic, beaconing patterns, and DNS exfiltration, then generate a forensic report.

Frequently Asked Questions about performing-network-packet-capture-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze a PCAP file with Python?▼

Use Scapy's rdpcap function to load the capture, then iterate packets to extract IP conversations, DNS queries, and protocol statistics. The included scripts automate this and output a JSON forensic report.

How to detect DNS exfiltration in packet captures?▼

DNS exfiltration is detected by flagging queries longer than 60 characters, which indicate encoded data in subdomains. The suspicious-traffic mode reports these as HIGH severity DNS_EXFILTRATION findings with source IPs.

What is the difference between tshark and Scapy for PCAP analysis?▼

tshark is a command-line tool suited for display filters, HTTP object export, and conversation statistics. Scapy is a Python library for programmatic packet parsing, custom detection logic like beaconing analysis, and scripted reporting.

Does this work with PCAPNG files from Wireshark?▼

Yes, both Scapy's rdpcap and tshark read PCAPNG captures, including metadata like interface descriptions and per-packet annotations. The same analysis commands apply to both PCAP and PCAPNG formats.

Why does the analysis fail with a scapy not installed error?▼

The scripts require the Scapy Python package, which is not included by default. Install it with pip install scapy; tshark is additionally needed for HTTP extraction and conversation analysis features.