Skip to main content

questio: Forensic PDF Auditor for Detecting Tampered Documents

Someone edited this PDF after it was signed. questio can tell you where.

Edit a PDF in Word, LibreOffice, Acrobat, Preview, Sejda, Foxit, or anything else, and you leave traces behind. Producer strings that shouldn't be there. Font tags reset mid-document. End-of-file markers stacked on top of each other. questio reads all of it and scores the document 0 to 100.

It runs on your laptop. Nothing uploads, ever. Generic mode works on any PDF with zero setup. Train it once on a genuine bank statement, invoice, or contract you already hold, and questio gets surgical: it flags the exact object in the next forgery that does not match.

No cloud. No shared registry. No vendor asking you to trust them. That includes us.


A freelancer receives a signed contract back from a client. The PDF looks identical: same fonts, same layout, same signature block. questio scores it 34/100 and flags an Acrobat edit signature on page 2 plus a font tag drift that does not match the rest of the document. The payment terms paragraph had been rewritten after signing. The diff is now sitting in her terminal.


How it works

1. Editor and producer detection

Every PDF carries metadata saying what tool made it. Microsoft Word, LibreOffice, Canva, Apple Pages, and Google Docs are uncommon for official documents from banks, utilities, HMRC, or enterprise software. questio flags them on sight. Adobe Acrobat, Foxit, PDF-XChange, Sejda, and Nitro are editors, not generators. If one shows up in the metadata of a bank statement, somebody opened the file and saved it again.

Translation: if your landlord sends a "bank statement" whose producer field says LibreOffice, that is the tool noticing.

2. Font session tracking

Every time a PDF is saved, embedded fonts get a random 6-character tag (for example ABCDEF+Helvetica). A clean single-session document has one set of tags. A document edited and re-saved has two. Three save passes leave three sets. This trace survives flattening and is the most reliable signal questio has.

Translation: if someone added a fake line to an invoice, the fake line often carries a different font tag than the rest. questio catches this even when the eye cannot.

3. Revision history mapping

PDFs can be saved incrementally, leaving a literal history of every change stacked inside the file. questio counts the end-of-file markers and, when it finds more than one, tells you which revision modified which page and which objects.

Translation: three end-of-file markers means three save passes. A clean original has exactly one.

4. Acrobat edit signature

Adobe Acrobat's Edit Text tool leaves a particular kind of font object behind (CIDFont). Microsoft Word, Adobe InDesign, Google Chrome, LibreOffice, and most other generators never write these. If one appears in a document that claims to come from a generator that does not use them, Acrobat touched the file.

Translation: this is the surgical catch. When it fires, the forger almost certainly used Acrobat's Edit Text tool.

5. Content stream fingerprinting

Every generator has a drawing handwriting: coordinate precision, operator style, font reference patterns. questio learns these dimensions as a fingerprint and compares them against a stored issuer profile.

Translation: if a document claims to come from InDesign but draws text the way Acrobat does, it was edited.


What questio refuses to do

  • No cloud. There is no hosted version, no "questio pro", no API key. Your documents never leave your machine.
  • No shared fingerprint registry. Fingerprints stay on your laptop. A public registry would be a honeypot for forgers: upload a bad fingerprint, make real documents look fake, or vice versa.
  • No court admissibility claims. questio produces evidence and a score. It does not produce verdicts. Admissibility is your lawyer's job.
  • No GUI. A GUI invites verdict-seeking users. questio's whole point is that you do the thinking.
  • No telemetry. Nothing is logged, uploaded, or phoned home. Verify with the source if you do not trust the binary.

Local-first: why questio never uploads your PDFs

Most PDF-checking tools ask you to upload the file. That creates two problems questio refuses to inherit:

  1. Your sensitive documents reach a third party. Bank statements, legal contracts, payslips, medical records. Even if the service promises to delete them, you have no way to verify.
  2. A central fingerprint database is a liability. Anyone who contributes a fingerprint can poison the registry. A malicious actor could upload a fingerprint that makes forged documents score as genuine, or the reverse.

questio sidesteps both by running entirely on your laptop. Your fingerprints live in ~/.questio/fingerprints/ and never leave. You decide which documents are genuine by training the tool on files you verified yourself. The trust chain starts and ends with you.


