Technical Whitepaper
SecureStamp Trust Protocol
An open standard for verified digital sender identity
Abstract
SecureStamp is an open protocol for establishing verifiable digital trust between email senders and recipients. It addresses the growing problem of phishing, impersonation, and fraudulent communications by providing a multi-signal verification layer that works alongside — not replacing — existing email authentication standards (SPF, DKIM, DMARC).
The protocol defines three verification channels (DNS TXT records, HTTP headers, and API registration), a deterministic trust scoring algorithm based on twelve signals across five dimensions, and an append-only audit ledger with signed transparency records. Client plugins for major email clients surface verification results inline, with a privacy-first local ML classifier that never transmits message content.
Trust resolves to a five-level scale (L1–L5). Technical signals alone cap at L4 (probably legitimate); the top level, L5 (Certified), is reached only through a notarial record — an ES256-signed attestation of the message envelope issued at send time and matched at the recipient — combined with an approved business-identity (KYB) check. L5 certifies the origin and envelope integrity of a message, not the truthfulness of its content.
On top of identity, the protocol defines an optional end-to-end encryption layer (Confidential Mail, suite SSCM-1) that lets verified identities exchange messages no intermediary — including SecureStamp — can read, and a channel-trust line (SecureStamp Signal) extending the same notarial backbone to messaging channels.
The Problem
Email phishing remains the vector in over 90% of successful cyberattacks. Despite the widespread adoption of SPF, DKIM, and DMARC, these standards only verify technical authenticity — they do not tell the recipient whether the sender is trustworthy, reputable, or recently compromised.
1.1 Limitations of existing standards
SPF verifies that an IP is authorized to send on behalf of a domain. DKIM verifies message integrity and domain association. DMARC ties them together with a policy. But none of these standards carry context about the sender's intent, reputation, or behavior over time.
A domain can pass all three checks and still be a newly registered phishing domain, a compromised legitimate domain, or a domain spoofing a brand through lookalike registration.
1.2 Recipient experience
Recipients have no reliable, visible indicator of sender legitimacy. Lock icons and green checkmarks are easy to fake visually. The cognitive load of evaluating an email's authenticity falls entirely on the user.
Design Goals
The protocol is designed around four non-negotiable properties:
2.1
Open & Auditable
The protocol specification, scoring algorithm, and ledger are publicly inspectable. No closed black boxes in the trust chain.
2.2
Privacy-First
Message content never leaves the user's device. The ML classifier runs locally. API calls carry only domain/email identifiers, never body text.
2.3
Backward Compatible
Works alongside existing email infrastructure. No changes required to mail servers. Implemented as an opt-in verification layer.
2.4
Decentralizable
The trust registry can be operated by independent nodes. No single entity controls the protocol or can revoke trust globally.
Protocol
3.1 Registration
A sender registers their domain or email at securestamp.online and completes domain ownership verification. Registration creates a stamp record anchored on the audit ledger.
3.2 Publication (three channels)
DNS TXT record — the domain publishes a TXT record at _securestamp.example.com containing the stamp ID and verify URL. This is the most robust channel as it is controlled by the domain owner and queried independently of the email body.
HTTP header — mail servers add an X-SecureStamp SMTP header to outgoing messages. This requires mail server configuration but provides per-message verification with a signed JWT payload.
API registration — senders register with the SecureStamp API directly, enabling real-time verification lookups by receiving clients without DNS propagation delays.
3.3 Verification
When a recipient's plugin encounters an email, it queries POST /api/trust/check with the sender's email or domain. The API aggregates signals from all three channels plus historical reputation data and returns a structured trust response within 200ms (p95).
Trust Model & Notarial L5
The trust score is a deterministic function of twelve signals grouped into five dimensions. The scoring algorithm is open and versioned. Crucially, technical signals describe a floor, not a ceiling: SPF/DKIM/DMARC and reputation are commodity checks that can only attest a message is probably legitimate (L4). They never, on their own, prove who sent a specific message. The single path above that floor is the notarial layer (§4.3).
| Dimension | Signals | Weight |
|---|---|---|
| Email Authentication | SPF, DKIM, DMARC | 30% |
| Domain Reputation | Age, registration, SSL, CT logs | 25% |
| Protocol Registration | SecureStamp registry, stamp validity | 20% |
| Behavioral History | Complaint rate, bounce rate, engagement | 15% |
| ML Classification | Local phishing/scam signals (device-side) | 10% |
4.1 Five trust levels
Signals and the notarial layer resolve to a five-level scale. Levels L1–L4 are a function of technical signals and behavior; L5 requires a notarial match plus an approved identity. Hard override rules can force a message down regardless of score.
- L5 — Certified · Notarial match + KYBThe message envelope matches a notarial record issued by the sender, and the sender holds an approved business-identity (KYB) check. Certifies origin + envelope integrity.
- L4 — Probably legitimate · Technical floorDomain is technically sound (SPF/DKIM/DMARC, reputation) but carries no notarial seal. The most a commodity check can assert.
- L3 — Neutral · MixedSome signals degraded; no strong positive or negative.
- L2 — Suspicious · DegradedMultiple weak or failing signals. Recipient is warned, not blocked.
- L1 — High risk · Failing / blockedCritical signals fail, or a hard rule (admin/compliance override) blocks the message.
4.2 The notarial layer
A sender registers a notarial record at issue time. The record is an ES256-signed attestation over a canonical hash of the message envelope — sender, ordered recipients, and subject — never the body. The recipient's client recomputes the same canonical hash and asks POST /api/verify/email to compare it against the signed record, yielding one of certified_match, token_valid_hash_mismatch, token_invalid or not_registered.
Forgery resistance rests entirely on the signing key, not on secrecy of the scheme: without the issuer's private key an attacker cannot mint a valid record, and altering any covered field changes the hash and breaks the match. Signing keys are rotated and the corresponding public keys are published as a JWKS set (key-id pinned), so any party can verify a signature — current or recently rotated — without trusting SecureStamp at run time.
L5 certifies that a message genuinely originated from the registered sender and that its envelope is intact. It makes no claim about whether the content is true. This boundary is a deliberate, non-negotiable property of the protocol.
4.3 KYB gate
A notarial match alone reaches the certified band only when the issuing organization has passed a business-identity (KYB) review. Until identity is approved, an otherwise-perfect notarial match is capped at L4. This binds the cryptographic claim (“this sender issued this message”) to a vetted real-world identity (“and we verified who that sender is”).
Ledger & Transparency
5.1 Technology
The SecureStamp audit ledger is append-only and records signed transparency entries for stamp issuance, revocation, score changes and abuse events. The production storage model is designed for deterministic reads, tamper-evident hashes and independent verification without exposing private message content.
5.2 What is recorded
Every stamp issuance, revocation, and score change is written to the ledger as an immutable transaction. Ledger entries contain only stamp IDs and cryptographic hashes — never personal data or message content.
5.3 Verification
Any party can independently verify a stamp's authenticity and history by querying the public ledger endpoint at GET /v1/ledger/tx/:txHash.
Client Plugins
The plugin layer surfaces trust signals inline in the user's email client. Available plugins:
Confidential Mail (E2EE)
Confidential Mail is an optional layer that lets two verified identities exchange messages no intermediary — including SecureStamp and the mail providers — can read. Identity verification answers who sent a message; this layer answers only the intended recipient can read it. The two compose: encryption is keyed to identities the protocol can already vouch for.
7.1 Cryptographic suite (SSCM-1)
The default suite is SSCM-1: ECDH P-256 key agreement, HKDF-SHA256 derivation, and AES-256-GCM content encryption. A per-message key encrypts the body and is wrapped for each recipient via an ephemeral ECDH agreement, so recipient key identifiers stay opaque (Bcc is not leaked). All key generation and encryption happen on the client; private keys are non-extractable and never leave the device.
7.2 Verified-identity directory
Senders publish only their public keys to a directory. Directory and preflight responses are themselves ES256-signed (verifiable via the same JWKS as the notarial layer), so a client can confirm it is encrypting to the genuine recipient key and not a substituted one. First-seen keys are pinned (TOFU).
7.3 Recovery & sender proof
Each message carries a sender signature (proof-of-possession) the recipient verifies against the directory, distinguishing a genuine sender from a replay. Users hold an individual recovery file, and organizations may hold a recovery key — both are client-side secrets SecureStamp cannot read. The mode is strict by design: if any recipient lacks an active key the client blocks the send rather than silently downgrading to plaintext. The suite is crypto-agile (SSCM-2 X25519, SSCM-3 post- quantum hybrid are reserved).
Privacy
Privacy is enforced at the architecture level, not through policy:
- —Message body text never leaves the user's device — the ML classifier runs entirely locally (WASM/TFLite).
- —ML reports sent to the API contain only numeric scores and metadata counts, never matched phrases or text excerpts.
- —Plugin analytics events contain only plan tier, event name, and risk level — no email addresses, no sender data.
- —Trust check API receives only the sender's email or domain, not the message content.
- —Confidential Mail is end-to-end encrypted (SSCM-1): the server stores only public keys and opaque ciphertext, and can never read message content or recipient lists.
- —404 error logs store only the URL path and locale — no user identifiers or session data.
Security
9.1 Stamp forgery resistance
Each stamp contains an ES256-signed JWT payload anchored to the ledger. Copying a stamp image provides no benefit — the plugin verifies the signature at verification time, not the visual.
9.2 Plugin threat model
Plugins operate with minimal permissions. Chrome MV3 restricts background page access. Office.js sandboxes the plugin within the Outlook renderer. No plugin has access to the full email body in production mode.
9.3 API security
All API keys are prefixed and hashed before storage. The system supports key rotation without service interruption. All mutation endpoints require valid JWT or API key authentication. Rate limiting is enforced at the Vercel WAF edge before reaching application code.
Roadmap
- Chrome Web Store publication
- Microsoft AppSource submission
- SecureStamp node operator program (beta)
- Multi-node transparency review program
- Public transparency log explorer
- SSTP v1 protocol finalization
- iOS/Android Mail integration
- Enterprise SMTP gateway plugin
- IETF Internet-Draft submission
References
- RFC 7208Sender Policy Framework (SPF)
- RFC 6376DomainKeys Identified Mail (DKIM)
- RFC 7489DMARC
- RFC 9162Certificate Transparency Version 2.0
- SSTP v0.1SecureStamp Trust Protocol spec
SecureStamp Trust Protocol — securestamp.org — protocol@securestamp.org