sohan-a11y/ageis-ai-pentester/analyzing-network-flow-data-with-netflow

Claude Code and agent skill by sohan-a11y/ageis-ai-pentester

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Parse NetFlow v9 and IPFIX records to detect volumetric anomalies, port scanning, data exfiltration, and C2 beaconing

Install

npx vskill@latest install sohan-a11y/ageis-ai-pentester/analyzing-network-flow-data-with-netflow

SKILL.md

The same SKILL.md was published earlier as singtreb/sword-riding/analyzing-network-flow-data-with-netflow.

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

Detection Gaps & Validation

  • Sampling loss blinds you: sampled NetFlow (e.g., 1:1000 on the router) drops most low-volume flows — beaconing and slow exfil disappear. Check the IPFIX samplingInterval/SAMPLING_INTERVAL field; on sampled exporters, scale IN_BYTES/IN_PKTS and never trust raw flow counts for scan detection.
  • Flow records are metadata only: NetFlow sees the 5-tuple, bytes, and timing — not payload. DNS C2 over DoH/DoT (port 443/853) and TLS-encrypted exfil look like ordinary HTTPS; pivot on destination reputation, JA3 from a sidecar sensor, and per-flow byte asymmetry, not content.
  • Low-and-slow beats fixed thresholds: attackers pace beacons with jitter and keep flows under volumetric alarms. Compute inter-flow interval variance per (src,dst,dstport) over hours, not a single window; flag near-constant periods even at tiny byte counts.
  • Active/inactive timeouts split sessions: one long transfer becomes many flow records (default 30s active / 15s inactive timeout), inflating flow counts and hiding total volume. Aggregate by 5-tuple before scoring exfil.
  • Validate the pipeline fires: replay a known-bad pcap through nfreplay/softflowd to your collector (python -m netflow.collector -p 9995) and confirm the scan/beacon rule alerts on it; if no alert, the template (v9 template ID mismatch) or field mapping is broken.
  • FP tuning: baseline backup windows, CDN/cloud sync, and SaaS keepalives per-host before alerting, or legitimate periodic traffic floods the beaconing detector.

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
  1. 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)

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/sohan-a11y/ageis-ai-pentester/analyzing-network-flow-data-with-netflow/badge)](https://verified-skill.com/skills/sohan-a11y/ageis-ai-pentester/analyzing-network-flow-data-with-netflow)

Something wrong with this skill or its page? Tell us.