# US 2007/0283439 A1 · Accelerated file scanning

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

- Number: US 2007/0283439 A1
- Document ID: US20070283439A1
- Status: Published application
- Kind: A1
- Application number: 11/447,775
- Filed: 2006-06-05
- Published: 2007-12-06
- Earliest claimed: 2006-06-05
- Assignees: eAcceleration Corporation
- Inventors: Clinton L Ballard
- Web page: https://patentgrep.com/patent/US20070283439A1

## CPC

- G06F 21/562: {Static detection}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Files are tested for presence of a predefined data pattern, such as a virus definition. For each one file of a first plurality of files, physical address data is derived from logical address information. Also, an entry is made in a first data structure. The entry includes file information and the derived physical address data. For each one cylinder of a hard drive, the first data structure is tested to identify any files having file contents stored in the cylinder. When the testing determines that the first data structure includes an entry having physical address data corresponding to the one cylinder, a read operation I requested to read the cylinder. Such testing and reading is repeated to read in multiple cylinders in a generally sequential order. The cylinder content is stored in a buffer. File content is read from the buffer for each one file of a second plurality of files. The read file content is tested for the presence of the predefined data pattern.

## Claims

### Claim 1

A method of testing a plurality of files for a computer virus, comprising:
reading file contents for the plurality of files from a hard drive into a buffer in a cylinder by cylinder streaming data manner;
determining that file contents to be tested for a given file are present in the buffer; and
testing the file contents for the given file against a set of virus definitions.

### Claim 2

A method for testing files for presence of a predefined data pattern, comprising:
for each one file of a first plurality of files, deriving physical address data from logical address information for said each one file;
for said each one file of the first plurality of files, creating an entry in a first data structure, said entry comprising file information and the derived physical address data for said one file;
for each one cylinder of a hard drive, testing the first data structure to identify files having file contents stored in said one cylinder;
reading said one cylinder when said testing determines that the first data structure includes an entry having physical address data corresponding to said one cylinder;
repeating said reading for a plurality of cylinders in a generally sequential order;
storing cylinder content in a buffer;
reading file content from the buffer for each one file of a second plurality of files, wherein the first plurality of files comprises at least the second plurality of files; and
testing the read file content for presence of the predefined data pattern.

### Claim 3 (depends on 2)

The method of claim 2, in which said testing the first data structure comprises testing a subset of the first data structure to identify files having file contents stored in said one cylinder, wherein said subset comprises entries for the second plurality of files, and omits entries for any files among the first plurality of files that are not included among the second plurality of files.

### Claim 4 (depends on 2)

The method of claim 2, in which said testing the first data structure comprises testing a subset of the first data structure to identify files having file contents stored in said one cylinder, wherein said subset comprises entries for blocks of file content encompassing likely sites of infection for files among the second plurality of files, and wherein said subset omits entries for any files among the first plurality of files that are not included among the second plurality of files.

### Claim 5 (depends on 2)

The method of claim 2, further comprising:
after said storing and prior to said reading from the buffer for a given file of the second plurality of files, determining that file contents to be tested for the given file are present in the buffer.

### Claim 6 (depends on 5)

The method of claim 5, further comprising after said determining calling a module which executes said testing for presence of the predefined data pattern.

### Claim 7 (depends on 2)

The method of claim 2, in which said reading said one cylinder, said repeating and said storing cylinder content are executed in one processing thread; and said reading file content and testing the read file content are executed in parallel in a different processing thread.

### Claim 8 (depends on 2)

The method of claim 2, wherein said predefined pattern corresponds to a virus definition.

### Claim 9 (depends on 2)

The method of claim 2, wherein said predefined pattern corresponds to a malware definition.

### Claim 10 (depends on 2)

The method of claim 2, in which said repeating comprises repeating said reading for a plurality of cylinders, wherein a drive head moves in a first radial direction to an extreme cylinder, then the drive head moves in a second radial direction toward an opposite extreme cylinder.

### Claim 11

A method of testing files for viruses, wherein the files are stored on a hard drive having multiple platters and multiple drive heads, each one drive head corresponding to a unique one platter of the multiple platters, each one platter organized into a plurality of physical cylinders, each one cylinder organized into a plurality of physical sectors, the method comprising:
generating a physical sectors map of the hard drive which identifies sector location of file contents for a plurality of files stored on the hard drive;
queuing a plurality of read operations for a given platter of the hard drive in an order based upon the physical sectors map so as to reduce drive head seeks for the drive head corresponding to the given platter;
reading file contents from the given platter based upon the queued read operations;
storing the read file contents in volatile memory;
reading file contents from volatile memory; and
testing the file contents against a plurality of virus definitions.

### Claim 12 (depends on 11)

The method of claim 11, wherein said queuing comprises:
accessing the physical sectors map to identify files having contents stored in a given cylinder of the given platter;
repeating said accessing for multiple cylinders of the given platter; and
queuing the plurality of read operations in a manner allowing the drive head corresponding to the given platter to perform the plurality of read operations in an order which scans the multiple cylinders of the given platter in a defined order which reduces hard drive seeks.

### Claim 13

A computer program embodied on a computer-readable storage medium for testing files stored on a hard drive for viruses, comprising:
a mapping code segment that generates a physical sectors map of the hard drive, the map including sector location of file contents of said stored files;
a platter read code segment that queues and performs a plurality of read operations for a given platter of the hard drive in an order based upon the physical sectors map so as to reduce drive head seeks for a drive head corresponding to said given platter; and
a pattern detection code segment that tests the read file contents against a plurality of virus definitions;
wherein said platter read code segment and said pattern detection code segment are executed in parallel.

### Claim 14

A computing system for testing files stored on a hard drive for viruses, the hard drive having multiple platters and multiple drive heads, each one drive head corresponding to a unique one platter of the multiple platters, each one platter organized into a plurality of physical cylinders, each one cylinder organized into a plurality of physical sectors, the computing system comprising;
a physical sectors map of the hard drive which identifies sector location of file contents for a plurality of files stored on the hard drive;
means for queuing a plurality of read operations for a given platter of the hard drive in an order based upon the physical sectors map so as to reduce drive head seeks for the drive head corresponding to the given platter;
means for reading file contents from the given platter based upon the queued read operations; and
means for testing the file contents against a plurality of virus definitions.
