# US 2015/0150130 A1 · Pre-identifying Probable Malicious Rootkit Behavior Using Behavioral Contracts

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

- Number: US 2015/0150130 A1
- Document ID: US20150150130A1
- Status: Published application
- Kind: A1
- Application number: 14/090,200
- Filed: 2013-11-26
- Published: 2015-05-28
- Earliest claimed: 2013-11-26
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: David Fiala; Mihai Christodorescu; Vinay Sridhara; Rajarshi Gupta; Kassem Fawaz
- Web page: https://patentgrep.com/patent/US20150150130A1

## CPC

- G06F 21/56: Computer malware detection or handling, e.g. anti-virus arrangements
- 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

The various aspects provide for a computing device and methods implemented by the device to ensure that an application executing on the device and seeking root access will not cause malicious behavior while after receiving root access. Before giving the application root access, the computing device may identify operations the application intends to execute while having root access, determine whether executing the operations will cause malicious behavior by simulating execution of the operations, and pre-approve those operations after determining that executing those operations will not result in malicious behavior. Further, after giving the application root access, the computing device may only allow the application to perform pre-approved operations by quickly checking the application's pending operations against the pre-approved operations before allowing the application to perform those operations. Thus, the various aspects may ensure that an application receives root access without compromising the performance or security integrity of the computing device.

## Claims

### Claim 1

A method of pre-identifying probable malicious rootkit behavior before it occurs in a computing device, comprising:
receiving from an application attempting to obtain root access a proposed contract comprising a set of operations to be performed by the application that require or involve root access;
determining whether executing the set of operations in the proposed contract would result in malicious behavior;
preventing the application from executing in response to determining that at least one operation in the proposed contract would result in malicious behavior;
accepting the proposed contract in response to determining that the set of operations in the proposed contract would not result in malicious behavior; and
enforcing the accepted contract by enabling execution of operations in the accepted contract and preventing execution of operations not in the accepted contract.

### Claim 2 (depends on 1)

The method of claim 1, wherein:
receiving from an application attempting to obtain root access a proposed contract comprises receiving the proposed contract from the application before the application attempts to obtain root access; and
the proposed contract comprises a subset of operations that the application intends to perform.

### Claim 3 (depends on 1)

The method of claim 1, wherein:
determining whether executing the set of operations in the proposed contract would result in malicious behavior comprises:
determining a current configuration of the computing device;
applying the set of operations in the proposed contract to the current configuration of the computing device; and
determining whether applying the set of operations to the current configuration of the computing device results in malicious behavior; and
accepting the proposed contract in response to determining that the set of operations in the proposed contract would not result in malicious behavior comprises accepting the proposed contract in response to determining that applying the set of operations to the current configuration of the computing device does not result in malicious behavior.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
receiving an amended contract from the application to replace a previously accepted contract;
determining a current configuration of the computing device;
determining an operation that the application last performed in the previously accepted contract;
applying an amended set of operations included in the amended contract to the current configuration of the computing device starting from the last performed operation;
determining whether applying the amended set of operations to the current configuration of the computing device would result in malicious behavior;
rejecting the amended contract and preventing the application from executing in response to determining that applying at least one operation in the amended set of operations to the current configuration of the computing device would result in malicious behavior;
accepting the amended contract in response to determining that applying the amended set of operations to the current configuration of the computing device would not result in malicious behavior; and
replacing the previously accepted contract with the accepted amended contract.

### Claim 5 (depends on 1)

The method of claim 1, wherein enforcing the accepted contract by enabling execution of operations in the accepted contract and preventing execution of operations not in the accepted contract comprises:
identifying a pending operation that the application will perform next;
determining whether the pending operation matches one of the set of operations in the accepted contract;
enabling the application to perform the pending operation in response to determining that the pending operation matches one of the set of operations in the accepted contract; and
preventing the application from executing in response to determining that the pending operation does not match one of the set of operations in the accepted contract.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
determining whether the application will perform the pending operation in an order of operations in the accepted contract in response to determining that the pending operation matches one of the set of operations in the accepted contract;
enabling the application to perform the pending operation in response to determining that the application will perform the pending operation in the order of operations in the accepted contract; and
preventing the application from executing in response to determining that the application will perform the pending operation out of the order of operations in the accepted contract.

