# US 2019/0156033 A1 · Malware Detection

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

- Number: US 2019/0156033 A1
- Document ID: US20190156033A1
- Status: Published application
- Kind: A1
- Application number: 16/183,624
- Filed: 2018-11-07
- Published: 2019-05-23
- Earliest claimed: 2015-07-15
- Assignees: Cylance Inc.
- Applicants: Cylance Inc.
- Inventors: Andrew Davis; Matthew Wolff; Derek A. Soeder; Glenn Chisholm; Ryan Permeh
- Web page: https://patentgrep.com/patent/US20190156033A1

## CPC

- G06F 21/565: {by checking file integrity}
- G06F 21/562: {Static detection}
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06F 2221/034: Test or assess a computer or a system
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

In one respect, there is provided a system for training a neural network adapted for classifying one or more scripts. The system may include at least one processor and at least one memory. The memory may include program code which when executed by the at least one memory provides operations including: receiving a disassembled binary file that includes a plurality of instructions; processing the disassembled binary file with a convolutional neural network configured to detect a presence of one or more sequences of instructions amongst the plurality of instructions and determine a classification for the disassembled binary file based at least in part on the presence of the one or more sequences of instructions; and providing, as an output, the classification of the disassembled binary file. Related computer-implemented methods are also disclosed.

## Claims

### Claim 1

A system, comprising:
at least one processor; and
at least one memory including program code which when executed by the at least one memory provides operations comprising:
receiving a disassembled binary file that includes a plurality of instructions;
processing the disassembled binary file with a trained convolutional neural network configured to detect a presence of one or more sequences of instructions amongst the plurality of instructions and determine a classification for the disassembled binary file based at least in part on the presence of the one or more sequences of instructions; and
providing, as an output, the classification of the disassembled binary file to determine whether to execute, open, or access a binary file corresponding to the disassembled binary file.

### Claim 2 (depends on 1)

The system of claim 1, wherein the plurality of instructions are variable in length.

### Claim 3 (depends on 2)

The system of claim 2, wherein the system is further configured to:
generate fixed length representations of the plurality of instructions by truncating or padding each of the plurality of instructions to a same length.

### Claim 4 (depends on 3)

The system of claim 3, wherein the fixed length representations of the plurality of instructions includes a mnemonic associated with each instruction.

### Claim 5 (depends on 3)

The system of claim 3, wherein the system is further configured to:
encoding the fixed length representations of the plurality of instructions, wherein the encoding is based on one-hot encoding or binary encoding.

### Claim 6 (depends on 1)

The system of claim 1, wherein the convolutional neural network is configured to apply a first plurality of kernels to the disassembled binary file, and wherein each of the first plurality of kernels is adapted to detect a different sequence of two or more instructions.

### Claim 7 (depends on 6)

The system of claim 6, wherein the convolutional neural network is further configured to apply a second plurality of kernels to the disassembled binary file, and wherein each of the second plurality of kernels is adapted to detect a different sequence of two or more sequences of instructions.

### Claim 8 (depends on 6)

The system of claim 6, wherein applying the first plurality of kernels includes applying a first weight matrix to a matrix representation of the disassembled binary file, and wherein the matrix representation of the disassembled binary file comprises encoded fixed length representations of the plurality of instructions included in the disassembled binary file.

### Claim 9 (depends on 8)

The system of claim 8, wherein the system is further configured to train the convolutional neural network by at least:
receiving a plurality of training files, wherein the plurality of training files comprises a plurality of disassembled binary files;
determining a classification of a first training file by at least processing the first training file with the convolutional neural network;
back propagating an error associated with the classification of the first training file; and
adjusting at least the first weight matrix to minimize the error associated with the classification of the first training file.

### Claim 10 (depends on 9)

The system of claim 9, wherein training the convolutional neural network further comprises:
determining a classification for a second training file by at least processing the second training file with the convolutional neural network;
back propagating an error associated with the classification of the second training file; and
readjusting at least the first weight matrix to minimize the error associated with the classification of the second training file.

### Claim 11

A computer-implemented method, comprising:
receiving a disassembled binary file that includes a plurality of instructions;
processing the disassembled binary file with a trained convolutional neural network configured to detect a presence of one or more sequences of instructions amongst the plurality of instructions and determine a classification for the disassembled binary file based at least in part on the presence of the one or more sequences of instructions; and
providing, as an output, the classification of the disassembled binary file to determine whether to execute, open, or access a binary file corresponding to the disassembled binary file.

### Claim 12 (depends on 11)

The method of claim 11, wherein the plurality of instructions are variable in length.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
generating fixed length representations of the plurality of instructions by truncating or padding each of the plurality of instructions to a same length.

### Claim 14 (depends on 13)

The method of claim 13, wherein the fixed length representations of the plurality of instructions includes a mnemonic associated with each instruction.

### Claim 15 (depends on 13)

The method of claim 13, further comprising:
encoding the fixed length representations of the plurality of instructions, wherein the encoding is based on one-hot encoding or binary encoding.

### Claim 16 (depends on 11)

The method of claim 11, wherein the convolutional neural network is configured to apply a first plurality of kernels to the disassembled binary file, and wherein each of the first plurality of kernels is adapted to detect a different sequence of two or more instructions.

### Claim 17 (depends on 16)

The method of claim 16, wherein the convolutional neural network is further configured to apply a second plurality of kernels to the disassembled binary file, and wherein each of the second plurality of kernels is adapted to detect a different sequence of two or more sequences of instructions.

### Claim 18 (depends on 16)

The method of claim 16, wherein applying the first plurality of kernels includes applying a first weight matrix to a matrix representation of the disassembled binary file, and wherein the matrix representation of the disassembled binary file comprises encoded fixed length representations of the plurality of instructions included in the disassembled binary file.

### Claim 19 (depends on 18)

The method of claim 18, further comprising training the convolutional neural network by at least:
receiving a plurality of training files, wherein the plurality of training files comprises a plurality of disassembled binary files;
determining a classification of a first training file by at least processing the first training file with the convolutional neural network;
back propagating an error associated with the classification of the first training file;
adjusting at least the first weight matrix to minimize the error associated with the classification of the first training file;

### Claim 20 (depends on 19)

The method of claim 19, wherein training the convolutional neural network further comprises:
determining a classification for a second training file by at least processing the second training file with the convolutional neural network;
back propagating an error associated with the classification of the second training file; and
readjusting at least the first weight matrix to minimize the error associated with the classification of the second training file.

### Claim 21

A computer-implemented method, comprising:
receiving a disassembled binary file that includes a plurality of instructions;
processing the disassembled binary file with a trained convolutional neural network configured to apply two different pluralities of kernels to detect a presence of one or more sequences of instructions amongst the plurality of instructions and determine a classification for the disassembled binary file based at least in part on the presence of the one or more sequences of instructions; and
providing, as an output, the classification of the disassembled binary file to determine whether to execute, open, or access a binary file corresponding to the disassembled binary file.
