Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... •...

105
Pondering and Patrolling Perimeter Defenses Bill Cheswick [email protected] http://www.lumeta.com 16 June 2005 Pondering Perimeters: DOE 1 of 105

Transcript of Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... •...

Page 1: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Pondering and Patrolling Perimeter Defenses

Bill [email protected]

http://www.lumeta.com

16 June 2005 Pondering Perimeters: DOE 1 of 105

Page 2: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Brief personal history

• Started at Bell Labs in December 1987– Immediately took over postmaster and firewall

duties• Good way to learn the ropes, which was

my intention

16 June 2005 Pondering Perimeters: DOE 2 of 105

Page 3: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Morris worm hit on Nov 1988

• Heard about it on NPR– Had a “sinking feeling” about it

• The home-made firewall worked– No fingerd– No sendmail (we rewrote the mailer)

• Intranet connection to Bellcore• We got lucky• Bell Labs had 1330 hosts• Corporate HQ didn’t know or care

16 June 2005 Pondering Perimeters: DOE 3 of 105

Page 4: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Action items

• Shut down the unprotected connection to Bellcore– What we now call a “routing leak”

• Redesign the firewall for much more capacity, and no “sinking feeling”– (VAX 750, load average of 15)

• Write a paper on it– “if you don’t write it up, you didn’t do the work”

16 June 2005 Pondering Perimeters: DOE 4 of 105

Page 5: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Old gateway:

16 June 2005 Pondering Perimeters: DOE 5 of 105

Page 6: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

New gateway:

suspendersbelt

16 June 2005 Pondering Perimeters: DOE 6 of 105

Page 7: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

New gateway:(one referee’s suggestion)

16 June 2005 Pondering Perimeters: DOE 7 of 105

Page 8: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

“Design of a Secure Internet Gateway” – Anaheim Usenix, Jun

1990• My first real academic paper• It was pretty good, I think• It didn’t have much impact, except for two

pieces:– Coined the work “proxy” in its current use (this

was for a circuit level gateway• Predated “socks by three years)

– Coined the expression “crunchy outside and soft chewy center”

16 June 2005 Pondering Perimeters: DOE 8 of 105

Page 9: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Why wasn’t the paper more influential?

• Because the hard part isn’t the firewall, it is the perimeter– I built a high security firewall for USSS from

scratch in about 2 hours in Sept. 2001.• I raised our firewall security from “low

medium” to “high”– (that’s about as good as computer and

network security measurement gets)• The perimeter security was “dumb luck”,

which we raised to “probably none”

16 June 2005 Pondering Perimeters: DOE 9 of 105

Page 10: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Network and host security levels

• Dumb luck• None• Low• Medium• High = no “sinking feeling”

16 June 2005 Pondering Perimeters: DOE 10 of 105

Page 11: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

By 1996, AT&T’s intranet

• Firewall security: high, and sometimes quite a pain, which meant

• Perimeter security: dumb luck• Trivestiture didn’t change the intranet

configuration that much

16 June 2005 Pondering Perimeters: DOE 11 of 105

Page 12: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Lucent 1997:Circling the wagons around Wyoming

AllentownMurray

HillColumbus

Holmdel

SLIPPPPISDNX.25cable

...

Lucent - 130,000, 266K IP addresses, 3000 nets ann.

MurrayHill

The Internet

~200 business partnersthousands oftelecommuters

16 June 2005 Pondering Perimeters: DOE 12 of 105

Page 13: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 13 of 105

Page 14: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Highlands forum, Annapolis, Dec 1996

• A Rand corp. game to help brief a member of the new President’s Infrastructure Protection Commission

• Met Esther Dyson and Fred Cohen there– Personal assessment by intel profiler

• “Day after” scenario• Gosh it would be great to figure out where

these networks actually go

16 June 2005 Pondering Perimeters: DOE 14 of 105

Page 15: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Perimeter Defenses have a long history

16 June 2005 Pondering Perimeters: DOE 15 of 105

Page 16: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 16 of 105

The Pretty GoodWall of China

Page 17: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 17 of 105

Page 18: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 18 of 105

Perimeter Defense

Page 19: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Flower pots

16 June 2005 Pondering Perimeters: DOE 19 of 105

Page 20: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 20 of 105

Page 21: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 21 of 105

Page 22: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Security doesn’t have to be ugly

16 June 2005 Pondering Perimeters: DOE 22 of 105

Page 23: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 23 of 105

Page 24: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 24 of 105

Page 25: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 25 of 105

Page 26: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 26 of 105

Delta barriers

Page 27: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 27 of 105

Parliament: entrance

Page 28: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 28 of 105

Parliament: exit

Page 29: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 29 of 105

Edinburgh Castle

