Authority Is Not a Checksum
When a disputed digital record reaches a regulator or a court, the argument usually opens with authority. External counsel writes on letterhead. An expert lists a doctoral title. The file carries an eIDAS Qualified Electronic Signature, and the viewer shows a green validation badge. Each of these signals tells you who stands behind the document. None of them tells you what matters: what the bytes actually contain.
Trust-by-verification works differently. A SHA-256 digest, a deterministic audit script and an open-source verifier return the same result for anyone who runs them. TgWitness, an MIT-licensed evidence capture tool from PhishDestroy, is built on that model. It uses SHA-256 hash chains, puts an Ed25519 signature on every record, anchors records with RFC 3161 and OpenTimestamps, and ships a local verifier for Windows, macOS, Linux and Docker.
What a Qualified Signature Actually Signs
A PAdES signature does not sign "the document" in the sense a human reader means. The signature dictionary holds a /ByteRange array of four integers that describe two spans: every byte before the /Contents hex string and every byte after it. The signing software hashes those spans, and the digest is signed with a key bound to a qualified certificate.
Successful validation proves two things. The certificate chain identifies the signer, and the covered bytes have not changed since signing. That is useful, and it is the complete list.
The signature never renders a page. It has no idea whether a black rectangle removes text or only sits on top of it. It cannot tell whether a table is complete, whether rows were selected fairly, or whether a text layer under a redaction box still holds personal data. A QES seals a broken redaction with the same mathematical confidence as a correct one.
|
Question |
QES validation |
Local byte-level audit |
|
Who signed? |
Yes |
Out of scope |
|
Bytes unchanged? |
Since signing |
Since capture (SHA-256) |
|
Is redacted text gone? |
No |
Yes (pdftotext) |
|
Is the record complete? |
No |
Partially (row and page counts) |
|
Was selection random? |
No |
Testable (hypergeometric) |
|
How long did assembly take? |
No |
Metadata window (pdfinfo) |
The Benchmark Case Study
The reproducible TgWitness GDPR export case study documents how a major digital platform answered a GDPR Art. 15 access request. The data controller delivered a file titled "Anlage 1". It runs to 830 pages, was generated by Aspose.PDF for .NET 20.8 and carries a valid QES in PAdES format. The signature validates.
Redaction drawn, not applied
The file contains 1,044 solid black vector rectangles painted over an intact text layer. Running pdftotext, or pressing Ctrl+A in any viewer, extracts 905,672 readable characters. That text includes usernames and complaint records of more than 1,800 unrelated third parties.
A 36-second window
Correspondence claimed a month of manual review. The PDF CreationDate reads 19:58:05 and ModDate reads 19:58:41, a span of exactly 36 seconds. PDF timestamps do not disprove preparation that happened outside the PDF. They do prove that the 830-page PDF was assembled in one pass, with no automated check of the surviving text layer.
Non-random visibility
A complaint table holds 1,995 rows: 50 visible, 1,944 covered and 1 blank. Across the full table, a broad profile-related category accounts for 1,148 rows (57.5%) and a security/account-hijacking category for 312 rows (15.6%). Among the 50 visible rows, 43 (86%) are security entries and 0 come from the profile category. If the visible rows were chosen at random, the hypergeometric probability of drawing 43 or more security rows would be p ≈ 6.2 × 10-29. This proves non-random selection. It does not prove motive.
Timeline contradiction
Visible entries from August 2025 allege suspicious activity or password changes. Login History in the same file ends in May 2025. Security History on page 830, itself covered by a black rectangle, records the last password change in July 2024.
Whether these facts engage GDPR Art. 32 (security of processing) or Art. 33 (breach notification) is an open legal question for supervisory authorities and courts. The engineering finding stands on its own: the signature was valid, and it said nothing about any of this.
A Practical Offline Audit Workflow
The steps below run offline with poppler-utils and qpdf, and any analyst can reproduce the output. Pin the evidence state first:
# 1. Fix a reference digest before analysis sha256sum export.pdf > export.pdf.sha256 # 2. Producer, pages, dates, XMP metadata pdfinfo export.pdf && pdfinfo -meta export.pdf # 3. Measure the extractable text layer pdftotext export.pdf - | wc -m # 4. Check a page that should be fully redacted pdftotext -f 830 -l 830 -layout export.pdf - # 5. Inspect structure and incremental updates qpdf --show-xref export.pdf grep -a -o '%%EOF' export.pdf | wc -l
Step 1 creates the baseline. Running sha256sum -c export.pdf.sha256 at the end shows the file did not change during analysis. Step 2 shows the Producer string and the time between creation and modification. Step 3 is the fastest redaction test: if a document that should be mostly blacked out yields hundreds of thousands of characters, the redaction is cosmetic. Step 4 targets a page where the correct output is empty. Step 5 reveals incremental updates. A signed PDF normally has at least two %%EOF markers, because the signature itself is appended as an update. Any revision beyond that was added after the original save, so compare the last signed /ByteRange against the total file length to see whether bytes exist outside the signature's coverage.
TgWitness applies the same discipline when it captures evidence. Every record is hash-chained, signed with Ed25519 and timestamped, and the TgWitness verifier recomputes all of it offline.
One rule is absolute. If extraction exposes third-party personal data, do not republish it, paste it into tickets or attach it to public reports. Record counts, hashes and page numbers, and hand raw material only to the competent authority.
Zero-Trust Export Design: The TgWitness Model
Export systems should not be black boxes backed by a seal. A verifiable design has four parts.
Redaction is physical. Excluded values are deleted from the data model before rendering, so no text layer, content stream or embedded font subset ever contains them.
Every field, released or withheld, gets a salted commitment: c = SHA-256(salt || value) with a fresh 16-byte random salt. Commitments ship with the export. In a dispute, the controller opens selected salt and value pairs to the regulator or court, which can check them against the published commitments without seeing anything else.
A signed manifest lists every file hash and the exact filter predicates used to include or exclude rows. Selection logic then becomes auditable instead of asserted.
An asymmetric escrow envelope carries the unredacted set. The payload is encrypted with AES-256-GCM, and the content key is wrapped with OpenPGP or RSA-OAEP-256 to the public key of the regulator or court. The infrastructure already exists: Germany's BfDI publishes OpenPGP keys, and German courts accept filings through EGVP/OSCI.
None of this needs new law. It needs engineers to stop treating a signature as a statement about content. Credentials ask for trust. Cryptography lets anyone verify.
Try TgWitness
TgWitness applies this model to messaging evidence today: every captured record, edit and deletion is hash-chained, signed with Ed25519 and timestamped, and the export ships with an offline verifier anyone can run. It is free, MIT-licensed, runs locally on Windows, macOS, Linux and Docker, and supports 25 interface languages. The full forensic walkthrough of the 830-page export lives in the TgWitness documentation linked above.
