WHOIS the Master

28
WHOIS the master an introduction to Sho'Nuff jason ross

Transcript of WHOIS the Master

Page 1: WHOIS the Master

WHOIS the master

an introduction to Sho'Nuff

jason ross

Page 2: WHOIS the Master

about me

• job: break stuff for the intrepidus group

• play: with malware

• poorly manage defcon group 585

• refuse to use caps in slide decks (acronyms excluded)

Page 3: WHOIS the Master

agenda

• 2^32 addresses ought to be enough for anybody

• alphabet soup, iron fists, and ipv6

• whois: awesomely full of crap

• shonuff – the whois master

Page 4: WHOIS the Master

a (very) brief history of 'the internet'

• lots of separate networks hooked up, some confusion ensued

• InterNIC stepped out, ICANN stepped in

• ICANN manages global addressing under contract to US Dept. of Commerce as IANA

• (not for) profit!

Page 5: WHOIS the Master

ipv4 network allocation• large blocks of addresses are allocated to global

geographic regions

• large blocks may be allocated to national geographic regions

• blocks are divided up and allocated to local ISPs

• individual addresses or small blocks are assigned to ISP customers

Page 6: WHOIS the Master

early allocation methods

• there's so much space!

• large chunks of network space allocated to single organizations

• justification requirements fairly lax

Page 7: WHOIS the Master

zomg! this thing works!

• demand increased

• address assignments got smaller

• requirements to prove need of requested space got tighter

Page 8: WHOIS the Master

what's a RIR?

• Regional Internet Registry

• in charge of large geographic regions– AfriNIC : Africa– APNIC : Asia / Pacific– ARIN : North America– LACNIC : Latin America & some Caribbean– RIPE NCC : Europe, Middle East, Central Asia

Page 9: WHOIS the Master

what's a NIR?

• National Internet Registry

• in charge of small geographic regions

• act as an agent of the RIR

• not commonly used, but there's a few

Page 10: WHOIS the Master

what's a LIR?

• Local Internet Registry

• usually an ISP

Page 11: WHOIS the Master

why the push for ipv6?

• ipv4 was not designed for security

• "available address space is running low"

Page 12: WHOIS the Master

security

• many con talks and whitepapers by folks lots smarter that i have already covered this

• so i won't

Page 13: WHOIS the Master

scarcity

• there have been comments and discussion around the fact that IPv4 space is 'running out' for years.

• IEEE-USA published a report on this in 8/1999

Page 14: WHOIS the Master

the sky is falling! (aka: how low can you go?)

image taken from arstechnica: http://is.gd/dCnMM

Page 15: WHOIS the Master

if ipv4 is running out, where did it go?

• nobody that knows is telling ('freely')

• nobody else knows

• leading to much debate

Page 16: WHOIS the Master

how to find out

• ask IANA!

• when that fails, ask the RIRs

• then ask the LIRs

Page 17: WHOIS the Master

overview of whois tools

• *nix: whois

• web: http://lmgtfy.com/?q=web+whois

• www.robtex.com/whois

Page 18: WHOIS the Master

what's missing?

• no standardized output• can't perform true wildcard queries– whois -h whois.arin.net " o . bank*"

• query options vary by RIR• information is not centralized – chasing referrals sucks

Page 19: WHOIS the Master

how accurate is whois data?

• contact data is required by law in most countries to be legit

• ARIN is working on a policy to validate WHOIS POC info

Page 20: WHOIS the Master

theoretical challenges

• most efficient way to scan

• how to handle referrals

• should i throttle queries

• parsing the results

Page 21: WHOIS the Master

shonuff – the WHOIS master!

• started as PHP/MySQL

• then i got mocked (gently)

• so i ported it to JSP/Postgres– to prove it can always get worse

• is now written in ruby!

Page 22: WHOIS the Master

what’s new?

• better integration with shodan

• privacy policy

• more query types supported

Page 23: WHOIS the Master

linking results to shodan

• shodan has an API!

• so i just make calls to it for you– many thanks to achillean, for letting this work!

Page 24: WHOIS the Master

interesting reports

• organizational breakdown– who has the most allocations– who has the most network space

• geographic breakdown– what countries have ip space– which countries have the most space

Page 25: WHOIS the Master

Demo!

Page 26: WHOIS the Master

future plans

• add in WHOIS contact data• malware IP to WHOIS correlation– allows easy tie-back of malicious content to "real

world" network & hosting businesses• integrate DNS records for netblocks• Maltego transform?• Tie-in for Fierce?• Metasploit fun?

Page 27: WHOIS the Master

where is it?

http://whoisthemaster.org

Page 28: WHOIS the Master

the end

@rossja

[email protected]

cruft.blogspot.com