• So far, your OSPF routers have trusted every Hello packet they received.
    In this lesson, you will see why that is a security risk, and how to protect your neighbor relationships with a shared key.

    The Rogue Router

    OSPF authentication secures your neighbor relationships.
    It prevents an unknown router from joining your network and declaring itself a neighbor.

    Routers R1 and R2 exchanging OSPF Hello packets through a switch in Area 0, both labeled as trusted neighbors

    Figure 1 - Two trusted neighbors exchange Hellos

    By default, nothing stops an untrusted device.
    Any router connected to the segment that receives your Hellos can become an OSPF neighbor and start advertising networks.

    A hacker router sends its own OSPF Hello toward the switch between R1 and R2, claiming to be a new neighbor

    Figure 2 - A rogue router joins the OSPF domain

    Someone plugs a router into your switch.
    It hears your Hellos, replies with its own, and moments later forms a FULL adjacency with your core routers.

    Answer the question below

    In which state does the rogue router end up with your routers?

    What an Attacker Can Do

    Once inside your OSPF domain, a rogue router can launch several attacks:

    • Route Injection: Advertises fake routes with a better cost, causing your traffic to be misrouted.

    • Man-In-The-Middle (MITM): Declares itself as the optimal path, causing corporate traffic to flow through it to be captured.

    • Denial of Service (DoS): Floods the area with LSAs, overwhelming every router in the network.

    Traffic from PC1 to PC2 diverted through the hacker router that announced itself as the best route in the OSPF domain

    Figure 3 - Man-in-the-middle attack

    Answer the question below

    Which attack forces your traffic to flow through the rogue router?

    What Authentication Protects

    With authentication enabled, only routers that know the shared key can become neighbors.
    Rogue routers without the key have their packets ignored.

    R1 and R2 hold the OSPF authentication key while the hacker router without the key is rejected from the domain

    Figure 4 - The rogue router does not have the key

    Security Note: OSPF authentication protects control-plane routing exchanges, not data-plane user traffic.
    The actual user data crossing your network is not encrypted by OSPF authentication.

    Answer the question below

    Does OSPF authentication protect the routing exchange or the user traffic?