Page 30: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 30 of 105

Warwick Castle

Page 31: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 31 of 105

Page 32: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 32 of 105

Berwick Castle

Page 33: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 33 of 105

Page 34: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 34 of 105

Page 35: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Why use a perimeter defense?

• It is cheaper– A man’s home is his castle, but most people

can’t afford the moat• You can concentrate your equipment and

your expertise in a few areas• It is simpler, and simpler security is usually

better– Easier to understand and audit– Easier to spot broken parts

16 June 2005 Pondering Perimeters: DOE 35 of 105

Page 36: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 36 of 105

Page 37: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

What’s wrong with perimeter defenses

• They are useless against insider attacks• They provide a false sense of security

– You still need to toughen up the inside, at least some

– You need to hire enough defenders• They don’t scale well

16 June 2005 Pondering Perimeters: DOE 37 of 105

Page 38: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Anything large enough to be called an ‘intranet’ is out of

control

16 June 2005 Pondering Perimeters: DOE 38 of 105

Page 39: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

The Internet Mapping ProjectAn experiment in exploring network

connectivity1998

16 June 2005 Pondering Perimeters: DOE 39 of 105

Page 40: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Methods - network discovery (ND)

• Obtain master network list– network lists from Merit, RIPE, APNIC, etc.– BGP data or routing data from customers– hand-assembled list of Yugoslavia/Bosnia

• Run a TTL-type (traceroute) scan towards each network

• Stop on error, completion, no data– Keep the natives happy

16 June 2005 Pondering Perimeters: DOE 40 of 105

Page 41: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Methods - data collection

16 June 2005 Pondering Perimeters: DOE 41 of 105

• Single reliable host connected at the company perimeter

• Daily full scan of Lucent• Daily partial scan of Internet, monthly full

scan• One line of text per network scanned

– Unix tools• Use a light touch, so we don’t bother

Internet denizens

Page 42: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

TTL probes

• Used by traceroute and other tools• Probes toward each target network with

increasing TTL• Probes are ICMP, UDP, TCP to port 80,

25, 139, etc.• Some people block UDP, others ICMP

16 June 2005 Pondering Perimeters: DOE 42 of 105

Page 43: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

TTL probes

Application level

TCP/UDPIP

Hardware

Client

IP

Hardware

Router

IP

Hardware

Router

IP

Hardware

Router

IP

Hardware

Router

IP

Hardware

RouterApplication level

TCP/UDPIP

Hardware

Server

Hop 3Hop 1 Hop 2

Hop 3 Hop 4

16 June 2005 Pondering Perimeters: DOE 43 of 105

Page 44: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Send a packet with a TTL of 1…

Application level

TCP/UDPIP

Hardware

Client

IP

Hardware

Router

IP

Hardware

Router

IP

Hardware

Router

IP

Hardware

Router

IP

Hardware

RouterApplication level

TCP/UDPIP

Hardware

Server

Hop 3Hop 1 Hop 2

Hop 3 Hop 4

16 June 2005 Pondering Perimeters: DOE 44 of 105

Page 45: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

…and we get the death notice from the first hop

Application level

TCP/UDPIP

Hardware

Client

IP

Hardware

Router

IP

Hardware

Router

IP

Hardware

Router

IP

Hardware

Router

IP

Hardware

RouterApplication level

TCP/UDPIP

Hardware

Server

Hop 3Hop 1 Hop 2

Hop 3 Hop 4

16 June 2005 Pondering Perimeters: DOE 45 of 105

Page 46: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Send a packet with a TTL of 2…

Application level

TCP/UDPIP

Hardware

Client

IP

Hardware

Router

IP

Hardware

Router

IP

Hardware

Router

IP

Hardware

Router

IP

Hardware

RouterApplication level

TCP/UDPIP

Hardware

Server

Hop 3Hop 1 Hop 2

Hop 3 Hop 4

16 June 2005 Pondering Perimeters: DOE 46 of 105

Page 47: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

… and so on …

Application level

TCP/UDPIP

Hardware

Client

IP

Hardware

Router

IP

Hardware

Router

IP

Hardware

Router

IP

Hardware

Router

IP

Hardware

RouterApplication level

TCP/UDPIP

Hardware

Server

Hop 3Hop 1 Hop 2

Hop 3 Hop 4

16 June 2005 Pondering Perimeters: DOE 47 of 105

Page 48: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Advantages

• We don’t need access (I.e. SNMP) to the routers

• It’s very fast• Standard Internet tool: it doesn’t break

things• Insignificant load on the routers• Not likely to show up on IDS reports• We can probe with many packet types16 June 2005 Pondering Perimeters: DOE 48 of 105

Page 49: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Limitations

