# US 10,958,668 B1 · Finding malicious domains with DNS query pattern analysis

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

- Number: US 10,958,668 B1
- Document ID: US10958668B1
- Status: Granted
- Kind: B1
- Application number: 15/850,202
- Filed: 2017-12-21
- Granted: 2021-03-23
- Earliest claimed: 2017-12-21
- Assignees: Palo Alto Networks, Inc.
- Applicants: Palo Alto Networks, Inc.
- Inventors: Jun Wang; Wei Xu
- Web page: https://patentgrep.com/patent/US10958668B1

## CPC

- H04L 63/1416: {Event detection, e.g. attack signature detection}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F 21/554: {involving event detection and direct action}
- H04L 61/4511: using domain name system [DNS]
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Malicious domain finding using DNS query pattern analysis is disclosed. A first DNS query signature and a second DNS query signature are generated, using a set of DNS query records. The first and second DNS query signatures are compared, and the second DNS query signature is identified as malicious based on a detected match between the first and second DNS query signatures.

## Claims

### Claim 1

A system, comprising:
a processor configured to:
receive a set of passive DNS query records that represent DNS queries made by a plurality of client devices, wherein the set of passive DNS query records comprises, for a first domain included in the DNS query records, a plurality of timestamps corresponding, respectively, to each time that a query for the first domain was made by a respective client device, wherein the client device is a first client device included among a plurality of client devices each of which has made at least one query for the first domain;
generate a first DNS query signature for a first domain, previously determined to be malicious, using at least a portion of the received set of DNS query records including by using a number of queries made, respectively, in each of a plurality of interval buckets of a given time series, wherein the first DNS query signature represents a pattern of DNS queries made by a first plurality of requesting clients for the first domain;
generate a second DNS query signature for a second domain using at least a portion of the received set of DNS query records, wherein the second DNS query signature represents a pattern of DNS queries made by a second plurality of requesting clients for the second domain;
compare the first DNS query signature and the second DNS query signature, and identify the second DNS query signature as malicious based on a detected match between the first DNS query signature and the second DNS query signature; and
classify the second domain as a malicious domain; and
a memory coupled to the processor and configured to provide the processor with instructions.

### Claim 2 (depends on 1)

The system of claim 1 wherein generating the first DNS query signature for the first domain includes validating the first DNS query signature.

### Claim 3 (depends on 2)

The system of claim 2 wherein validating the first DNS query signature for the first domain includes performing a fast Fourier transform.

### Claim 4 (depends on 1)

The system of claim 1 wherein generating the second DNS query signature for the second domain includes filtering out DNS query records associated with one or more benign domains.

### Claim 5 (depends on 1)

The system of claim 1 wherein generating the second DNS query signature for the second domain includes filtering out DNS query records associated with NX domains.

### Claim 6 (depends on 1)

The system of claim 1 wherein comparing the first DNS query signature for the first domain and the second DNS query signature for the second domain includes determining a product-moment correlation coefficient using the respective first and second DNS query signatures.

### Claim 7 (depends on 1)

The system of claim 1 wherein comparing the first DNS query signature for the first domain and the second DNS query signature for the second domain includes performing a shift on the second DNS query signature.

### Claim 8 (depends on 1)

The system of claim 1 wherein the processor is further configured to associate malware family information pertinent to the first domain with the second domain.

### Claim 9 (depends on 1)

The system of claim 1 wherein the processor is further configured to associate malicious behavioral information pertinent to the first domain with the second domain.

### Claim 10 (depends on 1)

The system of claim 1 wherein the processor is further configured to provide an indicator of the second domain's maliciousness to a security appliance.

### Claim 11 (depends on 1)

The system of claim 1 wherein the processor is further configured to provide the first DNS query signature to a security appliance.

### Claim 12

A method, comprising:
receiving a set of passive DNS query records that represent DNS queries made by a plurality of client devices, wherein the set of passive DNS query records comprises, for a first domain included in the DNS query records, a plurality of timestamps corresponding, respectively, to each time that a query for the first domain was made by a respective client device, wherein the client device is a first client device included among a plurality of client devices each of which has made at least one query for the first domain;
generating a first DNS query signature for a first domain, previously determined to be malicious, using at least a portion of the received set of DNS query records, including by using a number of queries made, respectively, in each of a plurality of interval buckets of a given time series, wherein the first DNS query signature represents a pattern of DNS queries made by a first plurality of requesting clients for the first domain;
generating a second DNS query signature for a second domain using at least a portion of the received set of DNS query records, wherein the second DNS query signature represents a pattern of DNS queries made by a second plurality of requesting clients for the second domain;
comparing the first DNS query signature and the second DNS query signature, and identifying the second DNS query signature as malicious based on a detected match between the first DNS query signature and the second DNS query signature; and
classifying the second domain as a malicious domain.

### Claim 13 (depends on 12)

The method of claim 12 wherein generating the first DNS query signature for the first domain includes validating the first DNS query signature.

### Claim 14 (depends on 12)

The method of claim 12 wherein generating the second DNS query signature for the second domain includes filtering out DNS query records associated with one or more benign domains.

### Claim 15 (depends on 12)

The method of claim 12 wherein comparing the first DNS query signature for the first domain and the second DNS query signature for the second domain includes determining a product-moment correlation coefficient using the respective first and second DNS query signatures.

### Claim 16 (depends on 12)

The method of claim 12 wherein comparing the first DNS query signature for the first domain and the second DNS query signature for the second domain includes performing a shift on the second DNS query signature.

### Claim 17

A computer program product embodied in a non-transitory computer readable storage medium and comprising computer instructions for:
receiving a set of passive DNS query records that represent DNS queries made by a plurality of client devices, wherein the set of passive DNS query records comprises, for a first domain included in the DNS query records, a plurality of timestamps corresponding, respectively, to each time that a query for the first domain was made by a respective client device, wherein the client device is a first client device included among a plurality of client devices each of which has made at least one query for the first domain;
generating a first DNS query signature for a first domain, previously determined to be malicious, using at least a portion of the received set of DNS query records, including by using a number of queries made, respectively, in each of a plurality of interval buckets of a given time series, wherein the first DNS query signature represents a pattern of DNS queries made by a first plurality of requesting clients for the first domain;
generating a second DNS query signature for a second domain using at least a portion of the received set of DNS query records, wherein the second DNS query signature represents a pattern of DNS queries made by a second plurality of requesting clients for the second domain;
comparing the first DNS query signature and the second DNS query signature, and identifying the second DNS query signature as malicious based on a detected match between the first DNS query signature and the second DNS query signature; and
classifying the second domain as a malicious domain.

### Claim 18 (depends on 13)

The method of claim 13 wherein validating the first DNS query signature for the first domain includes performing a fast Fourier transform.

### Claim 19 (depends on 12)

The method of claim 12 wherein generating the second DNS query signature for the second domain includes filtering out DNS query records associated with NX domains.

### Claim 20 (depends on 12)

The method of claim 12 further comprising associating malware family information pertinent to the first domain with the second domain.

### Claim 21 (depends on 12)

The method of claim 12 further comprising associating malicious behavioral information pertinent to the first domain with the second domain.

### Claim 22 (depends on 12)

The method of claim 12 further comprising providing an indicator of the second domain's maliciousness to a security appliance.

### Claim 23 (depends on 12)

The method of claim 12 further comprising providing the first DNS query signature to a security appliance.