Installation

pipx install questio        # or: pip install questio

Requires: Python 3.10+, exiftool

brew install exiftool                      # macOS
apt install libimage-exiftool-perl         # Debian/Ubuntu

Usage

Audit a PDF (default)

questio invoice.pdf

Exit codes

Code Meaning
0 Authentic: trust score >= 80
1 Suspicious: trust score 50 to 79
2 Likely tampered: trust score < 50
3 Error (file not found, exiftool missing, etc.)

Options

--json          Machine-readable JSON output
--verbose, -v   Full structural dump (font details, content stream fingerprint)
--issuer NAME   Verify against a stored issuer fingerprint

Learn an issuer fingerprint

questio learn --issuer three-uk genuine-bill.pdf

Run on several known-good samples from the same issuer to build a reliable fingerprint. Each learn call adds to the existing profile rather than replacing it.

Verify against a known issuer

questio verify --issuer three-uk suspect-bill.pdf

Compares the suspect document's structural dimensions against the stored fingerprint and reports per-dimension confidence scores and any deviations.

Compare two PDFs directly

questio compare reference.pdf suspect.pdf

Side-by-side structural diff: font prefixes, content stream fingerprint, object counts, metadata fields. Useful when you have a confirmed genuine copy to compare against.


Output example

$ questio invoice.pdf

================================================================
  PDF AUDIT -- invoice.pdf
================================================================

  Trust Score: 83/100  ████████████████████████████████░░░░░░░░
  Verdict:     LIKELY AUTHENTIC

  Creator:    Adobe InDesign 19.0
  Producer:   Adobe PDF Library 15.0
  Created:    2024-03-15T14:22:31+00:00
  Modified:   2024-03-15T14:22:35+00:00
  Pages:      1
  Revisions:  1  (%%EOF markers)
  Objects:    47
  Size:       84 KB

  Revision Map
  ----------------------------------------------------------------
  Rev 1:   84.2 KB, 47 objects  [original]

  Findings
  ----------------------------------------------------------------
  v Producer           Adobe PDF Library 15.0 (trusted)
  v Font subsets       3 subsets, consistent prefix ABCDEF
  v Revisions          Single revision -- no incremental updates
  ! Timestamp gap      4s create->modify (low confidence -- sub-minute)
  v Content stream     Matches Adobe InDesign profile
  v Font types         TrueType only -- consistent with declared tool
  v Object count       47 objects -- within expected range
  v File structure     Cross-reference table valid
  v Version            PDF 1.6 -- consistent with producer
  v Coord precision    3 decimal places -- matches Adobe profile

Fingerprint format

Fingerprints are stored as JSON at ~/.questio/fingerprints/<issuer>.json. Each file records the issuer name, number of training samples, and arrays of observed values plus min/max ranges for structural dimensions: font subset prefixes, content stream operator distributions, coordinate precision, font reference style, object counts, and producer strings.

Override the storage directory with the QUESTIO_HOME environment variable:

QUESTIO_HOME=/team/shared/fingerprints questio verify --issuer acme suspect.pdf

Fingerprints are automatically migrated from the legacy ~/.pdf-audit/fingerprints/ path on first run.

Do not import fingerprints from untrusted sources. A fingerprint tells questio what to treat as normal. A poisoned fingerprint from a bad actor could make tampered documents score as genuine.

See docs/FINGERPRINT_FORMAT.md for the complete field reference and hand-authoring guide.


How to check if a PDF has been edited

  1. Install questio: pipx install questio (or pip install questio)
  2. Install exiftool (the only external dependency): brew install exiftool on macOS, apt install libimage-exiftool-perl on Debian/Ubuntu.
  3. Run: questio suspect.pdf
  4. Read the trust score and findings list. Scores above 80 are typically authentic, 50 to 79 are suspicious, below 50 are likely tampered.
  5. For surgical verification of a specific issuer, train questio on a genuine document from that issuer first: questio learn --issuer three-uk real_bill.pdf. Then verify future documents against the trained fingerprint: questio verify --issuer three-uk suspect_bill.pdf.