• Outgoing paths only• Level 3 (IP) only

– ATM networks appear as a single node– This distorts graphical analysis

• Not all routers respond• Many routers limited to one response per

second

16 June 2005 Pondering Perimeters: DOE 49 of 105

Page 50: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Limitations

• View is from scanning host only• Takes a while to collect alternating paths• Gentle mapping means missed endpoints• Imputes non-existent links

16 June 2005 Pondering Perimeters: DOE 50 of 105

Page 51: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

The data can go either way

A

E F

D

B C

16 June 2005 Pondering Perimeters: DOE 51 of 105

Page 52: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

The data can go either way

A

E F

D

B C

16 June 2005 Pondering Perimeters: DOE 52 of 105

Page 53: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

But our test packets only go part of the way

A

E F

D

B C

16 June 2005 Pondering Perimeters: DOE 53 of 105

Page 54: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

We record the hop…

A

E F

D

B C

16 June 2005 Pondering Perimeters: DOE 54 of 105

Page 55: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

The next probe happens to go the other way

A

E F

D

B C

16 June 2005 Pondering Perimeters: DOE 55 of 105

Page 56: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

…and we record the other hop…

A

E F

D

B C

16 June 2005 Pondering Perimeters: DOE 56 of 105

Page 57: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

We’ve imputed a link that doesn’t exist

A

E F

D

B C

16 June 2005 Pondering Perimeters: DOE 57 of 105

Page 58: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Intranet implications of Internet mapping

• High speed technique, able to handle the largest networks

• Light touch: “what are you going to do to my intranet?”

• Acquire and maintain databases of Internet network assignments and usage

16 June 2005 Pondering Perimeters: DOE 58 of 105

Page 59: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Data collection complaints

• Australian parliament was the first to complain

• List of whiners (25 nets)• On the Internet, these complaints are

mostly a thing of the past– Internet background radiation predominates

16 June 2005 Pondering Perimeters: DOE 59 of 105

Page 60: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Visualization goals

• make a map– show interesting features– debug our database and collection methods

• geography doesn’t matter• use colors to show further meaning

16 June 2005 Pondering Perimeters: DOE 60 of 105

Page 61: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 61 of 105

Page 62: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Visualization of the layout algorithm

Laying out the Internet graph

16 June 2005 Pondering Perimeters: DOE 62 of 105

Page 63: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 63 of 105

Page 64: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 64 of 105

Page 65: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 65 of 105

Colored byAS number

Page 66: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Map Coloring

• distance from test host• IP address

– shows communities• Geographical (by TLD)• ISPs• future

– timing, firewalls, LSRR blocks

16 June 2005 Pondering Perimeters: DOE 66 of 105

Page 67: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 67 of 105

Colored by IP address!

Page 68: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 68 of 105

Colored by geography

Page 69: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 69 of 105

Colored by ISP

Page 70: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 70 of 105

Colored by distancefrom scanning host

Page 71: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 71 of 105

Page 72: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 72 of 105

Page 73: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Yugoslavia

An unclassified peek at a new battlefield

1999

16 June 2005 Pondering Perimeters: DOE 73 of 105

Page 74: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 74 of 105

Page 75: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Un film par Steve “Hollywood” Branigan...

16 June 2005 Pondering Perimeters: DOE 75 of 105

Page 76: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 76 of 105

Page 77: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

fin

16 June 2005 Pondering Perimeters: DOE 77 of 105

Page 78: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Intranets: the rest of the Internet

16 June 2005 Pondering Perimeters: DOE 78 of 105

Page 79: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 79 of 105

Page 80: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 80 of 105

Page 81: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 81 of 105

Page 82: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 82 of 105

This wasSupposedTo be aVPN

Page 83: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 83 of 105

Page 84: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 84 of 105

Page 85: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Detecting perimeter leaks:not all spoofing is evil

Lumeta’s Special Sauce2000

16 June 2005 Pondering Perimeters: DOE 85 of 105

Page 86: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Types of leaks

• Routing leaks– Internal routes are announced externally, and

the packets are allowed to flow betwixt• Host leaks

– Simultaneously connected inside and out, probably without firewall-functionality

– Not necessarily a dual-homed host• “Please don’t call them leaks”

– They aren’t always a Bad Thing16 June 2005 Pondering Perimeters: DOE 86 of 105

Page 87: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Routing leaks

• Easily seen on maps • Shows up in our reports• Generally easily fixed

16 June 2005 Pondering Perimeters: DOE 87 of 105

Page 88: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Host leak detection

• Developed to find hosts that have access to both intranet and Internet

• Or across any privilege boundary• Leaking hosts do not route between the

networks• Technology didn’t exist to find these

16 June 2005 Pondering Perimeters: DOE 88 of 105

