Skip to content
Guides

Policies

A policy decides which devices your key accepts and how strictly it judges them. Policies are built in the dashboard and tied directly to API keys, and Root Herald enforces the policies of the key in use. An API key holds exactly one identity policy and up to one posture policy.

Identity vs posture

Identity

Which devices may enroll and be recognised.

Checks
Platforms, chip kind and maker, unverified and revoked chips, a reset or dual-boot chip, and what passes.
Runs
When a device enrolls, and on every verify.
Posture

How a Windows or Linux device booted.

Checks
Secure Boot, the boot stages measured, boot changes, unusual setups, identities per chip.
Runs
When a challenge asks for posture.

Build a policy

In the dashboard, open Policies and choose New identity policy. The builder asks one question at a time, and writes the policy out as a sentence as you go, so you can read back what you've chosen.

1

Choose where to start

Start from a preset if one is close to what you want, or from Blank to answer every question yourself. A preset only fills in the answers; you can still change each one.

Policies · New policy
2

Pick the platforms

Choose the platforms the policy covers. Windows and Linux are selected to begin with; add Mac or iPhone and iPad if the policy should cover them too.

Policies · New policy
3

Pick which chips may enroll

For Windows and Linux, choose the kinds of TPM you accept. Discrete and firmware chips, which carry a certificate from their maker, are accepted to begin with; before you accept cloud machines, read Cloud VMs below, and keep software TPMs for development.

Policies · New policy
4

Decide what a mismatch gets, and what passes

Choose whether a chip outside your list is blocked or warned, whether a chip no maker vouches for, or one its maker revoked, is refused or admitted as unverified, and whether a warning still passes. Blocking, refusing, and passing only clean devices are where the builder starts. To watch before you enforce, warn instead of blocking: the devices outside your list enroll and come back warn.

Policies · New policy
5

Name it

Give the policy a name and create it. Free holds three identity policies; Pro is unlimited and adds posture. To change a policy later, open it from Policies: every question is on one page. A change applies from the next challenge.

Policies · New policy

Posture policies

A posture policy asks about the boot instead: what the boot log must show, which boot stages are measured, what a changed boot gets, whether an unusual setup is flagged, how much one chip may change, and what happens if Pro lapses. Build one the same way, with New posture policy.

Policies · New policy

Attach it to a key

On API keys, drag a policy from the Policies list into a key's identity or posture slot. To set several keys at once, select them and drop the policy on any one of them. A challenge already issued keeps the policy it was issued under, and a policy a key still uses can't be deleted.

API keys

The presets

PresetKindAcceptsNotes
Real hardware onlyIdentityReal TPMs, and iPhones with App AttestThe default for every new key. Cloud VMs, software emulators and Macs are blocked.
Real hardware and cloud VMsIdentityReal TPMs, plus cloud VMs at Azure and Google CloudSee Cloud VMs below.
DevelopmentIdentityEvery class, including emulators and MacsA device outside the list gets a warning instead of a block. Development only.
Secure Boot requiredPostureWhatever the key's identity policy acceptsThe boot chain must replay from a quote-bound event log with Secure Boot on. Needs Pro.

You can attach a preset to a key as it is, or duplicate it and change what you need. The chip classes are on the TPM classes page.

Each check

Which TPMs do you accept?

Discrete chips, firmware TPMs, cloud virtual TPMs and software emulators are classed at enrollment, from the endorsement certificate or, at AWS, from the Nitro attestation document. Every verify checks that class against the policy. A device with any other kind is blocked or warned, as chosen under outcomes. Emulators are recognised from the TPM's own self-report, which the Windows and Linux SDKs both send at enrollment; the report is unsigned and can only ever lower a device's class.

Unverified and revoked chips

A chip whose endorsement certificate does not chain to a maker root we hold, or that has no certificate, is unverified. A chip whose maker revoked its certificate is revoked. Both are refused at enrollment unless the policy admits them. An admitted chip enrolls with a warning and never counts as real hardware, whatever its certificate says. A policy that admits unverified chips admits revoked ones too. A key that does not match its certificate, and a chain that could not be fetched, are refused whatever the policy says.

Block chips that have been reset

A firmware TPM can regenerate its endorsement key and re-enroll as a new device. The silicon certificate above it survives the reset, so a second identity on the same certificate is a reset. This check refuses it at enrollment. Only Intel firmware TPMs enrolled from Windows carry that certificate today; other devices are unaffected.

Devices that switch operating systems

A dual-boot machine has one TPM and one endorsement key, so it is one device whichever operating system it boots. It may enroll from Windows and later from Linux, or the reverse; the switch is recorded when the new enrollment activates, and every verdict for a TPM device reports platformRotated. The identity check refuses the switch at enrollment and blocks a device that already switched. The posture cap counts switches inside the same window as identities per chip, reports platformRotationsInWindow, and blocks the device past the cap. A device cannot change ceremony: a TPM row is never re-enrolled as a Mac or an iPhone.

Macs

A Mac proves it holds a private key that lives in its Secure Enclave and cannot be exported: it signs every challenge with it, so a returning Mac is the same Mac, and the key cannot be copied to another machine. Apple gives the server no way to attest that the key is in silicon yet, so a Mac carries a warning verdict rather than a clean pass and does not count toward the real-device claim. Selecting macOS requires that warnings pass.

iOS

