Docsity

Internet Routing Security: Lecture 3 by Z. Morley Mao - Winter 2004, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
1
Z. Morley Mao, Winter 2004 1
Internet Routing Security Issues
Z. Morley Mao
Lecture 3
Jan 14, 2003
Z. Morley Mao, Winter 2004 2
Lecture outline
§Recap of last lecture, any questions?
§Existing routing security mechanisms
-SBGP
§General threats to routing protocols
§BGP vulnerability testing
§Path validation in BGP
Z. Morley Mao, Winter 2004 3
Previous lecture:
Effect ofMinRouteAdverTimer
§A function of
§topology, observation point, and a location that originates the
change.
§Mu: optimal MRAI, beyond which total updates is stable
§Mt: optimal MRAI to minimize convergence time
§There is no single optimal value!
Updates Convergence
time
MRAI MRAI
Umin
Mu
00
Tmin
Mt
Z. Morley Mao, Winter 2004 4
Recap of previous lecture
§Internet routing is still not well-understood
-For example, difficult to interpret BGP update messages
-Holy grail: root cause analysis of BGP updates, need to
correlate intradomain and interdomain changes
-Measurement is useful for understanding routing stability
§Effect of congestion on routing protocols
-Is TCP the right transport for BGP?
-How should router treat routing messages differently?
§Future research direction in BGP
-Protocol characterization, data plane correlation
•Better interpretation of BGP updates
•BGP monitoring
•Correlation with IGP
-Protocol improvement: better convergence delay
-Protocol analysis: modeling, formal analysis
Z. Morley Mao, Winter 2004 5
Why do we care about Internet
routing security?
§BGP ties the Internet together
-Critical communication infrastructure
§BGP is vulnerable to configuration and routing attacks
§Example routing attacks
-Fraudulent origination
-Fraudulent modification
-Overloading router CPU
§Configuration errors are common
§Impact
-Traffic black holed
-Destinations unreachable –“dark” address space
-Traffic intercepted, modified
Z. Morley Mao, Winter 2004 6
Current proposals and solutions
§SBGP: Secure BGP
-http://www.net-tech.bbn.com/sbgp/sbgp-index.html
-Routing origination digitally signed
-BGP updates digitally signed
-Address-based PKI to validate signatures
§SO-BGP: Secure Origin BGP
-ftp://ftp-eng.cisco.com/sobgp/index.html
-Guards against origination fraud
-No protection against mid-path disruptions
§Current adhoc solutions
-TCP MD5 (RFC 2385) protects a single hop
-Inbound filters, route limits, martian checks, BTSH (ttl hack)
§Neither guarantees that routes are actually usable
-Provides accountability
pf3
pf4
pf5

Partial preview of the text

Download Internet Routing Security: Lecture 3 by Z. Morley Mao - Winter 2004 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Z. Morley Mao, Winter 2004 1

Internet Routing Security Issues

Z. Morley Mao

Lecture 3

Jan 14, 2003

Z. Morley Mao, Winter 2004 2

Lecture outline

ß Recap of last lecture, any questions?

ß Existing routing security mechanisms

  • SBGP

ß General threats to routing protocols

ß BGP vulnerability testing

ß Path validation in BGP

Z. Morley Mao, Winter 2004 3

Previous lecture:

Effect of MinRouteAdver Timer

ß A function of

ß topology, observation point, and a location that originates the

change.

ß Mu: optimal MRAI, beyond which total updates is stable

ß Mt: optimal MRAI to minimize convergence time

ß There is no single optimal value!

Updates Convergence time

MRAI MRAI

Umin

(^0) Mu 0

Tmin

Mt

Z. Morley Mao, Winter 2004 4

Recap of previous lecture

ß Internet routing is still not well-understood

  • For example, difficult to interpret BGP update messages
  • Holy grail : root cause analysis of BGP updates, need to correlate intradomain and interdomain changes
  • Measurement is useful for understanding routing stability

ß Effect of congestion on routing protocols

  • Is TCP the right transport for BGP?
  • How should router treat routing messages differently?

ß Future research direction in BGP

  • Protocol characterization, data plane correlation
    • Better interpretation of BGP updates
    • BGP monitoring
    • Correlation with IGP
  • Protocol improvement: better convergence delay
  • Protocol analysis: modeling, formal analysis

Z. Morley Mao, Winter 2004 5

Why do we care about Internet

routing security?

ß BGP ties the Internet together

  • Critical communication infrastructure

ß BGP is vulnerable to configuration and routing attacks

ß Example routing attacks

  • Fraudulent origination
  • Fraudulent modification
  • Overloading router CPU

ß Configuration errors are common

ß Impact

  • Traffic black holed
  • Destinations unreachable – “dark” address space
  • Traffic intercepted, modified

Z. Morley Mao, Winter 2004 6

Current proposals and solutions

ß SBGP: Secure BGP

  • http://www.net-tech.bbn.com/sbgp/sbgp-index.html
  • Routing origination digitally signed
  • BGP updates digitally signed
  • Address-based PKI to validate signatures

ß SO-BGP: Secure Origin BGP

  • ftp://ftp-eng.cisco.com/sobgp /index.html
  • Guards against origination fraud
  • No protection against mid-path disruptions

ß Current adhoc solutions

  • TCP MD5 (RFC 2385) protects a single hop
  • Inbound filters, route limits, martian checks, BTSH (ttl hack)

