# US 2019/0243972 A1 · System and method of training a machine learning model for detection of malicious containers

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

- Number: US 2019/0243972 A1
- Document ID: US20190243972A1
- Status: Published application
- Kind: A1
- Application number: 16/124,255
- Filed: 2018-09-07
- Published: 2019-08-08
- Earliest claimed: 2018-02-06
- Assignees: AO Kaspersky Lab
- Applicants: AO Kaspersky Lab
- Inventors: Vladimir V. KRYLOV; Alexander V. LISKIN; Alexey E. ANTONOV
- Web page: https://patentgrep.com/patent/US20190243972A1

## CPC

- G06F 21/564: {by virus signature recognition}
- G06F 21/561: {Virus type analysis}
- G06N 20/00: Machine learning
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Disclosed are systems and methods for training and retraining a model for detection of malicious activity from container files, which contain at least two or more objects constituting logically separate data regions. Parameters of each object chosen from at least one safe container and one malicious container are determined which uniquely characterize the functional relation of the mentioned object to at least one selected object. Convolutions are formed separately for each container on the basis of the determined parameters of the objects, which are used to train a machine learning model for detecting malicious container files.

## Claims

### Claim 1

A computer-implemented method for training a machine learning model for detecting malicious container files, comprising:
selecting a plurality of objects from a malicious container file, wherein a container file is a file that contains at least two or more objects constituting logically separate data regions of the container file;
determining at least one parameter for each object selected from the malicious container file, wherein the at least one parameter characterizes a functional relation of the respective object to at least one other object in the container file;
generating a first convolution associated with the malicious container file based on the determined at least one parameter, wherein the first convolution comprises a multidimensional vector in which each element of the multidimensional vector corresponds to its own unique parameter among the determined parameters, while the value of the mentioned element corresponds to the number of objects for which the mentioned parameter has been determined;
generating a second convolution associated with a safe container file based on determined parameters of objects that are chosen from the safe container file; and
modifying a machine learning model based on the first convolution associated with the malicious container file and the second convolution associated with the safe container file, wherein the machine learning model is configured to compute a degree of harmfulness of a container file under analysis.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
applying the machine learning model to a target container file to compute the degree of harmfulness of the target container file, wherein the computed degree of harmfulness of the target container file is a numerical value characterizing a probability that the target container file under analysis is malicious.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
responsive to determining the computed degree of harmfulness is in a predetermined range of threshold values, retraining the machine learning model such that the degree of harmfulness as calculated with the retrained model is higher than the degree of harmfulness as calculated with the original machine learning model.

### Claim 4 (depends on 2)

The method of claim 2, further comprising:
scheduling an antivirus application to perform an antivirus scan of the target container file based on the computed degree of harmfulness.

### Claim 5 (depends on 1)

The method of claim 1, wherein the malicious container file is one of a PDF (Portable Document Format) document, a software distro, and a file archive.

### Claim 6 (depends on 1)

The method of claim 1, wherein the object selected from the container file is at least one of an executable file, a script, media data, and another container file.

### Claim 7 (depends on 1)

The method of claim 1, wherein the determined parameters of at least one selected object comprise at least one of a type of the selected object, a size of the selected object, and an index of the selected object among all the objects contained in the container file.

### Claim 8 (depends on 1)

The method of claim 1, wherein the determining at least one parameter for each object selected from the malicious container file is performed using a second machine learning model, wherein the second machine learning model comprises a set of rules for determining the parameters of the objects such that each determined parameter increases a probability of classifying a target container file as malicious.

### Claim 9

