Why AI detection isn’t enough (and what to do instead)
If you’re running a typing test site, you’ve probably been asked to “prove this was human-written.” Today’s AI-text detectors aren’t a reliable answer: OpenAI took its own classifier offline in July 2023 “due to its low rate of accuracy.” (openai.com) Robust studies also show fairness problems: one well-cited paper found that more than half of non-native English writing samples were misclassified as AI-generated, while native samples were largely labeled correctly. And simple style prompts can evade detectors. (arxiv.org) In short, detectors remain brittle and biased.
A better path is provenance. Instead of guessing who wrote the text, we publish verifiable context about how it was created. That’s what the Coalition for Content Provenance and Authenticity (C2PA) enables via cryptographically signed “Content Credentials.” (spec.c2pa.org)
What C2PA brings to text now
C2PA 2.4 explicitly adds support for embedding manifests in structured text formats—think Markdown, YAML, source code, and even HTML—so provenance can travel with your article, not just with images or video. (spec.c2pa.org) The spec also ships a Content Credentials JSON (crJSON) view to make manifests easier to inspect programmatically (it’s a derived, human-readable representation—not an input format). (spec.c2pa.org)
Why this matters now: the ecosystem is moving fast. Google joined the C2PA steering committee in February 2024; Adobe automatically attaches Content Credentials to many Firefly AI outputs and has Inspect tools for viewing credentials; and OpenAI began adding C2PA metadata to DALL·E-generated images with public verification tools. (c2pa.org) Content provenance is crossing the chasm from “nice idea” to widely supported practice. TIME even reported the Content Authenticity Initiative (CAI) community surpassed 3,000 members by late 2024. (time.com)
The idea: “Typed-Here” keystroke provenance
Detectors try to classify your text. Provenance lets you prove the process. Here’s a privacy-respecting approach you can ship:
1) Collect minimal, timestamped events during the test
- Record keydown/keyup category (e.g., char, space, backspace, enter), a coarse key code, and a monotonic timestamp delta from test start. Avoid logging the actual characters to protect privacy.
- Normalize the stream (e.g., collapse repeats, strip OS-specific quirks).
2) Hash privately; publish only digests
- Derive per-session salt using an on-device random seed.
- Compute a rolling hash or Merkle tree over the normalized events to produce a root (eventsRoot). Optionally include aggregate stats (duration, median inter-key interval, backspace/edit rate) that don’t reveal content.
- Never store raw keystrokes in the credential by default; keep them server-side under user control for opt-in audits.
3) Bind eventsRoot to the exact text
- Hash the canonical text (e.g., normalized Markdown) as textHash.
- Create a soft binding between eventsRoot and textHash so verifiers know “this specific text was produced during this specific session.” C2PA provides standard bindings for assets; you’ll add a custom assertion to bridge keystrokes↔text. (spec.c2pa.org)
4) Write a C2PA manifest with a custom assertion
- Use a namespaced label like `com.yoursite.keystrokes.v1` containing fields such as `eventsRoot`, `startedAt`, `endedAt`, `samplingHz`, and optional coarse aggregates. C2PA explicitly supports entity-specific namespaces and custom assertions. (spec.c2pa.org)
- Include a standard `c2pa.actions` assertion with `c2pa.created` to indicate a new asset was created (avoid over-claiming: don’t label it “AI” or “not-AI”—just record process facts). (spec.c2pa.org)
5) Embed and sign alongside the text
- With C2PA 2.4 you can embed the manifest directly into Markdown or other structured text so the credential travels with the file. (spec.c2pa.org)
- Sign the manifest with your site’s credential (enterprise CA or a provenance service). Vendors like DigiCert have begun shipping C2PA-aware signing and sidecar workflows, and the CAI publishes open-source SDKs and a CLI (`c2patool`) you can use today. (docs.digicert.com)
Result: you’ve attached a cryptographic, privacy-preserving “typed-here” stamp to the exact text produced on your site—portable across Markdown, docs, repos, and CMSes.
Threat model: what this stops—and what it doesn’t
Stops (or raises the cost of):
- Copy/paste of AI output. Without the keystroke proof, pasted text lacks your `eventsRoot` signed by your domain.
- After-the-fact edits without provenance. Edits that drop credentials or fail verification are visible in Inspect tools. (helpx.adobe.com)
Still possible (be transparent):
- A user could retype model output. Keystroke provenance proves human input on your device and timeline; it does not prove human ideation. That’s by design: C2PA records process facts, not truth claims. (spec.c2pa.org)
- Compromised devices or scripted input. As with any telemetry, extremely advanced spoofing is imaginable; the defense is layered signals, signatures, and audits.
Ship it: a one-click “Attach Content Credentials” flow
Here’s a practical blueprint for your product team:
- UX: After the timer hits 0, show a toggle: “Attach Content Credentials (typed-here proof).” On enable, export the article + manifest as `.md` (embedded) or `.md` + `.c2pa` sidecar.
- Backend:
2. Normalize keystrokes, compute `eventsRoot` (e.g., salted SHA-256 Merkle root).
3. Build manifest: `c2pa.actions` (`created`), `com.yoursite.keystrokes.v1` payload, and standard content bindings.
4. Sign using your service key; attach to asset per the 2.4 structured-text embedding appendix. (spec.c2pa.org)
5. Offer a QR/link to “View Content Credentials” in a verifier (Adobe Inspect / CAI Verify). (helpx.adobe.com)
- Tooling:
- CAI Open-Source SDKs (JS/Node/Rust) and `c2patool` CLI for creating and validating manifests. (opensource.contentauthenticity.org)
- Managed options like DigiCert Content Trust Manager if you prefer hosted keys and policy controls. (docs.digicert.com)
Practical tips for privacy-safe keystroke hashing
- Hash, don’t store: keep only salted digests in the manifest; store raw events server-side with strict retention and user opt-in.
- Coarsen timestamps: quantize to, say, 5–10 ms buckets to blunt side-channel risks while preserving rhythm.
- Redaction: C2PA lets later claims redact some assertions; treat the keystroke assertion as non-redactable for your flow, so removal breaks verification. (spec.c2pa.org)
- Don’t over-promise: pair the credential UI copy with clear language—“Proves it was typed here, not whether AI helped ideation.”
What readers will see (and how they can verify)
- In Inspect/Verify tools, readers see your domain as the signer, the created-action, your custom `com.yoursite.keystrokes.v1` assertion, and a green check if the signature and trust chain validate. They can upload the file to Adobe’s Inspect or the CAI Verify page; power users can run `c2patool` locally. (helpx.adobe.com)
Bottom line
Detectors still miss—and sometimes unfairly flag—human writers. (arxiv.org) Content Credentials give you something firmer: a signed, portable record that your article was actually typed here during a real session. With C2PA 2.4 enabling manifests in Markdown and a growing vendor ecosystem, you can ship “typed-here” provenance with a single button—and finally move the conversation from speculation to verification. (spec.c2pa.org)