Open-source code has become the default marketing badge for trustworthy VPN services. When a provider claims their client application is open source and independently audited, users naturally assume that their encrypted traffic is managed by that exact, scrutinized codebase. At 365Finds, we consider this assumption one of the most dangerous blind spots in modern consumer privacy.
The uncomfortable truth is straightforward: you do not run source code on your laptop or smartphone. You run precompiled binary executables—.apk packages on Android, .exe installers on Windows, .dmg packages on macOS, and distribution packages on Linux. If the build pipeline that transforms human-readable text into machine bytecode is opaque, there is zero cryptographic guarantee that the binary running with administrative privileges on your device matches the benign source code visible on GitHub. Reproducible builds exist to close this gap.
The Supply Chain Trap: Trusting Binaries vs. Trusting Code
If a malicious actor, rogue employee, or compromised automated continuous integration (CI) server injects spyware, telemetry hooks, or flawed cryptographic routines during compilation, the public Git repository will remain clean. Security researchers can audit the public source code a hundred times over and find nothing objectionable. Meanwhile, millions of privacy-seeking users download a precompiled installer that quietly transmits DNS queries to a third party or logs tunnel keys.
This is not a theoretical threat. Build infrastructure compromise has repeatedly surfaced across software supply chains. When you install an application that installs virtual network adapters, manipulates system routing tables, and intercepts all outbound network traffic, you grant it total system trust.
A build is reproducible—or deterministic—when anyone using the identical source code, compiler toolchain, and build instructions can recreate byte-for-byte identical output binaries. Without reproducibility, "open source" is merely an assertion of intent, not a verifiable security property.
What Causes Builds to Drift: The Mechanics of Non-Determinism
Compilers were not originally designed to be deterministic. Standard compilation pipelines inject numerous environmental variables into final binaries:
- Timestamps: Compilers and archive tools (such as
ziportar) frequently record the exact second a file was created or compiled. A two-second gap between your build and the vendor's build results in completely divergent cryptographic hashes. - Build Paths: Compilers often embed absolute file system paths (e.g.,
/home/builder/actions-runner/...) into debugging symbols or metadata tables. - File System Ordering: When packaging files into an archive, many systems read directory contents in arbitrary inode order rather than sorted alphanumeric order.
- Locale and Timezones: Date formatting, character sorting, and timezone offsets introduce variable byte sequences into binary headers.
- Dynamic Toolchain Discrepancies: Minor revisions in the Android SDK, Rust compiler, or C library headers alter machine code output even when application code remains untouched.
To achieve bit-for-bit reproducibility, projects standardize the build environment. This involves pinning compilers inside container images (such as Docker or Podman), clamping file modification times using the industry-standard SOURCE_DATE_EPOCH environment variable, sorting archive entries deterministically, and stripping localized path metadata using flags like BUILD_PATH_PREFIX_MAP.
The Signature Dilemma: Can You Verify a Signed Binary?
One technical hurdle routinely confuses users attempting to verify reproducible builds: cryptographic code signing.
When an open-source VPN provider publishes an installer, they sign it with their proprietary private signing key. You do not possess their private key. If you compile the code yourself, your output will either be unsigned or signed with your personal debug key. Therefore, running a simple sha256sum between your local output and the official production installer will always fail.
This does not mean verification is impossible. Verification strategies depend on the packaging format:
Detached Signatures and Unsigned Binaries
On Linux and some desktop packages, vendors can distribute detached cryptographic signatures (such as .asc or .sig files created with GPG or Minisign) alongside the raw binary. In this model, the binary itself is not structurally altered by the signature. You can recompile the binary, verify its SHA-256 hash against the developer's signed checksum manifest, and confirm bit-for-bit equivalence.
Android APK Signature Blocks
Android packages (.apk files) use signature schemes (v2, v3, and v4) that insert a dedicated APK Signing Block into the zip archive without re-compressing the contained files. Specialized tools such as apksigcopier extract the official signature metadata from the published release APK and copy it onto your freshly built unsigned APK. If the compiled bytecode and assets are truly identical, the signature validates cleanly on the newly compiled APK.
Alternatively, developers and automated verification servers (such as F-Droid's verification server) compare the unsigned versions of both packages directly or inspect bytecode discrepancies using differential analysis tools.
Practical Walkthrough: Verifying an Android VPN Client
Mullvad VPN implemented bit-for-bit reproducible builds for its Android application starting with version 2025.2, making it one of the few consumer VPNs providing a verifiable verification path. 365Finds walked through this process to demonstrate how independent verification works in practice.
Step 1: Prepare the Host and Isolated Toolchain
Deterministic builds require identical build dependencies. Mullvad publishes a pinned container image containing the exact Android SDK, NDK, Rust compiler, and Gradle dependencies used in production.
First, clone the official client repository and check out the exact release tag you want to audit:
git clone https://github.com/mullvad/mullvadvpn-app.git
cd mullvadvpn-app
git checkout android/2025.2
Inspect the repository build scripts under building/ and .github/workflows/ to locate the designated build container image tag, then pull it:
docker pull ghcr.io/mullvad/mullvadvpn-app-build-android:<image-tag>
Step 2: Compile the Local Binary Inside the Container
Run the build script within the isolated container, mounting your cloned source tree into the container's designated workspace directory:
docker run --rm -v "$(pwd)":/workspace -w /workspace \
ghcr.io/mullvad/mullvadvpn-app-build-android:<image-tag> \
./building/android/reproducible-build.sh
The script sets SOURCE_DATE_EPOCH to match the timestamp of the Git commit, forces deterministic sorting, and outputs an unsigned APK (e.g., mullvadvpn-android-unsigned.apk).
Step 3: Compare with the Official Release
Download the official .apk installer from the vendor's repository or website:
curl -LO https://github.com/mullvad/mullvadvpn-app/releases/download/android%2F2025.2/MullvadVPN-2025.2.apk
Using apksigcopier, compare your locally built APK with the signed official release:
apksigcopier compare MullvadVPN-2025.2.apk mullvadvpn-android-unsigned.apk
If the underlying classes, compiled Rust libraries, Android manifest, and resource files are identical, apksigcopier exits cleanly with zero errors.
Step 4: Investigating Discrepancies with Diffoscope
If the comparison fails or if you want to inspect why an artifact deviates, use diffoscope. It recursively unpacks archives and analyzes structural differences:
diffoscope MullvadVPN-2025.2.apk local-build.apk --html report.html
Opening report.html in your browser reveals the exact line or byte offset where differences occur. If the difference is confined to an embedded timestamp in a non-executable header, the code is technically sound but non-deterministic. If you spot divergent .dex bytecode or foreign native .so binaries, the binary cannot be trusted.
Platform Realities: Where Reproducibility Hits a Wall
While Android and Linux builds have proven receptive to deterministic compilation, desktop platforms present persistent friction:
- Windows: Microsoft's Authenticode signing embeds cryptographic signatures directly into the Portable Executable (PE) header. Furthermore, proprietary Microsoft C++ compilers (MSVC) and closed-source Windows SDK components make fully open, bit-for-bit containerized builds notoriously difficult to standardize across third-party machines.
- macOS: Apple's developer ecosystem imposes notarization requirements. Binaries must be submitted to Apple's cloud service for automated malware scanning, after which Apple returns a cryptographic ticket that is "stapled" to the
.dmgor.pkgcontainer. This external roundtrip inherently alters the binary container post-build. - iOS: The iOS ecosystem remains completely hostile to user verification. Applications must be signed and distributed through Apple's App Store, meaning users have no supported method to build and verify bit-for-bit parity against the binary downloaded from the store.
For Windows and macOS, the closest practical approach is building reproducible core daemon binaries (such as the Go or Rust WireGuard engines) and comparing their intermediate hashes prior to packaging and platform signing.
The 365Finds Perspective: The Value of Distributed Scrutiny
At 365Finds, we harbor no illusions: fewer than one in ten thousand VPN subscribers will ever boot a Docker container, configure apksigcopier, and compile an open-source VPN client from source. The download requirements, disk space, and command-line knowledge create a formidable barrier to entry.
Does this render reproducible builds irrelevant for everyday users? Absolutely not.
The real power of reproducible builds lies in herd immunity. When an application can be deterministically verified, independent security auditors, F-Droid package maintainers, and automated community watchdogs can verify every single published update. A provider knows that any surreptitious modification to the binary will be immediately caught and publicly exposed.
Without reproducible builds, "open source" is merely an audit of what an engineering team wrote last month, completely disconnected from what runs on your device today. For privacy-first threat models, deterministic verification transforms blind trust into mathematical validation.