A system for training a machine learning model for detecting malicious container files, the system comprising:
a storage device configured to store a group of container files;
a hardware processor configured to:
select a plurality of objects from a malicious container file, wherein a container file is a file that contains at least two or more objects constituting logically separate data regions of the container file;
determine at least one parameter for each object selected from the malicious container file, wherein the at least one parameter characterizes a functional relation of the respective object to at least one other object in the container file;
generate a first convolution associated with the malicious container file based on the determined at least one parameter, wherein the first convolution comprises a multidimensional vector in which each element of the multidimensional vector corresponds to its own unique parameter among the determined parameters, while the value of the mentioned element corresponds to the number of objects for which the mentioned parameter has been determined;
generate a second convolution associated with a safe container file based on determined parameters of objects that are chosen from the safe container file; and
modify a machine learning model based on the first convolution associated with the malicious container file and the second convolution associated with the safe container file, wherein the machine learning model is configured to compute a degree of harmfulness of a container file under analysis.

### Claim 10 (depends on 9)

The system of claim 9, wherein the processor is configured to:
apply the machine learning model to a target container file to compute the degree of harmfulness of the target container file, wherein the computed degree of harmfulness of the target container file is a numerical value characterizing a probability that the target container file under analysis is malicious.

### Claim 11 (depends on 10)

The system of claim 10, wherein the processor is configured to:
responsive to determining the computed degree of harmfulness is in a predetermined range of threshold values, retrain the machine learning model such that the degree of harmfulness as calculated with the retrained model is higher than the degree of harmfulness as calculated with the original machine learning model.

### Claim 12 (depends on 10)

The system of claim 10, wherein the processor is configured to:
schedule an antivirus application to perform an antivirus scan of the target container file based on the computed degree of harmfulness.

### Claim 13 (depends on 9)

The system of claim 9, wherein the malicious container file is one of a PDF (Portable Document Format) document, a software distro, and a file archive.

### Claim 14 (depends on 9)

The system of claim 9, wherein the object selected from the container file is at least one of an executable file, a script, media data, and another container file.

### Claim 15 (depends on 9)

The system of claim 9, wherein the determined parameters of at least one selected object comprise at least one of a type of the selected object, a size of the selected object, and an index of the selected object among all the objects contained in the container file.

### Claim 16 (depends on 9)

The system of claim 9, wherein the determination of at least one parameter for each object selected from the malicious container file is performed using a second machine learning model, wherein the second machine learning model comprises a set of rules for determining the parameters of the objects such that each determined parameter increases a probability of classifying a target container file as malicious

### Claim 17

A non-transitory computer readable medium comprising computer executable instructions for training a machine learning model for detecting malicious container files, including instructions for:
selecting a plurality of objects from a malicious container file, wherein a container file is a file that contains at least two or more objects constituting logically separate data regions of the container file;
determining at least one parameter for each object selected from the malicious container file, wherein the at least one parameter characterizes a functional relation of the respective object to at least one other object in the container file;
generating a first convolution associated with the malicious container file based on the determined at least one parameter, wherein the first convolution comprises a multidimensional vector in which each element of the multidimensional vector corresponds to its own unique parameter among the determined parameters, while the value of the mentioned element corresponds to the number of objects for which the mentioned parameter has been determined;
generating a second convolution associated with a safe container file based on determined parameters of objects that are chosen from the safe container file; and
modifying a machine learning model based on the first convolution associated with the malicious container file and the second convolution associated with the safe container file, wherein the machine learning model is configured to compute a degree of harmfulness of a container file under analysis.

### Claim 18 (depends on 17)

The non-transitory computer readable medium of claim 17, wherein the instructions further comprise instructions for:
applying the machine learning model to a target container file to compute the degree of harmfulness of the target container file, wherein the computed degree of harmfulness of the target container file is a numerical value characterizing a probability that the target container file under analysis is malicious.

### Claim 19 (depends on 18)

The non-transitory computer readable medium of claim 18, wherein the instructions further comprise instructions for:
responsive to determining the computed degree of harmfulness is in a predetermined range of threshold values, retraining the machine learning model such that the degree of harmfulness as calculated with the retrained model is higher than the degree of harmfulness as calculated with the original machine learning model.

### Claim 20 (depends on 18)

The non-transitory computer readable medium of claim 18, wherein the instructions further comprise instructions for:
scheduling an antivirus application to perform an antivirus scan of the target container file based on the computed degree of harmfulness.
