performing-network-packet-capture-analysis

Analyze PCAP and PCAPNG captures with Wireshark, tshark, tcpdump, and Scapy to reconstruct network activity.

954|172|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/xalgord/xalgorix --skill performing-network-packet-capture-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performing-network-packet-capture-analysis
Source: https://github.com/xalgord/xalgorix/tree/main/internal/tools/skills/data/digital-forensics/performing-network-packet-capture-analysis
Command: npx skills add https://github.com/xalgord/xalgorix --skill performing-network-packet-capture-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires scapy, pyshark.

What problem does it solve?

Incident responders and forensic analysts need to turn raw packet captures into evidence of data exfiltration, command-and-control beaconing, and malicious traffic, but manual PCAP review is slow and error-prone.

Core Features & Use Cases

  • Capture and Filtering: Capture traffic with tcpdump using BPF filters and rotation, then isolate protocols, hosts, and suspicious ports with Wireshark display filters.
  • Automated Extraction: Use tshark to export HTTP/SMB objects, DNS queries, TLS SNI values, credentials, and conversation statistics from captures.
  • Python Forensic Analysis: A Scapy-based analyzer extracts conversations, DNS queries, protocol distributions, and detects beaconing via inter-arrival timing variance, producing a JSON report.
  • Use Case: During a breach investigation, run the analyzer against a multi-gigabyte PCAP to identify a host beaconing to an external IP every 60 seconds and carve the exfiltrated files for hash verification.

Quick Start

Analyze the attached capture.pcap file to extract DNS queries, top conversations, and potential beaconing activity, 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 tshark?

Use tshark with display filters to extract specific fields, for example tshark -r capture.pcap -Y "http.request" -T fields -e http.host. You can also export transferred files with --export-objects and generate protocol or conversation statistics with -z io,phs and -z conv,tcp.

How to detect C2 beaconing in packet captures?

Detect beaconing by computing inter-arrival time mean and variance per destination IP and port across the whole capture. Connections with low timing variance and regular intervals indicate potential beaconing, though jittered C2 requires statistical analysis rather than fixed time-delta filters.

What is the difference between Wireshark and tshark for PCAP analysis?

Wireshark is the interactive GUI tool for deep protocol dissection and visual filtering, while tshark is its command-line counterpart suited for scripting, automation, and batch extraction of fields and objects from captures.

Can I extract files from encrypted TLS traffic in a PCAP?

No, TLS 1.3, QUIC, and DoH/DoT payloads are opaque without session keys. You can still pivot to metadata such as SNI, JA3/JA3S fingerprints, certificate details, flow sizes, and timing patterns to identify suspicious activity.

Why does tshark export-objects return no files from my capture?

Empty exports usually result from truncated captures with small snaplen values that strip payloads, or from one-sided captures that prevent TCP reassembly. Verify capture integrity with capinfos to check snaplen, drop counts, and duration before analysis.