EQTY LabDocs

Chain of Trust

How a signature from the Desktop Notary traces back to the hardware on Linux, macOS and Windows, link by link, and where each chain is weaker.

View as Markdown

Every signature the notary produces sits at the end of a chain: a workload statement is signed by a process key, the process key is issued by the notary’s system key, and the system key is vouched for by the machine’s hardware root of trust. The first two links are the same on every platform. The last one is where Linux, macOS and Windows differ, because each platform offers different hardware evidence.

mermaid
flowchart LR
    HW["Hardware root of trust"] -->|vouches for| SK["Notary system key<br/>identity credential"]
    SK -->|issues| PK["Process key<br/>one per binary"]
    PK -->|signs| W["Workload statements<br/>in the manifest"]
    OBS["Kernel process observer"] -.->|attributes the caller| PK

Two things hold the process key to the binary: the key is minted for the binary’s content hash, and the kernel-side observer, with a re-hash of the live executable at exec and at signing, decides which process may use it. See Security for what that binding does and does not cover.

On Linux the hardware root is a TPM 2.0, and the kernel’s IMA measures every executed file into PCR 10. The notary’s identity credential is a quote over that register, so it proves which notary binary was running when the quote was taken.

mermaid
flowchart TB
    EK["TPM endorsement key<br/>manufacturer certificate"]
    KG["EQTY Key Guardian<br/>credential activation"]
    AK["Attestation key<br/>restricted: quotes and certifies only"]
    IMA["Kernel IMA<br/>measures every exec into PCR 10"]
    Q["TPM2_Quote over PCR 9 and 10<br/>qualifying data: the notary binary's SHA-256"]
    SK["Notary system key<br/>VCompTpmV1"]
    PK["Process key per binary<br/>VCompProcessV1 or VCompContainerV1"]
    W["Workload statements"]
    BPF["eBPF observer<br/>exec, fork, exit, open, close"]
    EK -->|proves a real TPM| KG
    KG -->|issues AK certificate| AK
    IMA -->|PCR 10| Q
    AK -->|signs| Q
    AK -->|TPM2_Certify| SK
    Q -->|evidence inside| SK
    SK -->|issues| PK
    PK -->|signs| W
    BPF -.->|which binary a PID runs<br/>re-hash of /proc/pid/exe| PK
LinkWhat proves it
Hardware to AKThe EK’s manufacturer certificate, and an AK certificate from an EQTY Key Guardian issued after credential activation against that EK.
AK to system keyThe AK’s TPM2_Certify of the system key: both live in the same TPM. The AK is restricted, so it can only ever sign what the TPM itself produced.
Notary binary to credentialThe quote covers PCR 10, where IMA measured the notary binary, and its qualifying data is that binary’s hash. The credential cannot describe a binary that was not measured on this boot.
System key to process keyThe process credential is issued and signed by the system key.
Process key to callerKernel-attested peer PID on the socket, exec seen by the eBPF observer, and a re-hash of /proc/pid/exe at exec and at signing.

Every link is checkable offline from the credential alone, with eqty-notary-verify or the openssl and tpm2-tools commands in Credentials.

On macOS the hardware root is the Secure Enclave. It holds the keys and never releases them, but it offers no quote, no event log and no attestation of keys for daemons, so the chain has no hardware-signed evidence above the system key. What stands in is the daemon’s code signature.

mermaid
flowchart TB
    SEP["Secure Enclave<br/>keys never leave the chip"]
    DEV["Developer ID signature<br/>hardened runtime, notarized"]
    CI["Host-reported code identity<br/>CDHash, team ID, SIP state"]
    SK["Notary system key<br/>VCompSecureEnclaveV1"]
    PK["Process key per binary<br/>VCompProcessV1 or VCompContainerV1"]
    W["Workload statements"]
    KQ["kqueue observer<br/>exec, fork, exit"]
    SEP -->|holds| SK
    DEV -.->|self-reported| CI
    CI -.->|carried in| SK
    SK -->|issues| PK
    PK -->|signs| W
    KQ -.->|which binary a PID runs<br/>re-hash by path| PK
LinkWhat proves it
Hardware to system keyNothing a third party can check. The key is a Secure Enclave key, usable only by code matching the daemon’s designated requirement, but Apple does not attest Secure Enclave keys for daemons. The credential says so with evidenceLevel: host-reported.
Notary binary to credentialThe credential carries the daemon’s CID and its code identity, read by the daemon itself. A verifier trusts the Developer ID signature, not a measurement.
System key to process keyIdentical to Linux: issued and signed by the system key.
Process key to callerKernel-attested peer PID on the socket, exec seen by the kqueue observer, and a re-hash by path at exec and at signing. The re-hash is by path rather than by the exec’d file, which is finding H1 in Security.

