# US 2009/0276857 A1 · Anti-tamper techniques

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

- Number: US 2009/0276857 A1
- Document ID: US20090276857A1
- Status: Published application
- Kind: A1
- Application number: 12/433,234
- Filed: 2009-04-30
- Published: 2009-11-05
- Earliest claimed: 2008-04-30
- Inventors: Graeme Harkness
- Web page: https://patentgrep.com/patent/US20090276857A1

## CPC

- 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 21/14: against software analysis or reverse engineering, e.g. by obfuscation
- G06F 21/00: Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06Q 99/00: Subject matter not provided for in other groups of this subclass
- G06Q 2220/10: Usage protection of distributed data files
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR

## Abstract

Anti-tamper techniques for protecting a program code portion against tampering provide for defining a sequence of code segments having a root-code segment and a plurality of sub-code segment. Each sub-code segment is provided with an integrity checking portion for checking the integrity of a target code segment. At runtime, the integrity checking portion of a given sub-code segment carries out a checking procedure on the respective target code segment to obtain a runtime result which is compared with a reference result to verify that the target portion of the program has not been tampered with.

## Claims

### Claim 1

An anti-tamper method for protecting a program code portion against tampering, the anti-tamper method comprising:
dividing said program code portion into a plurality of code segments;
defining a sequence of code segments from the code segments, wherein said sequence of code segments comprises a root-code segment and a plurality of sub-code segments; and
providing each sub-code segment with an integrity checking portion for checking the integrity of a target code segment, said target code segment of a given sub-code segment being the code segment that is sequentially adjacent in a checking direction towards said root-code segment;
wherein the integrity checking portion of a given sub-code segment is operable to configure a computer to carry out a checking procedure on the respective target code segment to obtain a runtime result, and to compare said runtime result with a reference result comprised in said given sub-code segment.

### Claim 2 (depends on 1)

An anti-tamper method as claimed in claim 1, wherein said integrity checking portion of one said sub-code segment defines a checking procedure which involves performing a checksum procedure on the target code segment.

### Claim 3 (depends on 2)

An anti-tamper method as claimed in claim 2, wherein the checksum procedure comprises a cyclic redundancy check.

### Claim 4 (depends on 1)

An anti-tamper method as claimed in claim 1, wherein the program code portion is divided into code segments such that each segment comprises a function of the program code portion.

### Claim 5 (depends on 1)

An anti-tamper method as claimed in claim 1, wherein said root code segment comprises an attribute specifying portion which defines a specified attribute of the program.

### Claim 6 (depends on 1)

An anti-tamper method as claimed in claim 1, comprising defining a plurality of code sequences, such that one or more segments form part of more than one code sequence.

### Claim 7 (depends on 1)

An anti-tamper method as claimed in claim 1, comprising the step of defining a topology to represent the arrangement of the code segments comprised said sequence within the plurality of code segments.

### Claim 8 (depends on 1)

An anti-tamper method as claimed in claim 1, wherein the program code portion comprises source code.

### Claim 9 (depends on 1)

An anti-tamper method as claimed in claim 1, wherein the program code portion comprises compiled code.

### Claim 10

An anti-tamper system for protecting a program code portion against tampering, the anti-tamper system comprising a computer readable storage medium having a plurality of program code segments of a program code portion stored thereon, said program code segments defining a sequence of code segments, wherein said sequence of code segments comprises a root-code segment and a plurality of sub-code segments;
wherein each sub-code segment comprises with an integrity checking portion for checking the integrity of a target code segment, said target code segment for a given sub-code segment being the code segment that is sequentially adjacent in a checking direction towards said root-code segment; and
wherein the integrity checking portion of a given sub-code segment is operable to carry out a checking procedure on the respective target code segment to obtain a runtime result, and to compare said runtime result with a reference result comprised in said given sub-code segment.

### Claim 11

An integrity checking method performed by a computer for checking the integrity of a program portion comprising a plurality of code segments, said program portion having at least one sequence of code segments comprising a root code segment and a plurality of sub-code segments, the integrity checking method comprising, for a given code segment:
i) performing a runtime checking procedure which checks the integrity of a target code segment to obtain a runtime result, said target code segment for said given sub-code segment being the code segment that is sequentially adjacent in a checking direction towards said root-code segment; and
ii) comparing said runtime result with a reference result.

### Claim 12 (depends on 11)

A computer program which, when loaded into a computer, causes the computer to carry out the integrity checking method of claim 11.

### Claim 13 (depends on 12)

A computer program as claimed in claim 12, carried by a carrier medium.

### Claim 14 (depends on 13)

A computer program as claimed in claim 13, wherein said carrier medium is a recording medium.

### Claim 15 (depends on 13)

A computer program as claimed in claim 13, wherein said carrier medium is a transmission medium.
