# US 2022/0284117 A1 · Methods and systems for detecting ransomware attack in incremental backdrop

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

- Number: US 2022/0284117 A1
- Document ID: US20220284117A1
- Status: Published application
- Kind: A1
- Application number: 17/825,496
- Filed: 2022-05-26
- Published: 2022-09-08
- Earliest claimed: 2020-04-06
- Assignees: Datto, Inc.
- Applicants: Datto, Inc.
- Inventors: Kurt Hansen
- Web page: https://patentgrep.com/patent/US20220284117A1

## CPC

- G06F 21/554: {involving event detection and direct action}
- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- G06F 11/1451: {by selection of backup contents}
- G06F 11/1461: {Backup scheduling policy}
- G06F 11/1464: {for networked environments}
- G06F 16/162: {Delete operations (erasing in storage systems G06F3/0652)}
- G06F 16/2322: {using timestamps}
- G06F 21/552: {involving long-term monitoring or reporting}
- G06F 21/577: {Assessing vulnerabilities and evaluating computer system security}
- G06F 21/602: {Providing cryptographic facilities or services}
- G06F 2201/84: Using snapshots, i.e. a logical point-in-time copy of the data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Ransomware attack (RWA) detection is performed during an incremental or differential backup of a system of folders or directories of a computer or network of computers via an electronic network. The RWA detection includes processing incremental or differential backup metadata acquired during the incremental or differential backup to determine whether a RWA alert is issued. RWA remediation is performed at least in part on the RWA alert being issued. The RWA alert may be issued based on processing of the incremental or differential backup metadata to identify candidate new files and candidate deleted files in which the candidate new files are candidates for being encrypted copies of the candidate deleted files. RWA alert criterion may be based on counts of new versus deleted files in a folder or directory, and comparison of file sizes of the new versus deleted files.

## Claims

### Claim 1

A non-transitory storage medium storing instructions readable and executable by an electronic processor to perform a ransomware attack (RWA) detection method comprising:
receiving incremental or differential backup metadata for a computer or network of computers via an electronic network, the incremental or differential backup metadata identifying files of the computer or network of computers which are new, modified, or deleted since a last incremental or last full backup of the computer or network of computers;
extracting file metadata from the received incremental or differential backup metadata for the files which are new or deleted since the last incremental or last full backup of the computer or network of computers;
identifying candidate new files and candidate deleted files in which the candidate new files are candidates for being encrypted copies of the candidate deleted files, the candidate new files and the candidate deleted files being identified using the extracted file metadata; and
generating a RWA alert if the identified candidate new files and the candidate deleted files meet a RWA alert criterion computed using the extracted file metadata.

### Claim 2 (depends on 1)

The non-transitory storage medium of claim 1 wherein the non-transitory storage medium further stores instructions readable and executable by the electronic processor to perform an incremental or differential backup method comprising:
via the electronic network, receiving file content including (i) copies of the files identified in the incremental or differential backup metadata as new since the last incremental or last full backup of the computer or network of computers and (ii) at least changes for the files identified in the incremental or differential backup metadata as modified since the last incremental or last full backup of the computer or network of computers; and
updating a backup of the computer or network of computers stored on a data storage with the received file content.

### Claim 3 (depends on 2)

The non-transitory storage medium of claim 2 wherein the identifying of the candidate new files and the candidate deleted files does not use the received file content.

### Claim 4 (depends on 3)

The non-transitory storage medium of claim 3 wherein the RWA detection method further comprises:
performing a RWA alert verification in response to the RWA alert wherein the RWA verification uses the received file content; and
performing RWA remediation including at least disabling the computer or network of computers via the electronic network in response to the RWA verification satisfying a RWA alert verification criterion.

### Claim 5 (depends on 1)

The non-transitory storage medium of claim 1 wherein the RWA detection method further comprises performing RWA remediation including at least disabling the computer or network of computers via the electronic network in response to the RWA alert.

### Claim 6 (depends on 1)

