Security of Internet Protocols

Topics TCP/IP · IP Auth · ARP · BGP · S-BGP
01 //

Internet Infrastructure

The Internet is a collection of large networks (ISPs) that work together. Local and inter-domain routing move traffic within networks; TCP/IP handles routing and messaging; BGP announces routes between networks; DNS maps symbolic names (e.g. www.cc.gatech.edu) to IP addresses.

Network Tiers
Tier Description
Tier 1 Can reach every other network through peering (≈17 worldwide)
Tier 2 Peers some access, purchases some transit
Tier 3 Purchases all transit from other networks

Peering: ISPs connect networks; traffic flows in exchange for access.

02 //

TCP/IP Protocol Stack

Four layers: Application (message) → Transport (TCP/UDP, segment) → Network (IP, packet) → Link (frame). Each layer adds headers; IP routes across network boundaries.

Data Formats
Message
Segment (TCP hdr)
Packet (IP hdr)
Frame (Ethernet)

Ports are in TCP header, not IP. IP has source/dest address only.

03 //

Internet Protocol (IP)

IP is connectionless, unreliable, and best effort. No ordering or delivery guarantees. Data corruption, packet loss, duplication, and out-of-order delivery can occur.

IP Functions
  • Routing - gateway knows routes; host knows gateway
  • Fragmentation - split large data; reassemble at receiver
TTL & ICMP

TTL decremented each hop; packet dropped if TTL=0 (prevents infinite loops). ICMP reports errors (e.g. packet dropped) back to source.

IP Routing Example

Packet: Source 121.42.33.12 → Destination 132.14.11.51. Route: Alice → ISP gateway → cross network → Office gateway → Bob. Multiple hops; no delivery guarantee.

04 //

No Source IP Authentication

The client is trusted to embed the correct source IP. Anyone can send packets with arbitrary source IP via raw sockets (e.g. Libnet). Response goes to the forged address.

Implications
  • Anonymous DoS - flood victim with spoofed source IPs
  • Anonymous infection/malware - hide origin of attacks
05 //

Routing Protocols

ARP (Address Resolution Protocol)

Maps IP address → MAC address (local network). ARP request is broadcast; any node can reply.

ARP Spoofing

Malicious node A sends ARP reply to gateway with A's MAC for victim B's IP. If A's reply arrives first, gateway sends B's traffic to A. A can read/inject packets into B's session (e.g. WiFi networks).

Transmission Control Protocol (TCP)

Connection-oriented, preserves order. Sender breaks data into packets, attaches sequence numbers; receiver reassembles. Built on unreliable IP.

06 //

BGP - Border Gateway Protocol

BGP decides routing between Autonomous Systems (AS). An AS is a connected group of IP prefixes under one routing policy. Within an AS, protocols like OSPF handle routing; between ASes, BGP does.

Core Problem

Route updates are not authenticated. Anyone can inject false advertisements. Traffic to a victim can be rerouted to the attacker. Example: YouTube–Pakistan mishap - Pakistan Telecom advertised routes for YouTube; traffic worldwide was sent to Pakistan.

BGP Path Hijacking Example (Feb 2013)

Normal: Alestra (Mexico) → PCCW (Texas) → Qwest (DC). Hijacked: Guadalajara → Washington DC via Belarus/Moscow. Person in DC browsing the web could not tell via traceroute that HTTP responses were routed through Moscow.

BGP Attack Types

Attack Characteristic
DoS Hack routing table; add false route or kill legitimate one
Sniffing Control device on route; use BGP to detour traffic through malicious site
Routing to malicious Redirect traffic from legitimate host to attacker-controlled site
Route instabilities Unpredictable; can backfire on attacker; not yet widely exploited
Topology revelation Gain access to routing table; discover peer relations among ASes
07 //

BGP Security Solutions

PKI & Route Origination Authority (ROA)

Each AS obtains a certificate from a Regional Internet Registry (RIR). Attach Route Origination Attestation (ROA) to path advertisements - proves the AS is authorized to advertise those address blocks.

S-BGP (Secure BGP)

Design Overview
  • IPsec - secure point-to-point router communication
  • PKI - certificates for all BGP entities
  • Address attestation - owner signs that AS is authorized to advertise address blocks
  • Route attestation - each hop signed; validates path from IANA chain
  • Repositories - certs, CRLs, address attestations; tools for ISPs to manage
Address Attestation

Issuer: owner of address blocks. Subject: AS(s) authorized to advertise. Digitally signed by owner. Protects against erroneous/malicious BGP speakers.

Route Attestation

Speaker (AS) authorizes listener (transit AS) to use the route. Includes speaker cert, address block, AS list, neighbor, expiration. Each AS along path must authorize the next.

Validation

To validate a route: address attestation for each org owning address block; route attestation for each AS along path; all certs must be available and valid.

08 //

Summary

Security of Internet Protocols - Takeaways
  • IP - connectionless, best effort; no source authentication → spoofing, anonymous DoS
  • ARP - local; unauthenticated replies → MITM via proxy
  • BGP - inter-AS routing; unauthenticated updates → hijacking, traffic detour, DoS
  • S-BGP - PKI + address/route attestations; protects against false route injection

Further Reading

Classic Bellovin paper on TCP/IP vulnerabilities.

Challenges when S-BGP or RPKI is deployed incrementally.