View as Markdown

Attest · Concept

Risk scoring

The risk score is a rule-based number from 0 to 100, that adds fixed points for each problem found on an asset so you can see exactly why a photo or video scored as it did.

When to use it

Use the status to route work: approve verified assets automatically, send partial ones to an adjuster, and investigate failed ones. Use the factors to tell the policyholder what would resolve a problem.

How it works

  1. Verification checks the hash, signature, certificate, device, metadata and, for video, the chunk chain.
  2. Each check that fails adds its factor's points. The total is capped at 100.
  3. The score maps to a status, unless a decisive factor is present: then the status is failed. The same inputs always give the same score; there is no machine learning in it.
  1. Checks
    hash, signature, device, metadata
  2. Factors
    points per problem
  3. Score
    capped at 100 → status
ScoreStatusSuggested action
0–30verifiedApprove automatically.
31–60partialAdjuster review.
61–80partialEnhanced review.
81–100failedInvestigation.

Decisive factors

Three factors each make the asset failed, whatever its score or its other signals:

  • signature_invalid: the bundle changed after signing.
  • device_revoked: the device that signed it is revoked.
  • device_cert_mismatch: another key signed it for an enrolled device.

The factor still adds its points and appears in risk_factors, so the result explains the failure. A claim with any such asset has overall_status: "failed".

Key fields: the factors

FactorPointsApplies whenWhat it usually means
signature_invalid70, decisiveThe signature fails ECDSA verificationThe asset or bundle changed after signing.
sensor_hash_mismatch50The image bytes don't match sensor_hashThe image was edited after capture.
frame_hash_mismatch50A video chunk doesn't match the chainThe video was edited after capture.
device_revoked80, decisiveThe device is revoked in the registryCheck the device registry.
device_cert_mismatch80, decisiveThe bundle names an enrolled device but carries another certificateAnother key signed it; see the device registry.
cert_unknown_ca40The certificate isn't from a known root, and isn't the enrolled certificate of a phone whose hardware the server verifiedAn unknown or self-made device.
device_not_enrolled20The device isn't in the registryA web upload or unknown device.
no_manifest60There is no bundle at allNever captured with the SDK; consider screening.
session_nonce_mismatch70A live session's chain isn't seeded with its nonceA pre-recorded video presented as live.
liveness_check_failed40Live-session chunk timing is inconsistentReview the recording.
screen_or_print_suspected40The screen-or-print check found signs of a photo of a screen or a printReview the photo; alone it sends a capture to review.
video_manifest_incomplete40Chunks are missing or out of sequenceThe manifest is damaged or partial.
hardware_backing_absent40A real device couldn't prove hardware-backed keysLower assurance capture. Sandbox devices are exempt.
timestamp_stale25Captured over 72 hours before submissionOld media submitted as new.
gps_absent30No locationCan't confirm where it was taken.
biometric_absent10No biometric at captureCan't tie a person to the moment.
geofence_mismatch20Captured far from the claim's loss_locationOnly when you send loss_location at attest.
exif_timestamp_mismatch15The JPEG's EXIF time differs from the capture timeThe photo may come from earlier.
exif_editor_trace15The EXIF names an image editorThe photo was opened in an editor.
exif_missing5A JPEG with no EXIFOften a re-save or screenshot.
cross_claim_link15 or 30The claim shares a location (15) or a device or certificate (30) with another of yoursSee linked claims.

The metadata factors (exif_*, geofence_mismatch) are advisory: modest points, and they never fire when the input is missing.

Tune the score for your carrier

A carrier can set its own thresholds, factor weights and required signals with a risk policy in the claims_risk policy domain. Weights are clamped between 0 and twice the default, and a required-signal rule adds an advisory carrier_policy_*_missing factor rather than failing the asset. Thresholds and weights never override a decisive factor. A carrier without a policy scores exactly as this page describes.

Try a draft against sample facts with POST /v1/attest/risk_policies/simulate and a key with the attest scope on the carrier's account:

export PROVENANCE_API=https://sandbox-api.provenanceauth.com
export PROVENANCE_KEY=prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x

curl "$PROVENANCE_API/v1/attest/risk_policies/simulate" \
  -H "Authorization: Bearer $PROVENANCE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "document": {
      "thresholds": { "verified": 20, "partial": 60 },
      "rules": [{
        "id": "fl-water-gps",
        "when": [{ "fact": "claim_type", "op": "eq", "value": "water" }, { "fact": "state", "op": "eq", "value": "FL" }],
        "require": { "signal": "gps" }
      }]
    },
    "facts": { "claim_type": "water", "state": "FL", "gps_present": false, "biometric_present": true, "attested": true }
  }'
{
  "object": "policy_simulation",
  "domain": "claims_risk",
  "score": 20,
  "status": "verified",
  "factors": [
    { "factor": "carrier_policy_gps_missing", "points": 20, "description": "Carrier risk policy requires GPS for this claim, and it is absent" }
  ],
  "thresholds": { "verified": 20, "partial": 60 }
}

Send claim_type and state at attest so the rules can match. You can also edit the policy in the console under Rules → Claims (the score's weights are in its developer editor).

The screen-or-print check

Every captured photo gets a check for signs that it was taken of a screen or of a printed picture: moire from a screen's pixel grid or a print's dot pattern, a flat glare off glass or gloss paper, a bezel or paper edge inside the frame, display banding and, when the device returns depth data, a flat plane at screen distance. The result is on the shot's checks as recapture:

recapture.statusThe panel readsPoints
clearNo sign of a screen or a print0
suspectedLooks like a screen or a print40 (screen_or_print_suspected)
not_checkedNot checked, with reason: too_small (under 480 pixels on the short side), too_blurred, not_a_photo, decode_failed, timeout or check_off0

Capture rules read it as capture.screen_or_print (suspected or clear, absent when the photo wasn't checked), next to capture.risk_score. The factor is never decisive, and its weight can be changed like any other.

Limitations: the check finds many photos of screens and prints, not all. A high-resolution screen photographed from a distance, or a good print in soft light, can pass; a real photo of a patterned surface can fire. It is one factor in the score, not a verdict.

A hardware attestation proves the camera took the photo, not what it pointed at, so it doesn't change this check. The threshold is provisional until the evaluation set of about 1,000 photos is complete; its precision, recall and false-positive rate are published then.

Two separate signals

risk_score says whether Provenance can prove an asset is authentic. A synthetic-media score says whether a third-party detector thinks it looks generated. They are never combined; the detector matters only for an asset that can't be proven, such as one with no_manifest.