# US 2016/0239364 A1 · Method of verifying integrity of program using hash

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

- Number: US 2016/0239364 A1
- Document ID: US20160239364A1
- Status: Published application
- Kind: A1
- Application number: 15/024,635
- Filed: 2014-09-03
- Published: 2016-08-18
- Earliest claimed: 2013-09-27
- Assignees: Inka Entworks, Inc.
- Applicants: Inka Entworks, Inc.
- Inventors: Jae Min NAM; Jung Geun PARK; Jun Ho HONG; Jun Seok OH; Jung Soo KIM
- Web page: https://patentgrep.com/patent/US20160239364A1

## CPC

- G06F 11/079: {Root cause analysis, i.e. error or fault diagnosis (in a hardware test environment G06F11/22; in a software test environment G06F11/36)}
- G06F 11/0727: {in a storage system, e.g. in a DASD or network based storage system (drivers for digital recording or reproducing units G06F3/06; circuits for error detection or correction within digital recording or reproducing units G11B20/18; for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS], H04L67/1097)}
- G06F 11/0751: {Error or fault detection not based on redundancy (power supply failures G06F1/30; network fault management H04L41/06)}
- G06F 11/3604: Analysis of software for verifying properties of programs (testing of software G06F11/3668)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In a method for verifying the integrity of first to Nth binaries (N is a natural number greater than or equal to 2), the method may comprise: loading the first to Nth binaries into a main memory in order to execute the binaries; verifying a self hash to verify, by the Kth binary (K=1, . . . , N-1) which has been loaded into the main memory, the integrity thereof by using a hash; and verifying a link hash by setting any one of the first to Kth binaries as a verification binary and setting a (K+1)th binary to be loaded into the main memory as a binary to be verified so that the verification binary verifies the integrity of the binary to be verified by using a hash.

## Claims

### Claim 1

A method for verifying the integrity of first to Nth binaries (N is a natural number greater than or equal to 2), the method comprising:
loading the first to Nth binaries into a main memory in order to execute the binaries;
verifying a self hash to verify, by the Kth binary (K =1, . . . , N-1) which has been loaded into the main memory, the integrity thereof by using a hash; and
verifying a link hash by setting any one of the first to Kth binaries as a verification binary and setting a (K+1)th binary to be loaded into the main memory as a binary to be verified so that the verification binary verifies the integrity of the binary to be verified by using a hash.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
verifying a self hash by the Nth binary after the Nth binary is loaded into the main memory, and verifying a link hash by setting any one of second to the Nth binaries as the verification binary and setting a first binary as the binary to be verified.

### Claim 3 (depends on 1)

The method according to claim 1, in the verifying of the link hash, when the binary to be verified is the (K+1)th binary, the Kth binary is a verification binary.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the verifying of the self hash is performed by a binary loaded into the main memory immediately after the binary is loaded into the main memory.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the verifying of the link hash is performed by the verification binary immediately before the binary to be verified is loaded into the main memory.

### Claim 6 (depends on 1)

The method according to claim 1, comprising reading hash registries for original binaries in order to verify the integrity of the first to Nth binaries.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the verifying of the self hash comprises:
extracting a self file hash code by inputting the binary loaded into the main memory to a Hash Function;
determining whether the extracted self file hash code matches any one of hash codes included in the hash registries; and
stopping the execution of a program when a file is determined to have been altered.

### Claim 8 (depends on 6)

The method according to claim 6, wherein the verifying of the link hash comprises:
extracting a link file hash code of the binary to be verified by inputting the binary to be verified to a Hash Function;
determining whether the extracted link file hash code matches any one of hash codes included in the hash registries; and
stopping the execution of a program when a file is determined to have been altered.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the extracting of the link file hash code comprises
acquiring, by the verification binary, information on whether any one of the first to Nth binaries except for the verification binary becomes the binary to be verified.

### Claim 10 (depends on 1)

The method according to claim 1, wherein the verifying of the link hash comprises
stopping the program execution when, except for the first binary, the verification binary is not loaded into the main memory but the binary to be verified is loaded into the main memory, .