Page 89: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Possible host leaks

• Miss-configured telecommuters connecting remotely

• VPNs that are broken• DMZ hosts with too much access• Business partner networks• Internet connections by rogue managers• Modem links to ISPs

16 June 2005 Pondering Perimeters: DOE 89 of 105

Page 90: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Leak Detection Prerequisites

• List of potential leakers: obtained by census

• Access to intranet• Simultaneous availability of a “mitt”

16 June 2005 Pondering Perimeters: DOE 90 of 105

Page 91: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Leak Detection Layout

Internet intranet

Mapping hostA

Test hostB

mittD

C

• Mapping host with address A is connected to the intranet

• Mitt with address D has Internet access

• Mapping host and mitt are currently the same host, with two interfaces

16 June 2005 Pondering Perimeters: DOE 91 of 105

Page 92: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Leak Detection

16 June 2005 Pondering Perimeters: DOE 92 of 105

Internet intranet

Mapping hostA

Test hostB

mittD

C

• Test host has known address B on the intranet

• It was found via census

• We are testing for unauthorized access to the Internet, possibly through a different address, C

Page 93: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Leak Detection

Internet intranet

Mapping hostA

Test hostB

mittD

C

• A sends packet to B, with spoofed return address of D

• If B can, it will reply to D with a response, possibly through a different interface

16 June 2005 Pondering Perimeters: DOE 93 of 105

Page 94: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Leak Detection

16 June 2005 Pondering Perimeters: DOE 94 of 105

Internet intranet

Mapping hostA

Test hostB

mittD

C

• Packet must be crafted so the response won’t be permitted through the firewall

• A variety of packet types and responses are used

• Either inside or outside address may be discovered

• Packet is labeled so we know where it came from

Page 95: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Inbound Leak Detection

Internet intranet

Mapping hostA

Test hostB

mittD

C

• This direction is usually more important

• It all depends on the site policy…

• …so many leaks might be just fine.

16 June 2005 Pondering Perimeters: DOE 95 of 105

Page 96: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Inbound Leak Detection

Internet intranet

Mapping hostA

Test hostB

mittD

C

16 June 2005 Pondering Perimeters: DOE 96 of 105

Page 97: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Leak results

• Found home web businesses• At least two clients have tapped leaks

– One made front page news• From the military: “the republic is a little

safer”

16 June 2005 Pondering Perimeters: DOE 97 of 105

Page 98: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 98 of 105

Case studies: corp. networksSome intranet statistics

Min MaxIntranet sizes (devices) 7,900 365,000Corporate address space 81,000 745,000,000% devices in unknown address space 0.01% 20.86%

% routers responding to "public" 0.14% 75.50%% routers responding to other 0.00% 52.00%

Outbound host leaks on network 0 176,000% devices with outbound ICMP leaks 0% 79%% devices with outbound UDP leaks 0% 82%

Inbound UDP host leaks 0 5,800% devices with inbound ICMP leaks 0% 11%% devices with inbound UDP leaks 0% 12%% hosts running Windows 36% 84%

Page 99: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

We developed lot of stuff

• Leak detection (that’s the special sauce)• Lots of reports: the hardest part is converting data to

information• Route discovery: TTL probes plus SNMP router

queries• Host enumeration and identification: ping and

xprobe-style host identification• Server discovery: SYN probes of popular TCP ports• Wireless base station discovery: xprobe, SNMP,

HTTP• And more…ask the sales people• The “zeroth step in network intelligence”

– me16 June 2005 Pondering Perimeters: DOE 99 of 105

Page 100: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

IP Sonar

2003

16 June 2005 Pondering Perimeters: DOE 100 of 105

Page 101: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Nice research result:happy clients

• Switched from service to appliance• Developers did a nice job with GUI and

productizing the software• Priced by approx. number of active IP devices

and length of time you have the appliance• ~100 Fortune 200 clients• Growing government use among military,

spooks, and various departments– FAA, VA, EOP, DISA, DOD, Treasury, pilots at

others including DOE

16 June 2005 Pondering Perimeters: DOE 101 of 105

Page 102: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

What’s next?IPv6

2005 + 3

16 June 2005 Pondering Perimeters: DOE 102 of 105

Page 103: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 103 of 105

Page 104: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

Pondering and Patrolling

PerimetersBill Cheswick

[email protected]://www.lumeta.com

16 June 2005 Pondering Perimeters: DOE 104 of 105

(Bill, you can go drinking now)

Page 105: Pondering and Patrolling Perimeter Defenses€¦ · – “if you don’t write it up, ... • It’s very fast • Standard Internet tool: it doesn’t break things • Insignificant

16 June 2005 Pondering Perimeters: DOE 105 of 105