### Claim 7 (depends on 5)

The method of claim 5, further comprising:
determining whether the pending operation is included in a pre-approved list of operations in response to determining that the pending operation does not match one of the set of operations in the accepted contract;
enabling the application to perform the pending operation in response to determining that the pending operation is included in the pre-approved list of operations; and
preventing the application from executing in response to determining that the pending operation is not included in the pre-approved list of operations.

### Claim 8

A computing device, comprising:
a memory;
a processor coupled to the memory and configured with processor-executable instructions to perform operations comprising:
receiving from an application attempting to obtain root access a proposed contract comprising a set of operations to be performed by the application that require or involve root access;
determining whether executing the set of operations in the proposed contract would result in malicious behavior;
preventing the application from executing in response to determining that at least one operation in the proposed contract would result in malicious behavior;
accepting the proposed contract in response to determining that the set of operations in the proposed contract would not result in malicious behavior; and
enforcing the accepted contract by enabling execution of operations in the accepted contract and preventing execution of operations not in the accepted contract.

### Claim 9 (depends on 8)

The computing device of claim 8, wherein:
the processor is configured with processor-executable instructions to perform operations such that receiving from an application attempting to obtain root access a proposed contract comprises receiving the proposed contract from the application before the application attempts to obtain root access; and
the proposed contract comprises a subset of operations that the application intends to perform.

### Claim 10 (depends on 8)

The computing device of claim 8, wherein the processor is configured with processor-executable instructions to perform operations such that:
determining whether executing the set of operations in the proposed contract would result in malicious behavior comprises:
determining a current configuration of the computing device;
applying the set of operations in the proposed contract to the current configuration of the computing device; and
determining whether applying the set of operations to the current configuration of the computing device results in malicious behavior; and
accepting the proposed contract in response to determining that the set of operations in the proposed contract would not result in malicious behavior comprises accepting the proposed contract in response to determining that applying the set of operations to the current configuration of the computing device does not result in malicious behavior.

### Claim 11 (depends on 8)

The computing device of claim 8, wherein the processor is configured with processor-executable instructions to perform operations further comprising:
receiving an amended contract from the application to replace a previously accepted contract;
determining a current configuration of the computing device;
determining an operation that the application last performed in the previously accepted contract;
applying an amended set of operations included in the amended contract to the current configuration of the computing device starting from the last performed operation;
determining whether applying the amended set of operations to the current configuration of the computing device would result in malicious behavior;
rejecting the amended contract and preventing the application from executing in response to determining that applying at least one operation in the amended set of operations to the current configuration of the computing device would result in malicious behavior;
accepting the amended contract in response to determining that applying the amended set of operations to the current configuration of the computing device would not result in malicious behavior; and
replacing the previously accepted contract with the accepted amended contract.

### Claim 12 (depends on 8)

The computing device of claim 8, wherein the processor is configured with processor-executable instructions to perform operations such that enforcing the accepted contract by enabling execution of operations in the accepted contract and preventing execution of operations not in the accepted contract comprises:
identifying a pending operation that the application will perform next;
determining whether the pending operation matches one of the set of operations in the accepted contract;
enabling the application to perform the pending operation in response to determining that the pending operation matches one of the set of operations in the accepted contract; and
preventing the application from executing in response to determining that the pending operation does not match one of the set of operations in the accepted contract.

### Claim 13 (depends on 12)

The computing device of claim 12, wherein the processor is configured with processor-executable instructions to perform operations further comprising:
determining whether the application will perform the pending operation in an order of operations in the accepted contract in response to determining that the pending operation matches one of the set of operations in the accepted contract;
enabling the application to perform the pending operation in response to determining that the application will perform the pending operation in the order of operations in the accepted contract; and
preventing the application from executing in response to determining that the application will perform the pending operation out of the order of operations in the accepted contract.

### Claim 14 (depends on 12)