An iPhone or iPad proves it is genuine Apple hardware running your app: Apple attests that the device's key was generated in its Secure Enclave and that your app, as published under your team, asked for it. Every later check is a signed assertion from that key with a counter that only moves forward, so it cannot be replayed from another device. That counts as real hardware and passes clean. There is no boot state to read on a phone, so posture policies do not apply, and the identity is per app and device rather than a machine-wide one.

Outcomes

Every verify ends in one of three words. Pass: the device met every check. Warn: it passed with a warning, such as a Mac, an unusual boot setup, or a TPM outside the accepted set under the warn choice. Block: it failed.

Require Secure Boot

The device sends its boot event log, the server replays it, binds the result to the signed quote and checks the platform key, the Secure Boot state and the revocation list. Needs a posture challenge. A device with no event log, which is most VMs and every software TPM, cannot pass. A log that reports Secure Boot on without an enrolled platform key, the shape of setup or audit mode, fails on its own.

Require the 2023 Secure Boot certificates

Microsoft's 2011 UEFI signing certificate expired in June 2026, and boot software signed since then verifies only against the 2023 certificates. A device whose firmware db still carries only the 2011 certificate cannot install those updates, and stays on a boot manager with known revoked versions. The check reads the db from the quote-bound event log, so it fails closed on a device that sends none.

Boot stages to measure

Firmware, firmware settings, add-in card firmware and settings, the boot manager and the Secure Boot state are each measured separately. All six are measured unless you remove some. A stage that is not measured is not checked.

Flag unusual boot setups

Warns, re-checks or blocks a device whose boot setup is rarer than a threshold among comparable devices, or seen on too few devices to judge. It needs Secure Boot required, since without an event log there is nothing to compare; Cohort prevalence has the details.

Act when a device's boot setup changes

Every posture check with a verified quote writes the device's signed boot measurements to its boot ledger, but only when they differ from the last entry, so a device that boots the same way for a year has one row. With this on, each check is compared with the entry you last accepted for that device: the first set seen under the policy, then whatever a maintenance window accepted since. A change in a watched stage blocks or warns, and the verdict names the stages in bootChangedStages. Set Accept changes until before a firmware or OS rollout: until that instant, a changed set becomes the device's new baseline and the verdict reports bootChangeAccepted. Acceptance is per account, so another customer's window never quiets yours. Stages that change with every OS update, such as the boot manager and Secure Boot state, are the ones to drop from the watch list. Ledger entries are kept for 24 months, except the ones a device or an account still points at.

Limit identities per chip

Counts the identities one silicon certificate has produced in a window, or ever, and blocks the chip past the cap. The rate form tolerates a legitimate reset from a resale or a reimage; the block-on-reset check above does not. Intel firmware TPMs enrolled from Windows only.

If this account's plan lapses

Posture policies only. Block: posture challenges are refused until the plan is restored, so every verify under the key fails. Identity checks only: the policy keeps enforcing its identity half, posture is skipped, and every verdict reports it. Both are loud; neither is a timer to watch.

Signed quote

Always on outside the development preset. A verify whose quote does not verify against the enrolled key never passes clean.

Reference values

Not available. Comparing measurements against stored golden values needs a producer for those values, and nothing produces them yet. The write path refuses strict mode.

Cloud VMs

A cloud virtual TPM is recognised by its provider, so your policy can accept or block it, provider by provider. Accepting a provider means any VM there, not only yours, and nothing says whose account it belongs to.

An Azure or Google Cloud vTPM is accepted on its provider's endorsement certificate alone. At AWS, an EC2 instance's Nitro attestation document names the key at enrollment. The key may be held in software.

On AWS and Azure, Linux VMs only.

Each new VM enrolls as a new device.

Cohort prevalence

Cohort prevalence tells you how common a device's boot configuration is among real devices of the same TPM family, firmware build and Secure Boot platform key. It runs only after every other check passes, and it can add a reason to reject, never remove one. It's a posture check, and off until you turn it on.

Turn it on in a posture policy, under An unusual boot setup?: choose Checked, how rare counts as unusual, whether to compare with all devices or only yours, and what a rare device gets: Warn, Fresh check or Block.

On a posture ask, the verdict's device block reports what it found: cohortKey names the exact configuration, cohortSampleSize counts the devices compared, cohortPrevalence is the lowest share across PCRs 0, 4 and 7, and novelProfile is true while the cohort is too small to judge.

verdict.devicejson
{
  "cohortKey": "c0a7f31e…",
  "cohortScope": "global",
  "cohortSampleSize": 48211,
  "cohortPrevalence": 0.034,
  "cohortPrevalencePerPcr": { "0": 0.91, "4": 0.88, "7": 0.034 },
  "novelProfile": false
}

A new firmware build is rare until adoption grows. Under warn it gets a warning, which a key that accepts only clean passes refuses; cohortPrevalence is left out while the cohort is small. The counts are of distinct devices with authentic evidence, so one device attesting over and over moves nothing.

The key decides the policy

Don't pass a policy field to issueChallenge or verify: whatever it names, the call fails with 400 policy_bound_to_key. And if a key's policy is gone, its calls fail with 422 unknown_policy rather than falling back to another policy.

Finer control

By default, Root Herald enforces the policies on your key for you, strictly, for simplicity. If your application needs finer control than that, process a verdict yourself.