Security Whitepaper · v2.4.0

Security Architecture & Cryptographic Integrity

This document outlines the binary hardening, code-signing provenance, origin-locked update cryptography, and local-first data boundary engineered into PDF Viewer by Tcoder LLC.

1. Local-First Document Processing

PDF documents often contain sensitive corporate, financial, legal, or personal records. PDF Viewer parses and renders PDF files strictly inside your local Windows user session via the native OS Windows::Data::Pdf and Direct2D pipelines.

Zero Document Uploads

PDF file bytes and filenames are never transmitted to remote Tcoder LLC servers.

Zero External DLLs

Links exclusively to 14 built-in Microsoft Windows OS Inbox DLLs, preventing DLL side-loading surface.

Offline Continuity

All local reading features operate at full speed with or without internet connectivity.

2. Compiler & PE Binary Hardening

PDFViewer.exe is compiled directly from Modern C++20 source with MSVC (cl.exe /std:c++20 /O2 /Oi /GL /MT /guard:cf) and linked with enterprise exploit mitigations enabled across the entire binary:

/GUARD:CF Control Flow Guard

Compiler-inserted validation before indirect function calls prevents memory-corruption control-flow hijacking across all compilation units and static libraries.

/CETCOMPAT Intel CET Hardware Shadow Stack

Marks the PE binary compatible with Windows Hardware-Enforced Stack Protection to defeat Return-Oriented Programming (ROP) chains on modern CPUs.

/HIGHENTROPYVA 64-Bit High-Entropy ASLR

Combined with /DYNAMICBASE, randomizes executable, heap, and stack mappings across the full 64-bit virtual address space on every launch.

/NXCOMPAT Hardware DEP (No-Execute)

Enforces strict W^X memory page separation so non-code pages such as parsed PDF buffers and heap allocations can never execute as instructions.

PE Overlay = 0 B Clean Standard PE Layout

Zero trailing bytes beyond standard PE section tables, ensuring deterministic static inspection by Windows Defender SmartScreen and enterprise EDR scanners.

asInvoker Least-Privilege Execution

Application manifest enforces standard user privileges with uiAccess="false". PDF Viewer never prompts for Administrator UAC elevation.

3. Extended Validation (EV) Code Signing

Official releases distributed via https://lovepdfviewer.com are digitally signed using a hardware-backed Extended Validation (EV) Authenticode certificate issued to Tcoder LLC and counter-signed with an RFC 3161 trusted timestamp authority.

Windows verifies the Authenticode signature before execution, ensuring that any unauthorized modification to a single byte of PDFViewer.exe invalidates the signature immediately. See our signature verification guide for PowerShell and SignTool commands.

4. Origin-Locked ECDSA P-256 Update Architecture

Software updates use a defense-in-depth cryptographic verification architecture designed to prevent man-in-the-middle tampering, open-redirect hijacking, path traversal, and partial-write corruption:

Layer 1 — Strict HTTPS Origin Pinning

The native WinRT Windows::Web::Http::HttpClient downloader accepts HTTPS URLs strictly matching lovepdfviewer.com or *.lovepdfviewer.com on port 443. Automatic redirects are disabled and every manual redirect hop is re-validated against the pinned domain allowlist.

Layer 2 — Resumable Transport & Bounds Safety

Downloads support HTTP Range Resume (200/206) to .part staging files with an enforced 256 MiB maximum payload ceiling and zero in-place overwriting until verification passes.

Layer 3 — Fixed 64-Byte ECDSA P-256 + SHA-256 Verification

Every PDFVPATCH2 envelope carries independent SHA-256 digests over both its JSON manifest and compressed data store, verified in pure C++20 (FIPS 180-4 SHA-256 + RFC 6979 ECDSA P-256 raw 64-byte R || S signature against an embedded 65-byte SEC1 public key) using constant-time digest comparison.

Layer 4 — Path Sanitization & Atomic Rollback

All target paths reject traversal segments (..), drive colons, and leading slashes. Executable replacement uses NTFS atomic MoveFileExW staging with automatic rollback to the previous verified binary if promotion fails.

Responsible Vulnerability Disclosure

If you discover a security vulnerability in PDF Viewer or on lovepdfviewer.com, please contact our security engineering team directly at security@lovepdfviewer.com . Include reproduction steps, affected version, and environment details. We acknowledge valid reports within 48 hours and coordinate patches prior to public disclosure.