# US 2012/0255012 A1 · System and method for below-operating system regulation and control of self-modifying code

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

- Number: US 2012/0255012 A1
- Document ID: US20120255012A1
- Status: Published application
- Kind: A1
- Application number: 13/074,831
- Filed: 2011-03-29
- Published: 2012-10-04
- Earliest claimed: 2011-03-29
- Assignees: McAfee, Inc.
- Inventors: Ahmed Said Sallam
- Web page: https://patentgrep.com/patent/US20120255012A1

## CPC

- H04L 63/145: {the attack involving the propagation of malware through the network, e.g. viruses, trojans or worms}
- G06F 21/52: during program execution, e.g. stack integrity {; Preventing unwanted data erasure; Buffer overflow}
- G06F 21/554: {involving event detection and direct action}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system for securing an electronic device may include a memory, a processor; one or more operating systems residing in the memory for execution by the processor; and a security agent configured to execute on the electronic device at a level below all of the operating systems of the electronic device accessing the memory. The security agent may be further configured to: (i) trap attempted accesses to the memory, wherein each of such attempted accesses may, individually or in the aggregate, indicate the presence of self-modifying malware; (ii) in response to trapping each attempted access to the memory, record information associated with the attempted access in a history; and (iii) in response to a triggering attempted access associated with a particular memory location, analyze information in the history associated with the particular memory location to determine if suspicious behavior has occurred with respect to the particular memory location.

## Claims

### Claim 1

A method for securing an electronic device, comprising:
trapping, at a level below all of the operating systems of the electronic device accessing a memory, attempted accesses to the memory, wherein each of such attempted accesses may, individually or in the aggregate, indicate the presence of self-modifying malware;
in response to trapping each attempted access to memory, recording information associated with the attempted access in a history; and
in response to a triggering attempted access associated with a particular memory location, analyzing information in the history associated with the particular memory location to determine if suspicious behavior has occurred with respect to the particular memory location.

### Claim 2 (depends on 1)

The method of claim 1, further comprising initiating corrective action in response to determining that suspicious behavior has occurred with respect to the particular memory location.

### Claim 3 (depends on 2)

The method of claim 2, wherein initiating corrective action comprises communicating forensic evidence to a protection server.

### Claim 4 (depends on 2)

The method of claim 2, wherein initiating corrective action comprises comparing content of the memory location with known processes to determine if the memory location has been affected by malware.

### Claim 5 (depends on 2)

The method of claim 2, further comprising:
determining whether the memory location has been affected by malware; and
initiating further corrective action in response to determining that the memory location has been affected by malware, wherein initiating further corrective action comprises at least one of: disallowing execution of content associated with the memory location, reversing changes to the content set forth in the history, repairing the content, replacing the content with harmless content, and disabling a process associated with the content.

### Claim 6 (depends on 1)

The method of claim 1, the attempted accesses to memory comprising at least one of: a change to memory permissions, copying of content of one memory location to another memory location, modification of content of a memory location, and execution of a memory location.

### Claim 7 (depends on 1)

The method of claim 1, the triggering attempted access comprising an attempted execution of content at the particular memory location.

### Claim 8 (depends on 1)

The method of claim 1, wherein, with respect to the particular memory address, recording information associated with attempted accesses to the particular memory address in the history initiates in response to a second triggering attempted access.

### Claim 9 (depends on 1)

The method of claim 1, wherein the second triggering attempted access is an attempted access to change permissions associated with the particular memory address.

### Claim 10 (depends on 1)

The method of claim 1, wherein analyzing information in the history comprises determining that suspicious behavior has occurred if information in the history indicates that the content at a first memory location was copied to a second location, modified at the second location, and then an attempted execution of the content of the second location has occurred.

### Claim 11 (depends on 1)

The method of claim 1, wherein analyzing information in the history comprises determining that suspicious behavior has occurred if information in the history indicates that the content at a first memory location and a second memory location each having a common ancestor at a third location have each been the target of an attempted execution.

### Claim 12 (depends on 1)

The method of claim 1, wherein analyzing information in the history comprises determining that suspicious behavior has occurred if information in the history indicates that the content at a particular memory location has ancestors at a plurality of other memory locations.

### Claim 13

A system for securing an electronic device, comprising:
a memory;
a processor;
one or more operating systems residing in the memory for execution by the processor;
a security agent configured to execute on the electronic device at a level below all of the operating systems of the electronic device accessing the memory, and further configured to:
trap attempted accesses to the memory, wherein each of such attempted accesses may, individually or in the aggregate, indicate the presence of self-modifying malware;
in response to trapping each attempted access to the memory, record information associated with the attempted access in a history; and
in response to a triggering attempted access associated with a particular memory location, analyze information in the history associated with the particular memory location to determine if suspicious behavior has occurred with respect to the particular memory location.

### Claim 14 (depends on 13)

The system of claim 13, the security agent further configured to initiate corrective action in response to determining that suspicious behavior has occurred with respect to the particular memory location.

