analyzing-network-flow-data-with-netflow

analyzing-network-flow-data-with-netflow is a skill for Claude Code from killvxk/cybersecurity-skills-zh. It costs 102 tokens per session (432 once invoked), scanned A, original, Apache-2.0.

A guide to reading NetFlow v9 and IPFIX records, which summarise network connections without storing every packet. It uses Python analysis to identify unusual traffic patterns.

In plain words
What is it for?
Use it to parse flow records, detect port scans, unusually large outbound transfers, periodic connections, and volume anomalies, then create a prioritised report.
Why use it?
It helps turn large volumes of connection summaries into a baseline and prioritised findings. This can reveal traffic spikes, scanning, possible data theft, or recurring command-and-control connections.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cybersecurity-skills-zh plugin — 58 skills shipped together

Good fit Use it to parse flow records, detect port scans, unusually large outbound transfers, periodic connections, and volume anomalies, then create a prioritised report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/killvxk/cybersecurity-skills-zh/analyzing-network-flow-data-with-netflow
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add killvxk/cybersecurity-skills-zh --skill analyzing-network-flow-data-with-netflow
Clone the repo
git clone --depth 1 https://github.com/killvxk/cybersecurity-skills-zh

Made for: Claude Code.

Or install cybersecurity-skills-zh, the plugin that ships this one along with the rest of its 58 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analyzing-network-flow-data-with-netflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/killvxk/cybersecurity-skills-zh/analyzing-network-flow-data-with-netflow/github.svg)](https://agentmods.dev/skills/killvxk/cybersecurity-skills-zh/analyzing-network-flow-data-with-netflow)
Your own site
<a href="https://agentmods.dev/skills/killvxk/cybersecurity-skills-zh/analyzing-network-flow-data-with-netflow"><img src="https://agentmods.dev/badge/skills/killvxk/cybersecurity-skills-zh/analyzing-network-flow-data-with-netflow/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for analyzing-network-flow-data-with-netflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/killvxk/cybersecurity-skills-zh/analyzing-network-flow-data-with-netflow"><img src="https://agentmods.dev/badge/skills/killvxk/cybersecurity-skills-zh/analyzing-network-flow-data-with-netflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 432 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00102 $0.00432
Opus 5 $0.00051 $0.00216
Sonnet 5 $0.00020 $0.00086
Haiku 4.5 $0.00010 $0.00043

Measured 10d ago against content hash aa44952b8404, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

analyzing-network-flow-data-with-netflow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/agent.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/analyzing-network-flow-data-with-netflow/SKILL.md · 40 lines

What it actually says

指令

  1. 安装依赖:pip install netflow
  2. 从路由器采集 NetFlow/IPFIX 数据,或使用内置采集器:python -m netflow.collector -p 9995
  3. 使用 netflow.parse_packet() 解析捕获的流数据。
  4. 分析流量,检测以下内容:
    • 端口扫描(Port scanning):单一源地址扫描同一端口的大量目标
    • 数据外泄(Data exfiltration):向异常目标发送的高字节数出站流量
    • C2 信标(C2 beaconing):具有固定间隔的周期性连接
    • 容量异常(Volumetric anomalies):超出基线阈值的流量峰值
  5. 生成按优先级排列的发现报告。
python scripts/agent.py --flow-file captured_flows.json --output netflow_report.json

示例

解析 NetFlow v9 数据包

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)
Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 40 lines · 102 tokens per session scan A aa44952b8404

Subscribe to this mod's changes

analyzing-network-flow-data-with-netflow is a skill published in the GitHub repository killvxk/cybersecurity-skills-zh (44 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 102 tokens to every session and 432 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

analyzing-network-flow-data-with-netflow

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…

mukul975/Anthropic-Cybersecurity-Skills · 76 tokens

analyzing-network-flow-data-with-netflow

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…

autohandai/community-skills · 76 tokens

analyzing-network-flow-data-with-netflow

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…

26zl/cybersec-toolkit · 76 tokens

analyzing-network-flow-data-with-netflow

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…

pinkpixel-dev/skills-collection-1 · 76 tokens

analyzing-network-flow-data-with-netflow

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…

marysatasselshaped667/skills-collection-1 · 76 tokens

analyzing-network-flow-data-with-netflow

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…

Youngmaidainon/Agent-Level-Up · 76 tokens