Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-network-flow-data-with-netflow -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/analyzing-network-flow-data-with-netflow/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/analyzing-network-flow-data-with-netflow/

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

Similar skills

Everything for Security →

From the same set89

analyzing-ethereum-smart-contract-vulnerabilities Runs static and symbolic analysis on Solidity smart contracts using Slither and Mythril. Catches reentrancy, integer overflows, and access flaws before deployment. CX Codex +1 393installs analyzing-malicious-pdf-with-peepdf This skill statically inspects suspicious PDFs with peepdf, pdfid.py, and pdf-parser.py. Use it to triage attachments, inspect exploit documents, and collect detection indicators. CX Codex +1 387installs testing-api-for-mass-assignment-vulnerability Tests APIs for mass assignment by adding undocumented request fields and checking whether they persist. Use it for profile, registration, and object-creation endpoints. CX Codex +1 385installs analyzing-network-covert-channels-in-malware Reads a PCAP for DNS tunneling, ICMP exfiltration and C2 hidden in HTTP. Useful during incident response or a hunt for exfiltration channels. CX Codex +1 372installs analyzing-heap-spray-exploitation A skill that reads memory dumps and finds heap spray artifacts: NOP sleds, executable injected regions and embedded shellcode. CX Codex +1 372installs analyzing-malware-sandbox-evasion-techniques Reads Cuckoo and AnyRun behavioral reports and flags the signs that a sample spotted the sandbox and played dead. CX Codex +1 363installs exploiting-idor-vulnerabilities Guides authorized testing of IDOR vulnerabilities across API endpoints using Burp Suite, the Authorize extension, and curl scripts. CX Codex +1 365installs analyzing-malware-behavior-with-cuckoo-sandbox A skill that detonates samples in Cuckoo Sandbox and walks through what they do at runtime: processes, files, registry, network. CX Codex +1 361installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor