analyzing-network-flow-data-with-netflow — Claude Code skill: NetFlow
This skill parses NetFlow v9 and IPFIX records to spot volumetric anomalies, port scanning, data exfiltration and C2 beaconing.
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-network-flow-data-with-netflow -a claude-codeWhat analyzing-network-flow-data-with-netflow does
The skill hands your agent a procedure for network flow analysis. It decodes NetFlow v9 and IPFIX records with the Python netflow library, builds a traffic baseline, then applies statistics to flows with unusual byte counts, connection durations and timing.
Inside you get a set of steps plus scripts/agent.py. Install the dependency with pip install netflow, collect data from routers or the built-in collector python -m netflow.collector -p 9995, parse it through netflow.parse_packet(), and check four patterns: port scanning, data exfiltration, C2 beaconing, volumetric spikes. The run ends with a prioritized findings report.
Python 3.8+ is required, along with authorization for any testing. The skill assumes a lab or test environment, so pointing it at a production network without written approval is a bad idea — clear the scope first.
What it helps with
- parse a NetFlow v9 dump and pull addresses and byte counts per flow
- catch port scanning from one source to many destinations
- spot high-byte outbound flows to unusual destinations
- detect C2 beaconing from evenly spaced connection intervals
- compare current traffic against a baseline and get a prioritized report
Example prompts for the agent
- parse captured_flows.json and show me the flows with abnormal byte counts
- check these NetFlow records for port scanning patterns
- build a traffic baseline and find periodic connections
How to install analyzing-network-flow-data-with-netflow
1Skills CLI (Vercel)
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-network-flow-data-with-netflow -a claude-code2Manually: put the files in place
~/.claude/skills/analyzing-network-flow-data-with-netflow/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/analyzing-network-flow-data-with-netflow/
1Skills CLI (Vercel)
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-network-flow-data-with-netflow -a codex2Manually: put the files in place
.agents/skills/analyzing-network-flow-data-with-netflow/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-network-flow-data-with-netflow -a cursor2Manually: put the files in place
.cursor/skills/analyzing-network-flow-data-with-netflow/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install mukul975/Anthropic-Cybersecurity-Skills analyzing-network-flow-data-with-netflow2Manually: put the files in place
.github/skills/analyzing-network-flow-data-with-netflow/SKILL.md1Skills CLI (Vercel)
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-network-flow-data-with-netflow -a gemini-cli2Platform CLI
gemini skills install https://github.com/mukul975/Anthropic-Cybersecurity-Skills --path skills/analyzing-network-flow-data-with-netflowManually: put the files in place
.devin/skills/analyzing-network-flow-data-with-netflow/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-network-flow-data-with-netflow -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about analyzing-network-flow-data-with-netflow
How do I install analyzing-network-flow-data-with-netflow in Claude?
Run npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-network-flow-data-with-netflow -a claude-code. The skill file lands at ~/.claude/skills/analyzing-network-flow-data-with-netflow/SKILL.md.
What does analyzing-network-flow-data-with-netflow do?
It parses NetFlow v9 and IPFIX records, builds a traffic baseline, and looks for volumetric anomalies, port scanning, data exfiltration and C2 beaconing. You get a prioritized findings report.
What do I need to run this skill?
Python 3.8+ with the netflow library installed, plus access to a test environment. Any testing activity needs authorization.
Source text
SKILL.md · Apache-2.0
---
name: analyzing-network-flow-data-with-netflow
description: Parse NetFlow v9 and IPFIX records to detect volumetric anomalies, port
scanning, data exfiltration, and C2 beaconing patterns. Uses the Python netflow
library to decode flow records, builds traffic baselines, and applies statistical
analysis to identify flows with abnormal byte counts, connection durations, and
periodic timing patterns.
domain: cybersecurity
subdomain: network-security
tags:
- analyzing
- network
- flow
- data
version: '1.0'
author: mahipal
license: Apache-2.0
nist_csf:
- PR.IR-01
- DE.CM-01
- ID.AM-03
- PR.DS-02
mitre_attack:
- T1071
- T1048
- T1046
- T1095
---
# Analyzing Network Flow Data with Netflow
## When to Use
- When investigating security incidents that require analyzing network flow data with netflow
- When building detection rules or threat hunting queries for this domain
- When SOC analysts need structured procedures for this analysis type
- When validating security monitoring coverage for related attack techniques
## Prerequisites
- Familiarity with network security concepts and tools
- Access to a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities
## Instructions
1. Install dependencies: `pip install netflow`
2. Collect NetFlow/IPFIX data from routers or use the built-in collector: `python -m netflow.collector -p 9995`
3. Parse captured flow data using `netflow.parse_packet()`.
4. Analyze flows for:
- Port scanning: single source to many destinations on same port
- Data exfiltration: high byte-count outbound flows to unusual destinations
- C2 beaconing: periodic connections with consistent intervals
- Volumetric anomalies: traffic spikes beyond baseline thresholds
5. Generate a prioritized findings report.
```bash
python scripts/agent.py --flow-file captured_flows.json --output netflow_report.json
```
## Examples
### Parse NetFlow v9 Packet
```python
import netflow
data, _ = netflow.parse_packet(raw_bytes, templates={})
for flow in data.flows:
print(flow.IPV4_SRC_ADDR, flow.IPV4_DST_ADDR, flow.IN_BYTES)
```
© mahipal · Apache-2.0 · mukul975/Anthropic-Cybersecurity-Skills