P-03 · Design doc

Leak Tracer

A proposed forensic watermarking system that embeds an invisible, per-viewer mark in video and recovers it from a leaked copy.

Problem

Encryption and DRM protect a video until it reaches a screen. After that, anyone can record it. A watermark unique to each viewer does not stop the leak, but it turns an anonymous copy into a traceable one, which is a strong deterrent for unreleased content.

Goals and non-goals

Goals

  • Embed a per-session ID with no visible artifacts.
  • Recover the ID after re-encoding, scaling, cropping, and screen recording.
  • Serve marked video without re-encoding it for each viewer.

Non-goals

  • Prevent screen recording.
  • Resist many viewers combining their copies to cancel out the mark.

Threat model

Assume a viewer with a legitimate account records the screen and edits the copy to strip the mark before posting it.

Threat model
ThreatActorProposed mitigationResidual risk
Re-encodingLeaker compressing the copyEmbed in mid-frequency DCT coefficients with error correctionVery low bitrates destroy the signal
Geometric editsLeaker cropping or scalingSync pattern to re-align frames before decodingHeavy crops lose payload bits
CollusionSeveral viewers comparing copiesCollusion-resistant codes as a later stageOut of scope for v1

Architecture

Proposed request flow
  1. PackagerPre-renders A and B variants per segment
  2. Edge servicePicks a variant sequence per session
  3. DetectorReads the sequence from a leaked copy
Each viewer gets a unique sequence of two pre-marked variants, so marking costs nothing extra per viewer.

Alternatives considered

Visible overlay

Trivial to build and trivial to crop out.

Re-encoding per viewer

Strong marks, but encoding cost grows with every viewer.

A/B segment variants

Two encodes per segment can serve any number of unique viewers.

Implementation

Simplified detector. Each segment yields one bit, and the error-correcting code recovers the ID even when some segments are damaged.

detector/decode.pyIllustrative
def decode_session_id(segments, reference, code):
    bits = []
    for segment in segments:
        score = correlate(segment, reference.pattern_for(segment.index))
        bits.append(1 if score > 0 else 0)

    return code.decode(bits)

Postmortem

No prototype failure has been recorded yet. This is the first failure scenario to test.

Failure to test
A low-frame-rate screen recording drops the segments that carry payload bits.
Next test
Run the attack suite (re-encode, scale, crop, 24 fps screen capture) and measure the bit error rate after each attack.

Results

No measurements yet. These are the proposed metrics.

  • ID recovery rate per attackNot yet measured
  • Bit error rate before correctionNot yet measured
  • Visual quality of marked video (VMAF)Not yet measured