Technical Note · Web Systems & Client-Side Security
Client-Side WebAssembly Keystream Obfuscation: Mitigating Static Contact Harvesting with Domain-Bound Micro-Binaries
Abstract
Publishing personal contact endpoints (mailto:, tel:, and messaging URIs) on public web pages exposes individuals to automated bulk harvesting by stateless HTML and regular-expression scrapers. Conventional mitigations—such as character-entity encoding, bitmap rendering, or interactive CAPTCHAs—either fail trivial static parsers, degrade Web Content Accessibility Guidelines (WCAG) compliance for screen readers, or introduce unacceptable interaction friction. This technical note presents the design, threat model, and empirical evaluation of a zero-dependency client-side obfuscation architecture deployed in production at deanprice.com and released as the open-source Go/TinyGo library wasm-contact-cipher. Contact endpoints are XOR-obfuscated at build time against a domain-bound keystream derived from a 64-bit Knuth MMIX Linear Congruential Generator coupled with Stafford’s Mix13 (SplitMix64) bit finalizer, eliminating all plaintext strings from source control, static HTML, and compiled .rodata sections. By compiling Go to WebAssembly via TinyGo (-opt=z -no-debug -panic=trap) and post-optimizing with Binaryen’s wasm-opt -Oz, the production binary shrinks from 2,000.1 KiB (standard Go) to 41.6 KiB raw (17.5 KiB gzipped; 14.7 KiB Brotli)—a 48.1× raw reduction—achieving 0.71 ms median (1.80 ms p95) cold instantiation and 3-channel contact hydration in V8. We combine this micro-binary with static honeypot decoys, capturing-phase pre-hydration guards, Cloudflare Edge streaming HTMLRewriter geo-routing, and build-synchronized Content Security Policy (CSP Level 3) SHA-256 and Trusted Types enforcement.
Summary of Empirical Results
| Toolchain Profile | Raw (KiB) | Brotli-11 (KiB) | Cold Hydration Med / p95 (ms) |
|---|---|---|---|
Standard Go stripped (-ldflags="-s -w") |
1,961.5 | 448.7 | 4.40 / 6.84 |
TinyGo micro (-opt=z -no-debug -panic=trap) |
44.0 | 15.6 | 0.68 / 1.70 |
TinyGo + Binaryen wasm-opt -Oz (Production) |
41.6 | 14.7 | 0.71 / 1.80 |
Publication Metadata
- Author
- Dean Price (ORCID · OpenAlex A5164019827 · Google Scholar)
- Publication Date
- November 27, 2026 (Version 1.0.0)
- Concept DOI
- 10.5281/zenodo.24431839 (resolves to latest version)
- Version 1.0.0 DOI
- 10.5281/zenodo.24431840 (Zenodo landing page)
- Companion Software
wasm-contact-cipher(Software DOI: 10.5281/zenodo.23826355 · pkg.go.dev)- License
- Creative Commons Attribution 4.0 International (CC BY 4.0)
- PDF Checksum
md5:4aeec3adda7a55a987a20712e1777885(4 pages, A4, 468,181 bytes)
Citation
Price, D. (2026). Client-Side WebAssembly Keystream Obfuscation: Mitigating Static Contact Harvesting with Domain-Bound Micro-Binaries (Version 1.0.0). Zenodo. https://doi.org/10.5281/zenodo.24431839
@techreport{price2026wasm_keystream,
author = {Price, Dean},
title = {Client-Side WebAssembly Keystream Obfuscation: Mitigating Static Contact Harvesting with Domain-Bound Micro-Binaries},
year = {2026},
month = nov,
publisher = {Zenodo},
version = {1.0.0},
doi = {10.5281/zenodo.24431839},
url = {https://doi.org/10.5281/zenodo.24431839}
}