asn is a multifunctional network investigation and OSINT command line tool designed for analyzing Autonomous System (ASN) and IP-related data. It provides a comprehensive set of capabilities for inspecting network infrastructure, routing information, and security signals associated with IP addresses, hostnames, prefixes, and organizations. It aggregates data from multiple external services to present detailed information such as BGP statistics, RPKI validation status, IP reputation, geolocation, and prefix ownership. It can also perform AS path tracing, allowing users to observe the network route between systems and identify Internet Exchange Points or anomalies in the path. In addition to its command line usage, asn can run as a web-based traceroute server or as a self-hosted lookup API that returns JSON-formatted data for automated workflows. This flexibility allows the tool to support manual investigations, incident response, and automated network analysis pipelines.
Features
- ASN and BGP lookup with statistics such as neighbors, prefixes, and AS ranking
- RPKI validation checks to identify route leaks or potential BGP hijacking
- AS path tracing with hop-by-hop network, ASN, and geolocation information
- IP reputation, threat scoring, and vulnerability intelligence integration
- Bulk geolocation and analysis for large IP lists or log files
- Web-based traceroute server and JSON API for automated network queries