# US 2020/0394298 A1 · False alarm detection for malware scanning

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

- Number: US 2020/0394298 A1
- Document ID: US20200394298A1
- Status: Published application
- Kind: A1
- Application number: 16/899,132
- Filed: 2020-06-11
- Published: 2020-12-17
- Earliest claimed: 2019-06-13
- Assignees: F-Secure Corporation
- Applicants: F-Secure Corporation
- Inventors: Jarno NIEMELÄ
- Web page: https://patentgrep.com/patent/US20200394298A1

## CPC

- G06F 21/562: {Static detection}
- G06F 21/566: {Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities}
- G06F 21/57: Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
- G06F 21/64: Protecting data integrity, e.g. using checksums, certificates or signatures
- G06F 2221/2147: Locking files
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method of scanning files for malware on a computer system. The method comprises detecting a file to be scanned for malware in the computer system, determining the file being a partial file that comprises only a part of the file content, searching for an original clean file associated with the partial file, wherein the original clean file is a full copy of the partial file, based on finding a candidate original clean file associated with the partial file, calculating a partial hash of the same length as the partial file for the candidate original clean file, and based on determining that partial hashes of the candidate original clean file and the partial file match, signalling a false alarm.

## Claims

### Claim 1

A method of scanning files for malware on a computer system, the method comprising:
detecting a file to be scanned for malware in the computer system;
determining the file being a partial file that comprises only a part of the file content;
searching for an original clean file associated with the partial file, wherein the original clean file is a full copy of the partial file;
based on finding a candidate original clean file associated with the partial file, calculating a partial hash of the same length as the partial file for the candidate original clean file; and
based on determining that partial hashes of the candidate original clean file and the partial file match, signalling a false alarm.

### Claim 2 (depends on 1)

The method according to claim 1, wherein said computer system comprises a server or set of servers.

### Claim 3 (depends on 1)

The method according to claim 1, wherein said computer system comprises a client computer.

### Claim 4 (depends on 1)

The method according to claim 1, wherein said step of determining the file being a partial file comprises determining whether or not the file possesses properties that are indicative of the file being a partial file.

### Claim 5 (depends on 1)

The method according to claim 1, wherein said step of determining the file being a partial file comprises one or more of:
determining whether or not the file contains a .part file extension;
determining whether or not the file is written by a web browser or other component that is used to download files; and
determining whether or not a file format header indicates that the size of the file should be larger than what is currently on a disk.

### Claim 6 (depends on 1)

The method according to claim 1, further comprising partially blocking the file after determining the file being a partial file, wherein partially blocking the file comprises allowing writing to the file and preventing execution of the file.

### Claim 7 (depends on 6)

The method according to claim 6, further comprising waiting for a predetermined time period whether more file content is written to the partial file, then rechecking the file and removing the partial block based on not detecting the partial file any more.

### Claim 8 (depends on 1)

The method according to claim 1, further comprising transmitting data relating to the partial file from a client computer to a server for searching the original clean file associated with the partial file.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the step of searching for the original clean file associated with the partial file is based on at least one or more of: checking all matches by file name without .part or other partial file indicator, having precalculated database of partial hashes, having precalculated index by PE checksum or other file header checksum field.

### Claim 10

A computer system comprising:
one or more processors configured by computer readable instructions to:
detect a file to be scanned for malware in the computer system;
determine the file being a partial file that comprises only a part of the file content;
search for an original clean file associated with the partial file, wherein the original clean file is a full copy of the partial file;
based on finding a candidate original clean file associated with the partial file, calculate a partial hash of the same length as the partial file for the candidate original clean file; and
based on determining that partial hashes of the candidate original clean file and the partial file match, signal a false alarm.

### Claim 11 (depends on 10)

The computer system according to claim 10, wherein said computer system comprises a server or set of servers.

### Claim 12 (depends on 10)

The computer system according to claim 10, wherein said computer system comprises a client computer.

### Claim 13 (depends on 10)

The computer system according to claim 10, wherein the one or more processors are configured to determine the file being a partial file by determining whether or not the file possesses properties that are indicative of the file being a partial file.

### Claim 14 (depends on 10)

The computer system according to claim 10, wherein the one or more processors are configured to determine the file being a partial file by one or more of:
determining whether or not the file contains a .part file extension;
determining whether or not the file is written by a web browser or other component that is used to download files;
determining whether or not a file format header indicates that the size of the file should be larger than what is currently on a disk.

### Claim 15 (depends on 10)

The computer system according to claim 10, wherein the one or more processors are further configured to partially block the file after determining the file being a partial file, wherein partially blocking the file comprises allowing writing to the file and preventing execution of the file.

### Claim 16 (depends on 15)

The computer system according to claim 15, wherein the one or more processors are further configured to wait for a predetermined time period whether more file content is written to the partial file, then recheck the file and remove the partial block based on not detecting the partial file any more.

### Claim 17 (depends on 10)

The computer system according to claim 10, wherein the one or more processors are further configured to transmit data relating to the partial file from a client computer to a server for searching the original clean file associated with the partial file.

### Claim 18 (depends on 10)

The computer system according to claim 10, wherein the one or more processors are configured to search for the original clean file associated with the partial file based on at least one or more of: checking all matches by file name without .part or other partial file indicator, having precalculated database of partial hashes, having precalculated index by PE checksum or other file header checksum field.

### Claim 19

A computer program comprising computer readable code which, when run on a computer system or server, causes the computer system or server to act as a computer system or server configured to:
detect a file to be scanned for malware in the computer system;
determine the file being a partial file that comprises only a part of the file content
search for an original clean file associated with the partial file, wherein the original clean file is a full copy of the partial file;
based on finding a candidate original clean file associated with the partial file, calculate a partial hash of the same length as the partial file for the candidate original clean file; and
based on determining that partial hashes of the candidate original clean file and the partial file match, signal a false alarm.

### Claim 20 (depends on 19)

A computer program product comprising a non-transitory computer readable medium and a computer program according to claim 19, wherein the computer program is stored on the computer readable medium.
