This is the documentation for version 0.4. Read this page for version 0.5, the latest.

Threat model#

Assets:

Threat Attack What limits it today 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 owners must be on record
a registration that overlaps an existing stamp at high or exact is refused
publisher signatures show who signed the files
cases, notices and suspensions
transparency log
fair-use ceilings per owner
store-publisher proof
third-party identity verification
delegated keys
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
a lost key is replaced through a verified domain, the LinkedIn member on record or the operator, after a waiting period in which the current key is alerted and can cancel
owner-driven rotation
multiple keys per owner
Key compromise (registry) forged receipts key held in an environment variable
JWKS published
daily witness of log heads
log heads cosigned by a witness the registry's host cannot sign for
key rotation with overlapping validity
witnesses run by other parties
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
from 0.4, a Merkle tree log that witnesses cosign only when it extends what they saw
witnesses run by other parties, with a quorum
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, sizes and file types only, never file or folder names
callers shown to owners under an id that differs per owner and changes daily, from a key deleted after two days
query bundles not stored
events deleted after 12 months
licence tokens sent only to the stamps they cover
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.

Added in 0.4#

Version 0.4 lets anyone serve the registry's data. A host that serves it is trusted for nothing. The full list of what a host could try is in Mirrors and witnesses.

Attack What stops or limits it What remains
A mirror changes a record or a policy The hash no longer matches the log, or the owner's signature fails Nothing
A mirror hides or adds a match The map piece no longer hashes to the root the log committed to Nothing
A mirror serves an old copy The token service names the current map
a client never accepts a log older than one it saw
old cosignatures are refused
Answers up to 2 hours old
A mirror goes silent or slow The client tries the next mirror, then the registry Slower checks
A mirror tries to read the data It holds keyed tokens. Only the token service can make them, and it counts every one. It can see which parts of the map a client fetches
The registry shows different histories to different people Witnesses cosign only a history that extends what they saw Today the only witness is the project's own. An independent one is needed.
The token service is down Checks at the registry and audits of mirrors do not need it Checks through mirrors stop

Added in 0.3#

Attack What stops or limits it What remains
Stamp someone else's content first An identity on record and a public contact are required
signed executables show their real publisher
an operator case can suspend the stamp
First come, first served: until a case is decided, the earlier stamp holds
Throwaway LinkedIn accounts One member per owner account
the label says "Identity not checked"
fair-use limits
Terms that owners accept
A sign-in proves an account, not a person
Fresh or free domains Domain age is shown
domains under 90 days do not count
free subdomains are refused
An aged domain can be bought
some registries publish no date
Send a verified person a sign-in link to put their name on your account The person must confirm on a page that names the owner account and its key A person who confirms without reading
Pressure an owner with a deadline Only a notice issued by the operator, sent to an address it records, starts a clock
while it runs, agents ask instead of refusing
The operator's judgement
A fingerprint procedure written to match everything Procedures are a fixed set of steps
items under 12 bytes are never hashed
a strong match needs 12 shared items and 60% overlap
items shared by three owners are ignored
Very short content cannot match through a procedure
A forged publisher signature The registry verifies signatures itself, up to a root Microsoft trusts, and checks the issuer's signed revocation list Signed timestamps are not verified
only Windows signatures are read
Reuse someone's signed file to pose as the publisher Becoming a publisher needs a fresh, owner-bound challenge signed with the certificate's key A stolen key that has not yet been revoked
Name the account after a publisher Publisher names are compared only with names the registry proved (a certificate challenge, or the operator's check), exactly
the account's own name is labelled as chosen by the account and cannot contain line breaks or registry wording
A look-alike name a careless reader takes for the real one
Stamp a publisher's signed build to set its policy Agents are told to ask when the file's signer is not proven to be the stamp's owner
the publisher who proves the signature can register over that stamp and agents follow theirs
Unsigned files carry no such evidence
Lock out others with a shared runtime Files signed by a publisher the owner has not proven never block other owners Unsigned runtimes still conflict unless excluded or in the default list
Write instructions into a title or policy message Guidance comes in the registry's fixed wording
owner-written text is returned in separate fields marked as data
single-line fields with length limits
A model that follows text it was told to treat as data
Hide a denied file in a folder with an allowed one The verdict is the strictest decision among matches of medium confidence or more
Slow every upload with an unreachable revocation server Revocation lookups run outside the request loop, with a time budget per upload
a failed list is not fetched again for 15 minutes
signatures per upload are capped
Revocation may be recorded as not checked
A stamp suspended after a case comes back Its owner cannot register the same content again A new account, which must go on record again
Take over an account through recovery Proof by a verified, aged domain, the LinkedIn member on record, or the operator
a 7-day wait during which the current key is alerted and can cancel
at most five open recoveries per account
every step logged
An owner who lost their key and also controls none of the proofs
Confirm a guess from the log Entries about people carry a random salt, published while the data is public and deleted when it is erased Entries written before 0.3.1 are unsalted
One provider's volume starves others Agents can be given a limit of their own A single server's capacity

Source of this page on GitHub. Documentation for Grantstamp 0.4, licensed CC BY 4.0.