The computing device of claim 12, wherein the processor is configured with processor-executable instructions to perform operations further comprising:
determining whether the pending operation is included in a pre-approved list of operations in response to determining that the pending operation does not match one of the set of operations in the accepted contract;
enabling the application to perform the pending operation in response to determining that the pending operation is included in the pre-approved list of operations; and
preventing the application from executing in response to determining that the pending operation is not included in the pre-approved list of operations.

### Claim 15

A computing device, comprising:
means for receiving from an application attempting to obtain root access a proposed contract comprising a set of operations to be performed by the application that require or involve root access;
means for determining whether executing the set of operations in the proposed contract would result in malicious behavior;
means for preventing the application from executing in response to determining that at least one operation in the proposed contract would result in malicious behavior;
means for accepting the proposed contract in response to determining that the set of operations in the proposed contract would not result in malicious behavior; and
means for enforcing the accepted contract by enabling execution of operations in the accepted contract and preventing execution of operations not in the accepted contract.

### Claim 16 (depends on 15)

The computing device of claim 15, wherein:
means for receiving from an application attempting to obtain root access a proposed contract comprises means for receiving the proposed contract from the application before the application attempts to obtain root access; and
the proposed contract comprises a subset of operations that the application intends to perform.

### Claim 17 (depends on 15)

The computing device of claim 15, wherein:
means for determining whether executing the set of operations in the proposed contract would result in malicious behavior comprises:
means for determining a current configuration of the computing device;
means for applying the set of operations in the proposed contract to the current configuration of the computing device; and
means for determining whether applying the set of operations to the current configuration of the computing device results in malicious behavior; and
means for accepting the proposed contract in response to determining that the set of operations in the proposed contract would not result in malicious behavior comprises means for accepting the proposed contract in response to determining that applying the set of operations to the current configuration of the computing device does not result in malicious behavior.

### Claim 18 (depends on 15)

The computing device of claim 15, further comprising:
means for receiving an amended contract from the application to replace a previously accepted contract;
means for determining a current configuration of the computing device;
means for determining an operation that the application last performed in the previously accepted contract;
means for applying an amended set of operations included in the amended contract to the current configuration of the computing device starting from the last performed operation;
means for determining whether applying the amended set of operations to the current configuration of the computing device would result in malicious behavior;
means for rejecting the amended contract and preventing the application from executing in response to determining that applying at least one operation in the amended set of operations to the current configuration of the computing device would result in malicious behavior;
means for accepting the amended contract in response to determining that applying the amended set of operations to the current configuration of the computing device would not result in malicious behavior; and
means for replacing the previously accepted contract with the accepted amended contract.

### Claim 19 (depends on 15)

The computing device of claim 15, wherein means for enforcing the accepted contract by enabling execution of operations in the accepted contract and preventing execution of operations not in the accepted contract comprises:
means for identifying a pending operation that the application will perform next;
means for determining whether the pending operation matches one of the set of operations in the accepted contract;
means for enabling the application to perform the pending operation in response to determining that the pending operation matches one of the set of operations in the accepted contract; and
means for preventing the application from executing in response to determining that the pending operation does not match one of the set of operations in the accepted contract.

### Claim 20 (depends on 19)

The computing device of claim 19, further comprising:
means for determining whether the application will perform the pending operation in an order of operations in the accepted contract in response to determining that the pending operation matches one of the set of operations in the accepted contract;
means for enabling the application to perform the pending operation in response to determining that the application will perform the pending operation in the order of operations in the accepted contract; and
means for preventing the application from executing in response to determining that the application will perform the pending operation out of the order of operations in the accepted contract.

### Claim 21 (depends on 19)

The computing device of claim 19, further comprising:
means for determining whether the pending operation is included in a pre-approved list of operations in response to determining that the pending operation does not match one of the set of operations in the accepted contract;
means for enabling the application to perform the pending operation in response to determining that the pending operation is included in the pre-approved list of operations; and
means for preventing the application from executing in response to determining that the pending operation is not included in the pre-approved list of operations.

### Claim 22