### Claim 15 (depends on 14)

The system of claim 14, wherein initiating corrective action comprises communicating forensic evidence to a protection server.

### Claim 16 (depends on 14)

The system of claim 14, wherein initiating corrective action comprises comparing content of the memory location with known processes to determine if the memory location has been affected by malware.

### Claim 17 (depends on 14)

The system of claim 14, the security agent further configured to:
determine whether the memory location has been affected by malware; and
initiate further corrective action in response to determining that the memory location has been affected by malware, wherein initiating further corrective action comprises at least one of: disallowing execution of content associated with the memory location, reversing changes to the content set forth in the history, repairing the content, replacing the content with harmless content, and disabling a process associated with the content.

### Claim 18 (depends on 13)

The system of claim 13, the attempted accesses to memory comprising at least one of: a change to memory permissions, copying of content of one memory location to another memory location, modification of content of a memory location, and execution of a memory location.

### Claim 19 (depends on 13)

The system of claim 13, the triggering attempted access comprising an attempted execution of content at the particular memory location.

### Claim 20 (depends on 13)

The system of claim 13, wherein, with respect to the particular memory address, recording information associated with attempted accesses to the particular memory address in the history initiates in response to a second triggering attempted access.

### Claim 21 (depends on 13)

The system of claim 13, wherein the second triggering attempted access is an attempted access to change permissions associated with the particular memory address.

### Claim 22 (depends on 13)

The system of claim 13, wherein analyzing information in the history comprises determining that suspicious behavior has occurred if information in the history indicates that the content at a first memory location was copied to a second location, modified at the second location, and then an attempted execution of the content of the second location has occurred.

### Claim 23 (depends on 13)

The system of claim 13, wherein analyzing information in the history comprises determining that suspicious behavior has occurred if information in the history indicates that the content at a first memory location and a second memory location each having a common ancestor at a third location have each been the target of an attempted execution.

### Claim 24 (depends on 13)

The system of claim 13, wherein analyzing information in the history comprises determining that suspicious behavior has occurred if information in the history indicates that the content at a particular memory location has ancestors at a plurality of other memory locations.

### Claim 25

An article of manufacture, comprising:
a computer readable medium;
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, at a level below all of the operating systems of an electronic device accessing a memory:
trap attempted accesses to the memory, wherein each of such attempted accesses may, individually or in the aggregate, indicate the presence of self-modifying malware;
in response to trapping each attempted access to the memory, record information associated with the attempted access in a history; and
in response to a triggering attempted access associated with a particular memory location, analyze information in the history associated with the particular memory location to determine if suspicious behavior has occurred with respect to the particular memory location.

### Claim 26 (depends on 25)

The article of claim 25, wherein the processor is further caused to initiate corrective action in response to determining that suspicious behavior has occurred with respect to the particular memory location.

### Claim 27 (depends on 26)

The article of claim 26, wherein initiating corrective action comprises communicating forensic evidence to a protection server.

### Claim 28 (depends on 26)

The article of claim 26, wherein initiating corrective action comprises comparing content of the memory location with known processes to determine if the memory location has been affected by malware.

### Claim 29 (depends on 26)

The article of claim 26, wherein the processor is further caused to:
determine whether the memory location has been affected by malware; and
initiate further corrective action in response to determining that the memory location has been affected by malware, wherein initiating further corrective action comprises at least one of: disallowing execution of content associated with the memory location, reversing changes to the content set forth in the history, repairing the content, replacing the content with harmless content, and disabling a process associated with the content.

### Claim 30 (depends on 25)

The article of claim 25, the attempted accesses to memory comprising at least one of: a change to memory permissions, copying of content of one memory location to another memory location, modification of content of a memory location, and execution of a memory location.

### Claim 31 (depends on 25)

The article of claim 25, the triggering attempted access comprising an attempted execution of content at the particular memory location.

### Claim 32 (depends on 25)

The article of claim 25, wherein, with respect to the particular memory address, recording information associated with attempted accesses to the particular memory address in the history initiates in response to a second triggering attempted access.

### Claim 33 (depends on 25)

The article of claim 25, wherein the second triggering attempted access is an attempted access to change permissions associated with the particular memory address.

### Claim 34 (depends on 25)

The article of claim 25, wherein analyzing information in the history comprises determining that suspicious behavior has occurred if information in the history indicates that the content at a first memory location was copied to a second location, modified at the second location, and then an attempted execution of the content of the second location has occurred.

### Claim 35 (depends on 25)

The article of claim 25, wherein analyzing information in the history comprises determining that suspicious behavior has occurred if information in the history indicates that the content at a first memory location and a second memory location each having a common ancestor at a third location have each been the target of an attempted execution.

### Claim 36 (depends on 25)

The article of claim 25, wherein analyzing information in the history comprises determining that suspicious behavior has occurred if information in the history indicates that the content at a particular memory location has ancestors at a plurality of other memory locations.