ß Neither guarantees that routes are actually usable

  • Provides accountability

Z. Morley Mao, Winter 2004 7

Details of SBGP

ß Uses PKI

ß Signing party certifies the next hop and

propagates it throughout the net

ß Use optional, transitive BGP attributes to encode

signatures

ß Optimization:

  • Predistribute most certificates to each BGP speaker
  • Offload certificate verification
  • Lazy validation of routes
  • Cache signed routes and originations

Z. Morley Mao, Winter 2004 8

Why is SBGP not here today?

ß Expensive to deploy:

  • Steady state overhead is 1.4 Kbps
  • Consumes a lot of CPU – need hardware support
  • Need more memory on routers

ß PKI has to be set up

  • Complex

ß Requires router upgrade

ß Do not deal with route withdrawals

ß Perhaps an intermediate solution can be used

  • PKI among tier-1 ISPs

Z. Morley Mao, Winter 2004 9

Generic Threats to Routing

Protocols [Barbir ,Murphy,Yang2003]

ß Provides a framework for discussion of

  • Routing attacks
  • Defense and detection mechanisms

ß Classification of vulnerability:

  • Design: inherent choice in protocol spec
    • Important to discover
  • Implementation: bug based on coding error
    • Should eventually get fixed
  • Misconfiguration: weak passwords, failure to use security features, block admin ports - More prevalent today and need better tools for configuration

Z. Morley Mao, Winter 2004 10

Background

ß Scope: all routing protocols

ß Routing functions:

  • Transport subsystems: e.g., IP or TCP
    • Can be attacked
  • Neighbor state maintenance
    • Configuration of neighbors: e.g., HELLO, KeepAlive
  • Database maintenance: routing state

ß Threat sources: outsider or insider

  • Insider: transmit bogus messages
  • Outsider: subvert unprotected transport
    • Read, insert, reply, modify
  • Outsider is more difficult?

Z. Morley Mao, Winter 2004 11

Threat consequences

ß Network as a whole

  • Network congestion
  • Routing loops
  • Routing information disclosure
    • Arguable less true for Internet interdomain routing
  • Routing instability, churn
  • Routing blackholes
  • Network partition
  • Router overload

ß Individual prefixes

  • Starvation or blackhole
  • Eavesdrop
  • Cut: external reachability affected
  • Delay or performance degradation, loops

Z. Morley Mao, Winter 2004 12

Threat consequence and actions

ß Threat consequence zone

  • The area within which threat actions are affected

ß Threat consequence periods

  • Duration: long lived?
  • Does the protocol itself have a way to limit duration?
    • E.g., route refreshes

ß Threat actions

  • Some actions can be prevented e.g., authorization policies with strong authentication
  • Some actions can be detected: auditing and logging
    • Tradeoff between security and performance
    • “Complexity if the enemy of security” –smb

ß My comment: after detection what is required to revert to

the normal state?

  • An important operational issue

Z. Morley Mao, Winter 2004 19

Considerations in validating the path in

routing protocols

draft-white-pathconsiderations -00.txt

ß Path vector protocol participant cannot verify

  • whether the path a packet takes to its destination

corresponds to the path advertised by the routing

protocol

  • whether the chosen path is in accordance with the

policies of other ASes.

ß This due to

  • path vector routing protocols abstract information about

intra-AS routing decisions

  • ASes can remove routes form the routing systems, this

may prevent another AS from enforcing its own policy

Z. Morley Mao, Winter 2004 20

Validity of a path

1. Does a path from the advertising router to the

destination advertised actually exist?

2. Does the path advertised fall within the policies

of the route's originator and all intermediate

autonomous systems?

3. Is the advertising router authorized to advertise

a path to the destination?

ß 2 and 3 cannot be verified in a distance or path

vector protocol

Z. Morley Mao, Winter 2004 21

Example 1

The advertised path may not fall within the

policies of the receiver

AS 1

AS 2

AS 9

AS 3

AS 5

AS 6

AS 7

AS 8

C

A B

D

E

E: local path C: through AS 3 D: through E B: through E

B’s routing table:

AS path, nexthop

[5] E

[3 5] C

Z. Morley Mao, Winter 2004 22

Why can this happen?

ß Intra-AS configuration of an AS can cause

packets to follow a path inconsistent with

advertised path

ß Internal inconsistency in routing decisions within

an AS

  • Path vector routing depends interior routing protocols

ß Other examples: route reflection

Z. Morley Mao, Winter 2004 23

Example 2 Advertising router may not be authorized to advertised a path to the destination

ß A does not receive 10.1.2.0/24 from C

ß A’s choice of [B D] overrides D’s implicit policy of only

accepting this traffic from C

ß This is due to removal of information from the routing

system

ß Lack of information does NOT mean lack of authorization to

transit a path

AS A

AS B

AS C

AS D

D prefers

10.1.2.0/24 from C (more secure)

10.1.2.0/24 10.1.3.0/24 from B

Z. Morley Mao, Winter 2004 24

Z. Morley Mao, Winter 2004 25

Internet routing

: Routing session

routes

rusty.cs.berkeley .edu

IP=169.229.62.

Prefix=169.229.0.0/

www.cnn.com

IP=64.236.16.

Prefix=64.236.16.0/

Internet

IP traffic

Data plane:

forward traffic

Control plane:

exchange routes