Pcap metrics csv

From XuShuwenn/RedAct · View interactive version

Pcap metrics csv is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Compute network metrics and intrusion flags from a PCAP and populate a metric,value CSV while preserving comments.

How to use this skill

Skill file

PCAP Metrics and CSV Population

A reusable workflow to extract core traffic statistics, graph features, timing metrics, flow counts, and intrusion flags from a PCAP, then fill a metric,value CSV template. Comment lines in the CSV must remain unchanged.

When to Use

Use this skill when you need to:

Core Workflow

Prefer the pcap-analysis helper utilities when available. If unavailable, follow the fallback algorithmic notes inline.

1) Load and split

2) Protocol counts

3) Timestamps and duration

4) Packets per minute (PPM)

5) Sizes

6) Entropy (Shannon)

7) Directed IP graph

8) Inter-arrival times (IAT)

9) Producer/Consumer counts (PCR)

10) Flows (5-tuple)

11) Intrusion flags (prefer helper thresholds)

12) Populate the CSV

Preferred Helper Functions (if available)

Notes:

Verification Checklist

Cross-check before writing final results:

Common Pitfalls and How to Avoid Them

Optional Script Usage

A small helper is provided to safely update a metric,value CSV with computed results while preserving comments and formatting.

Example usage:

Success criteria:

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.