# US 8,578,477 B1 · Secure computer system integrity check

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

- Number: US 8,578,477 B1
- Document ID: US8578477B1
- Status: Granted
- Kind: B1
- Application number: 11/729,147
- Filed: 2007-03-28
- Granted: 2013-11-05
- Earliest claimed: 2007-03-28
- Assignees: Trend Micro Incorporated
- Applicants: Yichin Lin; Peng-Yuan Yueh; Yu-Heng Liu
- Inventors: Yichin Lin; Peng-Yuan Yueh; Yu-Heng Liu
- Web page: https://patentgrep.com/patent/US8578477B1

## CPC

- G06F 21/74: operating in dual or compartmented mode, i.e. at least one secure mode
- G06F 21/554: {involving event detection and direct action}
- G06F 2221/2105: Dual mode as a secondary aspect
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The integrity of a computer may be checked by issuing a command to read data from a hardware component of the computer and retrieving the data from a data transfer buffer. The command may be sent to a secure driver that places the central processing unit (CPU) of the computer in system management mode to trigger execution of a system management interrupt (SMI) handler. The SMI handler may read the data from the hardware component, encrypt the data, and place the encrypted data in the data transfer buffer. A system integrity check application program may read the encrypted data to determine presence of malicious code based on the data. For example, the application program may infer presence of malicious code when the encrypted data does not conform to a particular encryption algorithm or when the data does not appear in the data transfer buffer.

## Claims

### Claim 1

A method of performing a system integrity check of a computer, the method to be performed by the computer and comprising:
determining whether a basic input/output system (BIOS) of the computer supports the system integrity check and alerting a user of the computer when the BIOS does not support the system integrity check;
sending a command from a system integrity check application program operating in user mode to a secure driver operating in kernel mode, the command being to read requested data from a hardware component of the computer;
in response to receiving the command in the secure driver, triggering a system management interrupt (SMI) to transfer program execution to an SMI handler, the location of the SMI handler in memory being dictated by the BIOS;
using the SMI handler to read the requested data from the hardware component of the computer, to encrypt the requested data, and to store the encrypted requested data in a data transfer buffer;
the secure driver reading the encrypted requested data from the data transfer buffer; and
the system integrity check application program receiving the encrypted requested data from the secure driver, decrypting the encrypted requested data in user mode, and determining if the SMI handler successfully executed by analyzing the requested data in user mode for a predetermined verification code.

### Claim 2 (depends on 1)

The method of claim 1 wherein the hardware component comprises a register.

### Claim 3 (depends on 1)

The method of claim 1 wherein the secure driver triggers the SMI by writing an OUT instruction to an I/O port.

### Claim 4 (depends on 1)

The method of claim 1 wherein the system integrity check application program infers presence of malicious code in the computer when contents of the data transfer buffer have not changed after sending the command to the secure driver.

### Claim 5 (depends on 1)

The method of claim 1 wherein the system integrity check application program infers presence of malicious code in the computer when contents of the data transfer buffer are not encrypted per a designated encryption/decryption algorithm.

### Claim 6 (depends on 1)

The method of claim 1 wherein the command reaches the secure driver without having to use an application programming interface (API) of an operating system.

### Claim 7

A computer with a memory and a central processing unit (CPU) to execute computer-readable program code in the memory, the memory comprising:
a system integrity check application comprising computer-readable program code configured to be executed by the CPU in user mode to send a read command to obtain data from a hardware component of the computer, to decrypt the data received from the secure driver, and to determine whether a system management interrupt (SMI) handler successfully executed by looking for a predetermined verification code in the data received from the secure driver;
the secure driver comprising computer-readable program code configured to be executed by the CPU in kernel mode to receive the read command, to initiate system management mode in response to the read command to be able to receive the data from a data transfer buffer, and to provide the data to the system integrity check application program, the system management mode suspending execution of current CPU operations to initiate execution of the SMI handler, the location of the SMI handler being dictated by a basic input/output system (BIOS) of the computer, wherein the secure driver includes initialization code that checks whether the BIOS computer supports a secure system integrity check and alerts a user of the computer when the BIOS does not support the secure system integrity check;
wherein the SMI handler comprises computer-readable program code configured to be executed by the CPU upon initiation of the system management mode, the SMI handler being configured to read the data from the hardware component, encrypt the data, and store the data in the data transfer buffer for reading by the secure driver.

### Claim 8 (depends on 7)

The computer of claim 7 wherein the secure driver initiates system management mode by issuing an OUT instruction to an SMI I/O port.

### Claim 9 (depends on 7)

The computer of claim 7 wherein the hardware component comprises a register.

### Claim 10 (depends on 7)

The computer of claim 7 wherein the system integrity check application program infers presence of malicious code in the computer when contents of the data transfer buffer have not changed after sending the read command to the secure driver.

### Claim 11 (depends on 7)

The method of claim 7 wherein the system integrity check application infers presence of malicious code in the computer when the contents of the data transfer buffer are not encrypted per a designated encryption/decryption algorithm.

### Claim 12 (depends on 7)

The method of claim 7 wherein the read command reaches the secure driver without having to use an application programming interface (API) of an operating system.
