# US 2025/0156542 A1 · Systems and methods for generating malware family detection rules

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

- Number: US 2025/0156542 A1
- Document ID: US20250156542A1
- Status: Published application
- Kind: A1
- Application number: 19/020,760
- Filed: 2025-01-14
- Published: 2025-05-15
- Earliest claimed: 2023-01-19
- Assignees: Target Brands, Inc.
- Applicants: Target Brands, Inc.
- Inventors: Nicholas Taylor
- Web page: https://patentgrep.com/patent/US20250156542A1

## CPC

- G06F 21/564: {by virus signature recognition}
- G06F 21/56: Computer malware detection or handling, e.g. anti-virus arrangements
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed are techniques for identifying unique byte sequences for malware families. A method can include receiving a collection of malware signature samples, grouping the samples in the collection by malware family, and for each family: identifying unique byte sequences in the samples and a number of instances of the unique byte sequences across the samples, adding the identified unique byte sequences to a dictionary for the malware family, retrieving a dictionary of at least another malware family, comparing the unique byte sequences in the dictionary for the malware family with byte sequences in the dictionary of the another malware family, identifying a conflicting byte sequence based on (i) the comparison and (ii) determining that a number of instances of the conflicting byte sequence is more than a threshold number of instances, and removing the identified conflicting byte sequence from the dictionary for the malware family.

## Claims

### Claim 1

A method for identifying unique byte sequences in malware signature samples, the method comprising:
receiving a collection of malware signature samples;
for each malware signature sample in the collection:
identifying a threshold quantity of bytes of a byte sequence of the malware signature sample,
adding the threshold quantity of bytes into a dictionary based on identifying the threshold quantity of bytes of the byte sequence,
identifying a next set of the threshold quantity of bytes of the byte sequence of the malware signature sample,
adding the next set of the threshold quantity of bytes into the dictionary based on identifying the next set of the threshold quantity of bytes; and
returning the dictionary.

### Claim 2 (depends on 1)

The method of claim 1, wherein the method further comprises adding one or more wildcard bytes into byte sequences in the dictionary.

### Claim 3 (depends on 1)

The method of claim 1, wherein the method comprises:
selecting a set of bytes in the dictionary;
determining, for each position in the selected set of bytes, whether the position allows for a threshold-byte atom to exist in the selected set of bytes; and
in response to determining that the position allows for the threshold-byte atom to exist in the selected set of bytes, injecting a wildcard byte at the position in the selected set of bytes.

### Claim 4 (depends on 3)

The method of claim 3, wherein the threshold-byte atom comprises a 3-byte atom.

### Claim 5 (depends on 3)

The method of claim 3, wherein the threshold-byte atom is defined based on a malware detection rule that is associated with a malware family of the dictionary.

### Claim 6 (depends on 1)

The method of claim 1, wherein the dictionary comprises a first dictionary and the method further comprises:
retrieving a second dictionary;
comparing sets of bytes in the first dictionary with sets of bytes in the second dictionary;
determining whether the sets of bytes in the first dictionary conflict with the sets of bytes in the second dictionary to identify a conflicting set of bytes; and
in response to identifying the conflicting set of bytes, removing the conflicting set of bytes from the first dictionary.

### Claim 7 (depends on 6)

The method of claim 6, wherein the method further comprises:
retrieving a third dictionary; and
performing the comparing, the determining, and the removing operations with the first dictionary and the third dictionary.

### Claim 8 (depends on 1)

The method of claim 1, wherein the method further comprises updating or generating malware detection rules based on the dictionary.

### Claim 9 (depends on 8)

The method of claim 8, wherein the method further comprises:
receiving network traffic;
determining whether the network traffic triggers one or more of the malware detection rules; and
blocking the network traffic that triggers the one or more of the malware detection rules.

### Claim 10 (depends on 9)

The method of claim 9, wherein the method further comprises transmitting a portion of the network traffic that does not trigger the malware detection rules to an internal network.

### Claim 11 (depends on 9)

The method of claim 9, wherein the method further comprises generating and returning output about the network traffic.

### Claim 12 (depends on 11)

The method of claim 11, wherein the output comprises an indication of a quantity of the network traffic that triggered the one or more of the malware detection rules.

### Claim 13 (depends on 1)

The method of claim 1, wherein the dictionary comprises byte sequences associated with a particular malware family.

### Claim 14 (depends on 1)

The method of claim 1, wherein the threshold quantity of bytes and the next set of the threshold quantity of bytes are non-overlapping sets of bytes.

### Claim 15 (depends on 1)

The method of claim 1, wherein the collection of malware signature samples comprises non-malicious signature samples.

### Claim 16

A method for monitoring network traffic, the method comprising:
receiving a collection of malware signature samples;
generating a malware family dictionary based on analyzing byte sequences in the collection of malware signature samples;
generating malware detection rules based on the malware family dictionary;
receiving network traffic;
determining whether the network traffic triggers one or more of the malware detection rules; and
blocking the network traffic that triggers the one or more of the malware detection rules.

### Claim 17 (depends on 16)

The method of claim 16, wherein generating the malware family dictionary comprises, for each malware signature sample in the collection:
identifying a threshold quantity of bytes of a byte sequence of the malware signature sample,
adding the threshold quantity of bytes into a dictionary based on identifying the threshold quantity of bytes,
identifying a next set of the threshold quantity of bytes of the byte sequence of the malware signature sample, and
adding the next set of the threshold quantity of bytes into the dictionary based on identifying the next set of the threshold quantity of bytes.

### Claim 18 (depends on 16)

The method of claim 16, wherein the method further comprises transmitting a portion of the network traffic that does not trigger the malware detection rules to an internal network.

### Claim 19 (depends on 16)

The method of claim 16, wherein the method further comprises generating and returning output about the network traffic.

### Claim 20 (depends on 16)

The method of claim 16, wherein the output comprises an indication of a quantity of the network traffic that triggered the one or more of the malware detection rules.
