# US 2019/0347415 A1 · System and methods for detection of cryptoware

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

- Number: US 2019/0347415 A1
- Document ID: US20190347415A1
- Status: Published application
- Kind: A1
- Application number: 16/468,290
- Filed: 2017-12-11
- Published: 2019-11-14
- Earliest claimed: 2016-12-11
- Assignees: enSilo Ltd.
- Applicants: enSilo Ltd.
- Inventors: Udi YAVO; Tomer BITTON; Ido KELSON; Gregory MESSERMAN
- Web page: https://patentgrep.com/patent/US20190347415A1

## CPC

- G06F 21/566: {Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities}
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 21/554: {involving event detection and direct action}
- G06F 21/561: {Virus type analysis}
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer implemented method for protecting data stored in at least one file from being overwritten by malicious code, comprises: monitoring at least one file stored in a storage device location to detect a request to perform an overwrite operation at least a portion of data of the at least one file; redirecting the overwrite operation to a memory location designated as safe for being overwritten; analyzing the overwrite operation at the memory location to identify an association with malicious code; and outputting an indication of an attempt to overwrite the at least one file by malicious code.

## Claims

### Claim 1

A computer implemented method for protecting data stored in at least one file from being overwritten by malicious code, the computer implemented method comprising:
monitoring at least one file stored in a storage device location to detect a request to perform an overwrite operation at least a portion of data of the at least one file;
redirecting the overwrite operation to a memory location designated as safe for being overwritten;
analyzing the overwrite operation at the memory location to identify an association with malicious code; and
outputting an indication of an attempt to overwrite the at least one file by malicious code.

### Claim 2 (depends on 1)

The computer implemented method of claim 1, further comprising creating a mirror of the at least one file at the memory location, and redirecting the overwrite operation to the mirror of the at least one file.

### Claim 3 (depends on 2)

The computer implemented method of claim 2, wherein analyzing the overwrite operation comprises verifying the file structure of the mirror of the at least one file according to a predefined file structure.

### Claim 4 (depends on 2)

The computer implemented method of claim 2, wherein analyzing the overwrite operation comprises identifying an encryption of the mirror of the at least one file by parsing the mirror to identify at least one field, calculating a difference between a calculated entropy of each identified at least one field of the mirror and a calculated entropy of a corresponding at least one field of the file at the storage device location, and evaluating the calculated difference according to a requirement representing an allowed tolerance error between the calculated entropy values.

### Claim 5 (depends on 2)

The computer implemented method of claim 2, wherein analyzing the overwrite operation comprises identifying an encryption of the mirror of the at least one file by parsing the mirror to identify at least one field, determining at least one illegal value in the at least one field by comparing at least one value of each identified at least one field of the mirror to a corresponding at least one value of at least one field of the file at the storage device location, and evaluating the compared difference according to a requirement representing predefined allowed values.

### Claim 6 (depends on 2)

The computer implemented method of claim 2, wherein analyzing the overwrite operation comprises identifying non-text data at least at one location of the mirror of the at least one file designated to include text data at the corresponding at least one location of the at least one file at the storage device location.

### Claim 7 (depends on 2)

The computer implemented method of claim 2, wherein the mirror of the at least one file stores only the portions of at least one file that are designated to be overwritten by the overwrite operation, wherein the mirror of the at least one file does not include portions of the at least one file that are unaffected by the overwrite operation.

### Claim 8 (depends on 2)

The computer implemented method of claim 2, wherein the creating the mirror file is performed iteratively for successive portions of the at least one file, wherein each successive portion is copied to the location of the mirror file triggered by a write operation to the respective portion, wherein the analyzing is performed iteratively for each successive portion.

### Claim 9

(canceled)

### Claim 10 (depends on 1)

The computer implemented method of claim 1, wherein analyzing the overwrite operation comprises checking whether the portion of data of the at least one file is read prior to the request to perform the overwrite operation of the portion of the at least one file.

### Claim 11 (depends on 1)

The computer implemented method of claim 1, wherein the association with malicious code is identified when the overwrite operation is detected as being performed on a plurality of files including at least a predefined number of files or when a deletion operation of the portion of the at least one file is attempted after the overwrite operation of the portion of the at least one file.

### Claim 12

(canceled)

### Claim 13 (depends on 1)

The computer implemented method of claim 1, wherein the overwrite operation comprises at least one of: encrypting at least the portion of the at least one file, renaming the at least one file, changing content of at least the portion of the at least one file to irrelevant values, and deleting at least the portion of the at least one file.

### Claim 14

(canceled)

### Claim 15 (depends on 1)

The computer implemented method of claim 1, further comprising determining whether the at least one file is designated for protection; wherein determining comprises analyzing a format of the at least one file according to a predefined file format designated for protection; wherein the predefined file format is a member selected from the group consisting of: a word processing document file format, a spreadsheet file format, a PDF file format, and a presentation file format.

### Claim 16

(canceled)

### Claim 17 (depends on 1)

The computer implemented method of claim 1, further comprising:
analyzing the overwrite operation to identify an overwrite to a header of the at least one file; and
triggering the redirecting the overwrite operation when the overwrite to the header is identified.

### Claim 18 (depends on 1)

The computer implemented method of claim 1, further comprising:
analyzing the overwrite operation at the memory location to identify an association with safe code; and
overwriting the at least one file at the storage device location with the overwritten data at the memory location.

### Claim at position 19

19-20. (canceled)

### Claim 21 (depends on 1)

The computer implemented method of claim 1, further comprising deleting the overwritten data at the memory location when the analysis identifies identify the overwrite operation associated with malicious code.

### Claim 22 (depends on 1)

The computer implemented method of claim 1, wherein analyzing the overwrite operation is performed according to at least one of: when the overwrite operation is complete, and when a predefined size of data is overwritten.

### Claim 23 (depends on 1)

The computer implemented method of claim 1, wherein analyzing the overwrite operation comprises detecting encryption by calculating entropy of the data overwritten at the memory location according to an entropy requirement representing encrypted data.

### Claim 24

(canceled)

### Claim 25 (depends on 1)

The computer implemented method of claim 1, further comprising presenting a user interface on a display in response to detecting the overwrite operation to allow a user to confirm the overwrite operation as associated with safe code and adding an application associated with the overwrite operation to a whitelist of safe applications exhibiting cryptoware-like behavior when the user confirms the overwrite operation as safe.

### Claim 26

(canceled)

### Claim 27 (depends on 1)

The computer implemented method of claim 1, further comprising performing the redirecting when an application associated with the overwrite operation is not identified within a whitelist of safe applications exhibiting cryptoware-like behavior.

### Claim 28 (depends on 1)

The computer implemented method of claim 1, further comprising performing the analyzing in response to opening of the at least one file with write permission and/or file overwrite, wherein the analyzing the open/overwrite operation is performed by an analysis of at least one of stack trace and flow-data to determine whether access to the at least one file is permitted or whether access to the at least one file is denied.

### Claim 29

A system for protecting data stored in at least one file from being overwritten by malicious code, the system comprising:
a program store storing code; and
a processor coupled to the program store for implementing the stored code, the code comprising:
code to monitor at least one file stored in a storage device location to detect a request to perform an overwrite operation at least a portion of data of the at least one file, redirect the overwrite operation to a memory location designated as safe for being overwritten, analyze the overwrite operation at the memory location to identify an association with malicious code; and output an indication of an attempt to overwrite the at least one file by malicious code.

### Claim 30

(canceled)