Who uses questio

  • Journalists checking the authenticity of leaked documents from sources
  • Fraud investigators verifying invoices, expense receipts, and supplier documents
  • Paralegals running initial integrity reviews on client-submitted exhibits
  • Accountants flagging suspect bank statements, payslips, or tax forms
  • Landlords and property managers checking proof-of-income submissions
  • Small-business owners verifying supplier invoices and contractor credentials
  • KYC and compliance teams adding a pre-manual-review filter to document workflows

Limitations

questio is a heuristic tool. It makes educated guesses based on structural evidence. It cannot:

  • Read the visual content of a PDF (it does not OCR text or compare images)
  • Detect a forgery that was recreated from scratch in the same tool the original used
  • Catch a tampering that happened before the PDF was generated (e.g. a doctored spreadsheet exported to PDF)
  • Prove a document is fake. It can only prove that structural evidence is inconsistent with the document's claim.
  • Replace human judgment. Always verify findings manually before acting.

Troubleshooting

exiftool not found

brew install exiftool                     # macOS
apt install libimage-exiftool-perl        # Debian/Ubuntu

False positive on a legitimate PDF Run questio learn on several known-good samples from the same issuer before using questio verify. A fingerprint built from a single sample is too narrow and will flag minor generator variation as suspicious. Three or more samples is the practical minimum.

Fingerprint not loading Check that ~/.questio/fingerprints/<issuer>.json exists. If you were using an older version, fingerprints at ~/.pdf-audit/fingerprints/ are migrated automatically on first run. You can also set QUESTIO_HOME to point at an existing directory.

questio command not found after install Ensure your Python bin directory is on PATH. With pipx: pipx install questio.


FAQ

Q: How do I check if a PDF has been edited after it was created? A: Run questio document.pdf. It scores the PDF 0 to 100 and flags ten kinds of tampering traces: producer metadata that should not be there, font tags stacked from multiple editing sessions, Acrobat-specific font signatures, extra end-of-file markers, timestamp gaps, and content stream patterns inconsistent with the declared generator.

Q: Can questio detect a forged bank statement? A: Yes. questio catches edits from any common tool: Microsoft Word, LibreOffice, Apple Pages, Canva, Google Docs, Adobe Acrobat, Foxit, PDF-XChange, Sejda. Typically multiple traces fire at once: producer metadata, font session tags, and timestamp drift. Acrobat's edit tool fires an extra signature on top of the rest.

Q: Does questio send my PDFs to a cloud service? A: No. questio runs entirely on your machine. It never uploads, phones home, or requires an API key.

Q: What PDF tampering does questio catch that I cannot see by eye? A: Font tag drift across editing sessions, Acrobat-specific font object signatures, incremental save history, mismatched producer metadata, permission-lock abuse, and byte-level drawing instructions inconsistent with the declared PDF generator.

Q: Is questio free and open source? A: Yes. MIT-licensed Python CLI. Install with pip, run against any PDF, no account required.


License

MIT (c) 2026 Nomada Software LLC


Disclaimer

questio is a heuristic forensic tool. Its output is not legal evidence and is not court-admissible. It produces a score and a list of structural anomalies. It does not produce verdicts. Always verify findings manually before making any accusations or decisions. The authors accept no liability for incorrect results.

Metadata

Release files for questio 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for questio 0.1.1
File Size Uploaded Provenance Actions
questio-0.1.1.tar.gz 28.6 kB Without provenance Details for questio-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for questio 0.1.1
File Interpreter ABI Platform Actions
questio-0.1.1-py3-none-any.whl Python 3 none any Details for questio-0.1.1-py3-none-any.whl

Total release size: 51.6 kB

Release files / questio-0.1.1.tar.gz

Download URL questio-0.1.1.tar.gz
Size 28.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5c7e8276ee508dab66b04403d09968aef31f26b656b410adf1e4aeb300246ab7
BLAKE2b-256 checksum
How to use checksums
6416bc4de00ebaafe6473a75b568e24244f59fb415774425a8537e9ed9e879b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / questio-0.1.1-py3-none-any.whl

Download URL questio-0.1.1-py3-none-any.whl
Size 23.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0414fd41fddbfb7628932542abf59bde4bfe1855d09b827984c1a145812907b6
BLAKE2b-256 checksum
How to use checksums
586b13a416a1fcc23e9bef10b74afc830eab7357f4343707a247098f7b36e2f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for questio 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page