Lab Guide · MITM & Layer 2 Defense Sandbox

0% · 0/16 steps

MITM & Layer 2 Defense Sandbox — Lab Guide

An interactive lab on how a Man-in-the-Middle attack is launched with ARP poisoning, and how Layer 2 controls detect, contain and mitigate it.

Work top to bottom: load a preset, run it in the simulator, tick each step as you complete it, then answer the CISO questions at the end.

Architecture Diagram

                 ┌──────────────┐
   Victim  ──1───┤              ├──24──  Router
 10.0.1.10       │   L2 SWITCH  │       10.0.1.1
                 │              │
 Attacker ──2────┤              │
 10.0.1.99       └──────┬───────┘
                        │
                 NAC / RADIUS (802.1X)
NodeRoleIPMACPort / VLAN
1Victim workstation10.0.1.1000:11:22:33:44:10Gi0/1 · VLAN 10
2Managed L2 switchGi0/1, Gi0/2, Gi0/24
3Attacker device10.0.1.99DE:AD:BE:EF:99:99Gi0/2 · VLAN 10
4Gateway router10.0.1.100:00:0C:07:AC:01Gi0/24
5NAC controllerRADIUS / 802.1X

Exercise 1 — Legitimate ARP Baseline

Establish the known-good state every defense is measured against.

Exercise 1 · Clean baseline loaded into the simulator

Exercise 2 — Bidirectional ARP Poisoning & MITM

The attacker sends two unsolicited ARP replies at once and becomes a transparent proxy.

Exercise 2 · Symmetric MITM loaded into the simulator
[ARP]   10.0.1.1 is at DE:AD:BE:EF:99:99   ← POISONED
[MITM]  Symmetric flow established — relaying victim ↔ router

Exercise 3 — Layer 2 Defenses

Break the attack chain with port security, DAI and NAC.

Exercise 3 · DAI + DHCP snooping loaded into the simulator
Exercise 3 · NAC enforcement loaded into the simulator

CISO Analysis Questions

Answers are saved locally in this browser as you type.

Why does ARP poisoning succeed even on a fully patched network? What trust assumption is being abused?

Port security was enabled on the uplink but the attack still worked. Explain the gap and which control actually closes it.

You can only fund one control this quarter: DAI or 802.1X NAC. Justify your choice in risk terms.

Which log entries would you forward to the SIEM, and what detection rule would you write around them?

Key Takeaways

ControlAttack vector it solvesLayer
Port SecurityUnauthorized MAC on an access portL2
DHCP Snooping + DAIForged ARP replies / ARP poisoningL2
NAC / 802.1XUnauthorized device joining the networkL2 + AuthN

ARP poisoning is powerful because it needs no physical access or stolen password — and fragile because it only works where the network blindly trusts ARP.