본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트35k · #7636

analyzing-network-packets-with-scapy

하는 일

이 도구는 Scapy라는 프로그램을 사용해 네트워크 트래픽을 살펴봅니다. 데이터 패킷을 만들고, 보내고, 분석해 네트워크가 어떻게 작동하는지 이해하고 의심스러운 활동을 찾습니다.

사용하는 경우

  • ✓네트워크 보안 문제를 조사할 때.
  • ✓네트워크의 보안을 테스트하고 취약점을 찾을 때.
  • ✓네트워크 트래픽을 기록한 파일을 분석할 때.

스킬 링크

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/analyzing-network-packets-with-scapy/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/analyzing-network-packets-with-scapy/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 네트워크 트래픽 파일을 분석해서 이상한 점이 있는지 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

Scapy를 사용하면 컴퓨터가 네트워크에서 오가는 데이터 패킷을 '볼' 수 있습니다. 패킷을 읽고 중요한 정보를 추출하며, 네트워크를 테스트하기 위해 새 패킷을 만들 수도 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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

  1. Read and parse pcap/pcapng files with rdpcap() for offline analysis
  2. Extract protocol layers (IP, TCP, UDP, DNS, HTTP) and field values
  3. Compute traffic statistics: top talkers, protocol distribution, port frequency
  4. Detect SYN flood patterns by analyzing TCP flag ratios
  5. Identify DNS exfiltration indicators via query length and entropy analysis
  6. Craft custom probe packets for authorized network testing
  7. 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.

자주 묻는 질문

이걸 사용하려면 네트워크 전문가여야 하나요?

아니요, 다만 기본적인 네트워크 개념을 이해하면 결과를 해석하는 데 도움이 됩니다. 이 도구는 패킷 분석을 쉽게 해 줍니다.

네트워크 '패킷'이란 무엇인가요?

인터넷이나 로컬 네트워크를 오가는 작은 데이터 단위입니다. 우편으로 보내는 편지와 비슷합니다.

네트워크 트래픽을 분석하는 목적은 무엇인가요?

데이터가 어떻게 흐르는지 이해하고, 문제를 찾고, 보안을 확인하고, 네트워크가 올바르게 작동하는지 점검하기 위해 사용합니다.

상세 정보

작성자의 원본 설명

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.

repo: mukul975/Anthropic-Cybersecurity-Skills

인기도

GitHub 스타
35k
순위
#7636
라이선스
Apache-2.0
업데이트
2026. 8. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