# US 2017/0255775 A1 · Software verification systems with multiple verification paths

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

- Number: US 2017/0255775 A1
- Document ID: US20170255775A1
- Status: Published application
- Kind: A1
- Application number: 15/266,363
- Filed: 2016-09-15
- Published: 2017-09-07
- Earliest claimed: 2016-03-02
- Assignees: Apple Inc.
- Applicants: Apple Inc
- Inventors: Damien P. Sorresso
- Web page: https://patentgrep.com/patent/US20170255775A1

## CPC

- G06F 21/575: {Secure boot}
- G06F 3/04817: using icons (graphical or visual programming using iconic symbols G06F8/34)
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems, methods, and machine readable media are described which use code verification to verify the authenticity of installed software. The code verification can be performed in any one of a set of different paths, in one embodiment, which includes a first path using a trust cache of hashes of operating system components and one or more platform applications that are included together in a static software build that is installed on a system and a second path which evaluates code figured with one or more certificates (e.g. code signatures) for a software component (e.g. a third party software application or daemon) that is not part of the static software build. The path taken by a code verification process is audited to verify that the system has not been compromised.

## Claims

### Claim 1

A non-transitory machine readable medium storing executable program instructions which when executed by a data processing system cause the data processing system to perform a method comprising:
determining an expected path of a code verification process for a first software component, wherein the code verification process has at least two paths which are different and wherein the first software component is a software application or a software daemon;
causing the code verification process to perform a code verification on the first software component to determine whether the first software component is authentic;
comparing the expected path to the path taken by the code verification process when the code verification on the first software component was performed;
causing a protective action to occur in response to determining from the comparison that the path taken does not match the expected path.

### Claim 2 (depends on 1)

The medium as in claim 1, wherein the code verification process records the path taken and wherein the at least two paths comprise: a first path for checking a trust cache of hashes of binaries from a build of an operating system and platform applications and a second path for evaluating a signature of a signed code for a software component.

### Claim 3 (depends on 2)

The medium as in claim 2 wherein the expected path is determined by one of: a first daemon which launches software components including software applications and software daemons or a trusted software component.

### Claim 4 (depends on 3)

The medium as in claim 3 wherein the first daemon is the first user process launched in user space after a set of one or more kernel software components establish a kernel space during a secure boot up procedure which verifies code signatures in a chain of trust starting from a boot ROM.

### Claim 5 (depends on 4)

The medium as in claim 4 wherein the first daemon determines the expected path from a source of the request to launch the first software component, wherein the source is either a property list that specifics a storage location for the first software component or a user application that presents a graphical user interface which shows icons to allow a user to select an icon to launch the application represented by that icon.

### Claim 6 (depends on 5)

The medium as in claim 5 wherein if the source is the property list then the expected path is the first path and if the source is a third party application displayed in the user application then the expected path is the second path.

### Claim 7 (depends on 6)

The medium as in claim 6 wherein the user application indicates whether the first software component is a platform application or a third party application.

### Claim 8 (depends on 6)

The medium as in claim 6 wherein the protective action is one of: rebooting the data processing system to a restore mode requiring a re-installation of software; rebooting the data processing system to a recovery mode; causing a kernel panic; or disabling the first software component.

### Claim 9 (depends on 3)

The medium as in claim 3 wherein an interprocess communication from a calling software to the first daemon is denied if the calling software does not include a hash in the trust cache.

### Claim 10 (depends on 3)

The medium as in claim 3 wherein the comparison of the expected path to the path taken is done after the first software component begins executing, and wherein the second path is used for software applications and software daemons that are not part of the build and wherein the trust cache is static for the build and is contained in a signed file and wherein an update to any part of the operating system or a platform application requires a new trust cache for a new build which remains static for the new build.

### Claim 11

A machine implemented method comprising:
determining an expected path of a code verification process for a first software component, wherein the code verification process has at least two paths which are different and wherein the first software component is a software application or a software daemon;
causing the code verification process to perform a code verification on the first software component to determine whether the first software component is authentic;
comparing the expected path to the path taken by the code verification process when the code verification on the first software component was performed;
causing a protective action to occur in response to determining from the comparison that the path taken does not match the expected path.

### Claim 12 (depends on 11)

The method as in claim 11, wherein the code verification process records the path taken and wherein the at least two paths comprise: a first path for checking a trust cache of hashes of binaries from a build of an operating system and platform applications and a second path for evaluating a signature of a signed code for a software component.

### Claim 13 (depends on 12)

The method as in claim 12 wherein the expected path is determined by one of: a first daemon which launches software components including software applications and software daemons or a trusted software component.

### Claim 14 (depends on 13)

The method as in claim 13 wherein the first daemon is the first user process launched in user space after a set of one or more kernel software components establish a kernel space during a secure boot up procedure which verifies code signatures in a chain of trust starting from a boot ROM.

### Claim 15 (depends on 14)

The method as in claim 14 wherein the first daemon determines the expected path from a source of the request to launch the first software component, wherein the source is either a property list that specifies a storage location for the first software component or a user application that presents a graphical user interface which shows icons to allow a user to select an icon to launch the application represented by that icon.

### Claim 16 (depends on 15)

The method as in claim 15 wherein if the source is the property list then the expected path is the first path and if the source is a third party application displayed in the user application then the expected path is the second path.

### Claim 17 (depends on 16)

The method as in claim 16 wherein the user application indicates whether the first software component is a platform application or a third party application.

### Claim 18 (depends on 16)

The method as in claim 16 wherein the protective action is one of: rebooting the data processing system to a restore mode requiring a re-installation of software; rebooting the data processing system to a recovery mode; causing a kernel panic; or disabling the first software component.

### Claim 19 (depends on 13)

The method as in claim 13 wherein an interprocess communication from a calling software to the first daemon is denied if the calling software does not include a hash in the trust cache.

### Claim 20 (depends on 13)

The method as in claim 13 wherein the comparison of the expected path to the path taken is done after the first software component begins executing, and wherein the second path is used for software applications and software daemons that are not part of the build and wherein the trust cache is static for the build and is contained in a signed file and wherein an update to any part of the operating system or a platform application requires a new trust cache for a new build which remains static for the new build.
