# US 2019/0158512 A1 · Lightweight anti-ransomware system

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

- Number: US 2019/0158512 A1
- Document ID: US20190158512A1
- Status: Published application
- Kind: A1
- Application number: 15/818,448
- Filed: 2017-11-20
- Published: 2019-05-23
- Earliest claimed: 2017-11-20
- Assignees: Fortinet, Inc.
- Applicants: Fortinet, Inc.
- Inventors: Jie Zhang
- Web page: https://patentgrep.com/patent/US20190158512A1

## CPC

- H04L 63/1416: {Event detection, e.g. attack signature detection}
- G06F 21/566: {Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities}
- H04L 63/145: {the attack involving the propagation of malware through the network, e.g. viruses, trojans or worms}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods for detecting ransomware are provided. According to one embodiment, a computer device intercepts an operation on a file by an application and determines whether the application is ransomware based on one or more factors. The computer device mitigates the operation to the file when the application is deemed to be ransomware.

## Claims

### Claim 1

A method comprising:
intercepting, by an anti-virus engine running on a computer system, an operation attempting to be performed on a file by an application;
determining, by the anti-virus engine, whether the application is ransomware based on one or more factors, including:
whether the application is a designated application for the file or a type of the file; and
whether a number of file operations performed by the application in a predetermined time period exceeds a predetermined or configurable operation count threshold; and
when a result of said determining is affirmative, then mitigating, by the anti-virus engine, potential adverse consequences of the operation on the file.

### Claim 2 (depends on 1)

The method of claim 1, wherein the file is a target file expressly designated as a file or a type of file to be protected by the anti-virus engine.

### Claim 3 (depends on 2)

The method of claim 2, wherein the target file is associated with a protection zone that is monitored by the anti-virus engine.

### Claim 4 (depends on 3)

The method of claim 3, wherein the protection zone includes one or more of:
one or more files designated by a user of the computer system;
one or more file types designated by the user;
one or more folders of a file system of the computer system designated by the user; and
one or more disks accessible by the computer system designated by the user.

### Claim 5 (depends on 1)

The method of claim 1, wherein the operation comprises a write operation or a delete operation.

### Claim 6 (depends on 1)

The method of claim 1, wherein the number of file operations is counted for files residing in different folders of a file system of the computer system.

### Claim 7 (depends on 1)

The method of claim 1, wherein said determining, by the anti-virus engine, whether the application is ransomware further comprises:
analyzing a file type, a file structure or an entropy of the file before the file is modified by the application;
analyzing the file type, the file structure or the entropy of the file after the file is modified by the application; and
concluding the application is ransomware when one or more of (i) the file type or the file structure is changed and (ii) the entropy of the file is increased beyond a predetermined or configurable entropy threshold as a result of the operation.

### Claim 8 (depends on 1)

The method of claim 1, wherein said mitigating, by the anti-virus engine, potential adverse consequences of the operation to the file comprises one or more of:
denying the operation without input from a user of the computer system;
querying the user for input regarding whether the operation should be allowed to proceed; and
making a backup copy of the file before allowing the operation to proceed.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
associating, by the anti-virus engine, a file type with one or more designated applications;
determining, by the anti-virus engine, whether the intercepted operation was issued by a set of one or more designated applications that are associated with the file type of the file;
denying, by the anti-virus engine, performance of the operation by the application when the application is not in the set of one or more designated applications; and
allowing, by the anti-virus engine, performance of the operation by the application when the application is in the set of one or more designated applications.

### Claim 10 (depends on 9)

The method of claim 9, wherein said associating, by the anti-virus engine, a file with one or more designated applications further comprises checking a system registry of an operating system of the computer system to determine the one or more designated applications for the file type of the file.

### Claim 11 (depends on 9)

The method of claim 9, wherein said associating, by the anti-virus engine, a file with one or more designated applications further comprises retrieving the one or more designated applications for a file type from a cloud-based or shared network security appliance.

### Claim 12 (depends on 9)

The method of claim 9, wherein said associating, by the anti-virus engine, a file with one or more designated applications further comprises associating an application with a file type based on a manual association of the file type with the application by a user of the computer system.

### Claim 13

A computer system comprising:
a non-transitory storage device having embodied therein one or more routines representing a client security application; and
one or more processors coupled to the non-transitory storage device and operable to execute the client security manager to perform a method comprising:
intercepting an operation attempting to be performed on a file by an application;
determining whether the application is ransomware based on one or more factors, including:
whether the application is a designated application for the file or a type of the file; and
whether a number of file operations performed by the application in a predetermined time period exceeds a predetermined or configurable operation count threshold; and
when a result of said determining is affirmative, then mitigating potential adverse consequences of the operation on the file.

### Claim 14 (depends on 13)

The computer system of claim 13, wherein the file is a target file expressly designated as a file or a type of file to be protected by the anti-virus engine.

### Claim 15 (depends on 14)

The computer system of claim 14, wherein the target file is associated with a protection zone that is monitored by the client security application.

### Claim 16 (depends on 15)

The computer system of claim 15, wherein the protection zone includes one or more of:
one or more files designated by a user of the computer system;
one or more file types designated by the user;
one or more folders of a file system of the computer system designated by the user; and
one or more disks accessible by the computer system designated by the user.

### Claim 17 (depends on 13)

The computer system of claim 13, wherein the operation comprises a write operation or a delete operation.

### Claim 18 (depends on 13)

The computer system of claim 13, wherein the number of file operations is counted for files residing in different folders of a file system of the computer system.

### Claim 19 (depends on 13)

The computer system of claim 13, wherein said determining whether the application is ransomware further comprises:
analyzing a file type, a file structure or an entropy of the file before the file is modified by the application;
analyzing the file type, the file structure or the entropy of the file after the file is modified by the application; and
concluding the application is ransomware when one or more of (i) the file type or the file structure is changed and (ii) the entropy of the file is increased beyond a predetermined or configurable entropy threshold as a result of the operation.

### Claim 20 (depends on 13)

The computer system of claim 13, wherein said mitigating potential adverse consequences of the operation to the file comprises one or more of:
denying the operation without input from a user of the computer system;
querying the user for input regarding whether the operation should be allowed to proceed; and
making a backup copy of the file before allowing the operation to proceed.

### Claim 21 (depends on 13)

The computer system of claim 13, further comprising:
associating a file type with one or more designated applications;
determining whether the intercepted operation was issued by a set of one or more designated applications that are associated with the file type of the file;
denying performance of the operation by the application when the application is not in the set of one or more designated applications; and
allowing performance of the operation by the application when the application is in the set of one or more designated applications.

### Claim 22 (depends on 21)

The computer system of claim 21, wherein said associating a file with one or more designated applications further comprises checking a system registry of an operating system of the computer system to determine the one or more designated applications for the file type of the file.

### Claim 23 (depends on 21)

The computer system of claim 21, wherein said associating a file with one or more designated applications further comprises retrieving the one or more designated applications for a file type from a cloud-based or shared network security appliance.

### Claim 24 (depends on 21)

The computer system of claim 21, wherein said associating a file with one or more designated applications further comprises associating an application with a file type based on a manual association of the file type with the application by a user of the computer system.
