New to Claude Skills? Learn how to install them →

mukul975 on GitHub

Network Traffic Baselining

Free

Establish normal traffic patterns and detect anomalies.

Get this skill

Free · Opens the source repo

What Network Traffic Baselining does

The Network Traffic Baselining skill provides a systematic approach to establishing normal communication patterns by analyzing historical NetFlow or IPFIX data. Utilizing Python's pandas library, this skill processes CSV or JSON exports to compute traffic distributions over hourly and daily intervals. It generates detailed statistics for each host, including byte and packet counts, as well as protocol and port usage ratios. This information is crucial for security operations center (SOC) analysts who need to understand baseline network behavior and identify any deviations that may indicate security incidents.

The skill employs statistical methods, specifically z-score and interquartile range (IQR) anomaly detection techniques, to flag unusual traffic patterns. By comparing current traffic data against established baselines, SOC analysts can quickly identify potential threats such as data exfiltration spikes, beaconing activities, or abnormal port usage. This capability is essential for maintaining network security and compliance with organizational policies.

To effectively use this skill, users must have access to historical flow data, ideally covering at least seven days, to create reliable baselines. The skill's output includes a JSON report that details traffic baselines, per-host statistics, and any detected anomalies, providing a comprehensive overview of network behavior. This tool is particularly beneficial for security assessments and when configuring security controls aligned with compliance requirements.

In summary, the Network Traffic Baselining skill is designed for SOC analysts and security professionals who need to establish a clear understanding of normal network traffic patterns and quickly identify deviations that could indicate security threats. Its reliance on established statistical methods ensures that the analysis is both accurate and actionable.

When to use it

Use this skill when you need to establish baselines for network traffic and detect anomalies in security assessments or compliance configurations.

When not to use it

This skill is not suitable for real-time traffic monitoring or environments without historical flow data.

What you can build with it

Establishing Security Baselines

Use this skill to create traffic baselines that help in establishing security controls aligned with compliance requirements.

Conducting Security Assessments

Employ the skill during security assessments to identify deviations from normal traffic patterns and potential threats.

Improving Security Architecture

Utilize this skill to enhance your security architecture by understanding typical network behavior and detecting anomalies.

How to install Network Traffic Baselining

View source

1. Install with the skills CLI

npx skills add mukul975/anthropic-cybersecurity-skills/implementing-network-traffic-baselining --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by mukul975

Implementing Network Traffic Baselining

Overview

Network traffic baselining establishes normal communication patterns by analyzing historical NetFlow/IPFIX data to create statistical profiles of expected behavior. This skill uses Python pandas to compute hourly and daily traffic distributions, per-host byte/packet counts, protocol ratios, and top-N talker profiles. Anomalies are detected using z-score thresholds and IQR (interquartile range) outlier methods, enabling SOC analysts to identify deviations such as data exfiltration spikes, beaconing patterns, and unusual port usage.

When to Use

  • When deploying or configuring implementing network traffic baselining capabilities in your environment
  • When establishing security controls aligned to compliance requirements
  • When building or improving security architecture for this domain
  • When conducting security assessments that require this implementation

Prerequisites

  • NetFlow v5/v9 or IPFIX flow data exported as CSV or JSON
  • Python 3.8+ with pandas and numpy libraries
  • Historical flow data (minimum 7 days recommended for baseline)

Steps

  1. Ingest NetFlow/IPFIX records from CSV or JSON exports
  2. Compute hourly and daily traffic volume distributions (bytes, packets, flows)
  3. Build per-source-IP baseline profiles with mean, median, standard deviation
  4. Calculate protocol and port distribution baselines
  5. Apply z-score anomaly detection to identify statistical outliers
  6. Flag flows exceeding IQR-based thresholds as potential anomalies
  7. Generate baseline report with anomaly alerts

Expected Output

JSON report containing traffic baselines (hourly/daily profiles), per-host statistics, detected anomalies with z-scores, and top talker rankings with deviation indicators.

Frequently asked questions about Network Traffic Baselining

Similar skills