본문으로 건너뛰기
Skillpedia
에이전트35k · #7794

detecting-arp-poisoning-in-network-traffic

하는 일

이 도구는 네트워크의 'ARP 포이즈닝' 공격을 찾도록 돕습니다. 누군가 다른 컴퓨터인 척하며 다른 컴퓨터들을 속이려 하는지 트래픽을 모니터링하며, 이는 정보를 훔치는 데 쓰일 수 있습니다.

사용하는 경우

  • ✓누군가 네트워크 트래픽을 가로채고 있다고 의심될 때.
  • ✓의심스러운 세션 가로채기 활동을 조사할 때.
  • ✓네트워크가 이런 유형의 공격으로부터 보호되는지 확인하는 경우.

스킬 링크

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/detecting-arp-poisoning-in-network-traffic/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“제 로컬 네트워크에서 ARP 포이즈닝 공격이 있는지 확인해 주세요.”

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

작동 방식

도구는 ARPWatch와 Wireshark 같은 프로그램을 사용해 네트워크 메시지를 관찰합니다. 컴퓨터가 자신의 신원을 빠르게 바꾸거나 많은 메시지를 한꺼번에 보내는 것처럼, 공격 시도를 나타내는 이상한 패턴을 찾습니다.

기술 내용 (원본 SKILL.md)

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

Detecting ARP Poisoning in Network Traffic

Overview

ARP poisoning (ARP spoofing) is a Layer 2 attack where an adversary sends falsified ARP messages to associate their MAC address with the IP address of a legitimate host, enabling man-in-the-middle (MitM) interception, session hijacking, or denial of service. Since ARP has no built-in authentication mechanism, any device on a broadcast domain can forge ARP replies. Detection requires monitoring ARP traffic for anomalies such as gratuitous ARP floods, IP-to-MAC mapping changes, and duplicate IP addresses. This skill covers deploying multiple detection layers including ARPWatch, Dynamic ARP Inspection (DAI), Wireshark-based analysis, and custom Python monitoring tools.

When to Use

  • When investigating security incidents that require detecting arp poisoning in network traffic
  • 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

  • Access to the target network segment (broadcast domain)
  • Linux host for ARPWatch and custom monitoring tools
  • Managed switches supporting Dynamic ARP Inspection (Cisco Catalyst, Aruba, Juniper EX)
  • Wireshark or tcpdump for packet capture
  • DHCP snooping configured (prerequisite for DAI)
  • Network monitoring infrastructure (SIEM, syslog server)

Core Concepts

ARP Protocol Fundamentals

ARP maps IP addresses to MAC addresses on a local network segment. The protocol operates statelessly with no authentication:

Normal ARP Process:
1. Host A broadcasts: "Who has 10.0.1.1? Tell 10.0.1.100"
2. Router replies: "10.0.1.1 is at AA:BB:CC:DD:EE:01"
3. Host A caches the mapping

ARP Poisoning Attack:
1. Attacker sends unsolicited ARP reply to Host A:
   "10.0.1.1 is at EV:IL:MA:CA:DD:RR" (attacker's MAC)
2. Host A updates cache, sends traffic to attacker
3. Attacker forwards to real gateway (MitM position)

Attack Indicators

Indicator Description Severity
MAC flip-flopping Same IP mapped to different MACs rapidly High
Gratuitous ARP flood Unsolicited ARP replies targeting multiple hosts High
Duplicate IP address Two different MACs claiming same IP Critical
Unusual ARP volume Spike in ARP packets per second Medium
ARP from non-DHCP source Static IP claims from unknown devices Medium
Gateway MAC change Default gateway MAC address changed Critical

Workflow

Step 1: Deploy ARPWatch for Continuous Monitoring

# Install ARPWatch
sudo apt-get install -y arpwatch

# Configure ARPWatch
sudo vi /etc/default/arpwatch
# INTERFACES="eth0"
# ARGS="-N -p -i eth0 -f /var/lib/arpwatch/arp.dat"

# Start monitoring
sudo systemctl enable arpwatch
sudo systemctl start arpwatch

# View current ARP database
cat /var/lib/arpwatch/arp.dat

# Monitor logs for changes
tail -f /var/log/syslog | grep arpwatch

ARPWatch alert types:

  • new station - Previously unseen MAC address
  • changed ethernet address - IP mapped to different MAC (potential poisoning)
  • flip flop - MAC alternating between two addresses (active attack)
  • reused old ethernet address - Previously seen mapping returned

Step 2: Configure Dynamic ARP Inspection (DAI) on Switches

Cisco Catalyst configuration:

! Enable DHCP snooping (prerequisite for DAI)
ip dhcp snooping
ip dhcp snooping vlan 10,20,30

! Configure trusted ports (uplinks, DHCP servers)
interface GigabitEthernet1/0/1
 description Uplink to Distribution
 ip dhcp snooping trust

interface GigabitEthernet1/0/48
 description DHCP Server
 ip dhcp snooping trust

! Enable Dynamic ARP Inspection
ip arp inspection vlan 10,20,30

! Configure trusted ports for DAI
interface GigabitEthernet1/0/1
 ip arp inspection trust

! Set rate limits to prevent ARP flood DoS
interface range GigabitEthernet1/0/2-47
 ip arp inspection limit rate 15

! Enable additional validation checks
ip arp inspection validate src-mac dst-mac ip

! Configure ARP ACL for static IP devices (servers, printers)
arp access-list STATIC-ARP-ENTRIES
 permit ip host 10.0.10.100 mac host 0011.2233.4455
 permit ip host 10.0.10.101 mac host 0011.2233.4456

ip arp inspection filter STATIC-ARP-ENTRIES vlan 10

! Verify DAI status
show ip arp inspection vlan 10
show ip arp inspection statistics
show ip dhcp snooping binding

…

자주 묻는 질문

ARP 포이즈닝이란 무엇인가요?

공격자가 가짜 메시지를 보내 자신의 네트워크 주소(MAC)를 정상 컴퓨터의 IP 주소와 연결시키는 공격입니다. 이를 통해 공격자는 컴퓨터 사이를 오가는 트래픽을 보거나 바꿀 수 있습니다.

공격의 징후는 무엇인가요?

같은 IP 주소가 빠르게 여러 MAC 주소와 연결되거나, 예상치 못한 ARP 메시지가 많거나, 두 컴퓨터가 같은 IP 주소를 주장하는 것입니다.

특별한 장비가 필요한가요?

네트워크에 접근할 수 있어야 하며, 가능하면 'Dynamic ARP Inspection(DAI)'을 지원하는 네트워크 스위치를 사용하는 것이 좋습니다. 일부 모니터링 도구를 실행하려면 Linux 컴퓨터가 쓰입니다.

상세 정보

작성자의 원본 설명

Detect Layer 2 ARP poisoning/spoofing by deploying ARPWatch, Dynamic ARP Inspection (DAI), Wireshark packet analysis, and custom Python monitoring scripts that flag gratuitous ARP floods, IP-to-MAC mapping changes, and duplicate IP addresses. Use when investigating suspected man-in-the-middle interception or session hijacking on a local network segment, or when building layer-2 anomaly detection f

repo: mukul975/Anthropic-Cybersecurity-Skills

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