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
- Verification checks the hash, signature, certificate, device, metadata and, for video, the chunk chain.
- Each check that fails adds its factor's points. The total is capped at 100.
- 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.
- Checkshash, signature, device, metadata
- Factorspoints per problem
- Scorecapped at 100 → status
| Score | Status | Suggested action |
|---|---|---|
| 0–30 | verified | Approve automatically. |
| 31–60 | partial | Adjuster review. |
| 61–80 | partial | Enhanced review. |
| 81–100 | failed | Investigation. |
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
| Factor | Points | Applies when | What it usually means |
|---|---|---|---|
signature_ | 70, decisive | The signature fails ECDSA verification | The asset or bundle changed after signing. |
sensor_ | 50 | The image bytes don't match sensor_ | The image was edited after capture. |
frame_ | 50 | A video chunk doesn't match the chain | The video was edited after capture. |
device_ | 80, decisive | The device is revoked in the registry | Check the device registry. |
device_ | 80, decisive | The bundle names an enrolled device but carries another certificate | Another key signed it; see the device registry. |
cert_ | 40 | The certificate isn't from a known root, and isn't the enrolled certificate of a phone whose hardware the server verified | An unknown or self-made device. |
device_ | 20 | The device isn't in the registry | A web upload or unknown device. |
no_ | 60 | There is no bundle at all | Never captured with the SDK; consider screening. |
session_ | 70 | A live session's chain isn't seeded with its nonce | A pre-recorded video presented as live. |
liveness_ | 40 | Live-session chunk timing is inconsistent | Review the recording. |
screen_ | 40 | The screen-or-print check found signs of a photo of a screen or a print | Review the photo; alone it sends a capture to review. |
video_ | 40 | Chunks are missing or out of sequence | The manifest is damaged or partial. |
hardware_ | 40 | A real device couldn't prove hardware-backed keys | Lower assurance capture. Sandbox devices are exempt. |
timestamp_ | 25 | Captured over 72 hours before submission | Old media submitted as new. |
gps_ | 30 | No location | Can't confirm where it was taken. |
biometric_ | 10 | No biometric at capture | Can't tie a person to the moment. |
geofence_ | 20 | Captured far from the claim's loss_ | Only when you send loss_ at attest. |
exif_ | 15 | The JPEG's EXIF time differs from the capture time | The photo may come from earlier. |
exif_ | 15 | The EXIF names an image editor | The photo was opened in an editor. |
exif_ | 5 | A JPEG with no EXIF | Often a re-save or screenshot. |
cross_ | 15 or 30 | The claim shares a location (15) or a device or certificate (30) with another of yours | See 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 / 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 }
}'
import { Provenance } from "@provenanceauth/sdk";
const prov = new Provenance({ apiKey: process.env.PROVENANCE_KEY!, baseUrl: process.env.PROVENANCE_API });
const sim = await prov.mandate.policies.simulateRisk({
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 },
});
import os
from provenanceauth import Provenance
prov = Provenance(os.environ["PROVENANCE_KEY"], base_url=os.environ["PROVENANCE_API"])
sim = prov.mandate.policies.simulate_risk(
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.status | The panel reads | Points |
|---|---|---|
clear | No sign of a screen or a print | 0 |
suspected | Looks like a screen or a print | 40 (screen_) |
not_ | Not checked, with reason: too_ (under 480 pixels on the short side), too_, not_, decode_, timeout or check_ | 0 |
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.