# US 2021/0173928 A1 · System and method for improved protection against malicious code elements

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

- Number: US 2021/0173928 A1
- Document ID: US20210173928A1
- Status: Published application
- Kind: A1
- Application number: 17/115,602
- Filed: 2020-12-08
- Published: 2021-06-10
- Earliest claimed: 2019-12-09
- Assignees: Votiro Cybersec Ltd.
- Applicants: Votiro Cybersec Ltd.
- Inventors: AVIV GRAFI; YEHUDA NEEMAN
- Web page: https://patentgrep.com/patent/US20210173928A1

## CPC

- G06F 21/563: {by source code analysis}
- G06F 21/44: Program or device authentication
- G06F 21/565: {by checking file integrity}
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Method and system for protecting an executing environment from malicious code elements, one exemplary method including compiling a set of trustworthy code elements, each code element being executable using an application. The method further includes determining whether the file contains an embedded code element. If the file contains an embedded element, the embedded code element can be authenticated based on the stored set of code elements, to determine whether the embedded code element is trustworthy. Access to the file can be enabled in response to an authentication result that the embedded code element is trustworthy.

## Claims

### Claim 1

A method of protecting an execution environment from malicious code elements, the method comprising:
storing a set of code elements, each code element being executable using an application;
receiving a file;
determining whether the file contains an embedded code element;
in response to the file containing an embedded code element, authenticating the embedded code element based on the stored set of code elements to determine whether the embedded code element is trustworthy; and
in response to an authentication result that the embedded code element is trustworthy, enabling access to the file.

### Claim 2 (depends on 1)

The method of claim 1, wherein the stored set of code elements comprises a plurality of trustworthy code elements generated from one or more trusted files.

### Claim 3 (depends on 2)

The method of claim 2, wherein the one or more trusted files are associated with one or more trusted sources.

### Claim 4 (depends on 3)

The method of claim 3, wherein the one or more trusted sources are approved or designated based on user input.

### Claim 5 (depends on 1)

The method of claim 1, wherein the stored set of code elements includes a plurality of code elements, each code element of the stored set having a trustworthiness score meeting a trustworthiness threshold.

### Claim 6 (depends on 5)

The method of claim 5, wherein the trustworthiness score for a corresponding one of the code elements is based on a storage period of the corresponding code element.

### Claim 7 (depends on 5)

The method of claim 5, wherein the trustworthiness threshold is adjustable.

### Claim 8 (depends on 1)

The method of claim 1, wherein the authenticating comprises:
comparing the embedded code element with at least one code element in the stored set of code elements; and
authenticating the embedded code element based on a result of the comparison.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
calculating a similarity score between the embedded code element with each of the at least one code element in the stored set of code elements; and
in response to a similarity score between the embedded code element and a first code element in the stored set of code element meeting a preset threshold, determining that the embedded code element is trustworthy.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
updating the stored set of code elements based on the embedded code element; and
authenticating another embedded code element based on the updated stored set of code elements.

### Claim 11 (depends on 10)

The method of claim 10, wherein the updating comprises:
in response to an authentication result that the embedded code element is trustworthy, adding the embedded code element to the stored set of code elements; or
replacing a code element in the stored set of code element with the trustworthy embedded code element.

### Claim 12 (depends on 1)

The method of claim 1, further comprising:
in response to an authentication result that the embedded code element is not trustworthy, disabling access to the file.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
removing the embedded code element from the file;
creating a modified file with the embedded code element removed; and
enabling access to the modified file.

### Claim 14 (depends on 1)

The method of claim 1, further comprising:
determining a source of the file; and
authenticating the source of the file.

### Claim 15 (depends on 14)

The method of claim 14, wherein authenticating the source of the file comprises:
transmitting the source of the file to a recipient device;
receiving an instruction from the recipient device, the instruction indicating whether the file is from a trusted source; and
controlling access to the file based on the instruction.

### Claim 16 (depends on 14)

The method of claim 14, wherein authenticating the source of the file comprises:
comparing the source of the file against one or more sources in a stored list of file sources; and
authenticating the source of the file based on a result of the comparison.

### Claim 17 (depends on 16)

The method of claim 16, wherein the stored list of file sources comprises a list of one or more trusted file sources, the method further comprising:
in response to the source of the file matching a source in the stored list of file sources, determining that the file is from a trusted source; and
enabling access to the file.

### Claim 18 (depends on 16)

The method of claim 16, wherein the stored list of file sources comprises a list of one or more untrusted file sources, the method further comprises:
in response to the source of the file matching a source in the stored list of file sources, determining that the file is from an untrusted source; and
disabling access to the file.

### Claim 19

A non-transitory computer-readable medium comprising instructions that when executed by a processor perform a method of protecting an execution environment from malicious code elements, the method comprising:
storing a set of code elements, each code element being executable using an application;
receiving a file;
determining whether the file contains an embedded code element;
in response to the file containing an embedded code element, authenticating the embedded code element based on the stored set of code elements to determine whether the embedded code element is trustworthy; and
in response to an authentication result that the embedded code element is trustworthy, enabling access to the file.

### Claim 20

A system for protecting an execution environment from malicious code elements, the system comprising:
a memory device storing a set of instructions; and
a processor configured to execute the set of instructions to:
storing a set of code elements, each code element being executable using an application;
receiving a file;
determining whether the file contains an embedded code element;
in response to the file containing an embedded code element, authenticating the embedded code element based on the stored set of code elements to determine whether the embedded code element is trustworthy; and
in response to an authentication result that the embedded code element is trustworthy, enabling access to the file.
