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
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 |
| System | Judge two trees | --verify, sarif |
|---|---|---|
| Linux, macOS | yes (bash, OpenSSL; 3.5 or later for the TLS cross-check) | yes |
| Windows | in WSL | 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 (a-cbom, c-classic, b-weakening ...) 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 · Rules and evidence format (DESIGN.md) · History · Changelog · Contributing · Security
Related
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, so the two complement each other.
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.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pqproof-0.2.0.tar.gz | 541.7 kB | With provenance | Details for pqproof-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pqproof-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for pqproof-0.2.0-py3-none-any.whl |
Total release size: 1.2 MB
Release files / pqproof-0.2.0.tar.gz
| Download URL | pqproof-0.2.0.tar.gz |
|---|---|
| Size | 541.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
966297a719c000512ef73d80b2dc615f9bd9448844aba9e4acf878e514792f23
|
|
BLAKE2b-256 checksum How to use checksums |
63792cf78ad04362cdb5e0daf7648d8405d2381d5a4bc1d42bee0b660504f44c
|
| 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 logRelease files / pqproof-0.2.0-py3-none-any.whl
| Download URL | pqproof-0.2.0-py3-none-any.whl |
|---|---|
| Size | 669.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6441ef3bd66cfa4f1a118faaa9d87bb2648721b37ccd70a81c5a582b19856ec
|
|
BLAKE2b-256 checksum How to use checksums |
9beaa4edacdb98bf66270b3368c9753e1733e76d7c03aab2aa41f5a8b82d8c86
|
| 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 logSecurity for pqproof 0.2.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.
Attestation for pqproof-0.2.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 logA 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.