Use Scapy to craft, send, sniff, and dissect TCP/UDP/ICMP/DNS packets, analyze pcap files, implement SYN scans, and detect anomalous traffic such as fragmented or malformed packets.
Use Scapy to craft, send, sniff, and dissect TCP/UDP/ICMP/DNS packets, analyze pcap files, implement SYN scans, and detect anomalous traffic such as fragmented or malformed packets.
Use when performing authorized network reconnaissance, protocol-level forensic analysis, or building traffic anomaly detection during security testing.
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Claude CodeNot declared
CursorNot declared
CodexNot declared
GitHub CopilotNot declared
WindsurfNot declared
Gemini CLINot declared
ClineNot declared
OpenCodeNot declared
Repository health
Stars32.4K
LicenseLICENSE
Default branchmain
Open issues20
Status
Active
Skill metadata
Parsed from SKILL.md frontmatter.
Version1.0
LicenseApache-2.0
Package contents
Files included with this skill beyond the listing page.
skill mdSKILL.md2,501 B
docsSUMMARY.md377 B
History
First seen on skills.sh
First recorded snapshot · 430 installs
SKILL.md
Analyzing Network Packets with Scapy
Overview
Scapy is a Python packet manipulation library that enables crafting, sending, sniffing, and dissecting network packets at granular protocol layers. This skill covers using Scapy for security-relevant tasks including TCP/UDP/ICMP packet crafting, pcap file analysis, protocol field extraction, SYN scan implementation, DNS query analysis, and detecting anomalous traffic patterns such as unusually fragmented packets or malformed headers.
When to Use
When investigating security incidents that require analyzing network packets with scapy
When building detection rules or threat hunting queries for this domain
When SOC analysts need structured procedures for this analysis type
When validating security monitoring coverage for related attack techniques
Prerequisites
Python 3.8+ with scapy library installed (pip install scapy)
Root/administrator privileges for raw socket operations (sniffing, sending)
Npcap (Windows) or libpcap (Linux) for packet capture
Authorization to perform packet operations on target network
Steps
Read and parse pcap/pcapng files with rdpcap() for offline analysis
Extract protocol layers (IP, TCP, UDP, DNS, HTTP) and field values
Compute traffic statistics: top talkers, protocol distribution, port frequency
Detect SYN flood patterns by analyzing TCP flag ratios
Identify DNS exfiltration indicators via query length and entropy analysis
Craft custom probe packets for authorized network testing
Export findings as structured JSON report
Expected Output
JSON report containing packet statistics, protocol distribution, top source/destination IPs, detected anomalies (SYN floods, DNS tunneling indicators, fragmentation attacks), and per-flow summaries.