competition-pcap-protocol

Reconstructs PCAP sessions, decodes application protocols, and correlates packets with host behavior.

21|8|Updated Aug 3, 2026
One-click install
npx skills add https://github.com/chengzongcai/reverse-skill-backup --skill competition-pcap-protocol-chengzongcai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: competition-pcap-protocol
Source: https://github.com/chengzongcai/reverse-skill-backup/tree/main/CTF-Sandbox-Orchestrator/competition-pcap-protocol
Command: npx skills add https://github.com/chengzongcai/reverse-skill-backup --skill competition-pcap-protocol-chengzongcai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? CTF and forensic challenges often hide decisive evidence inside packet order, protocol framing, or stream reassembly rather than a single IOC. This Skill provides a repeatable workflow for turning raw packet captures into reconstructed sessions, decoded protocol messages, and behavior-linked evidence. ## Core Features & Use Cases - Session Mapping: Groups traffic into sessions by endpoints, ports, TLS handshakes, DNS lookups, and long-lived streams while flagging missing coverage or retransmits. - Protocol Decoding: Reassembles TCP streams and UDP conversations, then recovers framing, message order, custom headers, compression, and transferred objects for HTTP, WebSocket, DNS, custom C2, or binary protocols. - Behavior Correlation: Ties decoded packet sequences to host events, malware branches, login flows, uploads, exfiltration steps, or command channels. - Use Case: Given a CTF capture containing a custom C2 channel, rebuild the stream, decode the command messages, extract the transferred artifact, and prove which packet sequence triggered the malware behavior. ## Quick Start After $ctf-sandbox-orchestrator is active, use $competition-pcap-protocol to reconstruct the sessions in this PCAP, decode the application protocol, and tie the packet evidence to the challenge behavior.

Frequently Asked Questions about competition-pcap-protocol

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

FAQPage Schema
How do I analyze a PCAP file in a CTF challenge?▼

Start by establishing capture boundaries: hosts, time span, interfaces, missing packets, and stream count. Then group traffic into sessions before decoding payload semantics, and record framing, sequence, timing, and transferred artifacts together.

How to reconstruct TCP streams and decode custom protocols?▼

Reassemble the TCP stream or UDP conversation first, then recover framing, message order, custom headers, binary fields, compression, and encryption boundaries. Keep payload direction, timing, and session state aligned with each decoded message.

Can this skill handle WebSocket or custom binary protocols?▼

It covers WebSocket upgrades and custom C2 decoding, but for deep WebSocket or SSE frame analysis it defers to $competition-websocket-runtime, and for custom handshakes, checksums, or replay harnesses it defers to $competition-custom-protocol-replay.

When should I not use packet-level protocol analysis?▼

Avoid it when the decisive evidence is a single IOC or host log rather than packet order or stream reconstruction. If the task becomes mostly a host timeline problem after decoding, switch to a forensic timeline skill instead.

Why does protocol identification alone fail in CTF packet challenges?▼

Naming a protocol like HTTP, DNS, or a custom C2 is not enough without decoded content or a proven downstream effect. Challenges require the decoded messages, transferred files, or the exact packet sequence that proves the behavior.