# US 2022/0292192 A1 · System and method for content scanning using sparse files

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

- Number: US 2022/0292192 A1
- Document ID: US20220292192A1
- Status: Published application
- Kind: A1
- Application number: 17/241,000
- Filed: 2021-04-26
- Published: 2022-09-15
- Earliest claimed: 2021-03-12
- Assignees: VMware, Inc.
- Applicants: VMware, Inc.
- Inventors: MANDAR NANIVADEKAR; BHARATH KUMAR CHANDRASEKHAR; SACHIN SHINDE
- Web page: https://patentgrep.com/patent/US20220292192A1

## CPC

- G06F 21/565: {by checking file integrity}
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 2221/034: Test or assess a computer or a system
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

System and method for executing scan operations on computing systems use a sparse file that represents a storage device of a computing system to scan a file stored in the storage device. The sparse file is created and mounted to a scanner appliance such that the sparse file appears to a scan engine of the scanner appliance as a local storage device. When a read request for the file stored in the storage device is issued from the scan engine that results in an implicit read request to the sparse file, the implicit read request is trapped. While the implicit read request is trapped, data of the file is retrieved from the storage device of the computing system to the scanner appliance using a communication transport. The retrieved data of the file is then scanned using the scan engine at the scanner appliance.

## Claims

### Claim 1

A computer-implemented method for executing scan operations on computing systems, the method comprising:
creating a sparse file that represents a storage device of a computing system;
mounting the sparse file to a scanner appliance such that the sparse file appears to a scan engine of the scanner appliance as a local storage device;
issuing a read request for a file stored in the storage device from the scan engine that results in an implicit read request to the sparse file;
trapping the implicit read request to the sparse file;
while the implicit read request is trapped, retrieving data of the file from the storage device of the computing system to the scanner appliance using a communication transport; and
scanning the data of the file for malicious code using the scan engine at the scanner appliance.

### Claim 2 (depends on 1)

The method of claim 1, wherein trapping the implicit read request to the sparse file includes trapping, by a kernel mode driver running in the scanner appliance, the implicit read request to the sparse file.

### Claim 3 (depends on 2)

The method of claim 2, wherein retrieving the data of the file from the storage device of the computing system includes sending a request from the kernel mode driver to an in-guest agent running in the computing system to read the data of the file from the storage device of the computing system.

### Claim 4 (depends on 3)

The method of claim 3, further comprising detecting an access or execution of the file by the in-guest agent and sending a message from the in-guest agent to the scan engine to perform a scanning operation on the file.

### Claim 5 (depends on 1)

The method of claim 1, further comprising, in response to a detection of malicious code in the data of the file, initiating an action to address the malicious code in the data of the file.

### Claim 6 (depends on 1)

The method of claim 1, wherein the sparse file includes metadata of attributes of the storage device and details of a volume on the storage device.

### Claim 7 (depends on 1)

The method of claim 1, wherein the computing system is a virtual computing instance running in a host computer, wherein the virtual computing instance uses allocated virtual resources provided by a virtualization software running in the host computer.

### Claim 8 (depends on 1)

The method of claim 1, further comprising dismounting the sparse file from the scanner appliance and deleting the sparse file after a current scan operation is complete and before a subsequent operation involving the storage device of the computing system.

### Claim 9

A non-transitory computer-readable storage medium containing program instructions for executing scan operations on computing systems, wherein execution of the program instructions by one or more processors of a computer system causes the one or more processors to perform steps comprising:
creating a sparse file that represents a storage device of a computing system;
mounting the sparse file to a scanner appliance such that the sparse file appears to a scan engine of the scanner appliance as a local storage device;
issuing a read request for a file stored in the storage device from the scan engine that results in an implicit read request to the sparse file;
trapping the implicit read request to the sparse file;
while the implicit read request is trapped, retrieving data of the file from the storage device of the computing system to the scanner appliance using a communication transport; and
scanning the data of the file for malicious code using the scan engine at the scanner appliance.

### Claim 10 (depends on 9)

The computer-readable storage medium of claim 9, wherein trapping the implicit read request to the sparse file includes trapping, by a kernel mode driver running in the scanner appliance, the implicit read request to the sparse file.

### Claim 11 (depends on 10)

The computer-readable storage medium of claim 10, wherein retrieving the data of the file from the storage device of the computing system includes sending a request from the kernel mode driver to an in-guest agent running in the computing system to read the data of the file from the storage device of the computing system.

### Claim 12 (depends on 11)

The computer-readable storage medium of claim 11, wherein the steps further comprise detecting an access or execution of the file by the in-guest agent and sending a message from the in-guest agent to the scan engine to perform a scanning operation on the file.

### Claim 13 (depends on 9)

The computer-readable storage medium of claim 9, wherein the steps further comprise, in response to a detection of malicious code in the data of the file, initiating an action to address the malicious code in the data of the file.

### Claim 14 (depends on 9)

The computer-readable storage medium of claim 9, wherein the sparse file includes metadata of attributes of the storage device and details of a volume on the storage device.

### Claim 15 (depends on 9)

The computer-readable storage medium of claim 9, wherein the computing system is a virtual computing instance running in a host computer, wherein the virtual computing instance uses allocated virtual resources provided by a virtualization software running in the host computer.

### Claim 16 (depends on 9)

The computer-readable storage medium of claim 9, wherein the steps further comprise dismounting the sparse file from the scanner appliance and deleting the sparse file after a current scan operation is complete and before a subsequent operation involving the storage device of the computing system.

### Claim 17

A system comprising:
memory; and
at least one processor configured to:
create a sparse file that represents a storage device of a computing system;
mount the sparse file to a scanner appliance such that the sparse file appears to a scan engine of the scanner appliance as a local storage device;
issue a read request for a file stored in the storage device from the scan engine that results in an implicit read request to the sparse file;
trap the implicit read request issued from the scan engine to the sparse file;
while the implicit read request is trapped, retrieve data of the file from the storage device of the computing system to the scanner appliance using a communication transport; and
scan the data of the file for malicious code using the scan engine at the scanner appliance.

### Claim 18 (depends on 17)

The system of claim 17, wherein the at least one processor is configured to trap the implicit read request to the sparse file using a kernel mode driver running in the scanner appliance.

### Claim 19 (depends on 18)

The system of claim 18, wherein the at least one processor is configured to send a request from the kernel mode driver to an in-guest agent running in the computing system to read the data of the file from the storage device of the computing system.

### Claim 20 (depends on 19)

The system of claim 19, wherein the at least one processor is configured to detect an access or execution of the file using the in-guest agent and send a message from the in-guest agent to the scan engine to perform a scanning operation on the file.
