# US 2013/0254494 A1 · Method and system for process working set isolation

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

- Number: US 2013/0254494 A1
- Document ID: US20130254494A1
- Status: Published application
- Kind: A1
- Application number: 13/847,370
- Filed: 2013-03-19
- Published: 2013-09-26
- Earliest claimed: 2012-03-20
- Assignees: Krimmeni Technologies, Inc.
- Applicants: Krimmeni Technologies, Inc.
- Inventors: William V. Oxford
- Web page: https://patentgrep.com/patent/US20130254494A1

## CPC

- G06F 12/1425: {the protection being physical, e.g. cell, word, block}
- G06F 12/0837: with software control, e.g. non-cacheable data
- G06F 12/0842: for multiprocessing or multitasking
- G06F 12/1466: {Key-lock mechanism}
- H04L 9/14: using a plurality of keys or algorithms
- H04L 9/30: Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy
- H04L 9/3242: {involving keyed hash functions, e.g. message authentication codes [MACs], CBC-MAC or HMAC}
- G06F 2212/1052: Security improvement
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Embodiments of systems and methods disclosed herein may isolate the working set of a process such that the data of the working set is inaccessible to other processes, even after the original process terminates. More specifically, in certain embodiments, the working set of an executing process may be stored in cache and for any of those cache lines that are written to while in secure mode those cache lines may be associated with a secure descriptor for the currently executing process. The secure descriptor may uniquely specify those cache lines as belonging to the executing secure process such that access to those cache lines can be restricted to only that process.

## Claims

### Claim 1

A system, comprising:
a processor;
a memory;
a secret key stored in hardware;
a cache having a line comprising data of a process executed on the processor in a secure mode; and
a secure execution controller configured to control access to the line of the cache using a first secure descriptor based on the secret key and associated with the process such that only the process can access the line of the cache.

### Claim 2 (depends on 1)

The system of claim 1, wherein the system was placed in secure mode based on the first secure descriptor.

### Claim 3 (depends on 1)

The system of claim 1, wherein the secure execution controller is configured to cause an entire working set of the process to be stored in the cache and to cause writes to a memory location other than the cache in the secure mode to be disabled.

### Claim 4 (depends on 1)

The system of claim 1, wherein the process has terminated.

### Claim 5 (depends on 3)

The system of claim 3, wherein the secure execution controller is configured to cause the line of the cache to be associated with the first secure descriptor associated with the process.

### Claim 6 (depends on 5)

The system of claim 5, wherein the secure execution controller is configured to cause a security flag associated with the line of the cache to be set when the process writes the data.

### Claim 7 (depends on 6)

The system of claim 6, wherein the secure execution controller is configured to control access by causing the following steps to be performed:
determining that the line of cache is being accessed by a currently executing process,
determining if a currently executing process is executing in secure mode,
determining a second secure descriptor associated with the currently executing process,
comparing the second secure descriptor and the second secure descriptor, and
allowing access only if the currently executing process is executing in secure mode and the first secure descriptor matches the second secure descriptor.

### Claim 8

A method, comprising:
executing a process on a processor in a secure mode;
storing data in a line of a cache, wherein the data was stored by the process executed on the processor in the secure mode; and
controlling access to the line of the using a first secure descriptor associated with the process such that only the process can access the line of the cache, wherein the first secure descriptor is based on a secret key stored in hardware on a system comprising the processor and the cache.

### Claim 9 (depends on 8)

The method of claim 8, wherein the secure mode was entered based on the first secure descriptor.

### Claim 10 (depends on 8)

The method of claim 8, further comprising storing an entire working set of the process in the cache and disabling writes to a memory location other than the cache in the secure mode.

### Claim 11 (depends on 8)

The method of claim 8, wherein the process has terminated.

### Claim 12 (depends on 10)

The method of claim 10, further comprising associating the line of the cache with the first secure descriptor associated with the process.

### Claim 13 (depends on 12)

The method of claim 12, further comprising setting a security flag associated with the line of the cache when the process writes the data.

### Claim 14 (depends on 13)

The method of claim 13, wherein controlling access comprises:
determining that the line of cache is being accessed by a currently executing process,
determining if a currently executing process is executing in secure mode,
determining a second secure descriptor associated with the currently executing process,
comparing the second secure descriptor and the second secure descriptor, and
allowing access only if the currently executing process is executing in secure mode and the first secure descriptor matches the second secure descriptor.

### Claim 15

A non-transitory computer readable medium, comprising instructions for:
executing a process on a processor in a secure mode;
storing data in a line of a cache, wherein the data was stored by the process executed on the processor in the secure mode; and
controlling access to the line of the using a first secure descriptor associated with the process such that only the process can access the line of the cache, wherein the first secure descriptor is based on a secret key stored in hardware on a system comprising the processor and the cache.

### Claim 16 (depends on 15)

The computer readable medium of claim 15, wherein the secure mode was entered based on the first secure descriptor.

### Claim 17 (depends on 15)

The computer readable medium of claim 15, further comprising instructions for storing an entire working set of the process in the cache and disabling writes to a memory location other than the cache in the secure mode.

### Claim 18 (depends on 15)

The computer readable medium of claim 15, wherein the process has terminated.

### Claim 19 (depends on 17)

The computer readable medium of claim 17, further comprising instructions for associating the line of the cache with the first secure descriptor associated with the process.

### Claim 20 (depends on 19)

The computer readable medium of claim 19, further comprising instructions for setting a security flag associated with the line of the cache when the process writes the data.

### Claim 21 (depends on 20)

The computer readable medium of claim 20, wherein controlling access comprises:
determining that the line of cache is being accessed by a currently executing process,
determining if a currently executing process is executing in secure mode,
determining a second secure descriptor associated with the currently executing process,
comparing the second secure descriptor and the second secure descriptor, and
allowing access only if the currently executing process is executing in secure mode and the first secure descriptor matches the second secure descriptor.