The non-transitory storage medium of claim 1 wherein the identifying of candidate new files and candidate deleted files comprises identifying candidate pairs of new and deleted files based at least in part on a deletion timestamp of the deleted file of a candidate pair being later in time than a creation timestamp of the new file of the candidate pair.

### Claim 7 (depends on 1)

The non-transitory storage medium of claim 1 wherein the identifying of candidate new files and candidate deleted files includes one of:
identifying candidate new and deleted files based at least in part on similarity of a sum of the file sizes of the new files and a sum of the file sizes of the deleted files; or
identifying candidate pairs of new and deleted files based at least in part on similarity of a file size of the new file of a candidate pair and a file size of the deleted file of the candidate pair.

### Claim 8 (depends on 7)

The non-transitory storage medium of claim 7 wherein the identifying of candidate new files and candidate deleted files comprises identifying candidate pairs of new and deleted files based at least in part on the new file of a candidate pair being larger than the deleted file of the candidate pair.

### Claim 9 (depends on 1)

The non-transitory storage medium of claim 1 wherein the identifying of candidate new and candidate deleted files comprises identifying candidate pairs of new and deleted files based at least in part on a comparison of a file name of the new file of a candidate pair and a file name of the deleted file of the candidate pair.

### Claim 10 (depends on 1)

The non-transitory storage medium of claim 1 wherein the identifying of candidate new and candidate deleted files comprises identifying candidate pairs of new and deleted files based at least in part on the new and deleted files of a candidate pair being in a same directory or folder of a hierarchical system of folders or directories of the computer or network of computers.

### Claim 11 (depends on 1)

The non-transitory storage medium of claim 1 wherein the computer or network of computers employs a hierarchical system of folders or directories, and the identifying of candidate new and candidate deleted files is performed on a per-folder or per-directory basis.

### Claim 12 (depends on 11)

The non-transitory storage medium of claim 11 wherein the identifying of candidate new and candidate deleted files comprises identifying candidate pairs of new and deleted files in a folder or directory based on one or more of:
a deletion timestamp of the deleted file of a candidate pair being later in time than a creation timestamp of the new file of the candidate pair;
similarity of a file size of the new file of a candidate pair and a file size of the deleted file of the candidate pair;
a file size of the new file of a candidate pair being larger than a file size of the deleted file of the candidate pair; and/or
a comparison of a file name of the new file of the candidate pair and a file name of the deleted file of the candidate pair.

### Claim 13 (depends on 11)

The non-transitory storage medium of claim 11 wherein the RWA alert is generated if the identified candidate new and candidate deleted files in at least one folder or directory of the hierarchical system of folders or directories satisfies the RWA alert criterion.

### Claim 14 (depends on 13)

The non-transitory storage medium of claim 13 wherein the RWA alert is generated if the identified candidate new and candidate deleted files in a folder or directory satisfies a folder or directory RWA alert criterion computed using counts of the candidate new files and the candidate deleted files in the folder or directory.

### Claim 15 (depends on 14)

The non-transitory storage medium of claim 14 wherein:
the extracting of the file metadata further includes extracting file metadata from the received incremental or differential backup metadata for the files which are modified since the last incremental or last full backup of the computer or network of computers; and
the RWA alert criterion is further based on a count of the modified files in the folder or directory being less than or equal to a maximum modified files count threshold.

### Claim 16 (depends on 15)

The non-transitory storage medium of claim 15 wherein the maximum modified files count threshold is zero.

### Claim 17 (depends on 15)

The non-transitory storage medium of claim 15 wherein the folder or directory RWA alert criterion further includes at least:
similarity of a sum of file sizes of the candidate new files in the folder or directory and a sum of file sizes of the candidate deleted files in the folder or directory.

### Claim 18

