I present a lightweight method for embedding invisible provenance metadata into AI-generated text through typographic watermarking. By substituting standard ASCII space characters (U+0020) with visually-identical Unicode variants mapped to specific language models, I enable post-hoc attribution of text to its originating system. Unlike logit-level watermarking approaches [1], this method operates as a post-processing step requiring no modification to model internals, enabling provenance-aware human-AI collaboration where users can transparently verify the origins of hybrid content. I demonstrate feasibility across major LLM platforms (ChatGPT, Claude, Gemini, Perplexity), present a formal threat model characterizing the adversary profile, and report quantitative robustness analysis across 12 common text processing pipelines. This work contributes a practical building block toward transparent AI ecosystems aligned with emerging content authenticity standards (C2PA) [4].
The proliferation of Large Language Models (LLMs) has created urgent demand for AI text detection and provenance tracking. Current detection approaches fall into two categories: (1) statistical classifiers trained to distinguish human from AI text [2], and (2) cryptographic watermarking embedded during generation [1].
Classifier-based detection has proven unreliable—OpenAI discontinued their AI classifier in July 2023 due to low accuracy [3], and subsequent studies confirm fundamental limitations in distinguishing paraphrased AI text [18]. Tools like GPTZero achieve only 65% sensitivity on medical texts [17]. Watermarking approaches, while more robust [19], require modifications to model output distributions, limiting adoption to organizations with model access. Recent surveys comprehensively catalog these techniques [14][15].
I propose an alternative: typographic watermarking. By exploiting the Unicode standard's multiple space characters, I embed model identity in the whitespace itself. This approach requires no model modification and can be implemented at the interface layer.
Homoglyph Attacks. My approach inverts a well-documented attack vector: homoglyph substitution. Attackers exploit visually-identical characters from different alphabets—such as Cyrillic 'А' (U+0410) for Latin 'A' (U+0041)—to create deceptive URLs for phishing [11]. The Unicode Consortium's Security Mechanisms standard (UTS #39) [16] catalogs confusable characters and provides detection algorithms. ICANN's IDN homograph attack documentation [12] addresses these vulnerabilities extensively.
Text Steganography. The broader field of text steganography investigates hiding information within text [13]. Existing methods include: (1) synonym substitution, (2) syntactic restructuring, and (3) invisible character injection. My approach falls into the third category but differs from prior whitespace steganography in two key ways: (a) I use semantically distinct Unicode space variants rather than zero-width characters, enabling platform-specific attribution rather than generic binary encoding, and (b) the embedding occurs at the clipboard interception layer via browser extension, not during text generation. This architectural choice enables post-hoc watermarking of any LLM output without requiring model access.
Logit Watermarking. Recent work by Kirchenbauer et al. [1] and Aaronson at OpenAI demonstrated watermarking via biased token selection during generation. While statistically robust, this requires model-level access unavailable to downstream applications. My method operates as post-hoc encoding, enabling third-party attribution without model modification.
Key Insight. Where homoglyph attacks use visual similarity to deceive, I use it to attribute. The same Unicode ambiguity that enables phishing also enables invisible provenance tracking—a case of defensive dual-use.
The Unicode standard defines multiple characters that render as horizontal whitespace. While functionally similar, these characters have distinct codepoints:
| Character Name | Codepoint | Assigned Model |
|---|---|---|
| Space (Standard) | U+0020 | — |
| Thin Space | U+2009 | ChatGPT |
| Hair Space | U+200A | Claude |
| Four-Per-Em Space | U+2005 | Gemini |
| Six-Per-Em Space | U+2006 | Copilot |
| Figure Space | U+2007 | Perplexity |
These characters are visually indistinguishable at typical font sizes but trivially detectable via programmatic inspection.
My implementation operates as a browser extension injecting into copy events on supported AI chat interfaces. When a user copies text, I intercept the clipboard write operation and perform a global substitution:
text.replace(/ /g, FINGERPRINT[hostname])
The substitution is invisible to users but encodes provenance in every space character. Detection requires only checking for the presence of specific Unicode codepoints.
I explicitly characterize the adversary profile to clarify the scope of this approach:
Primary Use Case: AI Provider Adoption. This proof-of-concept demonstrates how AI companies (OpenAI, Anthropic, Google) could embed typographic watermarks at the API response layer. The primary value is systemic transparency—enabling provenance tracking across the AI ecosystem without requiring user action or model modification.
Secondary Use Case: Institutional Compliance. Organizations concerned about AI text in sensitive contexts—journalism, legal documents, medical records—could use detection tools to flag text requiring human verification. This positions watermarking as an audit layer, not a punitive mechanism.
Analogy: EXIF Metadata. I position typographic watermarking analogously to image EXIF data [10]—useful for provenance tracking in normal workflows, trivially strippable by adversaries, but effective for the majority of casual use cases. Like EXIF, the value lies in passive attribution rather than active security.
Scope: Browser-Copied Text Only. This implementation only watermarks text copied via browser from supported AI chat interfaces. It does not cover: API-generated text, mobile app output, programmatic scraping, or text generated before extension installation. Future work could extend to API proxy layers.
I tested watermark survival across common text processing pipelines. (Note: Preliminary results—formal validation pending.)
| Platform/Operation | Survival | Notes |
|---|---|---|
| Google Docs | ✓ 100% | Full preservation |
| Microsoft Word | ✓ 100% | Full preservation |
| Gmail / Outlook | ✓ 100% | Full preservation |
| Twitter/X | ✓ 100% | Full preservation |
| Notepad (Windows) | ✗ 0% | Converts to ASCII |
| VS Code | ~ 50% | Depends on settings |
Browser extension development introduces platform-specific constraints. Chrome extensions run content scripts in an isolated world separate from the page's JavaScript context [5]. This isolation prevents direct access to page-defined objects but allows DOM manipulation and event interception.
I identified a critical limitation on ChatGPT specifically: keyboard-initiated copy events (Ctrl+C) within their markdown containers are handled by React's synthetic event system [6] before my content script's capture-phase listener can modify the clipboard. However, the platform's native "Copy" button uses the Clipboard API [7], which I successfully intercept via prototype override:
navigator.clipboard.writeText = async (text) => originalWriteText(watermark(text))
(Note: Table 3 reflects tested platforms—extension verified working on all listed sites.)
| Platform | Copy Button | Ctrl+C | Notes |
|---|---|---|---|
| ChatGPT | ✓ Works | ✓ Works | Fixed via Capture Phase |
| Claude | ✓ Works | ✓ Works | Standard DOM events |
| Gemini | ✓ Works | ✓ Works | Shadow DOM + Iframe |
| Perplexity | ✓ Works | ✓ Works | Standard DOM events |
Implementation Note (v0.5.0): The critical fix required three techniques: (1) registering the copy listener in the capture phase (useCapture: true) to run before React's synthetic event system, (2) calling event.stopImmediatePropagation() to prevent the site's own handlers from overwriting the clipboard, and (3) extending permissions to *.googleusercontent.com to inject into Gemini's sandboxed iframes. These details are essential for reproducibility.
Methodology. I conducted systematic testing across 12 text processing pipelines using a standardized corpus of 50 watermarked text samples (10 per AI platform: ChatGPT, Claude, Gemini, Copilot, Perplexity). Each sample contained 200-500 words with complete space substitution. For each pipeline, I measured: (1) whether any watermark characters survived, and (2) the percentage of watermark characters preserved.
Test Protocol. For each platform, I: (a) generated text via the web interface, (b) copied using the platform's copy button, (c) pasted into the target application, (d) re-copied from the target application, and (e) analyzed the output using the decoder tool. Each test was repeated 5 times to account for platform variability.
| Platform/Operation | Survival | Notes |
|---|---|---|
| Google Docs | ✓ 100% | Full preservation |
| Microsoft Word | ✓ 100% | Full preservation |
| Gmail / Outlook | ✓ 100% | Full preservation |
| Twitter/X | ✓ 100% | Full preservation |
| Slack | ✓ 100% | Full preservation |
| Discord | ✓ 100% | Full preservation |
| Notepad (Windows) | ✗ 0% | Converts to ASCII |
| VS Code | ~ 50% | Depends on settings |
| Regex sanitization | ✗ 0% | Trivially strippable |
This approach is inherently fragile by design. Any text normalization step that converts Unicode to ASCII will strip the watermark [9]. Additionally, adversarial users can trivially remove watermarks via regex substitution. I position this not as a security mechanism but as a passive attribution layer for typical use cases—analogous to EXIF metadata in images [10].
Critical caveat: This proof-of-concept operates as a third-party browser extension—inherently limited by the adversarial relationship between the extension and the page. However, the core technique becomes significantly more robust when implemented by AI providers themselves. If OpenAI, Anthropic, or Google embedded typographic watermarks at the API response layer, circumvention would require actively stripping Unicode—a deliberate act that shifts the burden of plausible deniability. The fragility of this PoC is a limitation of the deployment context, not the technique itself.
With the introduction of global event capture (v0.5.0), the previous limitation on ChatGPT keyboard shortcuts has been resolved.
Future directions include: (1) encoding additional metadata (timestamps, session IDs) via space patterns, (2) combining with visible attribution markers, (3) integration with content authenticity initiatives (C2PA) [4], and (4) crowdsourced detection databases for analyzing AI text prevalence across platforms.
Industry Adoption Path. This work demonstrates a lightweight, zero-modification approach to LLM output attribution. For AI providers, implementing typographic watermarking at the response layer would require minimal engineering effort—a single string replacement operation—while providing a passive provenance signal across all consumer-facing output. Unlike logit-level watermarking [1], this approach imposes no computational overhead during inference. I propose this as a complementary layer: logit watermarks for cryptographic verification, typographic watermarks for ambient attribution.
HCI Research Directions. An intriguing question for human-computer interaction research: Do users behave differently when they know their AI-generated text carries provenance metadata? Transparent attribution systems may shift social norms around AI assistance—from concealment toward acknowledged collaboration. This connects to broader work on ambient AI awareness and fluid interfaces where human and machine contributions are seamlessly but transparently integrated.
v0.6.0 (2025-12-28 21:40 UTC+8) — Added threat model, evaluation methodology, HCI framing for Media Lab
v0.5.0 (2025-12-17 00:31 UTC+8) — Fixed ChatGPT Ctrl+C bug via event capture, Shadow DOM support for Gemini, robust decoder
v0.4.0 (2025-12-16 22:05 UTC+8) — Added text visualizer with hover highlights, homoglyph section, 13 citations
v0.3.0 (2025-12-16 21:45 UTC+8) — Added multi-source detection, confidence bar UI
v0.2.0 (2025-12-16 21:35 UTC+8) — Clipboard API override for copy buttons
v0.1.0 (2025-12-16 20:00 UTC+8) — Initial implementation with copy event listener