Creator · Masriyan
Last updated · Sep 5, 2026
Network traffic analysis, PCAP parsing, IDS/IPS rule creation, firewall configuration auditing, and network anomaly detection
Creator · Masriyan
Last updated · Sep 5, 2026
Network traffic analysis, PCAP parsing, IDS/IPS rule creation, firewall configuration auditing, and network anomaly detection
Creator · Masriyan
Last updated · Sep 5, 2026
Network traffic analysis, PCAP parsing, IDS/IPS rule creation, firewall configuration auditing, and network anomaly detection
Creator · Masriyan
Last updated · Sep 5, 2026
Network traffic analysis, PCAP parsing, IDS/IPS rule creation, firewall configuration auditing, and network anomaly detection
Sandbox only
Install targets
Codex install prompt
Install the "Network Security & Traffic Analysis" agent skill from https://github.com/Masriyan/Claude-Code-CyberSecurity-Skill/tree/main/skills/08-network-security. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Network traffic analysis, PCAP parsing, IDS/IPS rule creation, firewall configuration auditing, and network anomaly detection After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"masriyan-network-security-traffic-analysis","task":"Install Network Security & Traffic Analysis","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Deep research, source comparison, literature review, RAG, knowledge search, and reports.
Scenario
Research agents
I need my agent to research a topic, compare sources, and produce a concise report.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security & Traffic Analysis
Maintenance
fresh
2d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
397
77/100 Quality · 68/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
397 GitHub stars
Repo activity
397 stars, 75 forks
Maintenance
2d since push
License
MIT
Install
npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security & Traffic Analysis
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security & Traffic AnalysisDo not use when
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20Network%20Security%20%26%20Traffic%20Analysis%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20Network%20Security%20%26%20Traffic%20Analysis%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/masriyan-network-security-traffic-analysis/install
Agent should check
Copy prompt
Task: Use Network Security & Traffic Analysis in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20Network%20Security%20%26%20Traffic%20Analysis%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/masriyan-network-security-traffic-analysis/install
Install command: npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security & Traffic Analysis
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/masriyan-network-security-traffic-analysis/install
LLM text format
/api/skills/masriyan-network-security-traffic-analysis/install?format=text
Find alternatives
/api/skills/search?q=Network%20Security%20%26%20Traffic%20Analysis&limit=3
Agent prompt
Use Network Security & Traffic Analysis for this task. Review https://www.openagentskill.com/api/skills/masriyan-network-security-traffic-analysis/install, then install with: npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security & Traffic AnalysisRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/masriyan-network-security-traffic-analysis
LLM text
/api/registry/manifest/masriyan-network-security-traffic-analysis?format=text
Install alias
/api/registry/install/masriyan-network-security-traffic-analysis
Recommend
/api/registry/recommend?task=Use%20Network%20Security%20%26%20Traffic%20Analysis%20in%20an%20agent%20workflow&limit=3
Agent fit
Local desktop
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Shortlist this skill and compare it with close alternatives before production adoption.
Role in stack
Companion skill
Primary fit
Local desktop
Trust label
Strong shortlist
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO397 GitHub stars
Stars/forks activity
INFO397 stars, 75 forks; issue activity unavailable in current metadata
Recent maintenance
PASS2d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Operate local tools
I need my agent to operate local files and desktop apps in a repeatable workflow.
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Workflow fit
Scrape, clean, and reuse web data
A practical workflow for agents that crawl public pages, extract clean content, normalize data, and hand it to downstream research or RAG workflows.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Alternative shortlist
Similar skills that may fit this task.
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
Infisical is the open-source platform for secrets, certificates, and privileged access management.
--- name: Network Security & Traffic Analysis description: Network traffic analysis, PCAP parsing, IDS/IPS rule creation, firewall configuration auditing, and network anomaly detection version: 3.0.0 author: Masriyan tags: [cybersecurity, network, traffic-analysis, pcap, ids, ips, firewall, snort, suricata, zeek] ---
# 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
```bash 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:**
```bash # 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 ```
**Traffic Analysis Checklist:** ``` [ ] Protocol distribution — any unexpected protocols? [ ] Top talkers — unusual source/destination combinations [ ] DNS analysis — DGA domains, unusually long queries, high volume [ ] HTTP analysis — suspicious user agents, unusual methods, encoded data [ ] TLS analysis — invalid certificates, unusual SNI, cert fingerprints [ ] ICMP analysis — large payloads (tunneling), ping sweeps [ ] SMB analysis — authentication attempts, file access patterns [ ] Data volume — large uploads (exfiltration?), irregular transfer sizes [ ] Timing analysis — regular interval beaconing patterns ```
**Beaconing Detection:** Beaconing shows as consistent time intervals between outbound connections: ```bash # tshark: extract connection timestamps to check for regularity tshark -r capture.pcap -Y "ip.dst == 203.0.113.10 and tcp.flags.syn==1" \ -T fields -e frame.time_epoch | \ awk 'NR>1{printf "%.0f\n", ($1-prev)} {prev=$1}' | sort | uniq -c | sort -rn # Consistent counts at specific intervals = beaconing ```
**DNS Tunneling Detection:** ```bash # Long DNS query names (>50 chars for subdomain) = likely tunneling tshark -r capture.pcap -Y "dns.qry.name.len > 50" \ -T fields -e ip.src -e dns.qry.name | head -50
# High-volume DNS to single domain = tunneling tshark -r capture.pcap -Y "dns" -T fields -e dns.qry.name | \ awk -F. '{print $(NF-1)"."$NF}' | sort | uniq -c | sort -rn | head -20 ```
### 2. Suricata Rule Creation
**When the user asks to create Suricata IDS rules:**
**Suricata Rule Syntax Reference:** ``` action protocol src_ip src_port -> dst_ip dst_port (options) ```
**Rule Templates:**
```suricata # Template: C2 Beaconing over HTTP alert http $HOME_NET any -> $EXTERNAL_NET any ( msg:"MALWARE Suspicious C2 Beacon - Regular Interval HTTP POST"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/check" endswith; http.header; content:"User-Agent: Mozilla/4.0 (compatible)"; threshold:type both, track by_src, count 5, seconds 300; classtype:trojan-activity; sid:9000001; rev:1; metadata:affected_product Windows_XP_Vista_7_8_10_Server, attack_target Client_Endpoint, created_at 2025_05_28, deployment Perimeter; )
# Template: DNS Tunneling Detection alert dns $HOME_NET any -> any any ( msg:"POLICY Possible DNS Tunneling - Long Subdomain Query"; dns.query; content:"."; byte_test:1,>,50,0,relative; # Query length > 50 chars threshold:type both, track by_src, count 20, seconds 60; classtype:policy-violation; sid:9000002; rev:1; )
# Template: Lateral Movement via SMB alert smb $HOME_NET any -> $HOME_NET 445 ( msg:"LATERAL-MOVEMENT PsExec Lateral Movement Detected"; flow:established,to_server; content:"PSEXESVC"; nocase; classtype:trojan-activity; sid:9000003; rev:1; )
# Template: Data Exfiltration - Large Upload alert http $HOME_NET any -> $EXTERNAL_NET any ( msg:"EXFILTRATION Possible Data Exfiltration - Large HTTP POST"; flow:established,to_server; http.method; content:"POST"; http.request_body; content:!""; dsize:>1000000; # > 1MB body threshold:type both, track by_src, count 3, seconds 300; classtype:policy-violation; sid:9000004; rev:1; )
# Template: Malicious TLS Certificate (self-signed with suspicious CN) alert tls $EXTERNAL_NET any -> $HOME_NET any ( msg:"MALWARE Suspicious TLS Certificate - Self-Signed C2"; tls.cert_subject; content:"CN=localhost"; tls.cert_issuer; content:"CN=localhost"; classtype:trojan-activity; sid:9000005; rev:1; )
# Template: Web Shell Access alert http $EXTERNAL_NET any -> $HOME_NET 80 ( msg:"WEBSHELL Possible Web Shell Access"; flow:established,to_server; http.uri; content:".php"; http.request_body; content:"cmd="; nocase; content:"exec"; nocase; distance:0; classtype:web-application-attack; sid:9000006; rev:1; ) ```
**Suricata Testing:** ```bash # Test rules against PCAP (offline) suricata -r capture.pcap -S custom.rules -l ./logs/
# Test rule syntax suricata --dump-config
# Check for rule performance issues suricata -r test.pcap -S rules.rules --runmode single 2>&1 | grep "perf" ```
### 3. Snort 3 Rule Creation
```snort # Snort 3 format — note different syntax from Snort 2 alert tcp $EXTERNAL_NET any -> $HTTP_SERVERS 80 ( msg:"WEB-ATTACK SQL Injection Attempt"; flow:established,to_server; http_uri; content:"' OR '1'='1"; nocase; sid:9001001; rev:1; classtype:web-application-attack; ) ```
### 4. Zeek Script Templates
```zeek # Detect connections with unusually regular intervals (beaconing) module BeaconDetect;
export { redef enum Log::ID += { LOG }; type Info: record { ts: time &log; src: addr &log; dst: addr &log; interval: interval &log; }; }
global connection_times: table[addr, addr] of vector of time;
event connection_established(c: connection) { local key = [c$id$orig_h, c$id$resp_h]; if (key !in connection_times) connection_times[key] = vector(); connection_times[key] += network_time(); }
event connection_state_remove(c: connection) { local key = [c$id$orig_h, c$id$resp_h]; if (key in connection_times && |connection_times[key]| > 5) { # Calculate intervals and check for regularity # Flag if standard deviation < 5% of mean } } ```
### 5. Firewall Configuration Auditing
**When the user provides firewall rules or asks to audit:**
**iptables Review Checklist:** ```bash # View current rules iptables -L -n -v --line-numbers iptables -L INPUT -n -v --line-numbers iptables -L OUTPUT -n -v --line-numbers
# Check for dangerous rules: iptables -L | grep "ACCEPT" # List all ACCEPT rules iptables -L | grep "0.0.0.0" # Any-source rules ```
**iptables Security Checklist:** ``` [ ] Default policy is DROP (not ACCEPT) for all chains [ ] INPUT chain: only established/related + specific allowed services [ ] OUTPUT chain: restrict to necessary outbound (optional but best practice) [ ] FORWARD chain: DROP by default unless this is a router [ ] Management access (SSH/22) restricted to specific source IPs [ ] No rules accepting from 0.0.0.0/0 to ALL ports [ ] Logging enabled for DROPPED packets [ ] Anti-spoofing rules for RFC 1918 addresses on external interfaces [ ] ICMP restricted (allow echo-reply/time-exceeded, block ping from internet) [ ] Port 0 blocked (often used in scans) ```
**AWS Security Group Audit:** ``` Rules that should NEVER exist in production: ✗ Inbound: 0.0.0.0/0 → Port 22 (SSH open to internet) ✗ Inbound: 0.0.0.0/0 → Port 3389 (RDP open to internet) ✗ Inbound: 0.0.0.0/0 → Port 0-65535 (any port from internet) ✗ Outbound: 0.0.0.0/0 → Port 0-65535 (unrestricted outbound)
Rules that are acceptable: ✓ Inbound: 0.0.0.0/0 → Port 443 (HTTPS for public web service) ✓ Inbound: 10.0.0.0/8 → Port 22 (SSH from internal VPC only) ✓ Inbound: [known IP] → Port 22 (SSH from jump box) ```
**Firewall Audit Report Template:** ```markdown ## Firewall Audit Report — [Device/Platform]
**Risk Summary:** | Severity | Count | |----------|-------| | Critical | 2 | | High | 5 | | Medium | 8 |
**CRITICAL: SSH exposed to internet** - Rule: `iptables -A INPUT -p tcp --dport 22 -j ACCEPT` - Risk: Exposed to brute-force and CVE exploitation - Fix: `iptables -A INPUT -p tcp --dport 22 -s [admin_ip] -j ACCEPT`
**HIGH: No default deny policy** - Current: `-P INPUT ACCEPT` - Fix: `-P INPUT DROP` + explicit allow rules ```
### 6. Network Architecture Security Review
**When the user describes or provides a network architecture:**
**Review Framework:** ``` Zone Model (most to least trusted): Internal (Core) → DMZ → Internet
Checkpoints: [ ] Clear network zones with enforced boundaries [ ] DMZ properly isolated from internal network [ ] No direct internet-to-internal traffic allowed [ ] East-west traffic controls between internal zones (microsegmentation) [ ] Management network isolated from production [ ] Out-of-band management for network devices [ ] VPN gateway in DMZ, not directly on internal segment [ ] DNS resolvers not exposed to internet [ ] Log aggregation on separate isolated segment ```
---
## Script Reference
### `pcap_analyzer.py` ```bash python scripts/pcap_analyzer.py --file capture.pcap --output analysis.json python scripts/pcap_analyzer.py --file traffic.pcapng --dns --http --top-talkers 20 python scripts/pcap_analyzer.py --file capture.pcap --detect-beaconing --output beacons.json ```
---
## Skill Integration
| Condition | Adjacent Skill | |-----------|---------------| | Discovered services from recon | ← Skill 01 (Recon & OSINT) | | Network IOCs for threat correlation | → Skill 06 (Threat Hunting) | | Network evidence for IR timeline | → Skill 07 (Incident Response) | | Automate alert responses | → Skill 11 (CSOC Automation) |
---
## References
- [Suricata Documentation](https://suricata.readthedocs.io/) - [Snort 3 Rule Writing Guide](https://docs.snort.org/start/rules) - [Wireshark User Guide](https://www.wireshark.org/docs/wsug_html_chunked/) - [Zeek Documentation](https://docs.zeek.org/) - [SANS Network Forensics](https://www.sans.org/reading-room/) - [The TCP/IP Guide](http://www.tcpipguide.com/)
---
## v3.0 Enhancements (2026 Update)
**Encrypted-traffic-era analysis:**
- **JA4+ fingerprinting** — adopt the JA4/JA4S/JA4H/JA4X suite (successor to JA3) to fingerprint clients, serve
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for Network Security & Traffic Analysis, ready for a manual X post.
Network Security & Traffic Analysis: Network traffic analysis, PCAP parsing, IDS/IPS rule creation, firewall configuration auditin... 397 stars https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis?ref=x
Listing + install path for Network Security & Traffic Analysis: https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis?ref=x Install: npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security...
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to Masriyan but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis/audit)
[](https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)Masriyan
@masriyan
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Wazuh
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
16.3K StarsMaigret
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
32.9K StarsNuclei
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
29.2K StarsInfisical
Infisical is the open-source platform for secrets, certificates, and privileged access management.
27.4K StarsSandbox only
Install targets
Codex install prompt
Install the "Network Security & Traffic Analysis" agent skill from https://github.com/Masriyan/Claude-Code-CyberSecurity-Skill/tree/main/skills/08-network-security. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Network traffic analysis, PCAP parsing, IDS/IPS rule creation, firewall configuration auditing, and network anomaly detection After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"masriyan-network-security-traffic-analysis","task":"Install Network Security & Traffic Analysis","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Deep research, source comparison, literature review, RAG, knowledge search, and reports.
Scenario
Research agents
I need my agent to research a topic, compare sources, and produce a concise report.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security & Traffic Analysis
Maintenance
fresh
2d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
397
77/100 Quality · 68/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
397 GitHub stars
Repo activity
397 stars, 75 forks
Maintenance
2d since push
License
MIT
Install
npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security & Traffic Analysis
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security & Traffic AnalysisDo not use when
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20Network%20Security%20%26%20Traffic%20Analysis%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20Network%20Security%20%26%20Traffic%20Analysis%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/masriyan-network-security-traffic-analysis/install
Agent should check
Copy prompt
Task: Use Network Security & Traffic Analysis in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20Network%20Security%20%26%20Traffic%20Analysis%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/masriyan-network-security-traffic-analysis/install
Install command: npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security & Traffic Analysis
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/masriyan-network-security-traffic-analysis/install
LLM text format
/api/skills/masriyan-network-security-traffic-analysis/install?format=text
Find alternatives
/api/skills/search?q=Network%20Security%20%26%20Traffic%20Analysis&limit=3
Agent prompt
Use Network Security & Traffic Analysis for this task. Review https://www.openagentskill.com/api/skills/masriyan-network-security-traffic-analysis/install, then install with: npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security & Traffic AnalysisRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/masriyan-network-security-traffic-analysis
LLM text
/api/registry/manifest/masriyan-network-security-traffic-analysis?format=text
Install alias
/api/registry/install/masriyan-network-security-traffic-analysis
Recommend
/api/registry/recommend?task=Use%20Network%20Security%20%26%20Traffic%20Analysis%20in%20an%20agent%20workflow&limit=3
Agent fit
Local desktop
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Shortlist this skill and compare it with close alternatives before production adoption.
Role in stack
Companion skill
Primary fit
Local desktop
Trust label
Strong shortlist
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO397 GitHub stars
Stars/forks activity
INFO397 stars, 75 forks; issue activity unavailable in current metadata
Recent maintenance
PASS2d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Operate local tools
I need my agent to operate local files and desktop apps in a repeatable workflow.
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Workflow fit
Scrape, clean, and reuse web data
A practical workflow for agents that crawl public pages, extract clean content, normalize data, and hand it to downstream research or RAG workflows.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Alternative shortlist
Similar skills that may fit this task.
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
Infisical is the open-source platform for secrets, certificates, and privileged access management.
--- name: Network Security & Traffic Analysis description: Network traffic analysis, PCAP parsing, IDS/IPS rule creation, firewall configuration auditing, and network anomaly detection version: 3.0.0 author: Masriyan tags: [cybersecurity, network, traffic-analysis, pcap, ids, ips, firewall, snort, suricata, zeek] ---
# 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
```bash 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:**
```bash # 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 ```
**Traffic Analysis Checklist:** ``` [ ] Protocol distribution — any unexpected protocols? [ ] Top talkers — unusual source/destination combinations [ ] DNS analysis — DGA domains, unusually long queries, high volume [ ] HTTP analysis — suspicious user agents, unusual methods, encoded data [ ] TLS analysis — invalid certificates, unusual SNI, cert fingerprints [ ] ICMP analysis — large payloads (tunneling), ping sweeps [ ] SMB analysis — authentication attempts, file access patterns [ ] Data volume — large uploads (exfiltration?), irregular transfer sizes [ ] Timing analysis — regular interval beaconing patterns ```
**Beaconing Detection:** Beaconing shows as consistent time intervals between outbound connections: ```bash # tshark: extract connection timestamps to check for regularity tshark -r capture.pcap -Y "ip.dst == 203.0.113.10 and tcp.flags.syn==1" \ -T fields -e frame.time_epoch | \ awk 'NR>1{printf "%.0f\n", ($1-prev)} {prev=$1}' | sort | uniq -c | sort -rn # Consistent counts at specific intervals = beaconing ```
**DNS Tunneling Detection:** ```bash # Long DNS query names (>50 chars for subdomain) = likely tunneling tshark -r capture.pcap -Y "dns.qry.name.len > 50" \ -T fields -e ip.src -e dns.qry.name | head -50
# High-volume DNS to single domain = tunneling tshark -r capture.pcap -Y "dns" -T fields -e dns.qry.name | \ awk -F. '{print $(NF-1)"."$NF}' | sort | uniq -c | sort -rn | head -20 ```
### 2. Suricata Rule Creation
**When the user asks to create Suricata IDS rules:**
**Suricata Rule Syntax Reference:** ``` action protocol src_ip src_port -> dst_ip dst_port (options) ```
**Rule Templates:**
```suricata # Template: C2 Beaconing over HTTP alert http $HOME_NET any -> $EXTERNAL_NET any ( msg:"MALWARE Suspicious C2 Beacon - Regular Interval HTTP POST"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/check" endswith; http.header; content:"User-Agent: Mozilla/4.0 (compatible)"; threshold:type both, track by_src, count 5, seconds 300; classtype:trojan-activity; sid:9000001; rev:1; metadata:affected_product Windows_XP_Vista_7_8_10_Server, attack_target Client_Endpoint, created_at 2025_05_28, deployment Perimeter; )
# Template: DNS Tunneling Detection alert dns $HOME_NET any -> any any ( msg:"POLICY Possible DNS Tunneling - Long Subdomain Query"; dns.query; content:"."; byte_test:1,>,50,0,relative; # Query length > 50 chars threshold:type both, track by_src, count 20, seconds 60; classtype:policy-violation; sid:9000002; rev:1; )
# Template: Lateral Movement via SMB alert smb $HOME_NET any -> $HOME_NET 445 ( msg:"LATERAL-MOVEMENT PsExec Lateral Movement Detected"; flow:established,to_server; content:"PSEXESVC"; nocase; classtype:trojan-activity; sid:9000003; rev:1; )
# Template: Data Exfiltration - Large Upload alert http $HOME_NET any -> $EXTERNAL_NET any ( msg:"EXFILTRATION Possible Data Exfiltration - Large HTTP POST"; flow:established,to_server; http.method; content:"POST"; http.request_body; content:!""; dsize:>1000000; # > 1MB body threshold:type both, track by_src, count 3, seconds 300; classtype:policy-violation; sid:9000004; rev:1; )
# Template: Malicious TLS Certificate (self-signed with suspicious CN) alert tls $EXTERNAL_NET any -> $HOME_NET any ( msg:"MALWARE Suspicious TLS Certificate - Self-Signed C2"; tls.cert_subject; content:"CN=localhost"; tls.cert_issuer; content:"CN=localhost"; classtype:trojan-activity; sid:9000005; rev:1; )
# Template: Web Shell Access alert http $EXTERNAL_NET any -> $HOME_NET 80 ( msg:"WEBSHELL Possible Web Shell Access"; flow:established,to_server; http.uri; content:".php"; http.request_body; content:"cmd="; nocase; content:"exec"; nocase; distance:0; classtype:web-application-attack; sid:9000006; rev:1; ) ```
**Suricata Testing:** ```bash # Test rules against PCAP (offline) suricata -r capture.pcap -S custom.rules -l ./logs/
# Test rule syntax suricata --dump-config
# Check for rule performance issues suricata -r test.pcap -S rules.rules --runmode single 2>&1 | grep "perf" ```
### 3. Snort 3 Rule Creation
```snort # Snort 3 format — note different syntax from Snort 2 alert tcp $EXTERNAL_NET any -> $HTTP_SERVERS 80 ( msg:"WEB-ATTACK SQL Injection Attempt"; flow:established,to_server; http_uri; content:"' OR '1'='1"; nocase; sid:9001001; rev:1; classtype:web-application-attack; ) ```
### 4. Zeek Script Templates
```zeek # Detect connections with unusually regular intervals (beaconing) module BeaconDetect;
export { redef enum Log::ID += { LOG }; type Info: record { ts: time &log; src: addr &log; dst: addr &log; interval: interval &log; }; }
global connection_times: table[addr, addr] of vector of time;
event connection_established(c: connection) { local key = [c$id$orig_h, c$id$resp_h]; if (key !in connection_times) connection_times[key] = vector(); connection_times[key] += network_time(); }
event connection_state_remove(c: connection) { local key = [c$id$orig_h, c$id$resp_h]; if (key in connection_times && |connection_times[key]| > 5) { # Calculate intervals and check for regularity # Flag if standard deviation < 5% of mean } } ```
### 5. Firewall Configuration Auditing
**When the user provides firewall rules or asks to audit:**
**iptables Review Checklist:** ```bash # View current rules iptables -L -n -v --line-numbers iptables -L INPUT -n -v --line-numbers iptables -L OUTPUT -n -v --line-numbers
# Check for dangerous rules: iptables -L | grep "ACCEPT" # List all ACCEPT rules iptables -L | grep "0.0.0.0" # Any-source rules ```
**iptables Security Checklist:** ``` [ ] Default policy is DROP (not ACCEPT) for all chains [ ] INPUT chain: only established/related + specific allowed services [ ] OUTPUT chain: restrict to necessary outbound (optional but best practice) [ ] FORWARD chain: DROP by default unless this is a router [ ] Management access (SSH/22) restricted to specific source IPs [ ] No rules accepting from 0.0.0.0/0 to ALL ports [ ] Logging enabled for DROPPED packets [ ] Anti-spoofing rules for RFC 1918 addresses on external interfaces [ ] ICMP restricted (allow echo-reply/time-exceeded, block ping from internet) [ ] Port 0 blocked (often used in scans) ```
**AWS Security Group Audit:** ``` Rules that should NEVER exist in production: ✗ Inbound: 0.0.0.0/0 → Port 22 (SSH open to internet) ✗ Inbound: 0.0.0.0/0 → Port 3389 (RDP open to internet) ✗ Inbound: 0.0.0.0/0 → Port 0-65535 (any port from internet) ✗ Outbound: 0.0.0.0/0 → Port 0-65535 (unrestricted outbound)
Rules that are acceptable: ✓ Inbound: 0.0.0.0/0 → Port 443 (HTTPS for public web service) ✓ Inbound: 10.0.0.0/8 → Port 22 (SSH from internal VPC only) ✓ Inbound: [known IP] → Port 22 (SSH from jump box) ```
**Firewall Audit Report Template:** ```markdown ## Firewall Audit Report — [Device/Platform]
**Risk Summary:** | Severity | Count | |----------|-------| | Critical | 2 | | High | 5 | | Medium | 8 |
**CRITICAL: SSH exposed to internet** - Rule: `iptables -A INPUT -p tcp --dport 22 -j ACCEPT` - Risk: Exposed to brute-force and CVE exploitation - Fix: `iptables -A INPUT -p tcp --dport 22 -s [admin_ip] -j ACCEPT`
**HIGH: No default deny policy** - Current: `-P INPUT ACCEPT` - Fix: `-P INPUT DROP` + explicit allow rules ```
### 6. Network Architecture Security Review
**When the user describes or provides a network architecture:**
**Review Framework:** ``` Zone Model (most to least trusted): Internal (Core) → DMZ → Internet
Checkpoints: [ ] Clear network zones with enforced boundaries [ ] DMZ properly isolated from internal network [ ] No direct internet-to-internal traffic allowed [ ] East-west traffic controls between internal zones (microsegmentation) [ ] Management network isolated from production [ ] Out-of-band management for network devices [ ] VPN gateway in DMZ, not directly on internal segment [ ] DNS resolvers not exposed to internet [ ] Log aggregation on separate isolated segment ```
---
## Script Reference
### `pcap_analyzer.py` ```bash python scripts/pcap_analyzer.py --file capture.pcap --output analysis.json python scripts/pcap_analyzer.py --file traffic.pcapng --dns --http --top-talkers 20 python scripts/pcap_analyzer.py --file capture.pcap --detect-beaconing --output beacons.json ```
---
## Skill Integration
| Condition | Adjacent Skill | |-----------|---------------| | Discovered services from recon | ← Skill 01 (Recon & OSINT) | | Network IOCs for threat correlation | → Skill 06 (Threat Hunting) | | Network evidence for IR timeline | → Skill 07 (Incident Response) | | Automate alert responses | → Skill 11 (CSOC Automation) |
---
## References
- [Suricata Documentation](https://suricata.readthedocs.io/) - [Snort 3 Rule Writing Guide](https://docs.snort.org/start/rules) - [Wireshark User Guide](https://www.wireshark.org/docs/wsug_html_chunked/) - [Zeek Documentation](https://docs.zeek.org/) - [SANS Network Forensics](https://www.sans.org/reading-room/) - [The TCP/IP Guide](http://www.tcpipguide.com/)
---
## v3.0 Enhancements (2026 Update)
**Encrypted-traffic-era analysis:**
- **JA4+ fingerprinting** — adopt the JA4/JA4S/JA4H/JA4X suite (successor to JA3) to fingerprint clients, serve
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for Network Security & Traffic Analysis, ready for a manual X post.
Network Security & Traffic Analysis: Network traffic analysis, PCAP parsing, IDS/IPS rule creation, firewall configuration auditin... 397 stars https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis?ref=x
Listing + install path for Network Security & Traffic Analysis: https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis?ref=x Install: npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security...
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to Masriyan but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis/audit)
[](https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)Masriyan
@masriyan
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Wazuh
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
16.3K StarsMaigret
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
32.9K StarsNuclei
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
29.2K StarsInfisical
Infisical is the open-source platform for secrets, certificates, and privileged access management.
27.4K StarsSandbox only
Install targets
Codex install prompt
Install the "Network Security & Traffic Analysis" agent skill from https://github.com/Masriyan/Claude-Code-CyberSecurity-Skill/tree/main/skills/08-network-security. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Network traffic analysis, PCAP parsing, IDS/IPS rule creation, firewall configuration auditing, and network anomaly detection After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"masriyan-network-security-traffic-analysis","task":"Install Network Security & Traffic Analysis","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Deep research, source comparison, literature review, RAG, knowledge search, and reports.
Scenario
Research agents
I need my agent to research a topic, compare sources, and produce a concise report.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security & Traffic Analysis
Maintenance
fresh
2d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
397
77/100 Quality · 68/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
397 GitHub stars
Repo activity
397 stars, 75 forks
Maintenance
2d since push
License
MIT
Install
npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security & Traffic Analysis
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security & Traffic AnalysisDo not use when
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20Network%20Security%20%26%20Traffic%20Analysis%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20Network%20Security%20%26%20Traffic%20Analysis%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/masriyan-network-security-traffic-analysis/install
Agent should check
Copy prompt
Task: Use Network Security & Traffic Analysis in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20Network%20Security%20%26%20Traffic%20Analysis%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/masriyan-network-security-traffic-analysis/install
Install command: npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security & Traffic Analysis
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/masriyan-network-security-traffic-analysis/install
LLM text format
/api/skills/masriyan-network-security-traffic-analysis/install?format=text
Find alternatives
/api/skills/search?q=Network%20Security%20%26%20Traffic%20Analysis&limit=3
Agent prompt
Use Network Security & Traffic Analysis for this task. Review https://www.openagentskill.com/api/skills/masriyan-network-security-traffic-analysis/install, then install with: npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security & Traffic AnalysisRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/masriyan-network-security-traffic-analysis
LLM text
/api/registry/manifest/masriyan-network-security-traffic-analysis?format=text
Install alias
/api/registry/install/masriyan-network-security-traffic-analysis
Recommend
/api/registry/recommend?task=Use%20Network%20Security%20%26%20Traffic%20Analysis%20in%20an%20agent%20workflow&limit=3
Agent fit
Local desktop
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Shortlist this skill and compare it with close alternatives before production adoption.
Role in stack
Companion skill
Primary fit
Local desktop
Trust label
Strong shortlist
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO397 GitHub stars
Stars/forks activity
INFO397 stars, 75 forks; issue activity unavailable in current metadata
Recent maintenance
PASS2d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Operate local tools
I need my agent to operate local files and desktop apps in a repeatable workflow.
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Workflow fit
Scrape, clean, and reuse web data
A practical workflow for agents that crawl public pages, extract clean content, normalize data, and hand it to downstream research or RAG workflows.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Alternative shortlist
Similar skills that may fit this task.
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
Infisical is the open-source platform for secrets, certificates, and privileged access management.
--- name: Network Security & Traffic Analysis description: Network traffic analysis, PCAP parsing, IDS/IPS rule creation, firewall configuration auditing, and network anomaly detection version: 3.0.0 author: Masriyan tags: [cybersecurity, network, traffic-analysis, pcap, ids, ips, firewall, snort, suricata, zeek] ---
# 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
```bash 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:**
```bash # 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 ```
**Traffic Analysis Checklist:** ``` [ ] Protocol distribution — any unexpected protocols? [ ] Top talkers — unusual source/destination combinations [ ] DNS analysis — DGA domains, unusually long queries, high volume [ ] HTTP analysis — suspicious user agents, unusual methods, encoded data [ ] TLS analysis — invalid certificates, unusual SNI, cert fingerprints [ ] ICMP analysis — large payloads (tunneling), ping sweeps [ ] SMB analysis — authentication attempts, file access patterns [ ] Data volume — large uploads (exfiltration?), irregular transfer sizes [ ] Timing analysis — regular interval beaconing patterns ```
**Beaconing Detection:** Beaconing shows as consistent time intervals between outbound connections: ```bash # tshark: extract connection timestamps to check for regularity tshark -r capture.pcap -Y "ip.dst == 203.0.113.10 and tcp.flags.syn==1" \ -T fields -e frame.time_epoch | \ awk 'NR>1{printf "%.0f\n", ($1-prev)} {prev=$1}' | sort | uniq -c | sort -rn # Consistent counts at specific intervals = beaconing ```
**DNS Tunneling Detection:** ```bash # Long DNS query names (>50 chars for subdomain) = likely tunneling tshark -r capture.pcap -Y "dns.qry.name.len > 50" \ -T fields -e ip.src -e dns.qry.name | head -50
# High-volume DNS to single domain = tunneling tshark -r capture.pcap -Y "dns" -T fields -e dns.qry.name | \ awk -F. '{print $(NF-1)"."$NF}' | sort | uniq -c | sort -rn | head -20 ```
### 2. Suricata Rule Creation
**When the user asks to create Suricata IDS rules:**
**Suricata Rule Syntax Reference:** ``` action protocol src_ip src_port -> dst_ip dst_port (options) ```
**Rule Templates:**
```suricata # Template: C2 Beaconing over HTTP alert http $HOME_NET any -> $EXTERNAL_NET any ( msg:"MALWARE Suspicious C2 Beacon - Regular Interval HTTP POST"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/check" endswith; http.header; content:"User-Agent: Mozilla/4.0 (compatible)"; threshold:type both, track by_src, count 5, seconds 300; classtype:trojan-activity; sid:9000001; rev:1; metadata:affected_product Windows_XP_Vista_7_8_10_Server, attack_target Client_Endpoint, created_at 2025_05_28, deployment Perimeter; )
# Template: DNS Tunneling Detection alert dns $HOME_NET any -> any any ( msg:"POLICY Possible DNS Tunneling - Long Subdomain Query"; dns.query; content:"."; byte_test:1,>,50,0,relative; # Query length > 50 chars threshold:type both, track by_src, count 20, seconds 60; classtype:policy-violation; sid:9000002; rev:1; )
# Template: Lateral Movement via SMB alert smb $HOME_NET any -> $HOME_NET 445 ( msg:"LATERAL-MOVEMENT PsExec Lateral Movement Detected"; flow:established,to_server; content:"PSEXESVC"; nocase; classtype:trojan-activity; sid:9000003; rev:1; )
# Template: Data Exfiltration - Large Upload alert http $HOME_NET any -> $EXTERNAL_NET any ( msg:"EXFILTRATION Possible Data Exfiltration - Large HTTP POST"; flow:established,to_server; http.method; content:"POST"; http.request_body; content:!""; dsize:>1000000; # > 1MB body threshold:type both, track by_src, count 3, seconds 300; classtype:policy-violation; sid:9000004; rev:1; )
# Template: Malicious TLS Certificate (self-signed with suspicious CN) alert tls $EXTERNAL_NET any -> $HOME_NET any ( msg:"MALWARE Suspicious TLS Certificate - Self-Signed C2"; tls.cert_subject; content:"CN=localhost"; tls.cert_issuer; content:"CN=localhost"; classtype:trojan-activity; sid:9000005; rev:1; )
# Template: Web Shell Access alert http $EXTERNAL_NET any -> $HOME_NET 80 ( msg:"WEBSHELL Possible Web Shell Access"; flow:established,to_server; http.uri; content:".php"; http.request_body; content:"cmd="; nocase; content:"exec"; nocase; distance:0; classtype:web-application-attack; sid:9000006; rev:1; ) ```
**Suricata Testing:** ```bash # Test rules against PCAP (offline) suricata -r capture.pcap -S custom.rules -l ./logs/
# Test rule syntax suricata --dump-config
# Check for rule performance issues suricata -r test.pcap -S rules.rules --runmode single 2>&1 | grep "perf" ```
### 3. Snort 3 Rule Creation
```snort # Snort 3 format — note different syntax from Snort 2 alert tcp $EXTERNAL_NET any -> $HTTP_SERVERS 80 ( msg:"WEB-ATTACK SQL Injection Attempt"; flow:established,to_server; http_uri; content:"' OR '1'='1"; nocase; sid:9001001; rev:1; classtype:web-application-attack; ) ```
### 4. Zeek Script Templates
```zeek # Detect connections with unusually regular intervals (beaconing) module BeaconDetect;
export { redef enum Log::ID += { LOG }; type Info: record { ts: time &log; src: addr &log; dst: addr &log; interval: interval &log; }; }
global connection_times: table[addr, addr] of vector of time;
event connection_established(c: connection) { local key = [c$id$orig_h, c$id$resp_h]; if (key !in connection_times) connection_times[key] = vector(); connection_times[key] += network_time(); }
event connection_state_remove(c: connection) { local key = [c$id$orig_h, c$id$resp_h]; if (key in connection_times && |connection_times[key]| > 5) { # Calculate intervals and check for regularity # Flag if standard deviation < 5% of mean } } ```
### 5. Firewall Configuration Auditing
**When the user provides firewall rules or asks to audit:**
**iptables Review Checklist:** ```bash # View current rules iptables -L -n -v --line-numbers iptables -L INPUT -n -v --line-numbers iptables -L OUTPUT -n -v --line-numbers
# Check for dangerous rules: iptables -L | grep "ACCEPT" # List all ACCEPT rules iptables -L | grep "0.0.0.0" # Any-source rules ```
**iptables Security Checklist:** ``` [ ] Default policy is DROP (not ACCEPT) for all chains [ ] INPUT chain: only established/related + specific allowed services [ ] OUTPUT chain: restrict to necessary outbound (optional but best practice) [ ] FORWARD chain: DROP by default unless this is a router [ ] Management access (SSH/22) restricted to specific source IPs [ ] No rules accepting from 0.0.0.0/0 to ALL ports [ ] Logging enabled for DROPPED packets [ ] Anti-spoofing rules for RFC 1918 addresses on external interfaces [ ] ICMP restricted (allow echo-reply/time-exceeded, block ping from internet) [ ] Port 0 blocked (often used in scans) ```
**AWS Security Group Audit:** ``` Rules that should NEVER exist in production: ✗ Inbound: 0.0.0.0/0 → Port 22 (SSH open to internet) ✗ Inbound: 0.0.0.0/0 → Port 3389 (RDP open to internet) ✗ Inbound: 0.0.0.0/0 → Port 0-65535 (any port from internet) ✗ Outbound: 0.0.0.0/0 → Port 0-65535 (unrestricted outbound)
Rules that are acceptable: ✓ Inbound: 0.0.0.0/0 → Port 443 (HTTPS for public web service) ✓ Inbound: 10.0.0.0/8 → Port 22 (SSH from internal VPC only) ✓ Inbound: [known IP] → Port 22 (SSH from jump box) ```
**Firewall Audit Report Template:** ```markdown ## Firewall Audit Report — [Device/Platform]
**Risk Summary:** | Severity | Count | |----------|-------| | Critical | 2 | | High | 5 | | Medium | 8 |
**CRITICAL: SSH exposed to internet** - Rule: `iptables -A INPUT -p tcp --dport 22 -j ACCEPT` - Risk: Exposed to brute-force and CVE exploitation - Fix: `iptables -A INPUT -p tcp --dport 22 -s [admin_ip] -j ACCEPT`
**HIGH: No default deny policy** - Current: `-P INPUT ACCEPT` - Fix: `-P INPUT DROP` + explicit allow rules ```
### 6. Network Architecture Security Review
**When the user describes or provides a network architecture:**
**Review Framework:** ``` Zone Model (most to least trusted): Internal (Core) → DMZ → Internet
Checkpoints: [ ] Clear network zones with enforced boundaries [ ] DMZ properly isolated from internal network [ ] No direct internet-to-internal traffic allowed [ ] East-west traffic controls between internal zones (microsegmentation) [ ] Management network isolated from production [ ] Out-of-band management for network devices [ ] VPN gateway in DMZ, not directly on internal segment [ ] DNS resolvers not exposed to internet [ ] Log aggregation on separate isolated segment ```
---
## Script Reference
### `pcap_analyzer.py` ```bash python scripts/pcap_analyzer.py --file capture.pcap --output analysis.json python scripts/pcap_analyzer.py --file traffic.pcapng --dns --http --top-talkers 20 python scripts/pcap_analyzer.py --file capture.pcap --detect-beaconing --output beacons.json ```
---
## Skill Integration
| Condition | Adjacent Skill | |-----------|---------------| | Discovered services from recon | ← Skill 01 (Recon & OSINT) | | Network IOCs for threat correlation | → Skill 06 (Threat Hunting) | | Network evidence for IR timeline | → Skill 07 (Incident Response) | | Automate alert responses | → Skill 11 (CSOC Automation) |
---
## References
- [Suricata Documentation](https://suricata.readthedocs.io/) - [Snort 3 Rule Writing Guide](https://docs.snort.org/start/rules) - [Wireshark User Guide](https://www.wireshark.org/docs/wsug_html_chunked/) - [Zeek Documentation](https://docs.zeek.org/) - [SANS Network Forensics](https://www.sans.org/reading-room/) - [The TCP/IP Guide](http://www.tcpipguide.com/)
---
## v3.0 Enhancements (2026 Update)
**Encrypted-traffic-era analysis:**
- **JA4+ fingerprinting** — adopt the JA4/JA4S/JA4H/JA4X suite (successor to JA3) to fingerprint clients, serve
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for Network Security & Traffic Analysis, ready for a manual X post.
Network Security & Traffic Analysis: Network traffic analysis, PCAP parsing, IDS/IPS rule creation, firewall configuration auditin... 397 stars https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis?ref=x
Listing + install path for Network Security & Traffic Analysis: https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis?ref=x Install: npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security...
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to Masriyan but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis/audit)
[](https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)Masriyan
@masriyan
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Wazuh
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
16.3K StarsMaigret
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
32.9K StarsNuclei
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
29.2K StarsInfisical
Infisical is the open-source platform for secrets, certificates, and privileged access management.
27.4K StarsSandbox only
Install targets
Codex install prompt
Install the "Network Security & Traffic Analysis" agent skill from https://github.com/Masriyan/Claude-Code-CyberSecurity-Skill/tree/main/skills/08-network-security. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Network traffic analysis, PCAP parsing, IDS/IPS rule creation, firewall configuration auditing, and network anomaly detection After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"masriyan-network-security-traffic-analysis","task":"Install Network Security & Traffic Analysis","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Deep research, source comparison, literature review, RAG, knowledge search, and reports.
Scenario
Research agents
I need my agent to research a topic, compare sources, and produce a concise report.
Agent fit
Claude Code + CLI + Codex
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security & Traffic Analysis
Maintenance
fresh
2d since push
Risk
Needs review
Dependency or permission surface needs review
GitHub quality
397
77/100 Quality · 68/100 Trust
Coverage tags
Review notes
Dependency or permission surface needs review · Permission surface may require sandboxing
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
StrongSolid option that is likely worth shortlisting for production workflows.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
397 GitHub stars
Repo activity
397 stars, 75 forks
Maintenance
2d since push
License
MIT
Install
npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security & Traffic Analysis
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security & Traffic AnalysisDo not use when
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20Network%20Security%20%26%20Traffic%20Analysis%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20Network%20Security%20%26%20Traffic%20Analysis%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/masriyan-network-security-traffic-analysis/install
Agent should check
Copy prompt
Task: Use Network Security & Traffic Analysis in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20Network%20Security%20%26%20Traffic%20Analysis%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/masriyan-network-security-traffic-analysis/install
Install command: npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security & Traffic Analysis
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/masriyan-network-security-traffic-analysis/install
LLM text format
/api/skills/masriyan-network-security-traffic-analysis/install?format=text
Find alternatives
/api/skills/search?q=Network%20Security%20%26%20Traffic%20Analysis&limit=3
Agent prompt
Use Network Security & Traffic Analysis for this task. Review https://www.openagentskill.com/api/skills/masriyan-network-security-traffic-analysis/install, then install with: npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security & Traffic AnalysisRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/masriyan-network-security-traffic-analysis
LLM text
/api/registry/manifest/masriyan-network-security-traffic-analysis?format=text
Install alias
/api/registry/install/masriyan-network-security-traffic-analysis
Recommend
/api/registry/recommend?task=Use%20Network%20Security%20%26%20Traffic%20Analysis%20in%20an%20agent%20workflow&limit=3
Agent fit
Local desktop
Use-case tags
Platforms
Claude Code
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Shortlist this skill and compare it with close alternatives before production adoption.
Role in stack
Companion skill
Primary fit
Local desktop
Trust label
Strong shortlist
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO397 GitHub stars
Stars/forks activity
INFO397 stars, 75 forks; issue activity unavailable in current metadata
Recent maintenance
PASS2d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Solid option that is likely worth shortlisting for production workflows.
Workflow fit
Operate local tools
I need my agent to operate local files and desktop apps in a repeatable workflow.
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Workflow fit
Scrape, clean, and reuse web data
A practical workflow for agents that crawl public pages, extract clean content, normalize data, and hand it to downstream research or RAG workflows.
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Alternative shortlist
Similar skills that may fit this task.
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
Infisical is the open-source platform for secrets, certificates, and privileged access management.
--- name: Network Security & Traffic Analysis description: Network traffic analysis, PCAP parsing, IDS/IPS rule creation, firewall configuration auditing, and network anomaly detection version: 3.0.0 author: Masriyan tags: [cybersecurity, network, traffic-analysis, pcap, ids, ips, firewall, snort, suricata, zeek] ---
# 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
```bash 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:**
```bash # 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 ```
**Traffic Analysis Checklist:** ``` [ ] Protocol distribution — any unexpected protocols? [ ] Top talkers — unusual source/destination combinations [ ] DNS analysis — DGA domains, unusually long queries, high volume [ ] HTTP analysis — suspicious user agents, unusual methods, encoded data [ ] TLS analysis — invalid certificates, unusual SNI, cert fingerprints [ ] ICMP analysis — large payloads (tunneling), ping sweeps [ ] SMB analysis — authentication attempts, file access patterns [ ] Data volume — large uploads (exfiltration?), irregular transfer sizes [ ] Timing analysis — regular interval beaconing patterns ```
**Beaconing Detection:** Beaconing shows as consistent time intervals between outbound connections: ```bash # tshark: extract connection timestamps to check for regularity tshark -r capture.pcap -Y "ip.dst == 203.0.113.10 and tcp.flags.syn==1" \ -T fields -e frame.time_epoch | \ awk 'NR>1{printf "%.0f\n", ($1-prev)} {prev=$1}' | sort | uniq -c | sort -rn # Consistent counts at specific intervals = beaconing ```
**DNS Tunneling Detection:** ```bash # Long DNS query names (>50 chars for subdomain) = likely tunneling tshark -r capture.pcap -Y "dns.qry.name.len > 50" \ -T fields -e ip.src -e dns.qry.name | head -50
# High-volume DNS to single domain = tunneling tshark -r capture.pcap -Y "dns" -T fields -e dns.qry.name | \ awk -F. '{print $(NF-1)"."$NF}' | sort | uniq -c | sort -rn | head -20 ```
### 2. Suricata Rule Creation
**When the user asks to create Suricata IDS rules:**
**Suricata Rule Syntax Reference:** ``` action protocol src_ip src_port -> dst_ip dst_port (options) ```
**Rule Templates:**
```suricata # Template: C2 Beaconing over HTTP alert http $HOME_NET any -> $EXTERNAL_NET any ( msg:"MALWARE Suspicious C2 Beacon - Regular Interval HTTP POST"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/check" endswith; http.header; content:"User-Agent: Mozilla/4.0 (compatible)"; threshold:type both, track by_src, count 5, seconds 300; classtype:trojan-activity; sid:9000001; rev:1; metadata:affected_product Windows_XP_Vista_7_8_10_Server, attack_target Client_Endpoint, created_at 2025_05_28, deployment Perimeter; )
# Template: DNS Tunneling Detection alert dns $HOME_NET any -> any any ( msg:"POLICY Possible DNS Tunneling - Long Subdomain Query"; dns.query; content:"."; byte_test:1,>,50,0,relative; # Query length > 50 chars threshold:type both, track by_src, count 20, seconds 60; classtype:policy-violation; sid:9000002; rev:1; )
# Template: Lateral Movement via SMB alert smb $HOME_NET any -> $HOME_NET 445 ( msg:"LATERAL-MOVEMENT PsExec Lateral Movement Detected"; flow:established,to_server; content:"PSEXESVC"; nocase; classtype:trojan-activity; sid:9000003; rev:1; )
# Template: Data Exfiltration - Large Upload alert http $HOME_NET any -> $EXTERNAL_NET any ( msg:"EXFILTRATION Possible Data Exfiltration - Large HTTP POST"; flow:established,to_server; http.method; content:"POST"; http.request_body; content:!""; dsize:>1000000; # > 1MB body threshold:type both, track by_src, count 3, seconds 300; classtype:policy-violation; sid:9000004; rev:1; )
# Template: Malicious TLS Certificate (self-signed with suspicious CN) alert tls $EXTERNAL_NET any -> $HOME_NET any ( msg:"MALWARE Suspicious TLS Certificate - Self-Signed C2"; tls.cert_subject; content:"CN=localhost"; tls.cert_issuer; content:"CN=localhost"; classtype:trojan-activity; sid:9000005; rev:1; )
# Template: Web Shell Access alert http $EXTERNAL_NET any -> $HOME_NET 80 ( msg:"WEBSHELL Possible Web Shell Access"; flow:established,to_server; http.uri; content:".php"; http.request_body; content:"cmd="; nocase; content:"exec"; nocase; distance:0; classtype:web-application-attack; sid:9000006; rev:1; ) ```
**Suricata Testing:** ```bash # Test rules against PCAP (offline) suricata -r capture.pcap -S custom.rules -l ./logs/
# Test rule syntax suricata --dump-config
# Check for rule performance issues suricata -r test.pcap -S rules.rules --runmode single 2>&1 | grep "perf" ```
### 3. Snort 3 Rule Creation
```snort # Snort 3 format — note different syntax from Snort 2 alert tcp $EXTERNAL_NET any -> $HTTP_SERVERS 80 ( msg:"WEB-ATTACK SQL Injection Attempt"; flow:established,to_server; http_uri; content:"' OR '1'='1"; nocase; sid:9001001; rev:1; classtype:web-application-attack; ) ```
### 4. Zeek Script Templates
```zeek # Detect connections with unusually regular intervals (beaconing) module BeaconDetect;
export { redef enum Log::ID += { LOG }; type Info: record { ts: time &log; src: addr &log; dst: addr &log; interval: interval &log; }; }
global connection_times: table[addr, addr] of vector of time;
event connection_established(c: connection) { local key = [c$id$orig_h, c$id$resp_h]; if (key !in connection_times) connection_times[key] = vector(); connection_times[key] += network_time(); }
event connection_state_remove(c: connection) { local key = [c$id$orig_h, c$id$resp_h]; if (key in connection_times && |connection_times[key]| > 5) { # Calculate intervals and check for regularity # Flag if standard deviation < 5% of mean } } ```
### 5. Firewall Configuration Auditing
**When the user provides firewall rules or asks to audit:**
**iptables Review Checklist:** ```bash # View current rules iptables -L -n -v --line-numbers iptables -L INPUT -n -v --line-numbers iptables -L OUTPUT -n -v --line-numbers
# Check for dangerous rules: iptables -L | grep "ACCEPT" # List all ACCEPT rules iptables -L | grep "0.0.0.0" # Any-source rules ```
**iptables Security Checklist:** ``` [ ] Default policy is DROP (not ACCEPT) for all chains [ ] INPUT chain: only established/related + specific allowed services [ ] OUTPUT chain: restrict to necessary outbound (optional but best practice) [ ] FORWARD chain: DROP by default unless this is a router [ ] Management access (SSH/22) restricted to specific source IPs [ ] No rules accepting from 0.0.0.0/0 to ALL ports [ ] Logging enabled for DROPPED packets [ ] Anti-spoofing rules for RFC 1918 addresses on external interfaces [ ] ICMP restricted (allow echo-reply/time-exceeded, block ping from internet) [ ] Port 0 blocked (often used in scans) ```
**AWS Security Group Audit:** ``` Rules that should NEVER exist in production: ✗ Inbound: 0.0.0.0/0 → Port 22 (SSH open to internet) ✗ Inbound: 0.0.0.0/0 → Port 3389 (RDP open to internet) ✗ Inbound: 0.0.0.0/0 → Port 0-65535 (any port from internet) ✗ Outbound: 0.0.0.0/0 → Port 0-65535 (unrestricted outbound)
Rules that are acceptable: ✓ Inbound: 0.0.0.0/0 → Port 443 (HTTPS for public web service) ✓ Inbound: 10.0.0.0/8 → Port 22 (SSH from internal VPC only) ✓ Inbound: [known IP] → Port 22 (SSH from jump box) ```
**Firewall Audit Report Template:** ```markdown ## Firewall Audit Report — [Device/Platform]
**Risk Summary:** | Severity | Count | |----------|-------| | Critical | 2 | | High | 5 | | Medium | 8 |
**CRITICAL: SSH exposed to internet** - Rule: `iptables -A INPUT -p tcp --dport 22 -j ACCEPT` - Risk: Exposed to brute-force and CVE exploitation - Fix: `iptables -A INPUT -p tcp --dport 22 -s [admin_ip] -j ACCEPT`
**HIGH: No default deny policy** - Current: `-P INPUT ACCEPT` - Fix: `-P INPUT DROP` + explicit allow rules ```
### 6. Network Architecture Security Review
**When the user describes or provides a network architecture:**
**Review Framework:** ``` Zone Model (most to least trusted): Internal (Core) → DMZ → Internet
Checkpoints: [ ] Clear network zones with enforced boundaries [ ] DMZ properly isolated from internal network [ ] No direct internet-to-internal traffic allowed [ ] East-west traffic controls between internal zones (microsegmentation) [ ] Management network isolated from production [ ] Out-of-band management for network devices [ ] VPN gateway in DMZ, not directly on internal segment [ ] DNS resolvers not exposed to internet [ ] Log aggregation on separate isolated segment ```
---
## Script Reference
### `pcap_analyzer.py` ```bash python scripts/pcap_analyzer.py --file capture.pcap --output analysis.json python scripts/pcap_analyzer.py --file traffic.pcapng --dns --http --top-talkers 20 python scripts/pcap_analyzer.py --file capture.pcap --detect-beaconing --output beacons.json ```
---
## Skill Integration
| Condition | Adjacent Skill | |-----------|---------------| | Discovered services from recon | ← Skill 01 (Recon & OSINT) | | Network IOCs for threat correlation | → Skill 06 (Threat Hunting) | | Network evidence for IR timeline | → Skill 07 (Incident Response) | | Automate alert responses | → Skill 11 (CSOC Automation) |
---
## References
- [Suricata Documentation](https://suricata.readthedocs.io/) - [Snort 3 Rule Writing Guide](https://docs.snort.org/start/rules) - [Wireshark User Guide](https://www.wireshark.org/docs/wsug_html_chunked/) - [Zeek Documentation](https://docs.zeek.org/) - [SANS Network Forensics](https://www.sans.org/reading-room/) - [The TCP/IP Guide](http://www.tcpipguide.com/)
---
## v3.0 Enhancements (2026 Update)
**Encrypted-traffic-era analysis:**
- **JA4+ fingerprinting** — adopt the JA4/JA4S/JA4H/JA4X suite (successor to JA3) to fingerprint clients, serve
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for Network Security & Traffic Analysis, ready for a manual X post.
Network Security & Traffic Analysis: Network traffic analysis, PCAP parsing, IDS/IPS rule creation, firewall configuration auditin... 397 stars https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis?ref=x
Listing + install path for Network Security & Traffic Analysis: https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis?ref=x Install: npx skills add Masriyan/Claude-Code-CyberSecurity-Skill --skill Network Security...
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to Masriyan but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis/audit)
[](https://www.openagentskill.com/skills/masriyan-network-security-traffic-analysis?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)Masriyan
@masriyan
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Wazuh
Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
16.3K StarsMaigret
🕵️♂️ Collect a dossier on a person by username from 3000+ sites
32.9K StarsNuclei
Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
29.2K StarsInfisical
Infisical is the open-source platform for secrets, certificates, and privileged access management.
27.4K StarsPermission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness
Permission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness