Cybersecurity & Cryptographic Architecture

SafePrint Security Threat Model & Cryptographic Guarantees

Designed from first principles to mitigate permanent document persistence in untrusted environments like cyber cafes and printing shops.

1. STRIDE Threat Model & Mitigations

Threat (STRIDE)Attack VectorSafePrint Architectural Defense
SpoofingForging recipient session or link tokens256-bit cryptographically secure random bearer tokens ($2^256$ entropy). Stored as SHA-256 hashes in database.
TamperingModifying encrypted documents or parametersAES-256-GCM authenticated encryption checks 128-bit authentication tags. Any byte tampering causes instant decryption abort.
RepudiationDenying print initiation or accessImmutable access logs with SHA-256 hashed IPs, timestamps, and user agents.
Information DisclosureBearer tokens leaking into server access logs or proxy headersBearer tokens delivered exclusively in URL fragment (#token). URL fragments are never sent across HTTP or recorded in server logs.
Denial of ServiceFlooding upload endpoint or brute-forcing share linksSliding-window IP rate limiting, strict 25MB file upload ceiling, and magic byte validation.
Elevation of PrivilegeAccessing another tenant's files or path traversalUUID storage paths disconnected from user filenames; tenant WHERE clauses enforced at ORM level.

2. Envelope Encryption & Key Lifecycle

Unique Data Encryption Keys (DEKs)

Each document receives a unique 256-bit random key. Ciphertext is stored in an isolated vault. The plaintext DEK is held only in memory during upload and zeroed immediately.

Cryptographic Key Shredding

When a share expires or is manually revoked, SafePrint shreds the encrypted DEK. Even if un-scrubbed raw ciphertext exists in block storage or cold backups, it is mathematically unrecoverable.

3. Technical Realities & Honest Limitations

SafePrint is committed to cybersecurity integrity. We never make scientifically impossible claims:

  • Physical Mobile Cameras: No software can prevent someone pointing a smartphone camera at a physical monitor. Dynamic watermarks serve as forensic deterrents.
  • Physical Printer Verification: Web browsers can verify that the print dialog was invoked, but cannot verify mechanical paper emergence without custom OS agent drivers.
  • Pre-Existing Copies: SafePrint guarantees destruction of server keys and storage objects, but cannot delete documents saved outside our platform prior to revocation.