A non-transitory processor-readable storage medium having stored thereon processor-executable instructions, wherein the stored processor-executable instructions are configured to cause a processor of a computing device to perform operations comprising:
receiving from an application attempting to obtain root access a proposed contract comprising a set of operations to be performed by the application that require or involve root access;
determining whether executing the set of operations in the proposed contract would result in malicious behavior;
preventing the application from executing in response to determining that at least one operation in the proposed contract would result in malicious behavior;
accepting the proposed contract in response to determining that the set of operations in the proposed contract would not result in malicious behavior; and
enforcing the accepted contract by enabling execution of operations in the accepted contract and preventing execution of operations not in the accepted contract.

### Claim 23 (depends on 22)

The non-transitory processor-readable storage medium of claim 22, wherein:
the stored processor-executable instructions are configured to cause a computing device processor to perform operations such that receiving from an application attempting to obtain root access a proposed contract comprises receiving the proposed contract from the application before the application attempts to obtain root access; and
the proposed contract comprises a subset of operations that the application intends to perform.

### Claim 24 (depends on 22)

The non-transitory processor-readable storage medium of claim 22, wherein the stored processor-executable instructions are configured to cause a computing device processor to perform operations such that:
determining whether executing the set of operations in the proposed contract would result in malicious behavior comprises:
determining a current configuration of the computing device;
applying the set of operations in the proposed contract to the current configuration of the computing device; and
determining whether applying the set of operations to the current configuration of the computing device results in malicious behavior; and
accepting the proposed contract in response to determining that the set of operations in the proposed contract would not result in malicious behavior comprises accepting the proposed contract in response to determining that applying the set of operations to the current configuration of the computing device does not result in malicious behavior.

### Claim 25 (depends on 22)

The non-transitory processor-readable storage medium of claim 22, wherein the stored processor-executable instructions are configured to cause a computing device processor to perform operations further comprising:
receiving an amended contract from the application to replace a previously accepted contract;
determining a current configuration of the computing device;
determining an operation that the application last performed in the previously accepted contract;
applying an amended set of operations included in the amended contract to the current configuration of the computing device starting from the last performed operation;
determining whether applying the amended set of operations to the current configuration of the computing device would result in malicious behavior;
rejecting the amended contract and preventing the application from executing in response to determining that applying at least one operation in the amended set of operations to the current configuration of the computing device would result in malicious behavior;
accepting the amended contract in response to determining that applying the amended set of operations to the current configuration of the computing device would not result in malicious behavior; and
replacing the previously accepted contract with the accepted amended contract.

### Claim 26 (depends on 22)

The non-transitory processor-readable storage medium of claim 22, wherein the stored processor-executable instructions are configured to cause a computing device processor to perform operations such that enforcing the accepted contract by enabling execution of operations in the accepted contract and preventing execution of operations not in the accepted contract comprises:
identifying a pending operation that the application will perform next;
determining whether the pending operation matches one of the set of operations in the accepted contract;
enabling the application to perform the pending operation in response to determining that the pending operation matches one of the set of operations in the accepted contract; and
preventing the application from executing in response to determining that the pending operation does not match one of the set of operations in the accepted contract.

### Claim 27 (depends on 26)

The non-transitory processor-readable storage medium of claim 26, wherein the stored processor-executable instructions are configured to cause a computing device processor to perform operations further comprising:
determining whether the application will perform the pending operation in an order of operations in the accepted contract in response to determining that the pending operation matches one of the set of operations in the accepted contract;
enabling the application to perform the pending operation in response to determining that the application will perform the pending operation in the order of operations in the accepted contract; and
preventing the application from executing in response to determining that the application will perform the pending operation out of the order of operations in the accepted contract.

### Claim 28 (depends on 26)

The non-transitory processor-readable storage medium of claim 26, wherein the stored processor-executable instructions are configured to cause a computing device processor to perform operations further comprising:
determining whether the pending operation is included in a pre-approved list of operations in response to determining that the pending operation does not match one of the set of operations in the accepted contract;
enabling the application to perform the pending operation in response to determining that the pending operation is included in the pre-approved list of operations; and
preventing the application from executing in response to determining that the pending operation is not included in the pre-approved list of operations.
