Skip to main content

PQ-Proof

CI Release PyPI License: MIT Site

Checks that a post-quantum migration is finished, offline, and leaves evidence anyone can recompute.
Give it the code before and after. The same rules judge both, with no AI model in the verdict.


Overview, verification results and the KISA mapping: g1mn.github.io/pqproof

소개, 공개 예제로 돌린 검증 결과, KISA AI 보안 매뉴얼 대응표는 사이트에 있습니다. 참가자가 만든 도구이며 과학기술정보통신부·KISA가 검토하거나 보증하지 않았습니다.


Quick start

pip install pqproof                   # or from source: pip install git+https://github.com/g1mn/pqproof
pqproof doctor                        # external programs found and missing (bash, OpenSSL, keytool, tls_probe)
ex=$(python3 -c 'import os, pqproof; print(os.path.join(os.path.dirname(pqproof.__file__), "_tool", "examples"))')
pqproof "$ex/classic" "$ex/pqc"       # bundled example: RSA and ECDSA moved to ML-KEM-768 and ML-DSA-65, passes
pqproof <original> <converted>        # your two trees
pqproof --verify <output folder>      # recompute the evidence hash and every file hash
pqproof impl judge answers.json       # KpqC implementation: your answers to `pqproof impl prompt` vs pinned reference KATs
FAIL_ON_REVIEW=1 pqproof impl judge answers.json   # in CI: a match with an old version only (needs review) exits 5, not 0

The run writes proof-out-YYYYMMDD-HHMMSS/. Open receipt.html (for people) or receipt.json (for programs); tables/report.md is ready to paste into a document. When the run fails, the console ends with where the full lists are and what to do next. A line that has to stay classical goes into an allowlist with its reason, and a person signs it off (guide/allowlist.md).

Exit code Meaning
0 pass: no check failed or stayed undecided
1 fail
2 usage or input error (no verdict)
3 undecided, for example a TLS server with no address to measure; never counted as a pass
4 tool error: an unexpected exception inside PQ-Proof (no verdict)
5 pass with a check that needs review, only with FAIL_ON_REVIEW=1 (use it in CI for pqproof impl, where an old KpqC version is "needs review")
System Judge two trees pqproof impl --verify, sarif
Linux, macOS yes (bash, OpenSSL; 3.5 or later for the TLS cross-check) yes yes
Windows in WSL yes, Python alone (pq-verify itself runs on macOS and Linux) yes, Python alone

In CI

Three ways to run it in a pipeline: a migration pull request judged against its base commit (pqproof <original> <converted>), a guard on main that judges the tree alone so classical algorithms do not come back (pqproof check ., the Action's mode: check; it does not look at TLS weakening or removed verification, so keep the two-tree run on pull requests), and a first survey with no verdict (pqproof inventory <tree>). The GitHub Action judges a pull request against its base commit and uploads SARIF to code scanning; examples/github-actions/ reads the allowlist from the base commit so an author cannot approve their own entries. GitLab, Jenkins and SonarQube examples are in guide/ci.md. Release assets carry build provenance: gh attestation verify <file> --repo g1mn/pqproof.

Words

Word Meaning
PQ-Proof, pqproof the tool; the Python package and its command
original, converted (fixed) the tree before and after the migration
check, verdict eight checks for two trees (a-cbom, c-classic, b-weakening ...), two more in pqproof impl (i-kpqc, i-nist), and the one verdict they give
blocking location a quantum-breakable public-key use in the converted tree with no recorded reason
allowlist the classical lines a migration keeps on purpose, each with a reason and a reviewer
evidence (검증 증적), evidence hash the output folder, and receipt_id, the SHA-256 of receipt.json in RFC 8785 form
ruleset the rule files (pqlite/version.py); their hash is in every receipt

Documentation

Quick start · Configuration · Allowlist · Outputs · CI · Implementation check · Rules and evidence format (DESIGN.md) · History · Changelog · Contributing · Security

PQ-Proof Agent (g1mn/pq-proof, a Vultr Agent Rush entry) is the AI agent that does the migration; this repository is the offline check. pq-verify tests PQC implementations, and PQ-Proof checks that a codebase finished moving to them. From 0.3.0, pqproof impl checks KpqC implementations against pinned reference KATs without running them, and --pq-verify adds a pq-verify audit of a NIST PQC library to the same evidence (guide/impl.md).

License

MIT © 2026 g1mn

Quotes from the AI Security Threat Mitigation Manual (Ministry of Science and ICT and KISA) on the site and in its data are not covered by MIT; they follow KOGL Type 4 (attribution, non-commercial, no derivatives). Fonts embedded in docs/index.html are under the SIL Open Font License 1.1, and the page includes the license text.

Metadata

Release files for pqproof 0.3.0

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

Source distribution (sdist)

Source distribution for pqproof 0.3.0
File Size Uploaded Provenance Actions
pqproof-0.3.0.tar.gz 2.3 MB With provenance Details for pqproof-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 4.9 MB

Release files / pqproof-0.3.0.tar.gz

Download URL pqproof-0.3.0.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
26d7a91ce71da470eafe8ff15cc2fbfe58ef4109b60fa5e19f28e8f612679e0f
BLAKE2b-256 checksum
How to use checksums
3b41f517a3916911059d474372727e0e46e3950277c5c7df1098a593bf2317ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / pqproof-0.3.0-py3-none-any.whl

Download URL pqproof-0.3.0-py3-none-any.whl
Size 2.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
327c7caa4c3ad72c31a92a358ea65cf1d491d95dc94a59d22f6f2d7538790394
BLAKE2b-256 checksum
How to use checksums
1f46e451348bd6a456fd877dfcdbd63f17b027b0a34f84a64edd2f08e594b267
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for pqproof 0.3.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pqproof-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

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.

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