Threat model#
Assets: - the integrity of claims (who owns what); - owners' fingerprints, which stay server-side; - the privacy of people checking; - the registry's signing key; - availability.
| Threat | Attack | Mitigation in 0.1 | Planned |
|---|---|---|---|
| Oracle / probing | edit a file and re-check until it stops matching | coarse bands and no scores for anonymous callers; low bands hidden; rate limits; proof-of-work relief only; probing alerts after 5 near-misses per hour; fingerprints never served | randomised responses near thresholds; per-stamp query budgets |
| Fingerprint evasion | rewrite strings, re-encode assets, obfuscate | several independent layers; markers; benchmark tracks robustness | function-level embeddings; asset perceptual hashes for audio and meshes |
| False ownership claim | register someone else's popular build | conflict detection (high or exact overlap with an existing stamp gives conflict status and alerts); verified owners rank first; disputes; suspensions; transparency log; fair-use ceilings per owner | code-signing and store-publisher proof; delegated keys; KYB for paid tiers |
| Claiming third-party components | register a game that bundles common runtimes | default excludes; SHA-256 registered by two or more owners counts only as low; features held by three or more owners ignored; background lists | engine and runtime background packs; NSRL-style known-file sets |
| Griefing with markers | paste another owner's marker into unrelated files | a marker alone gives medium (which becomes ask, not deny); high needs corroborating evidence | signed markers bound to build hashes |
| Signature forgery or replay | forge owner requests; replay a captured request | Ed25519 RFC 9421 signatures over method, authority, path, query and body digest; 5-minute window; nonce cache | key rotation API; hardware-key support |
| Key compromise (owner) | stolen owner.key |
operator can suspend; transparency log shows every change | key rotation and revocation endpoint; multiple keys per owner |
| Key compromise (registry) | forged receipts | key held in an environment variable; JWKS published; daily witness of log heads | key rotation with overlapping validity; external witnesses |
| History rewrite | operator edits past registrations | hash-chained log; signed heads; daily public witness in Git, timestamped with OpenTimestamps; grantstamp audit compares the log with the witness |
Merkle tree log with inclusion proofs; third-party witnesses |
| Operator alters or invents a stamp | the registry changes a title or policy, or registers content under an owner's name | owner claims: every registration and change is signed by the owner's key and published at /v1/stamps/{id}/proof; the DNS verification record names that key; grantstamp audit checks both |
claims required for every stamp; fingerprint-set commitments an owner can verify |
| Storage exhaustion | fill the database with junk stamps | ceilings on stamps and stored features per owner, far lower before a domain is verified; one shared pool for all unverified owners, so many throwaway accounts gain nothing; a ceiling for the whole registry; withdrawing deletes fingerprints; the operator can purge a stamp | paid tiers; per-registry capacity alarms |
| SSRF via webhooks or verification | point a webhook at internal addresses | https only; DNS resolution must be public; no redirects | egress proxy |
| Query privacy | learn what a user is working on | digests only; callers stored as salted hashes; query bundles not stored; k-anonymity exact lookup | private set intersection for exact hashes |
| Denial of service | flood checks | per-caller token buckets keyed on an address the caller cannot forge (the edge's own header, or the right-hand end of X-Forwarded-For); body size limit; proof-of-work; cached status and statistics |
CDN and WAF in front; more than one instance; signed-agent priority lanes |
| Abuse of guidance | trick agents into refusing legitimate work | policies with accepted purposes; licence tokens; medium becomes ask; owner self-check allowed | provider-side appeal flows |
Out of scope: a fully offline attacker who never checks. Grantstamp raises cost and shortens the owner's response time for cooperating ecosystems; it does not make content uncrackable.
Source of this page on GitHub. Documentation for Grantstamp 0.2, licensed CC BY 4.0.