# US 2015/0149732 A1 · System and methods for cpu copy protection of a computing device

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

- Number: US 2015/0149732 A1
- Document ID: US20150149732A1
- Status: Published application
- Kind: A1
- Application number: 14/088,405
- Filed: 2013-11-24
- Published: 2015-05-28
- Earliest claimed: 2013-11-24
- Assignees: Truly Protect Oy
- Applicants: University of JyväSkylä
- Inventors: MICHAEL KIPERBERG; AMIT RESH; NEZER ZAIDENBERG
- Web page: https://patentgrep.com/patent/US20150149732A1

## CPC

- G06F 12/1408: {by using cryptography (for digital transmission H04L9/00)}
- G06F 12/0802: Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F 12/0888: using selective caching, e.g. bypass
- G06F 12/1027: using associative or pseudo-associative address translation means, e.g. translation look-aside buffer [TLB]
- G06F 2212/1052: Security improvement
- G06F 2212/402: Encrypted data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure relates to techniques for system and methods for software-based management of protected data-blocks insertion into the memory cache mechanism of a computerized device. In particular the disclosure relates to preventing protected data blocks from being altered and evicted from the CPU cache coupled with buffered software execution. The technique is based upon identifying at least one conflicting data-block having a memory mapping indication to a designated memory cache-line and preventing the conflicting data-block from being cached. Functional characteristics of the software product of a vendor, such as gaming or video, may be partially encrypted to allow for protected and functional operability and avoid hacking and malicious usage of non-licensed user.

## Claims

### Claim 1

A method for preventing a protected data-block from being evicted from a CPU memory cache, said cache comprising a plurality of cache-lines, each cache-line comprising a plurality of data-blocks, the method comprising:
writing said protected data-block to a designated cache-line;
identifying a set of conflicting data-blocks having a memory mapping indication to said designated cache-line; and
preventing said set of conflicting data-blocks from being cached.

### Claim 2 (depends on 1)

The method of claim 1, wherein said writing said protected data-block to a designated cache-line, comprises:
obtaining an encrypted data-block;
placing said encrypted data-block in a free-location of said designated cache-line;
receiving a decryption key; and
decrypting said encrypted data-block using said decryption key.

### Claim 3 (depends on 1)

The method of claim 1, wherein said preventing said set of conflicting data-blocks from being cached comprises changing a cacheability-state flag associated with said conflicting data-blocks from a CACHEABLE state to a NON-CACHEABLE state.

### Claim 4 (depends on 1)

The method of claim 1, wherein said preventing said set of conflicting data-blocks from being cached comprises filtering data block access requests.

### Claim 5 (depends on 4)

The method of claim 4, wherein said filtering data-block access requests, comprises:
receiving an access request to cache a pending data block;
checking memory mapping indication of said pending data block; and
rejecting said access request, if said pending data block has a memory mapping indication to said designated cache-line.

### Claim 6 (depends on 1)

The method of claim 1, further comprising changing the memory mapping indication of said set of conflicting data blocks such that said set of conflicting data block is converted into a non-conflicting data block.

### Claim 7 (depends on 6)

The method of claim 6, wherein said step of changing the memory mapping indication of said set of conflicting data block, further comprises the steps of:
calculating a new designated cache-line; and
writing each conflicting data-block to said new designated cache-line.

### Claim 8 (depends on 1)

The method of claim 1, wherein said preventing said set of conflicting data-blocks from being cached comprises changing a memory attribute flag associated with said conflicting data-blocks specifying current caching access policy to a NON-CACHEABLE state.

### Claim 9 (depends on 1)

The method of claim 1, wherein said preventing a protected data-block from being evicted from a CPU memory cache is triggered when an encrypted section of code is accessed.

### Claim 10 (depends on 1)

The method of claim 1, wherein said set of conflicting data-blocks comprises all data-blocks having a memory mapping indication to said designated cache-line.

### Claim 11

A method for protecting a line of a CPU memory cache, the method comprising:
receiving a request to write from a protected data-block to a designated cache-line, said designated cache-line being in an unprotected state;
saving said protected data-block to the designated cache-line; and
changing caching policy of conflicting data blocks to prevent said conflicting data-blocks from being written to said designated cache-line thereby changing said designated cache-line into a protected state;
such that said protected data-block is not evicted from the cache.

### Claim 12 (depends on 11)

The method of claim 11, wherein said changing caching policy comprises:
identifying a set of said conflicting data-blocks having a memory mapping indication to said designated cache-line; and
changing a cacheability-state flag associated with said conflicting data-blocks from a CACHEABLE state to a NON-CACHEABLE state.

### Claim 13 (depends on 11)

The method of claim 11, wherein said changing caching policy comprises:
receiving a write request to cache a pending data-block;
checking memory mapping indication of said pending data-block; and
rejecting said write request, if said pending data-block has a memory mapping indication to said designated cache-line.

### Claim 14 (depends on 13)

The method of claim 13, further comprising changing the memory mapping indication of said pending data-block such that said pending data-block is stored in another line of said CPU memory cache.

### Claim 15

A method for executing an encrypted code section in a CPU memory cache, said encrypted code section comprising a plurality of encrypted code instructions, the method comprising:
writing said encrypted code section to said CPU memory cache;
changing said CPU memory cache into a shielded state;
decrypting said encrypted code section;
storing decrypted code instructions of said encrypted code section in said CPU memory cache; and
executing said decrypted code instructions from said designated cache-line of said CPU memory cache in the shielded state.

### Claim 16 (depends on 15)

The method of claim 15, further comprising deleting said decrypted code from said CPU memory cache following execution of said decrypted code.

### Claim 17 (depends on 16)

The method of claim 16, further comprising restoring said CPU memory cache to the unshielded state following the deleting of the decrypted code.

### Claim 18 (depends on 15)

The method of claim 15, wherein said unshielded state is characterised by at least one of preemption and CPU interrupt handler being enabled.

### Claim 19 (depends on 15)

The method of claim 15, wherein said shielded state is characterised by at least one of preemption and CPU interrupt handler being disabled.

### Claim 20 (depends on 15)

The method of claim 15, wherein said decrypting said encrypted code section further comprises obtaining an encryption key, wherein said encryption key stored in a CPU register.
