Attest · Concept
Device registry
The device registry is the list of enrolled capture devices with their certificates and hardware tiers, that lets verification answer whether a device is known, still trusted, and backed by secure hardware.
When to use it
You enroll devices when you run your own capture app, and you revoke a device when it's lost or compromised. Your Attest key does both, in your account's own Attest carrier only. A bundle from a device that isn't enrolled still verifies, with the device_not_enrolled factor.
How it works
- The app asks for a challenge, then has the device's secure hardware attest its new key with that challenge.
- The app enrolls the device with its certificate and that evidence. The server verifies the evidence and assigns the hardware tier itself; a tier the device reports is never trusted.
- Every verification checks the device: enrolled, not revoked, certificate from a known root, and hardware-backed.
- Challengeserver-issued
- Enrollcertificate + attestation evidence
- Verifyenrolled, revoked, tier
Key fields
| Tier | Meaning | Evidence |
|---|---|---|
sep | iPhone hardware key, when the server verifies App Attest; otherwise an iPhone reports software | A verified App Attest object |
strongbox | Android StrongBox, a dedicated secure chip | Key Attestation with security level StrongBox |
tee | Android TrustZone | Key Attestation with security level TEE |
software | No proven hardware backing | Evidence absent, unverifiable or failed |
simulated | The sandbox's software capture | No platform evidence |
An enrolled device with tier software adds hardware_backing_absent to its verifications; sandbox simulated devices are exempt.
With integrity checks on, enrollment also records what the server verified, in device_integrity_evidence.verification:
| Field | True when |
|---|---|
tier_ | App Attest verified, or a key-attestation chain to Google's root carried the server's challenge |
cert_ | The enrolled certificate belongs to the attested key |
When both are true on a phone with a hardware tier (anything but software and simulated), its enrolled certificate counts as known: captures that carry it don't add cert_unknown_ca. On Android, a Play Integrity verdict, when sent, is recorded as supporting evidence and doesn't decide the tier.
Revoked Android attestation keys
With integrity checks on, Provenance also checks every certificate in an Android key attestation chain against Google's attestation status list, refreshed every hour:
- Enrollment is refused with
attestation_key_revokedwhen a certificate in the chain is revoked or suspended. - An enrolled phone whose chain is listed later keeps its tier, but
tier_verifiedturns false andverification.status_listrecords the certificate and the reason. Its captures addcert_unknown_caagain. - When the list can't be fetched for a day, Android hardware tiers count as unverified until a fetch succeeds. Enrollment still succeeds, unverified, with
status_list.state: "unavailable".
Enroll and list devices
Enroll a phone with your Attest key, then list your devices. Without App Attest or a key attestation chain the device is graded software:
export PROVENANCE_API=https://sandbox-api.provenanceauth.com
export PROVENANCE_KEY=prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x
curl -s -X POST "$PROVENANCE_API/v1/attest/devices" \
-H "Authorization: Bearer $PROVENANCE_KEY" \
-H "Content-Type: application/json" \
-d '{ "platform": "ios" }' > /dev/null
curl "$PROVENANCE_API/v1/attest/devices?limit=1" \
-H "Authorization: Bearer $PROVENANCE_KEY"
import { Provenance } from "@provenanceauth/sdk";
const prov = new Provenance({ apiKey: process.env.PROVENANCE_KEY!, baseUrl: process.env.PROVENANCE_API });
await prov.attest.devices.enroll({ platform: "ios" });
const devices = await prov.attest.devices.list({ limit: 1 });
import os
from provenanceauth import Provenance
prov = Provenance(os.environ["PROVENANCE_KEY"], base_url=os.environ["PROVENANCE_API"])
prov.attest.devices.enroll(platform="ios")
devices = prov.attest.devices.list(limit=1)
The response, trimmed, with the certificate shortened:
{
"object": "list",
"data": [
{
"object": "device",
"carrier_id": "car_000000000000000000000000000000c5",
"cert_pem": "-----BEGIN CERTIFICATE-----\nMI…",
"environment": "sandbox",
"enrolled_at": "2026-10-24T13:04:44.255Z",
"revoked_at": null,
"revoke_reason": null,
"hardware_tier": "software",
"device_integrity_evidence": { "platform": "ios", "verification": { "method": "app_attest", "tier_verified": false, "cert_bound": false } },
"webauthn_credential": null
}
]
}
The list holds your carrier's devices only; another company's are never listed.
Enroll and revoke
| Step | Endpoint |
|---|---|
| Get a challenge for the key attestation | POST / |
Enroll with the certificate and key_ (Android) or app_ (iOS) | POST / |
Revoke with a reason | POST / |
These take your Attest key (the attest scope) and act in its own carrier:
- The device goes into your key's carrier. A
carrier_idthat isn't your key's is refused withparameter_invalid. - A
device_idthat is already enrolled is refused withdevice_already_enrolled, so a device is never moved or given a new certificate. - A device in another carrier answers
resource_missing, the same as an unknown ID. - Each enrollment and revocation is in your account's audit log (Settings › Audit log), with the key as the actor.
- A key that isn't on an account with its own Attest carrier gets
attest_not_set_up. Create an Attest key in the console (Developers › API keys).
The evidence is checked the same way for every enrollment. Keys with the admin scope keep POST /v1/admin/devices, which names any carrier.
Revoking is forward-looking: later attestations from the device fail with device_revoked, and earlier ones keep their scores. The native capture SDK produces the enrollment evidence for you.
Limitations: the registry is an enrolled-or-revoked list with root-certificate validation. Android attestation chains are checked against Google's attestation status list; other certificates aren't checked against OCSP or CRLs. iOS enrollment verifies App Attest only when integrity checks are turned on in the server's configuration; otherwise iOS devices enroll as software.