

Luckily for us, APNIC makes BGP routing data publicly available. The management & coordination of administrative tasks of the whole Internet is divided among different Regional Internet Registries (RIR) such asĪPNIC is the Regional Internet Registry responsible for the Asia-Pacific region. Then as a first and drastic measure, an entire or multiple ASN's can be blocked in order to quickly chocke an ongoing attack.įurthermore, an autonomous system can often be mapped to a country, which gives geographical location information for an IP address, which may further help to contextualize an ongoing attack.įurthermore, by knowing the AS organization of an IP address, it is also possible to draw futher conclucsions: Is the organization an large and established ISP? Is it a company with a good reputation? Or is it a unknown business with a reputation for a leniant policy regarding spammers? How can IP addresses be mapped to Autonmous System Numbers (ASN)?

This problem becomes especially apparent with the gradual adoption of IPv6, where you can practically obtain huge ranges of IPv6 addresses without much effort.īy obtaining the ASN for each of the attacking IP addresses, it can potentially be learned that the attacker is launching her attack from only few distinct autonomous systems. Advanced or institutional attackers often own large blocks of IP addresses, therefore blocking single IP addresses is often not going to cut it. In defensive IT Security, you often want to block offending IP addresses in order to stop spammers and ongoing attacks from hackers or botnets. Why are autonomous systems relevant in IT security? Visualizations of ASN Connections in RIPE NCC This might seem counterintuitive, but due to the rarity of IPv4 addresses, it is not uncommon to have different /8 IPv4 ranges in a single AS. So for example, AS34953 is an autonomous system number that belongs to the organization RELAIX RelAix Networks GmbH (Which is actually the organsiation responsible for providing Internet to the train from which I am writing this blog article):Īs you can see, the autonomous system AS34953 has IP ranges from totally different IPv4 /8 address blocks. Furthermore, each autonomous system can have multiple IPv4 and IPv6 address ranges assigned to it.ĪS numbers are either 16-bit integers or 32-bit integers. Each IPv4 and IPv6 address belongs to exactly one autonomous system. You can think of autonomous systems as a subset of the Internet that follows a common routing policy and that is controlled by one administrative entity (Such as a large ISP or a public organization such as an University). The Border Gateway Protocol (BGP) implements AS routing policies. An autonomous system belongs to a single administrative organisation that defines a coherent routing policy to the rest of the Internet (And especially to the neighboring autonomous systems). Those autonomous systems are assigned a number, the ASN. It is highly likely that there is a large number of other products and services which will consider this IP address to be in the USA.The Internet consists of many independent systems which are called Autonomous Systems (AS). It is likely that Microsoft has asked them to set this network to be in Japan, but haven’t registered the network in the APNIC with the correct location. However, the commercial geolocation service providers such as Maxmind show the IP to be in Japan. RIR whois registries (RIPE in Europe, ARIN in North America, APNIC in Asia-Pacific etc) are the standard places where the geolocation data should be stored, and for example Freedome (VPN-Client) checks this when recommending a location for the user. Organization: Microsoft Corporation (MSFT) The problem now is, that the IP is registered to be in Redmond, WA, USA in the RIR/ARIN data. for the location japan east we have the following ip:

We have some virtual machines in different locations.
