View as Markdown

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

  1. The app asks for a challenge, then has the device's secure hardware attest its new key with that challenge.
  2. 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.
  3. Every verification checks the device: enrolled, not revoked, certificate from a known root, and hardware-backed.
  1. Challenge
    server-issued
  2. Enroll
    certificate + attestation evidence
  3. Verify
    enrolled, revoked, tier

Key fields

TierMeaningEvidence
sepiPhone hardware key, when the server verifies App Attest; otherwise an iPhone reports softwareA verified App Attest object
strongboxAndroid StrongBox, a dedicated secure chipKey Attestation with security level StrongBox
teeAndroid TrustZoneKey Attestation with security level TEE
softwareNo proven hardware backingEvidence absent, unverifiable or failed
simulatedThe sandbox's software captureNo 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:

FieldTrue when
tier_verifiedApp Attest verified, or a key-attestation chain to Google's root carried the server's challenge
cert_boundThe 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_revoked when a certificate in the chain is revoked or suspended.
  • An enrolled phone whose chain is listed later keeps its tier, but tier_verified turns false and verification.status_list records the certificate and the reason. Its captures add cert_unknown_ca again.
  • 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"

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

StepEndpoint
Get a challenge for the key attestationPOST /v1/attest/devices/enrollment_challenge
Enroll with the certificate and key_attestation_chain (Android) or app_attest_object (iOS)POST /v1/attest/devices
Revoke with a reasonPOST /v1/attest/devices/{id}/revoke

These take your Attest key (the attest scope) and act in its own carrier:

  • The device goes into your key's carrier. A carrier_id that isn't your key's is refused with parameter_invalid.
  • A device_id that is already enrolled is refused with device_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.