NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Preview · 30 min
Learn how to secure Spanning Tree Protocol against rogue switches. Understand BPDU Guard for edge ports and Root Guard to protect the Root Bridge identity.
Spanning Tree elegantly solves the problem of Layer 2 loops and gives vital redundancy. But STP has a fatal, built-in flaw: it is completely trusting.
By default STP assumes every device plugged in is a legitimate switch and every BPDU is honest. In a modern zero-trust model this is a big vulnerability. If an attacker, or a well-meaning but misguided employee, plugs an unauthorised device into a wall jack, it can change the STP topology, cause a major outage, or even put itself in the path of corporate traffic.
To secure the network edge and protect the core, engineers deploy STP security features. The two most important are BPDU Guard and Root Guard.
Imagine a large office. Switch Core 1 is the designated Root Bridge because it has the most processing power and the best uplinks.
A junior employee in Sales wants more ports for the team. They take a cheap eight-port switch bought from a retail store and plug it into a wall jack.
At once this switch sends BPDUs. As a new device it has the default priority 32768, and its MAC address might be lower than the core switch's.
Suddenly the whole network thinks this cheap, underpowered switch is the new Root Bridge. All paths recalculate, there is a massive topology change, CPUs spike on every switch, and critical servers become unreachable. This is a rogue switch attack, and it can happen entirely by accident. (Note: a truly unmanaged switch usually just passes BPDUs through and can still create a loop; a cheap smart switch runs STP itself and can claim the root.)
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign inComputer Fundamentals
Before you can hack, defend, or analyze malware, you must understand the machines you are working with. The Computer Fun
ViewNetworking Fundamentals
You cannot secure a network if you do not understand how data moves across it. The Networking Fundamentals learning path
ViewWindows Fundamentals
The Windows Fundamentals learning path provides a comprehensive foundation in Microsoft Windows operating systems, speci
ViewLinux Fundamentals for Cybersecurity
Linux is the backbone of modern cybersecurity. Whether you are defending enterprise servers, analyzing malware, or launc
ViewCybersecurity Foundations
Every great security professional starts with a rock-solid foundation. The Cybersecurity Foundations learning path is de
ViewSOC Fundamentals
Dive into the daily operations of a modern Security Operations Center. The SOC Fundamentals learning path breaks down ho
View