IP addresses and ASNs: technique
The technique for analysing an IP address: identification, querying the regional registry, ASN and prefix, reverse resolution and hosted domains, cautious geolocation, reputation, history, links.
- 01
Identify the address
From the domain’s DNS records, an email’s headers, a server’s logs, an attack report.
- 02
Query the registry
RDAP or WHOIS of the regional registry: block, holder, country, abuse contact.
- 03
Derive ASN and prefix
Which autonomous system announces the address and since when.
- 04
Classify the network
Home access, mobile, hosting, CDN, VPN or corporate network.
- 05
Look for hosted domains
Reverse resolution and passive DNS to see which sites share the address.
- 06
Assess the location
Geolocation databases usually get the country right, the city much less so.
- 07
Check reputation
Blocklists, abuse reports, threat intelligence services.
- 08
Reconstruct history
Who used the address at the moment that matters, not just today.
whois 192.0.2.10
curl -s https://rdap.db.ripe.net/ip/192.0.2.10
dig -x 192.0.2.10 +short
curl -s "https://stat.ripe.net/data/prefix-overview/data.json?resource=192.0.2.10"Address and autonomous system are valuable pivots, but they must be weighed: millions of unrelated sites share the addresses of a large CDN.
IP addresses and ASNs: sources
The sources for IP address research: regional registry databases, BGP announcements, reverse resolution and passive DNS, geolocation databases, reputation lists, device search engines.
The pages of this topic
Back to the overviewIP addresses and ASNs: how it works
How IP address allocation works: IPv4 and IPv6, IANA and regional registries, operators and assignees, autonomous systems and BGP announcements, dynamic addresses and shared NAT.
IP addresses and ASNs: tools
The tools for analysing IP addresses and autonomous systems: the whois command and RDAP, RIPEstat, BGP tools, IP information services, reverse domain lookup, reputation lists, graph tools.
IP addresses and ASNs: guided example
A guided example on a bank phishing site: IP address, provider and autonomous system, other domains on the same server, reputation, abuse contact and reports.
IP addresses and ASNs: limits
The limits of IP address research: approximate geolocation, shared NAT, VPNs, proxies and Tor, CDNs, addresses reassigned over time, outdated registry data; personal data and obtaining subscriber data.
IP addresses and ASNs: how to document
How to document IP address research: registry responses with date, ASN and prefix, hosted domains with observation date, geolocation source, distinction between facts and clues.
IP addresses and ASNs: frequently asked questions
Short answers to the most common questions about IP addresses and autonomous systems in open-source investigations.