# US 2021/0288916 A1 · Method and system for preventive filtering of network traffic

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

- Number: US 2021/0288916 A1
- Document ID: US20210288916A1
- Status: Published application
- Kind: A1
- Application number: 17/336,402
- Filed: 2021-06-02
- Published: 2021-09-16
- Earliest claimed: 2019-02-22
- Assignees: NEC Laboratories Europe GmbH
- Applicants: NEC Laboratories Europe GmbH
- Inventors: Giuseppe Siracusano; Roberto Bifulco
- Web page: https://patentgrep.com/patent/US20210288916A1

## CPC

- H04L 63/0236: {Filtering by address, protocol, port number or service, e.g. IP-address or URL}
- H04L 43/04: Processing captured monitoring data, e.g. for logfile generation
- H04L 47/70: Admission control; Resource allocation
- H04L 63/101: {Access control lists [ACL]}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method for learning vector representations of network traffic data offline includes: receiving historical network traffic data and a domain classification list; generating a unique domain names list based on the historical network traffic data; generating a bad domains list based on the unique domain names list and the domain classification list; modifying the unique domain names list by replacing each entry of the unique domain names list that appears in the bad domains list by a common classification label; and learning a respective vector representation for each entry of the modified unique domain names list.

## Claims

### Claim 1

A method for preventive filtering of network traffic data, the method comprising:
receiving historical network traffic data and a domain classification list;
generating a unique domain names list based on the historical network traffic data;
generating a bad domains list based on the unique domain names list and the domain classification list;
modifying the unique domain names list by replacing each entry of the unique domain names list that appears in the bad domains list by a common classification label; and
learning a respective vector representation for each entry of the modified unique domain names list.

### Claim 2 (depends on 1)

The method of claim 1, the method further comprising:
generating a vector representation dictionary based on the learned vector representations and the bad domains list,
wherein each of the learned vector representations is an entry in the vector representation dictionary and associated with a corresponding entry of the modified domain names list, and
wherein each entry of the bad domains list is an entry of the vector representation dictionary and associated with each of the learned vector representations of the common classification label.

### Claim 3 (depends on 2)

The method of claim 2, wherein the generating the vector representation dictionary based on the learned vector representations and the bad domains list comprises:
individually associating each of the learned vector representations with the corresponding entry of the modified unique domain names list; and
individually associating each entry of the bad domains list with each of the learned vector representations of the common classification label.

### Claim 4 (depends on 2)

The method of claim 2, wherein each entry of the vector representation dictionary comprises element information and a vector representation, the element information comprising a unique domain name or the common classification label and the vector representation comprising a set of numeric values that represent a projection of a domain name in a feature space.

### Claim 5 (depends on 4)

The method of claim 4, wherein the vector representation comprises the vector representation of the common classification label.

### Claim 6 (depends on 2)

The method of claim 2, the method further comprising:
generating a domain frequency dictionary based on the historical network traffic data, the domain frequency dictionary associating with each unique domain name with a frequency that the unique domain name occurs in the historical network traffic data.

### Claim 7 (depends on 6)

The method of claim 6, the method further comprising outputting the vector representation dictionary and the domain frequency dictionary for classifying network traffic data, wherein the network traffic data is received online.

### Claim 8 (depends on 1)

The method of claim 1, wherein the generating the bad domains list based on the unique domain names list and the domain classification list comprises adding each entry that appears both in the unique domain names list and in the domain classification list to the bad domains list.

### Claim 9 (depends on 1)

The method of claim 1, wherein the modifying the unique domain names list by replacing each entry of the unique domain names list that appears in the bad domains list by the common classification label comprises:
selecting a sub-list from the unique domain names list based on the domain classification list, each entry of the sub-list corresponding to an entry of the domain classification list; and
replacing each entry of the sub-list by the common classification label.

### Claim 10 (depends on 1)

The method of claim 1, wherein the unique domain names list, the bad domains list, and the modified unique domain names list are a sequence of unique domain names, a sequence of bad domains, and a sequence of modified unique domain names, respectively.

### Claim 11

A network monitoring system for preventive filtering of network traffic, the network monitoring system comprising one or more processors in communication with a non-transitory processor-readable memory having instructions stored thereon, which when executed by the one or more processors cause the network monitoring system to:
receive historical network traffic data and a domain classification list;
generate a unique domain names list based on the historical network traffic data;
generate a bad domains list based on the unique domain names list and the domain classification list;
modify the unique domain names list by replacing each entry of the unique domain names list that appears in the bad domains list by a common classification label; and
learn a respective vector representation for each entry of the modified unique domain names list.

### Claim 12 (depends on 11)

The network monitoring system of claim 11, wherein the instructions, when executed by the one or more processors, further cause the network monitoring system to:
generate a vector representation dictionary based on the learned vector representations and the bad domains list,
wherein each of the learned vector representations is an entry in the vector representation dictionary and associated with a corresponding entry of the modified domain names list, and
wherein each entry of the bad domains list is an entry of the vector representation dictionary and associated with each of the learned vector representations of the common classification label.

### Claim 13 (depends on 12)

The network monitoring system of claim 12, wherein the instructions, when executed by the one or more processors, further cause the network monitoring system to:
generate a domain frequency dictionary based on the historical network traffic data, the domain frequency dictionary associating with each unique domain name with a frequency that the unique domain name occurs in the historical network traffic data.

### Claim 14 (depends on 13)

The network monitoring system of claim 13, wherein the instructions, when executed by the one or more processors, further cause the network monitoring system to:
output the vector representation dictionary and the domain frequency dictionary for classifying network traffic data, wherein the network traffic data is received online.

### Claim 15

A non-transitory processor-readable storage medium storing instructions that upon execution cause a network monitoring system to perform a method preventive filtering of network traffic, the method comprising:
receiving historical network traffic data and a domain classification list;
generating a unique domain names list based on the historical network traffic data;
generating a bad domains list based on the unique domain names list and the domain classification list;
modifying the unique domain names list by replacing each entry of the unique domain names list that appears in the bad domains list by a common classification label; and
learning a respective vector representation for each entry of the modified unique domain names list.
