Pcap traffic metrics

From XuShuwenn/RedAct · View interactive version

Pcap traffic metrics is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Compute network statistics and intrusion heuristics from PCAPs, then safely fill a metrics CSV by updating only the value column while preserving comments.

How to use this skill

Skill file

PCAP Traffic Metrics and Safe CSV Update

This skill provides a reusable workflow to analyze a packet capture (PCAP) and compute protocol counts, time/rate statistics, size statistics, entropy, IP-graph properties, temporal metrics, flow counts, and simple intrusion heuristics. It also covers safely updating a template CSV by replacing only the value column while preserving comment lines and formatting.

When to Use

Activate this skill when you need to:

Core Workflow

1) Preparation and File Inspection

2) Packet Parsing and Normalization

3) Metric Computation

4) Analysis Flags (Heuristic)

5) Safe CSV Update (Preserve Comments and Format)

Verification

Perform these checks before finalizing:

Common Pitfalls and How to Avoid Them

Optional Script Usage

Two helper scripts are provided:

Tune detection thresholds via CLI flags if needed to avoid over/under-triggering analysis flags.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.