Proof Holdings Threat Model
Security analysis for developers integrating Proof Holdings
TL;DR
Proof Holdings verifies control of digital assets (phone, email and domain; wallet coming soon) without revealing identity. We issue signed proof tokens (ES256 JWT) that can be verified offline via JWKS.
Key security properties:
- Reverse OTP model (user sends to us, not vice versa)
- Constant-time challenge comparison (timing attack resistant)
- Asymmetric signatures (private key never leaves server)
What we don't do: Identity verification, KYC, fraud prevention, permanent records.
Table of Contents
- What is Proof Holdings?
- Security Properties
- What We Store
- Approvals
- Threat Analysis
- Explicit Non-Goals
- Security Recommendations for Integrators
- Cryptographic Details
- Incident Response
- Version History
What is Proof Holdings?
Proof Holdings is a proof-of-control primitive — it answers: "Does this person control this digital asset right now?"
It is NOT:
- An identity provider (we don't know WHO they are)
- A KYC solution (we don't verify identity documents)
- A fraud prevention system (we provide signals, not decisions)
- A permanent ownership record (proofs expire)
Security Properties
What Proof Holdings Guarantees
| Property | How We Achieve It |
|---|---|
| Authenticity | ES256 asymmetric signatures — proofs can't be forged without private key |
| Integrity | JWT structure — any tampering invalidates signature |
| Non-repudiation | Signed by Proof Holdings — we attest to the verification |
| Time-boundedness | exp claim — proofs expire, forcing re-verification |
| Privacy | A verification token carries the identifier only as a SHA-256 hash; a delegation token names the domain and the artifact in clear |
| Offline verification | JWKS public key — verify without API call |
What Proof Holdings Does NOT Guarantee
| Non-Guarantee | Why |
|---|---|
| Current control | Proof attests to control at verification time, not now |
| Identity | Control ≠ identity. We verify control of an asset, not who you are |
| Exclusive control | Multiple people may control same asset |
| Future control | Assets can be transferred, numbers ported, domains sold |
| Intent | We verify control, not what user intends to do |
What We Store
About the person being verified: The phone number, email address or domain being verified, encrypted at rest — no names, no ID documents.
Stored identifiers and credentials are encrypted at rest with AES-256-GCM (see Encryption at Rest).
| Record | Kept for |
|---|---|
| Verification attempts | Deleted 90 days after they are created |
| Webhook delivery records | Deleted 90 days after they are created |
| Web server request logs | Deleted after 30 days |
| Backups | Daily backups kept 90 days; one monthly backup kept a year |
The full list, with the legal basis for each, is in the privacy notice.
Approvals
An approval request is encrypted on the requester's side before it reaches us, and we refuse any that is not. Only someone holding a key that opens it can read it: the business and the approvers it enrolled. An approver decrypts it on their own device.
Each approver gets their own link on Telegram or WhatsApp, and a decision counts only when it is signed with the key enrolled for whoever the link was sent to, unlocked in the browser with their password. A forwarded link alone cannot decide. The record names whose key signed: not who was typing, and not legal identity.
Threat Analysis
Threats We Protect Against
1. SMS Interception (SS7 Attacks)
Traditional OTP vulnerability: Attacker intercepts SMS containing OTP code.
Our mitigation: Reverse OTP — user sends code TO us, not from us. Attacker would need to:
- Know the challenge code (displayed to user in your app UI)
- Send the message from the user's account or number
- Complete within TTL window
Residual risk: If attacker has physical device access, they can complete verification. On SMS, a sender number can be spoofed: inbound SMS is checked against carrier data, and the proof carries the result as its confidence claim (high, standard or degraded) — read it before trusting an SMS proof for a sensitive action.
2. Phishing
Traditional vulnerability: User tricked into entering code on fake site.
Our mitigation: No code travels to the person, so there is no code to steal from a fake "enter your code" page: the person sends the code from their own phone or messaging account to our number or bot.
Residual risk: A phisher can still ask someone to send a code to the phisher's own number. Email verification is the exception to the first sentence: it mails a code and a link, which a fake page can ask for.
3. Credential Stuffing
Traditional vulnerability: Attacker uses leaked passwords.
Our mitigation: Passwordless — no credentials to stuff. Each verification requires current asset control.
Residual risk: None for this attack vector.
4. Replay Attacks
Traditional vulnerability: Attacker reuses captured authentication.
Our mitigation:
- Challenge codes expire (phone: 10 min, email: 30 min, domain: 24 hours)
- Proofs have
expclaim (default 365 days) - Each verification generates unique proof token
iat(issued at) prevents backdating
Residual risk: Valid proof can be replayed within its validity window — this is by design (proofs are meant to be portable). Integrators can control this by setting a shorter proof expiry with the proof_expiry_days parameter (1–365) when creating verifications, or by requiring fresh proofs (iat check) for sensitive actions. See Expiry Recommendations below.
5. Timing Attacks
Traditional vulnerability: Attacker infers information from response timing.
Our mitigation:
crypto.timingSafeEqual()for all challenge comparisons- Constant-time operations regardless of match/mismatch
- No early-exit on partial matches
Residual risk: None for timing-based inference.
6. Brute Force
Traditional vulnerability: Attacker guesses challenge codes.
Our mitigation:
- 6-character alphanumeric (36^6 = 2.1 billion combinations)
- Maximum 3 attempts per challenge
- Challenge expires after attempts exhausted
- Rate limiting per tenant and per IP
- Redis-backed tracking
- Backoff between attempts: 1 s before the second, 2 s before the third
Residual risk: 3/2.1B = 0.00000014% chance per challenge window.
7. Token Forgery
Traditional vulnerability: Attacker creates fake proofs.
Our mitigation:
- ES256 asymmetric signing
- Private key stored securely on server
- Public key only verifies, cannot sign
- Key ID (
kid) enables rotation
Residual risk: Private key compromise would allow forgery — mitigated by server access controls and audit logging.
8. Man-in-the-Middle
Traditional vulnerability: Attacker intercepts API communication.
Our mitigation:
- HTTPS only (HSTS with preload directive)
- Cloudflare proxy with origin IP lockdown
- Webhook signatures (HMAC-SHA256 with timestamp)
Residual risk: Cloudflare compromise would be catastrophic (affects most of internet). Mitigation: Origin server accepts only Cloudflare IP ranges (an nginx allow-list, behind the host firewall), HSTS preload prevents downgrade, webhook signatures (HMAC-SHA256) provide end-to-end integrity independent of transport, and proof tokens are cryptographically signed (ES256) so tampering is detectable even if TLS is compromised.
9. Denial of Service (Request Flooding)
Traditional vulnerability: Attacker sends oversized payloads to exhaust memory.
Our mitigation:
- Request body size limit (10KB max)
- Cloudflare DDoS protection
- Rate limiting per tenant and per IP
Residual risk: Distributed attacks at Cloudflare scale.
10. Server-Side Request Forgery (SSRF)
Traditional vulnerability: Attacker tricks server into making requests to internal resources.
Our mitigation:
- URL validation blocks localhost, 127.0.0.1, private IP ranges
- Blocks .local, .internal, .localhost domains
- Webhook URLs validated before delivery
- DNS rebinding: the hostname is resolved once, every returned address is checked, and the connection goes to the checked address
Residual risk: An internal address the block list does not cover.
11. Path Traversal & Probing
Traditional vulnerability: Attacker probes for sensitive files (.git, .env, admin panels).
Our mitigation:
- Nginx blocklist of attack paths
- Blocks: .git, .env, wp-admin, phpmyadmin, .sql, shell paths
- A fixed list of known attacker IPs, refused at nginx
Residual risk: Zero-day paths not in blocklist.
12. Session Hijacking
Traditional vulnerability: Attacker reuses stolen JWT tokens.
Our mitigation:
- JWT blacklist checked on every request (Redis-backed)
- Logout invalidates token immediately
- Short token expiry with refresh rotation
Residual risk: Token valid until next Redis check (milliseconds).
13. Clickjacking & XSS
Traditional vulnerability: Attacker embeds site in iframe or injects scripts.
Our mitigation:
- Security headers: X-Frame-Options: SAMEORIGIN (approval pages also send
frame-ancestors 'none'), X-Content-Type-Options: nosniff - Strict CORS (production locked to https://proof.holdings)
- Content-Security-Policy headers
Residual risk: Browser without header support (rare, legacy).
Threats We Do NOT Protect Against
1. SIM Swap After Verification
Scenario: User verifies phone, then attacker SIM-swaps the number.
Why we don't protect: Proof attests to control at verification time. Subsequent SIM swap doesn't invalidate the proof — this is correct behavior (proof is a historical attestation).
Mitigation for integrators: Set short proof expiry, require re-verification for sensitive actions.
2. Compromised User Device
Scenario: Attacker has malware on user's phone/computer.
Why we don't protect: If attacker controls the device, they can complete verification as if they were the user. No remote verification system can distinguish legitimate user from attacker with device access.
Mitigation for integrators: Defense in depth — combine with device fingerprinting, behavioral analysis.
3. Social Engineering
Scenario: Attacker convinces user to send verification code.
Why we don't protect: We verify asset control, not user intent. If user voluntarily completes verification for attacker, we have no way to know.
Mitigation for integrators: Clear UI messaging about what verification means and its consequences.
4. Insider Threat
Scenario: A Proof Holdings employee acts maliciously.
Current mitigation:
- Principle of least privilege
- Audit logging
- No access to raw credentials (bcrypt hashed)
Future consideration: Hardware security modules (HSM) could provide additional key protection.
5. Collusion
Scenario: User and attacker work together to create "verified" accounts.
Why we don't protect: If user legitimately controls asset and chooses to help attacker, verification is technically valid.
Mitigation for integrators: This is a business logic problem, not a verification problem.
Explicit Non-Goals
We Are NOT Building:
- Identity Verification
- We prove control, not identity
- Same phone can be controlled by multiple people
- Control of asset says nothing about who you are
- KYC/AML Solution
- We don't collect identity documents
- We don't verify legal identity
- We're a primitive, not a compliance solution
- Fraud Prevention
- We provide signals ("this person controls this phone")
- Fraud decisions are your responsibility
- A verified phone number can still be used for fraud
- Permanent Ownership Record
- Proofs expire by design
- Assets change hands
- Re-verification is expected and encouraged
- Real-time Control Monitoring
- We verify control at a point in time
- We don't monitor ongoing control
- Asset transfer after verification is not detected
Security Recommendations for Integrators
Proof Validation Checklist
1. ✓ Verify signature using JWKS public key
2. ✓ Check `exp` claim (not expired)
3. ✓ Check `iss` claim equals "proof.holdings"
4. ✓ Check revocation list (GET /api/v1/proofs/revoked)
5. ✓ Verify `type` and `channel` match your requirements
6. ✓ For sensitive actions: require fresh proof (check `iat`)Expiry Recommendations
| Use Case | Recommended Expiry |
|---|---|
| Session authentication | 7 days |
| Account linking | 30 days |
| Compliance records | 90 days |
| Low-risk preferences | 365 days |
Set the expiry with proof_expiry_days (1–365) when creating a verification; the default is 365 days. For a window shorter than a day, check iat yourself.
Defense in Depth
Don't rely solely on Proof Holdings. Combine with:
- Device fingerprinting
- Behavioral analysis
- IP reputation
- Rate limiting on your end
- Step-up authentication for sensitive actions
Cryptographic Details
Challenge Generation
Algorithm: crypto.randomBytes(12) with modulo reduction
Alphabet: A-Z, 0-9 (36 characters)
Length: 6 characters
Entropy: log2(36^6) = 31.0 bits
Comparison: crypto.timingSafeEqual()Proof Token Signing
Algorithm: ES256 (ECDSA on P-256 with SHA-256)
Curve: prime256v1 (NIST P-256)
Key distribution: JWKS (/.well-known/jwks.json)
Token format: JWT (RFC 7519)
Note: Production uses ES256. There is no HS256 fallback: without a signing key nothing is signed.Identifier Hashing
Algorithm: SHA-256
Input: Normalized identifier (E.164 for phone, lowercase for email)
Output: 64-character hex string
Purpose: Privacy — a verification token carries the identifier only as this hash; a delegation token names the domain and the artifact in clearEncryption at Rest
Algorithm: AES-256-GCM
Key derivation: HKDF-SHA256 from a master key, one key per key version
Ciphertext: carries its key version, so a rotated key still decrypts older data
Purpose: Encrypt sensitive stored fields (identifiers, webhook secrets) at restWallet Address Validation (wallet verification coming soon)
Ethereum: 0x + 40 hex characters (checksum validated)
Solana: Base58, 32-44 characters
Bitcoin: Legacy (1...), P2SH (3...), Bech32 (bc1...)
Purpose: Reject malformed addresses before verification attemptWebhook Signatures
Algorithm: HMAC-SHA256
Payload: timestamp.body
Header: X-Proof-Signature
Validation: Compare within 5-minute window
Note: Production warns if webhook secret not configured — receivers cannot verify authenticity without it.Incident Response
If You Suspect Compromise
- Revoke affected proofs —
POST /api/v1/proofs/:id/revoke - Check revocation list —
GET /api/v1/proofs/revoked - Contact us — [email protected]
- Require re-verification — Don't trust existing proofs
Our Commitment
- Security issues disclosed via [email protected]
- Critical vulnerabilities: Immediate key rotation capability
- Transparency: Public disclosure after fix (coordinated)
Version History
| Version | Date | Changes |
|---|---|---|
| 1.3 | 2026-10-26 | Corrected to the current implementation (proof lifetime, retry delays, headers, encryption at rest); added What we store and Approvals |
| 1.2 | 2026-02-04 | Added: SSRF protection, WAF blocklist, session hijacking, clickjacking/XSS, BYOC encryption, wallet validation, TL;DR, TOC, related docs |
| 1.1 | 2026-02-04 | Added: exponential backoff, request size limits, DoS protection, HSTS preload |
| 1.0 | 2026-02-04 | Initial threat model |
This document is intended for developers integrating Proof Holdings. For security researchers, please report vulnerabilities to [email protected].
Related Documentation
- API Reference — Endpoints, authentication, webhooks
- Primitives — Core mental model
- Pricing — Plans and verification limits
- SDKs — Official client libraries