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 | Actor | Proposed mitigation | Residual risk |
|---|---|---|---|
| Re-encoding | Leaker compressing the copy | Embed in mid-frequency DCT coefficients with error correction | Very low bitrates destroy the signal |
| Geometric edits | Leaker cropping or scaling | Sync pattern to re-align frames before decoding | Heavy crops lose payload bits |
| Collusion | Several viewers comparing copies | Collusion-resistant codes as a later stage | Out of scope for v1 |
Architecture
- PackagerPre-renders A and B variants per segment
- Edge servicePicks a variant sequence per session
- DetectorReads the sequence from a leaked copy
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.
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