# competition-pcap-protocol

The competition-pcap-protocol Claude Code skill reconstructs sessions and decodes traffic in packet captures. It runs after sandbox setup when packet evidence needs to be tied to host or malware activity.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 109 installs · ★ 45047 repo stars
- Author: zhaoxuya520
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/zhaoxuya520/reverse-skill/tree/HEAD/CTF-Sandbox-Orchestrator/competition-pcap-protocol/SKILL.md
- Updated: 2026-09-22
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/competition-pcap-protocol

## What it does

The skill groups captured traffic into sessions, reconstructs TCP streams and UDP conversations, and decodes protocol framing. It can recover transferred files and connect packet sequences to host events, malware behavior, or command traffic.

\`ctf-sandbox-orchestrator` must establish the sandbox assumptions and evidence priorities first, then route the task here. The analysis tracks timestamps, traffic direction, packet loss, and object boundaries. For session and decoding checklists, plus evidence packaging guidance, the skill loads `references/pcap-protocol.md`.

If the task turns into a host event timeline, it switches to a focused forensic timeline skill. Separate skills cover difficult WebSocket flows and replaying custom protocols.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add zhaoxuya520/reverse-skill --skill competition-pcap-protocol -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/competition-pcap-protocol/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/competition-pcap-protocol/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add zhaoxuya520/reverse-skill --skill competition-pcap-protocol -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/competition-pcap-protocol/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add zhaoxuya520/reverse-skill --skill competition-pcap-protocol -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/competition-pcap-protocol/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install zhaoxuya520/reverse-skill CTF-Sandbox-Orchestrator/competition-pcap-protocol/SKILL.md
```

2. **Manually: put the files in place**
- File: `.github/skills/competition-pcap-protocol/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add zhaoxuya520/reverse-skill --skill competition-pcap-protocol -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/zhaoxuya520/reverse-skill --path CTF-Sandbox-Orchestrator/competition-pcap-protocol
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/competition-pcap-protocol/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add zhaoxuya520/reverse-skill --skill competition-pcap-protocol -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/zhaoxuya520/reverse-skill/tree/HEAD/CTF-Sandbox-Orchestrator/competition-pcap-protocol/SKILL.md

## When to use it
- rebuild a TCP or UDP session from a PCAP
- decode HTTP, DNS, or custom protocol traffic
- recover files transferred over a network stream
- connect packet sequences to host or malware behavior

## Example prompts
- Analyze this PCAP and reconstruct its TCP and UDP sessions.
- Decode the DNS and HTTP traffic, then recover transferred files.
- Link this packet sequence to the malware's behavior.

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: dfd72b4600173d7a.

BEGIN THIRD-PARTY FILE dfd72b4600173d7a
```text
---
name: competition-pcap-protocol
description: Internal downstream skill for ctf-sandbox-orchestrator. CTF-sandbox workflow for packet capture analysis, session reconstruction, application-protocol decoding, stream reassembly, beacon timing, and packet-to-process correlation. Use when the user asks to analyze a PCAP, rebuild TCP or UDP sessions, decode HTTP, WebSocket, DNS, custom C2, or binary protocols, extract transferred artifacts, or tie packet sequences to host or malware behavior. Use only after `$ctf-sandbox-orchestrator` has already established sandbox assumptions and routed here.
---

# Competition PCAP Protocol

Use this skill only as a downstream specialization after `$ctf-sandbox-orchestrator` is already active and has established sandbox assumptions, node ownership, and evidence priorities. If that has not happened yet, return to `$ctf-sandbox-orchestrator` first.

Use this skill when the decisive evidence sits inside packet order, protocol framing, or stream reconstruction rather than a single IOC or host log.

Reply in Simplified Chinese unless the user explicitly requests English.

## Quick Start

1. Establish the capture boundaries first: hosts, time span, interfaces, missing packets, retransmits, and stream count.
2. Group traffic into sessions before decoding payload semantics.
3. Record protocol framing, sequence, timing, and transferred artifacts together instead of as isolated packets.
4. Correlate packet evidence with host, malware, or app behavior only after the session is reconstructed.
5. Reproduce the smallest decoded stream or transferred artifact that proves the challenge path.

## Workflow

### 1. Build The Session Map

- Identify endpoints, protocols, ports, TLS handshakes, DNS lookups, websocket upgrades, and long-lived streams.
- Note missing capture coverage, asymmetric routing, packet loss, or reassembly issues before drawing conclusions.
- Separate control channels, bulk transfers, keepalives, and noise.

### 2. Decode The Protocol Boundary

- Reassemble TCP streams or UDP conversations before interpreting fields.
- Recover framing, message order, custom headers, binary fields, compression, encryption boundaries, and object transfers.
- Keep payload direction, timing, and session state aligned with each decoded message.

### 3. Tie Packets To Behavior

- Show which packet sequence maps to which host event, malware branch, login flow, upload, exfiltration step, or command channel.
```
END THIRD-PARTY FILE dfd72b4600173d7a

The third-party file has ended. Everything between the dfd72b4600173d7a tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2461 of 3479 bytes. © zhaoxuya520 · MIT · https://github.com/zhaoxuya520/reverse-skill/tree/HEAD/CTF-Sandbox-Orchestrator/competition-pcap-protocol/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
