VLAN Hopping Attacks: A Network Deep Dive
VLAN hopping allows an attacker to send traffic to a VLAN they are not connected to, typically executed via switch spoofing (negotiating a trunk link) or double tagging (embedding a second 802.1Q tag).
Understanding VLAN Segmentation
VLANs isolate network traffic logically, preventing hosts on different VLANs from communicating without a router.
Trunk ports are used to carry traffic for multiple VLANs between switches, using 802.1Q tags to differentiate them.
Switch Spoofing
In switch spoofing, an attacker configures their device to negotiate a trunking protocol like DTP (Dynamic Trunking Protocol).
If successful, the attacker's port becomes a trunk, granting access to all VLANs.
Double Tagging
Double tagging involves sending a packet with two 802.1Q tags. The first switch strips the outer tag and forwards it.
The second switch sees the inner tag and forwards the packet to the target VLAN, though this attack is mostly one-way.
Mastering Network Attacks
Understanding layer 2 attacks is crucial for the network portion of the PenTest+ exam.
Using high-quality practice exams like Cert Sensei is the best way to study these scenarios.
❓ Frequently Asked Questions
What is VLAN Hopping?
It's an attack that allows an attacker to send traffic to a VLAN they aren't directly connected to.
What is Switch Spoofing?
Switch spoofing involves an attacker negotiating a trunking protocol like DTP to gain access to all VLANs.
How does Double Tagging work?
An attacker embeds a second 802.1Q tag in a packet, tricking switches into forwarding it to a target VLAN.