The macOS chain is therefore “this notary, signed by EQTY, vouches for this process key”, without “and the notary runs in this specific hardware”. A Mac becomes a hardware root for other machines through a Notary-backed vTPM: the vTPM’s IAK is a Secure Enclave key, and a notary running on it gets a full TPM chain.

On Windows the hardware root is a TPM 2.0 reached through the Platform Crypto Provider. Windows measures its boot into PCRs 0 to 7 and 11 to 14 and keeps the TCG event log, but it has no IMA: nothing measures a service binary. The quote therefore proves the boot state and that the system key is in this TPM, not which notary binary is running. An App Control policy, measured into PCR 13, can pin the notary binary.

mermaid
flowchart TB
    EK["TPM endorsement key<br/>manufacturer certificate, via PCP"]
    AK["Attestation key<br/>P-256, created under the SRK"]
    BOOT["Windows measured boot<br/>Secure Boot, boot manager, CI policies"]
    Q["TPM2_Quote over PCRs 0, 2, 4, 7, 11 to 14<br/>with the TCG event log"]
    CIP["App Control policy<br/>pins the notary by hash, in PCR 13"]
    SK["Notary system key<br/>VCompTpmV1, in the Platform Crypto Provider"]
    PK["Process key per binary<br/>VCompProcessV1"]
    W["Workload statements"]
    ETW["ETW observer<br/>exec, exit"]
    WSL["WSL guest notary<br/>VCompWslV1, keys in the host TPM"]
    EK -.->|certificate carried, no Key Guardian yet| AK
    BOOT -->|PCRs| Q
    CIP -.->|optional| Q
    AK -->|signs| Q
    AK -->|TPM2_Certify| SK
    Q -->|evidence inside| SK
    SK -->|issues| PK
    SK -->|issues| WSL
    PK -->|signs| W
    ETW -.->|which binary a PID runs<br/>image path and NTFS file id| PK
LinkWhat proves it
Hardware to AKThe EK certificate is carried when the TPM has one. The AK is not yet certified by a Key Guardian, so the quote’s signature verifies but nothing ties the AK to a known TPM. The EQTY verifier reports hardware binding not checked.
AK to system keyThe AK’s TPM2_Certify of the system key, as on Linux.
Boot to credentialThe quote covers the boot PCRs and comes with the TCG event log; eqty-notary-verify replays the log and reads Secure Boot state, ntoskrnl.exe, CI.dll and the code-integrity policies from it.
Notary binary to credentialOnly with an enforced App Control policy, measured into PCR 13, whose hash rule names the notary. Without it, the credential names the binary by hash but nothing measured it.
System key to process keyIdentical to Linux.
Process key to callerThe PID owning the loopback TCP connection, exec seen by the ETW observer, and the image path and NTFS file id at signing. A mapped image cannot be modified on Windows, so this check is TOCTOU-free.
Host to WSLThe host notary issues the WSL notary a VCompWslV1 and holds its keys in the host TPM. Everything about the guest except its VM id is guest-reported.

Side by side

LinkLinuxmacOSWindows
Hardware rootTPM 2.0Secure EnclaveTPM 2.0 through the Platform Crypto Provider
Hardware vouches for the system keyYes: EK, Key Guardian AK certificate, quote, certifyNo: self-reported code identityPartly: quote and certify; AK not yet certified
Notary binary measuredYes: IMA into PCR 10NoOnly through an App Control policy in PCR 13
Boot state in the evidencePCR 9 event logNoPCRs 0 to 7 and 11 to 14 with the TCG log
Identity credentialVCompTpmV1VCompSecureEnclaveV1VCompTpmV1; VCompWslV1 for a WSL guest
Caller attributionSO_PEERCRED, /proc/pid/exe re-hashLOCAL_PEERPID, re-hash by pathTCP table owner PID, image path and NTFS file id
Checkable offlineEvery linkSystem key to workload onlyEvery link but hardware to AK

Whatever the platform, a verifier reads the chain from the manifest: executedOn names the system key, registeredBy the process key that signed each statement, and the identity credential’s evidence block holds whatever the hardware could say. What each credential contains is in the Credential Catalog; how to check it is on the Credentials page.