# US 2019/0095512 A1 · Domain classification based on domain name system (dns) traffic

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0095512 A1
- Document ID: US20190095512A1
- Status: Published application
- Kind: A1
- Application number: 16/199,556
- Filed: 2018-11-26
- Published: 2019-03-28
- Earliest claimed: 2015-08-07
- Assignees: Cisco Technology, Inc.
- Applicants: Cisco Technology, Inc.
- Inventors: Dhia Mahjoub; Thomas M. Mathew
- Web page: https://patentgrep.com/patent/US20190095512A1

## CPC

- G06F 16/285: {Clustering or classification}
- G06F 16/951: Indexing; Web crawling techniques
- H04L 43/04: Processing captured monitoring data, e.g. for logfile generation
- H04L 43/0876: Network utilisation, e.g. volume of load or congestion level
- H04L 61/4511: using domain name system [DNS]
- H04L 63/1441: {Countermeasures against malicious traffic (countermeasures against attacks on cryptographic mechanisms H04L9/002)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Techniques are provided herein for classifying domains based on DNS traffic so that domains that are malicious or associated with malicious activity can be identified. Traffic between one or more domain name system (DNS) resolvers and one or more authoritative name servers hosted on the Internet is analyzed analyzing at a server having network connectivity. A mismatch between a hostname and Internet Protocol (IP) information for the hostname is detected in the traffic and domains included in the traffic are classified based on the detecting.

## Claims

### Claim 1

A method comprising:
analyzing, at a server operating in a recursive domain name system (DNS) cluster and having network connectivity, traffic between one or more DNS resolvers in the DNS cluster and one or more authoritative name servers hosted on the Internet;
detecting, in the traffic, an Autonomous System Number (ASN) mismatch between a hostname and Internet Protocol (IP) information for the hostname;
classifying one or more domains included in the traffic as malicious based on the detecting; and
blocking traffic from the one or more domains classified as malicious.

### Claim 2 (depends on 1)

The method of claim 1, wherein the classifying further comprises:
classifying the one or more domains based on the detecting and based on a location of an IP address associated with at least one of the hostname and the IP information for the hostname within a topology of ASNs.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
extracting the IP address from at least one of the hostname and the IP information for the hostname; and
determining a location of the IP address in the topology of ASNs based on at least one of ASN-based routing information and allocation information determined with WHOIS information.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
accessing authoritative logs that contain the traffic; and
retrieving an ASN for the hostname and an ASN for the second level domain name based on the traffic included in the authoritative logs.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
extracting an IP address range associated with the hostname;
determining that the IP address range associated with the hostname is a sub-allocated IP address range; and
classifying the hostname as associated with malicious activity based on the sub-allocated IP address range.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
fingerprinting at least a portion of the IP address range; and
classifying the IP address range based on the fingerprinting.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
analyzing traffic between the one or more DNS resolvers and one or more clients; and
wherein the classifying of the one or more domains as malicious is based on the detecting of the ASN mismatch and the analyzing of the DNS traffic between the one or more DNS resolvers and one or more clients.

### Claim 8

An apparatus comprising:
one or more network interface units configured to enable network connectivity to the Internet from within a recursive domain name system (DNS) cluster;
a processor configured to:
analyze traffic between one or more DNS resolvers in the DNS cluster and one or more authoritative name servers hosted on the Internet;
detect, in the traffic, an Autonomous System Number (ASN) mismatch between a hostname and Internet Protocol (IP) information for the hostname;
classify one or more domains included in the traffic as malicious based on detection of the ASN mismatch; and
block traffic from the one or more domains classified as malicious.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein, in classifying, the processor is further configured to:
classify the one or more domains based on detection of the ASN mismatch and based on a location of an IP address associated with at least one of the hostname and the IP information for the hostname within a topology of ASNs.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the processor is further configured to:
extract the IP address from at least one of the hostname and the IP information for the hostname; and
determine a location of the IP address in the topology of ASNs based on at least one of ASN-based routing information and allocation information determined with WHOIS information.

### Claim 11 (depends on 8)

The apparatus of claim 8, wherein the processor is further configured to:
access authoritative logs that contain the traffic; and
retrieve an ASN for the hostname and an ASN for the second level domain name based on the traffic included in the authoritative logs.

### Claim 12 (depends on 8)

The apparatus of claim 8, wherein the processor is further configured to:
extract an IP address range associated with the hostname;
determine that the IP address range associated with the hostname is a sub-allocated IP address range; and
classify the hostname as associated with malicious activity based on the sub-allocated IP address range.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the processor is further configured to:
fingerprint at least a portion of the IP address range; and
classify the IP address range based on the fingerprint.

### Claim 14 (depends on 8)

The apparatus of claim 8, wherein the processor is further configured to:
analyze traffic between the one or more DNS resolvers and one or more clients; and
classify the one or more domains as malicious based on the detection of the ASN mismatch and the analyzing of the DNS traffic between the one or more DNS resolvers and one or more clients.

### Claim 15

A non-transitory computer-readable storage media encoded with software comprising computer executable instructions and when the software is executed in a recursive domain name system (DNS) cluster, operable to:
analyze traffic between one or more DNS resolvers in the DNS cluster and one or more authoritative name servers hosted on the Internet;
detect, in the traffic, an Autonomous System Number (ASN) mismatch between a hostname and Internet Protocol (IP) information for the hostname;
classify one or more domains included in the traffic as malicious based on detection of the ASN mismatch; and
block traffic from the one or more domains classified as malicious.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage media of claim 15, wherein, the instructions operable to classify are further operable to:
classify the one or more domains based on detection of the ASN mismatch and based on a location of an IP address associated with at least one of the hostname and the IP information for the hostname within a topology of ASNs.

### Claim 17 (depends on 16)

The non-transitory computer-readable storage media of claim 16, wherein the instructions are further operable to:
extract the IP address from at least one of the hostname and the IP information for the hostname; and
determine a location of the IP address in the topology of ASNs based on at least one of ASN-based routing information and allocation information determined with WHOIS information.

### Claim 18 (depends on 15)

The non-transitory computer-readable storage media of claim 15, wherein the instructions are further operable to:
access authoritative logs that contain the traffic; and
retrieve an ASN for the hostname and an ASN for the second level domain name based on the traffic included in the authoritative logs.

### Claim 19 (depends on 15)

The non-transitory computer-readable storage media of claim 15, wherein the instructions are further operable to:
extract an IP address range associated with the hostname;
determine that the IP address range associated with the hostname is a sub-allocated IP address range; and
classify the hostname as associated with malicious activity based on the sub-allocated IP address range.

### Claim 20 (depends on 15)

The non-transitory computer-readable storage media of claim 15, wherein the instructions are further operable to:
analyze traffic between the one or more DNS resolvers and one or more clients; and
classify the one or more domains as malicious based on the detection of the mismatch and the analyzing of the DNS traffic between the one or more DNS resolvers and one or more clients.
