Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Understanding IPv6 Neighbor Discovery Inspection

    IPv6 nodes (hosts and routers) use Neighbor Discovery Protocol (NDP) to discover the presence and link-layer addresses of other nodes residing on the same link. Hosts use NDP to find neighboring routers that are willing to forward packets on their behalf, while routers use it to advertise their presence. Nodes also use NDP to maintain reachability information about the paths to active neighbors. When a router or the path to a router fails, a host can search for alternate paths.

    IPv6 nodes use NDP exchange neighbor solicitation and advertisement messages to learn the link-layer addresses of their neighbors. This process makes NDP susceptible to attacks that involve the spoofing (or forging) of link-layer addresses. An attacking node can cause packets for legitimate nodes to be sent to some other link-layer address by either sending a neighbor solicitation message with a spoofed source MAC address, or sending a neighbor advertisement address with a spoofed target MAC address. The spoofed MAC address is then associated with a legitimate network IPv6 address by the other nodes.

    IPv6 Neighbor Discovery inspection prevents NDP security vulnerabilities by inspecting neighbor discovery messages and verifying them against the DHCPv6 binding table. The DHCPv6 binding table is a database of valid matches, or bindings, of IP addresses to MAC addresses, also known as the DHCPv6 snooping table. With Neighbor Discovery inspection, the source IP address and source MAC address of the ICMPv6 packet carrying the neighbor discovery message are compared against the entries in the binding table. If no match is found, the packet is dropped.

    The Neighbor Discovery process uses five types of ICMPv6 packets for the purposes of advertisement, solicitation, or redirection: Neighbor Solicit, Neighbor Advertise, Router Solicit, Router Advertise, and Router Redirect. Neighbor Discovery inspection checks all Neighbor or Router Solicit messages and Neighbor or Router Advertise messages for their source IPv6 address and MAC address, and also checks that Router Redirect messages are sent only by trusted routers. These checks can prevent the following types of attacks:

    Cache poisoning attacks
    —

    Neighbor Discovery cache poisoning is the IPv6 equivalent of ARP spoofing, in which an attacker sends an unsolicited advertisement to other hosts on the network with a forged address, to associate its own MAC address with a legitimate network IP address. These bindings between IPv6 addresses and MAC addresses are stored by each node in its neighbor cache. When the caches are updated with the malicious binding, the attacker can initiate a man-in-the-middle attack, intercepting traffic that was intended for a legitimate host.

    Routing denial-of-service (DoS) attacks
    —

    An attacker could cause a host to disable its first-hop router by spoofing the address of a router and sending a neighbor advertisement message with the router flag cleared. The victim host assumes that the device that used to be its first-hop router is no longer a router.

    Redirect attacks
    —

    Routers use ICMPv6 redirect requests to inform a host of a more efficient route to a destination. Hosts can be redirected to a better first-hop router but can also be informed by a Router Redirect message that the destination is in fact a neighbor. An attacker using this provision can achieve an effect similar to cache poisoning and intercept all traffic from the victim host.

    Published: 2014-04-22