Network Security & Traffic Analysis

Network Security & Traffic Analysis is a skill for Claude Code, Codex from Masriyan/Claude-Code-CyberSecurity-Skill. It costs 28 tokens per session (3,480 once invoked), scanned A, original, MIT.

A network-security assistant for examining captured network data, writing detection rules, checking firewall settings, and reviewing network designs. PCAP files are saved records of network packets.

In plain words
What is it for?
Use it to inspect PCAP or PCAPNG files, create Snort, Suricata, or Zeek rules, audit firewalls, investigate command-and-control traffic, DNS tunneling, and data theft, and review network segmentation or TLS certificates.
Why use it?
It helps turn large packet captures and complicated rules into findings about suspicious traffic, weak settings, or possible attacks.

Skill for Claude CodeCodex

Part of the cybersecurity plugin — 20 skills shipped together

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.

agentmods
npx agentmods add skills/masriyan/claude-code-cybersecurity-skill/08-network-security
Any agent
npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill 08-network-security
Clone the repo
git clone --depth 1 https://github.com/Masriyan/Claude-Code-CyberSecurity-Skill

Made for: Claude Code, Codex.

Or install cybersecurity, the plugin that ships this one along with the rest of its 20 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 Network Security & Traffic Analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/masriyan/claude-code-cybersecurity-skill/08-network-security.svg)](https://agentmods.dev/skills/masriyan/claude-code-cybersecurity-skill/08-network-security)
Your own site
<a href="https://agentmods.dev/skills/masriyan/claude-code-cybersecurity-skill/08-network-security"><img src="https://agentmods.dev/badge/skills/masriyan/claude-code-cybersecurity-skill/08-network-security.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,480 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00028 $0.03480
Opus 5 $0.00014 $0.01740
Sonnet 5 $0.00006 $0.00696
Haiku 4.5 $0.00003 $0.00348

Measured 5d ago against content hash 6d714c7f763d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Network Security & Traffic Analysis 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 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/pcap_analyzer.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/08-network-security/SKILL.md · 391 lines

How it starts

The opening of the file, as written. The whole thing — 391 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Network Security & Traffic Analysis

Purpose

Enable Claude to assist with network security operations including traffic analysis from PCAP files, IDS/IPS rule authoring for Snort and Suricata, firewall rule auditing, network anomaly detection, and network architecture security reviews.


Activation Triggers

This skill activates when the user asks about:

  • Analyzing PCAP or PCAPNG files for suspicious activity
  • Creating Snort or Suricata detection rules
  • Writing Zeek (Bro) scripts for network analysis
  • Reviewing firewall rules (iptables, nftables, pf, cloud security groups)
  • Detecting C2 beaconing, DNS tunneling, or data exfiltration in network traffic
  • Network architecture security review
  • IDS/IPS signature development
  • Network segmentation and east-west traffic analysis
  • TLS inspection and certificate analysis

Prerequisites

pip install scapy dpkt requests

Recommended tools:

  • Wireshark / tshark — Packet capture and GUI analysis
  • Suricata — Modern IDS/IPS engine
  • Snort 3 — Classic IDS/IPS engine
  • Zeek (Bro) — Network analysis and scripting framework
  • tcpdump — Command-line packet capture
  • NetworkMiner — PCAP artifact extraction
  • nmap — Network scanning and discovery

Core Capabilities

1. PCAP Traffic Analysis

When the user provides a PCAP file or asks to analyze network traffic:

# Quick summary with tshark
tshark -r capture.pcap -q -z io,phs           # Protocol hierarchy
tshark -r capture.pcap -q -z conv,tcp         # TCP conversations
tshark -r capture.pcap -q -z endpoints,ip     # IP endpoints

# Extract HTTP requests
tshark -r capture.pcap -Y http.request -T fields -e ip.src -e http.host -e http.request.uri

# Extract DNS queries
tshark -r capture.pcap -Y dns.flags.response==0 -T fields -e ip.src -e dns.qry.name

# Extract files
tshark -r capture.pcap --export-objects http,./extracted_files/
tshark -r capture.pcap --export-objects smb,./smb_files/

# Run automated analysis
python scripts/pcap_analyzer.py --file capture.pcap --output analysis.json
python scripts/pcap_analyzer.py --file traffic.pcapng --dns --http --top-talkers 20

Read the full file on GitHub · 391 lines

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. 5d ago First seen · 391 lines · 28 tokens per session scan A 6d714c7f763d

Subscribe to this mod's changes

Network Security & Traffic Analysis is a skill published in the GitHub repository Masriyan/Claude-Code-CyberSecurity-Skill (395 stars, last pushed 2d ago), licensed MIT. It adds 28 tokens to every session and 3,480 once invoked, about $0.0001 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-traffic-for-incidents

Analyzes network traffic captures and flow data to identify adversary activity during security incidents, including command-and-control communications, lateral movement, data exfiltration, and exploitation attempts. Uses Wireshark, Zeek, and NetFlow analysis techniques. Activates for requests involving network traffic…

mukul975/Anthropic-Cybersecurity-Skills · 91 tokens

analyzing-network-packets-with-scapy

Use Scapy to craft, send, sniff, and dissect TCP/UDP/ICMP/DNS packets, analyze pcap files, implement SYN scans, and detect anomalous traffic such as fragmented or malformed packets. Use when performing authorized network reconnaissance, protocol-level forensic analysis, or building traffic anomaly detection during…

mukul975/Anthropic-Cybersecurity-Skills · 75 tokens

analyzing-network-traffic-with-wireshark

Captures and analyzes network packet data using Wireshark and tshark to identify malicious traffic patterns, diagnose protocol issues, extract artifacts, and support incident response investigations on authorized network segments.

mukul975/Anthropic-Cybersecurity-Skills · 49 tokens

nsm-ids-triage

Triage Suricata IDS alerts from a packet capture (read-only) — signature alerts with detection posture, severity filtering, and corroboration against Zeek session metadata. Use when triaging IDS alerts, checking whether a capture contains known-bad traffic, or validating that a detector was actually armed.

automateyournetwork/netclaw · 67 tokens

configuring-suricata-for-network-monitoring

Deploys and configures Suricata IDS/IPS with Emerging Threats rulesets, EVE JSON logging, and custom rules for real-time network traffic inspection, threat detection, and integration with SIEM platforms for centralized security monitoring.

26zl/cybersec-toolkit · 57 tokens

hunting-for-cobalt-strike-beacons

Use when detect Cobalt Strike beacon network activity using default TLS certificate signatures (serial 8BB00EE), JA3/JA3S/JARM fingerprints, HTTP C2 profile pattern matching, beacon jitter analysis, and named pipe detection via Zeek, Suricata, and Python PCAP analysis. Use when detecting cobalt strike beacon network…

oyi77/1ai-skills · 84 tokens