# US 2012/0254999 A1 · Systems and method for regulating software access to security-sensitive processor resources

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

- Number: US 2012/0254999 A1
- Document ID: US20120254999A1
- Status: Published application
- Kind: A1
- Application number: 13/073,864
- Filed: 2011-03-28
- Published: 2012-10-04
- Earliest claimed: 2011-03-28
- Assignees: McAfee, Inc.
- Inventors: Ahmed Said Sallam
- Web page: https://patentgrep.com/patent/US20120254999A1

## CPC

- G06F 21/566: {Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for protecting an electronic device against malware includes consulting one or more security rules to determine a processor resource to protect, in a module below the level of all operating systems of the electronic device, intercepting an attempted access of the processor resource, accessing a processor resource control structure to determine a criteria by which the attempted access will be trapped, trapping the attempted access if the criteria is met, and consulting the one or more security rules to determine whether the attempted access is indicative of malware. The attempted access originates from the operational level of one of one or more operating systems of the electronic device

## Claims

### Claim 1

A system for protecting an electronic device against malware, comprising:
a processor comprising one or more processor resources;
an operating system configured to execute on the electronic device;
a below-operating system trapping module configured to trap an attempted access of one or more of the processor resources that originates from the operational level of the operating system;
the trapping module comprising a processor resource control structure configured to identify one or more processor resources for which attempted accesses will be trapped and comprising criteria by which the attempted access will be trapped;
wherein the trapping module is configured to trap the attempted access if the attempted access meets the criteria and generate a triggered event based on the attempted access; and
a below-operating system handling module configured to access one or more security rules to determine whether the triggered event is indicative of malware; and
the handling module and the trapping module operate at a level below all of the operating systems of the electronic device accessing the one or more processor resources.

### Claim 2 (depends on 1)

The system of claim 1, wherein the handling module is embodied in firmware.

### Claim 3 (depends on 1)

The system of claim 1, wherein the handling module is embodied in microcode.

### Claim 4 (depends on 1)

The system of claim 1, wherein the handling module and the trapping module are embodied in a virtual machine monitor.

### Claim 5 (depends on 1)

The system of claim 1, wherein the handling module is configured to dynamically enable or disable trapping of a resource by setting flags in the processor resource control table.

### Claim 6 (depends on 1)

The system of claim 1, wherein the processor resource control table comprises criteria for generating the triggered event based on a stage of execution of an instruction, the attempted access of the resource comprising the instruction.

### Claim 7 (depends on 1)

The system of claim 1, wherein the attempted access of the processor resource comprises attempting to access a resource not exposed by the processor for virtualization.

### Claim 8 (depends on 1)

The system of claim 1, wherein the attempted access of the processor resource comprises an attempted generation of a processor exception.

### Claim 9 (depends on 1)

The system of claim 1, wherein the attempted access of the processor resource comprises an attempted communication of an interprocessor interrupt.

### Claim 10 (depends on 1)

The system of claim 1, wherein the processor resource control table comprises information about whether the triggered event will be generated synchronously or asynchronously.

### Claim 11 (depends on 1)

The system of claim 1, wherein configuring the handling module to determine whether the triggered event is indicative of malware comprises evaluating a source address of an attempted access of the resource.

### Claim 12 (depends on 1)

The system of claim 1, wherein configuring the handling module to determine whether the triggered event is indicative of malware comprises evaluating a target address of an attempted access of the resource.

### Claim 13 (depends on 1)

The system of claim 1, wherein configuring the handling module to determine whether the triggered event is indicative of malware comprises evaluating an operand of an instruction of an attempted access of the resource.

### Claim 14 (depends on 1)

The system of claim 1, wherein configuring the handling module to determine whether the triggered event is indicative of malware comprises gathering contextual information from an in-operating system security agent configured to gather contextual information for the resource.

### Claim 15

A method for protecting an electronic device against malware, comprising:
consulting one or more security rules to determine a processor resource to protect;
in a module below the level of all operating systems of the electronic device accessing the processor resource, intercepting an attempted access of the processor resource, the attempted access originating from the operational level of one of one or more operating systems of the electronic device;
accessing a processor resource control structure to determine a criteria by which the attempted access will be trapped;
if the criteria is met, trapping the attempted access; and
consulting the one or more security rules to determine whether the attempted access is indicative of malware.

### Claim 16 (depends on 15)

The method of claim 15, wherein the intercepting of the attempted access of the processor resource is conducted from firmware.

### Claim 17 (depends on 15)

The method of claim 15, wherein the intercepting of the attempted access of the processor resource is conducted from microcode.

### Claim 18 (depends on 15)

The method of claim 15, wherein the intercepting of the attempted access of the processor resource and the determining whether the attempted access is indicative of malware is conducted from a virtual machine monitor.

### Claim 19 (depends on 15)

The method of claim 15, further comprising dynamically enabling or disabling trapping of the resource by setting flags in the processor resource control table.

### Claim 20 (depends on 15)

The method of claim 15, wherein evaluating whether the criteria is met comprises evaluating a stage of execution of an instruction, the attempted access of the resource comprising the instruction.

### Claim 21 (depends on 15)

The method of claim 15, wherein the attempted access of the processor resource comprises an attempt to access a resource not exposed by the processor for virtualization.

### Claim 22 (depends on 15)

The method of claim 15, wherein the attempted access of the processor resource comprises an attempted generation of a processor exception.

### Claim 23 (depends on 15)

The method of claim 15, wherein the attempted access of the processor resource comprises an attempted communication of an interprocessor interrupt.

### Claim 24 (depends on 15)

The method of claim 15, further comprising determining whether a triggered event will be generated synchronously or asynchronously.

### Claim 25 (depends on 15)

The method of claim 15, wherein determining whether the triggered event is indicative of malware comprises evaluating a source address of an attempted access of the resource.

### Claim 26 (depends on 15)

The method of claim 15, wherein determining whether the triggered event is indicative of malware comprises evaluating a target address of an attempted access of the resource.

### Claim 27 (depends on 15)

The method of claim 15, wherein determining whether the triggered event is indicative of malware comprises evaluating the operand of an instruction of an attempted access of the resource.

### Claim 28 (depends on 15)

The method of claim 15, wherein determining whether the triggered event is indicative of malware comprises gathering contextual information from an in-operating system security agent configured to gather contextual information for the resource.

### Claim 29

An article of manufacture, comprising:
a computer readable medium; and
computer-executable instructions carried on the computer readable medium, the instructions readable by a processor, the instructions, when read and executed, for causing the processor to:
consult one or more security rules to determine a processor resource to protect;
in a module below the level of all operating systems of the electronic device accessing the processor resource, intercept an attempted access of the processor resource, the attempted access originating from the operational level of one of one or more operating systems of the electronic device;
access a processor resource control structure to determine a criteria by which the attempted access will be trapped;
if the criteria is met, trap the attempted access; and
consult the one or more security rules to determine whether the attempted access is indicative of malware.

### Claim 30 (depends on 29)

The article of claim 29, wherein causing the processor to consult the one or more security rules comprises:
causing the processor to send information regarding the trapped attempted access to a handling module; and
receiving an indication of whether the attempted access is indicative of malware.

### Claim 31 (depends on 29)

The article of claim 29, wherein causing the processor to intercept the attempted access of the processor resource comprises causing the processor to conduct said interception in firmware communicatively coupled to the processor resource.

### Claim 32 (depends on 29)

The article of claim 29, wherein the instructions for intercepting the attempted access of the processor resource comprise microcode instructions.

### Claim 33 (depends on 29)

The article of claim 29, wherein the instructions for causing the processor to intercept the attempted access of the processor resource and determine whether the attempted access is indicative of malware comprise instructions in a virtual machine monitor.

### Claim 34 (depends on 29)

The article of claim 29, wherein the processor is further caused to dynamically enable or disable trapping of the resource by setting flags in the processor resource control table.

### Claim 35 (depends on 29)

The article of claim 29, wherein causing the processor to evaluate whether the criteria is met comprises causing the processor to evaluate a stage of execution of an instruction, the attempted access of the resource comprising the instruction.

### Claim 36 (depends on 29)

The article of claim 29, wherein the attempted access of the processor resource comprises an attempt to access a resource not exposed by the processor for virtualization.

### Claim 37 (depends on 29)

The article of claim 29, wherein the attempted access of the processor resource comprises an attempted generation of a processor exception.

### Claim 38 (depends on 29)

The article of claim 29, wherein the attempted access of the processor resource comprises an attempted communication of an interprocessor interrupt.

### Claim 39 (depends on 29)

The article of claim 29, further comprising causing the processor to determine whether a triggered event will be generated synchronously or asynchronously.

### Claim 40 (depends on 29)

The article of claim 29, wherein causing the processor to determine whether the triggered event is indicative of malware comprises causing the processor to evaluate a source address of an attempted access of the resource.

### Claim 41 (depends on 29)

The article of claim 29, wherein causing the processor to determine whether the triggered event is indicative of malware comprises causing the processor to evaluate a target address of an attempted access of the resource.

### Claim 42 (depends on 29)

The article of claim 29, wherein causing the processor to determine whether the triggered event is indicative of malware comprises causing the processor to evaluate the operand of an instruction of an attempted access of the resource.

### Claim 43 (depends on 29)

The article of claim 29, wherein causing the processor to determine whether the triggered event is indicative of malware comprises causing the processor to gather contextual information from an in-operating system security agent configured to gather contextual information for the resource.
