# US 2026/0228109 A1 · Lightweight code integrity solution with byte-pattern entanglement in program code

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

- Number: US 2026/0228109 A1
- Document ID: US20260228109A1
- Status: Published application
- Kind: A1
- Application number: 19/382,748
- Filed: 2025-11-07
- Published: 2026-08-06
- Earliest claimed: 2025-01-31
- Assignees: Zimperium, Inc.
- Applicants: Zimperium, Inc.
- Inventors: Grant Stewart Goodes; Javier Lopez Gomez; Ricards Dzenis; Peteris Ledins
- Web page: https://patentgrep.com/patent/US20260228109A1

## CPC

- G06F 11/3612: {by runtime analysis (performance monitoring G06F11/3466)}
- G06F 8/70: Software maintenance or management
- G06F 9/30058: {Conditional branch instructions}
- G06F 21/566: {Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities}
- G06F 21/57: Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system and a method are disclosed for providing a lightweight code integrity solution. The system identifies one or more target code blocks in program code and determines one or more locations in the program code where an integrity check is to be embedded to verify the integrity of the code block. The system may determine an integer value associated with a byte-pattern of machine-code instructions in the code blocks and generates the integrity check by entangling the integer value into one or more computations of the program code. The system embeds the integrity check at the determined location in the program code.

## Claims

### Claim 1

A method comprising:
determining, by a server, during build time, an integer value associated with a byte-pattern in a code block of program code where an integrity check is to be embedded to check the integrity of the code block;
generating, by the server, during the build time, the integrity check by entangling the integer value into a computation of the program code; and
embedding, by the server, during the build time, the integrity check into a location of the code block in the program code, wherein, at runtime, an outcome of the integrity check is determined based on execution of the program code.

### Claim 2 (depends on 1)

The method of claim 1, wherein entangling the integer value comprises:
modifying a numeric constant by generating an expression that depends on the integer value to compute the numeric constant.

### Claim 3 (depends on 1)

The method of claim 1, wherein the code block includes a branch instruction, and wherein entangling the integer value comprises:
modifying a target address of the branch instruction to be a value computed in part with the integer value.

### Claim 4 (depends on 1)

The method of claim 1, wherein entangling the integer value comprises:
integrating the integer value into the program code so that computing a correct value of the integer value during runtime of the program code affects an execution of the program code.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
running, during runtime of the program code, the integrity check by executing the program code at the location;
responsive to determining that the program code is executed successfully, determining that the integrity of the program code is not corrupted.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
running the integrity check by executing the program code at the location;
responsive to determining that the execution of the program code is interrupted, determining that the integrity of the program code is corrupted.

### Claim 7 (depends on 1)

The method of claim 1, wherein the code block is identified by selecting an instruction in the program code as a target instruction, the selected instruction comprising one or more of a branch instruction, an instruction associated with a constant for execution of the program code, an instruction with a condition jump, or an instruction with an entry point of a security sensitive function.

### Claim 8 (depends on 1)

The method of claim 1, wherein the integrity check is generated and embedded in the program code during build time of the program code, and is executed during runtime of the program code.

### Claim 9

A non-transitory computer-readable medium configured to store instructions, the instructions when executed by one or more processors causing the one or more processors to perform operations comprising:
determining, by a server, during build time, an integer value associated with a byte-pattern in a code block of program code where an integrity check is to be embedded to check the integrity of the code block;
generating, by the server, during the build time, the integrity check by entangling the integer value into a computation of the program code; and
embedding, by the server, during the build time, the integrity check into a location of the code block in the program code, wherein, at runtime, an outcome of the integrity check is determined based on execution of the program code.

### Claim 10 (depends on 9)

The non-transitory computer-readable medium of claim 9, wherein entangling the integer value comprises:
modifying a numeric constant by generating an expression that depends on the integer value to compute the numeric constant.

### Claim 11 (depends on 9)

The non-transitory computer-readable medium of claim 9, wherein the code block includes a branch instruction, and wherein entangling the integer value comprises:
modifying a target address of the branch instruction to be a value computed in part with the integer value.

### Claim 12 (depends on 9)

The non-transitory computer-readable medium of claim 9, wherein entangling the integer value comprises:
integrating the integer value into the program code so that computing a correct value of the integer value during runtime of the program code affects an execution of the program code.

### Claim 13 (depends on 9)

The non-transitory computer-readable medium of claim 9, further comprising:
running, during runtime of the program code, the integrity check by executing the program code at the location;
responsive to determining that the program code is executed successfully, determining that the integrity of the program code is not corrupted.

### Claim 14 (depends on 9)

The non-transitory computer-readable medium of claim 9, further comprising:
running the integrity check by executing the program code at the location;
responsive to determining that the execution of the program code is interrupted, determining that the integrity of the program code is corrupted.

### Claim 15 (depends on 9)

The non-transitory computer-readable medium of claim 9, wherein the code block is identified by selecting an instruction in the program code as a target instruction, the selected instruction comprising one or more of a branch instruction, an instruction associated with a constant for execution of the program code, an instruction with a condition jump, or an instruction with an entry point of a security sensitive function.

### Claim 16 (depends on 9)

The non-transitory computer-readable medium of claim 9, wherein the integrity check is generated and embedded in the program code during build time of the program code, and is executed during runtime of the program code.

### Claim 17

A system comprising memory with instructions encoded thereon that, when executed by one or more processors, cause the one or more processors to perform operations comprising:
determining, by a server, during build time, an integer value associated with a byte-pattern in a code block of program code where an integrity check is to be embedded to check the integrity of the code block;
generating, by the server, during the build time, the integrity check by entangling the integer value into a computation of the program code; and
embedding, by the server, during the build time, the integrity check into a location of the code block in the program code, wherein, at runtime, an outcome of the integrity check is determined based on execution of the program code.

### Claim 18 (depends on 17)

The system of claim 17, wherein entangling the integer value comprises:
modifying a numeric constant by generating an expression that depends on the integer value to compute the numeric constant.

### Claim 19 (depends on 17)

The system of claim 17, wherein the code block includes a branch instruction, and wherein entangling the integer value comprises:
modifying a target address of the branch instruction to be a value computed in part with the integer value.

### Claim 20 (depends on 17)

The system of claim 17, wherein entangling the integer value comprises:
integrating the integer value into the program code so that computing a correct value of the integer value during runtime of the program code affects an execution of the program code.