### Claim 11

A method for verifying the integrity of first to Nth script files (N is a natural number greater than or equal to 2), the method comprising:
sequentially calling the first to Nth scripts in order to execute the scripts;
verifying a self hash to verify, by the called Kth script (K=1, . . . , N-1), the integrity thereof by using a hash; and
verifying a link hash by setting any one of the first to Kth scripts as a verification script and setting a (K+1)th script to be called as a script to be verified so that the verification script verifies the integrity of the script to be verified by using a hash.

### Claim 12

A device for verifying the integrity of first to Nth binaries (N is a natural number greater than or equal to 2), the device comprising:
an auxiliary memory unit configured to store the first to Nth binaries;
a main memory configured to load the first to Nth binaries in order to execute the binaries from the auxiliary memory unit;
a self hash verification unit configured to verify, by a Kth binary (K=1, . . . , N-1) which has been loaded into the main memory, the integrity thereof by using a hash; and
a link hash verification unit configured to set any one of the first to Kth binaries loaded into the main memory as a verification binary and set a (K+1)th binary to be loaded into the main memory as a binary to be verified so that the verification binary verifies the integrity of the binary to be verified by using a hash.

### Claim 13 (depends on 12)

The device according to claim 12, wherein the link hash verification unit verifies a self hash by using the Nth binary after the Nth binary is loaded into the main memory, and verifies a link hash by setting any one of second to Nth binaries as the verification binary and setting a first binary as the binary to be verified.

### Claim 14 (depends on 12)

The device according to claim 12, comprising a hash registry storage unit configured to store hash registries for original binaries in order to verify the integrity of the first to Nth binaries.

### Claim 15 (depends on 14)

The device according to claim 14, wherein the self hash verification unit comprises:
a self file hash extraction unit configured to extract a self file hash code by inputting the binary loaded into the main memory to a Hash Function;
a file alteration determination unit configured to determine whether the hash code extracted by the self file hash extraction unit matches any one of hash codes included in the hash registries, and to stop the execution of a program when a file is determined to have been altered.

### Claim 16 (depends on 14)

The device according to claim 14, wherein the link hash verification unit comprises:
a link file hash extraction unit configured to input the binary to be verified to the Hash Function in the verification binary and extract a link file hash code; and
a file alteration determination unit configured to determine whether the hash code extracted by the link file hash extraction unit matches any one of hash codes included in the hash registries, and configured to stop the execution of a program when a file is determined to have been altered.

### Claim 17

A method for verifying the integrity of first to Nth binaries (N is a natural number greater than or equal to 2), the method comprising:
loading a Kth binary (K=1, N) among the first to Nth binaries into a main memory in order to execute the Kth binary;
verifying a self hash to verify, by the Kth binary loaded into the main memory, the integrity thereof by using a hash; and
when an unverified binary, the integrity of which has not been verified, is called while the loaded binaries are operated, verifying a link hash by setting a calling binary as a verification binary and setting the unverified binary to be loaded into the main memory as a binary to be verified so that the verification binary verifies the integrity of the binary to be verified by using a hash and, when the integrity is verified, returns to the loading step.

### Claim 18 (depends on 17)

The method according to claim 17, comprising
reading hash registries for original binaries in order to verify the integrity of the first to Nth binaries.

### Claim 19 (depends on 18)

The method according to claim 18, wherein the verifying of the self hash comprises:
extracting a self file hash code by inputting the binary loaded into the main memory to a Hash Function;
determining whether the extracted self file hash code matches any one of hash codes included in the hash registries; and
stopping the execution of a program when a file is determined to have been altered.

### Claim 20 (depends on 18)

The method according to claim 18, wherein the verifying of the link hash comprises:
extracting a link file hash code of the binary to be verified by inputting the binary to be verified to a Hash Function and;
determining whether the extracted link file hash code matches any one of hash codes included in the hash registries; and
stopping the execution of a program when a file is determined to have been altered.