A ransomware attack (RWA) detection method performed by a backup system including an electronic processor, the RWA detection method comprising:
receiving incremental or differential backup metadata for a computer or network of computers via an electronic network, the incremental or differential backup metadata identifying files of the computer or network of computers which are new, modified, or deleted since a last incremental or last full backup of the computer or network of computers;
via the electronic network, receiving file content including (i) copies of the files identified in the incremental or differential backup metadata as new since the last incremental or last full backup of the computer or network of computers and (ii) at least changes for the files identified in the incremental or differential backup metadata as modified since the last incremental or last full backup of the computer or network of computers;
extracting file metadata from the received incremental or differential backup metadata for the files which are new or deleted since the last incremental or last full backup of the computer or network of computers;
identifying candidate new files and candidate deleted files in which the candidate new files are candidates for being encrypted copies of the candidate deleted files, the candidate new and candidate deleted files being identified using the extracted file metadata and not using the received file content; and
performing RWA remediation including at least disabling the computer or network of computers via the electronic network in response to one of:
(i) the identified candidate new and candidate deleted files meeting a RWA alert criterion, or
(ii) the identified candidate new and candidate deleted files meeting the RWA alert criterion and a RWA verification subsequently performed on the received file content of at least a sample of the candidate new files.

### Claim 19 (depends on 18)

The RWA detection method of claim 18 wherein:
the computer or network of computers employs a hierarchical system of folders or directories; and
the identifying of candidate new and candidate deleted files is performed on a per-folder or per-directory basis; and
the RWA alert criterion is applied on a per-folder or per-directory basis.

### Claim 20 (depends on 19)

The RWA detection method of claim 19 wherein the RWA alert criterion applied to a folder or directory is based at least on:
similarity of a count of the candidate new files in the folder or directory and a count of the candidate deleted files in the folder or directory; and
similarity of a sum of file sizes of the candidate new files in the folder or directory and a sum of file sizes of the candidate deleted files in the folder or directory.

### Claim 21 (depends on 19)

The RWA detection method of claim 19 wherein the identifying of candidate new and candidate deleted files in a folder or directory includes identifying candidate pairs of new and deleted files in which the candidate new file of each pair is a candidate for being an encrypted copy of the candidate deleted file of the pair.

### Claim 22 (depends on 21)

The RWA detection method of claim 21 wherein the identifying of candidate pairs of new and deleted files is based on one or more of:
a deletion timestamp of the deleted file of a candidate pair being later in time than a creation timestamp of the new file of the candidate pair;
similarity of a file size of the new file of a candidate pair and a file size of the deleted file of the candidate pair;
a file size of the new file of a candidate pair being larger than a file size of the deleted file of the candidate pair; and/or
a comparison of a file name of the new file of the candidate pair and a file name of the deleted file of the candidate pair.

### Claim 23

A backup system comprising:
an electronic processor operatively connected with a cloud data storage; and
a non-transitory storage medium storing:
backup instructions readable and executable by the electronic processor to perform an incremental or differential backup of a system of folders or directories of a computer or network of computers via an electronic network; and
ransomware attack (RWA) detection instructions readable and executable by the electronic processor to perform RWA detection operations including:
processing incremental or differential backup metadata acquired during the incremental or differential backup to determine whether a RWA alert is issued wherein the processing does not use the file content; and
performing RWA remediation including at least disabling the computer or network of computers via the electronic network based at least in part on the RWA alert being issued.

### Claim 24 (depends on 23)

The backup system of claim 23 wherein the processing of the incremental or differential backup metadata to determine whether a RWA alert is issued includes:
processing the incremental or differential backup metadata to identify one or more folders or directories that contain candidate new files and candidate deleted files in which the candidate new files are candidates for being encrypted copies of the candidate deleted files, the candidate new and deleted files being identified without using file content; and
issuing the RWA alert based at least in part on at least one folder or directory containing candidate new and candidate deleted files meeting a RWA alert criterion.

### Claim 25 (depends on 23)

The backup system of claim 23 wherein the RWA detection operations further include, in response to the RWA alert being issued:
performing a RWA verification comprising encryption detection performed on file content of at least a sample of the candidate new files received during the incremental or differential backup;
wherein the RWA remediation is performed further based on the RWA verification meeting a RWA verification criterion.
