Docsity

Routing Security: Understanding RIP and OSPF Protocols and Attacks - Prof. Wenke Lee, Study notes of Cryptography and System Security

Partial preview of the text

Download Routing Security: Understanding RIP and OSPF Protocols and Attacks - Prof. Wenke Lee and more Study notes Cryptography and System Security in PDF only on Docsity!

Routing Attacks

CS 6262 Spring 02 - Lecture

(Thursday, 1/15/2002)

Routing Infrastructure Security

Issues

n What is routing involved?

n How is it typically done?

n Some attack examples

Routing Concept and Protocols

n Routing information

n Routing information exchange protocols:

u RIP (Routing Information Protocol)

u OSPF (Open Shortest Path First Protocol)

n Comparison

Routing

I want to know the shortest path

Routers/ Switches

So, the routers must exchange local information!

SRC

DST

Routing Information

n Link State: I have these links to XYZ

(routers or networks); their current status is

… (e.g., delay)

n Distance Vector: I can get to XYZ

(networks) in m hops

Distribution of Routes - Distance

Vector

A

B

C

Every node sends its neighbor a vector: the # of hops of reaching each other node.

Link State

A node sends to its neighbors the state of its directly connected links: up/down and costs. Each node that receives the information forwards it to all its neighbors.

Routing Protocol Framework --

Operation Model

n Neighbor Acquisition

n Neighbor Reachability

n Routing Information Exchange

n Route Generation and Selection

n Neighbor Relationship Termination

Operation Model -

Routing Information Exchange

Hey, Here is the routing information I got so far

Hmm, some of them are obsolete, Here is my update

Operation Model -

Route Generation and Selection

Which algorithm should I use? Distributed Dijkstra’s algorithm or Distributed Bellman-Ford algorithm?

Routing Information Base

Forwarding Information Base

application Layer network Layer

Operation Model -

Neighbor Relationship Termination

Good Bye

See You Later

Routing Security

n Routing Information Exchange

u correctness of Routing Information Base

n Interface between RIB and FIB

u configuration, FIB update etc.

n Kernel-Level (IP): Packet Forwarding

u Is the packet forwarded according to the FIB?

Properties: RIP

n Good news travels fast; Bad news travels

slowly

n Routing loop, routing inconsistency, and

slow convergence

n Security:

u Ripv2 provides simple password authentication

u Black hole routers possible

Route Convergence - good news

A: 0 A: 1 A: 2 A: 3 A: 4 A: 5

G1 G2 G3 G4 G

•G1 happily advertises route to network A with distance 1 •G2-G5 quickly learns the good news and install the routes

Route Convergence - bad news

A: 0 A: 3 A: 2 A: 3 A: 4 A: 5

G1 G2^ G3^ G4 G

  • G1’s link to A goes down
  • G1 learns a ‘better’ route via G
  • Packets going to A through G2 will loop between G2 and G
  • G1 and G2 will find the cost of their routes to A slowly count to infinity
  • Use a number, e.g., 16, to approximate infinity
  • Split horizon only prevents loops involving two nodes

A: 3 hops B: 2 hops C: 2 hops

Black Hole

A

B

C

You

Your Neighbor

A: 0 hop B: 0 hops

•C lies easily about routes to A & B •Your neighbor and you lock into the ‘routes’

Who won’t jump on a better route?

Important LSA Fields

n Advertising router ID (originator)

n Advertised link or network ID

n Sequence number [0x80000001,0x7fffffff]

n Age [0, 60 minutes]

When to Originate a LSA?

n Upon link state changes, or

n Upon timer expiration

Questions to Ask:

n How do you know one LSA is fresher than

the other?

n An LSA originated by you will be received

by every router; will you receive the LSA

originated by you?

n Will the sequence number wrap-around

cause any problem? (i.e., == 0x7fffffff)

n Age ==> 1 hour

Sequence #: old vs. new LSAs

ATM

0x

Next: 0x Only accept LSAs with newer/larger Seq#.

Attack the Routing Infrastructure

(Vicious Advertising Routers)

up

up (^) up

up

Flooding

EVIL!

  1. up ==> down
  2. not exist ==> up

Impact varies depending on how critical the link is to the world!

Attack the Routing Infrastructure

(Vicious Intermediate Routers)

up

up

down

Flooding

EVIL!

All the links can be attacked

down

Authentication, please come to the rescue!

Exchanging without LSA

Signature?

ATM

Seq#

If attackers can just change the content of LSAs without being detected, the routers must use all LSAs with care!

Fight-Back - Originator Reaction

ATM

Seq# (1) 0x

(2) 0x seq++ attack

(3) 0x fight-back

Detection of Hit-and-Run vs.

Persistent Attacks

n Hit-and-Run Attacks: Hard to Detect/Isolate

u Inject one (or very few) bad packet but cause

lasting damaging effect

n Persistent Attacks:

u Attackers have to continuously inject attack

packets in order to inflict significant damages

n OSPF type of Link State protocols are

resilient to hit-and-run attacks

Secure Protocol/system Design?

n If we can force the attackers to launch

“persistent attacks,” we have a better chance

to detect and isolate the attack sources

n OSPF flooding coupled with periodic LSA

does a fairly good job because it is

refreshing link state persistently!

n What other implications do ‘flooding’ have

on security?