Course contentsShow
← Security
Lesson 406 of 3,0529. Network Security - Traffic AnalysisFree lesson

MAC Address Spoofing and Duplication

Understand how forging MAC addresses can intercept traffic destined for specific hosts on a switched LAN.

MAC Address Spoofing and Duplication

What you'll learn: How attackers forge MAC addresses to intercept traffic intended for other devices on a switched LAN.


The Core Idea

A MAC address is the hardware identifier burned into every network card—it's how switches know which physical port to send frames to. MAC address spoofing means changing your network card's MAC address to impersonate another device. When you duplicate a legitimate device's MAC, the switch gets confused about which port should receive traffic for that address, potentially sending frames to your machine instead.

This is particularly powerful when combined with techniques you've learned: after performing ARP cache poisoning to redirect traffic, you might spoof the gateway's MAC address to silently intercept packets that other hosts believe are going to the router.

How It Works

Think of MAC addresses like apartment mailboxes. Normally, mail carrier (the switch) knows exactly which box belongs to which resident. But if you relabel your mailbox with someone else's apartment number, the carrier might deliver their mail to you by mistake.

When two devices claim the same MAC address:

  • The switch updates its MAC address table based on the most recent frame it sees
  • Traffic oscillates between the legitimate device and your spoofed interface
  • You can capture frames meant for the victim, or cause a denial-of-service

Unlike ARP spoofing (which poisons other hosts' caches), MAC spoofing directly manipulates what your interface claims to be.

Common Attack Scenarios

  • Bypassing MAC-based access control (weak authentication on networks)
  • Session hijacking after identifying an authenticated device's MAC
  • Traffic interception when paired with ARP poisoning for seamless MITM

Key Takeaway:
MAC address spoofing lets attackers impersonate legitimate devices at Layer 2, fooling switches into delivering traffic to the wrong port—a fundamental technique for LAN-based interception attacks.