Skip to main content

PostShor

CI License: Apache-2.0 Python 3.11 | 3.12 | 3.13 Quantum Readiness Score v1 draft GitHub Marketplace

PostShor

Find every piece of quantum-vulnerable cryptography in your software, and get the plan to fix it.

PostShor scans source code, dependencies, certificates, keys, server configuration, infrastructure-as-code and live TLS endpoints for cryptography that a quantum computer will break. It produces a prioritised migration plan, a standard CycloneDX cryptography bill of materials (CBOM), and an open, comparable Quantum Readiness Score.

pip install postshor
postshor scan .
 CRITICAL  RSA-OAEP encryption  PY-RSA-OAEP
           app/crypto.py:14  return public_key.encrypt(data, padding.OAEP(...))
           fix: Migrate to ML-KEM-768 (FIPS 203), deployed as the hybrid X25519MLKEM768 during the transition. ...

 CRITICAL  nginx ssl_ecdh_curve excludes post-quantum hybrid groups  CFG-NGINX-CURVES
           deploy/nginx.conf:4  ssl_ecdh_curve X25519:prime256v1;

Summary
  Files scanned:  1,284
  Findings:        3 critical   11 high   4 medium   9 low   6 info
  Quantum Readiness Score (QRS v1.0): D (44/100)
  Harvest-now-decrypt-later exposure detected: fix CRITICAL findings first.

Why now

  • The replacements are standardized. NIST published ML-KEM (FIPS 203), ML-DSA (FIPS 204) and SLH-DSA (FIPS 205) in August 2024.
  • The deadlines are set. NIST plans to deprecate RSA and elliptic-curve cryptography after 2030 and disallow them after 2035. The EU roadmap requires high-risk systems to migrate by 2030, and NSA's CNSA 2.0 has similar dates.
  • The attack has already started. Data encrypted with RSA or ECDH today can be recorded and decrypted once a quantum computer exists (harvest now, decrypt later). You cannot migrate what you cannot find.

What it finds

Surface How Examples
Source code 188 rules for Python, JavaScript/TypeScript, Java/Kotlin, Go, C/C++, C#, Rust, PHP, Ruby, Swift rsa.generate_private_key, KeyAgreement.getInstance("ECDH"), crypto.createECDH, OpenSSL/mbedTLS/wolfSSL calls
Dependencies 57 known crypto libraries across PyPI, npm, Go, Cargo, Maven/Gradle, NuGet, Composer, RubyGems pycrypto, node-forge, elliptic, Go toolchains older than 1.24
Certificates & keys Parses PEM/DER/PKCS#12/OpenSSH RSA-1024 certs, CA certs valid past 2035, private keys committed to the repo
Server configuration nginx, Apache, HAProxy, OpenSSL, OpenSSH TLS groups without X25519MLKEM768, SSH without mlkem768x25519-sha256, no TLS 1.3
Infrastructure-as-code Terraform, cloud KMS, cert-manager tls_private_key RSA, ECC_NIST_P256 KMS keys
Live endpoints Active TLS 1.3 probe Does the server actually negotiate hybrid post-quantum key exchange?

It also reports what you have already done right: ML-KEM, ML-DSA, hybrid groups and post-quantum libraries are recorded as positive evidence.

Probing live servers

postshor tls example.com api.example.com:8443
postshor tls -i hosts.txt -o tls-report.html

The probe sends a TLS 1.3 ClientHello that offers a single key-exchange group and no key share. A server that supports the group must answer with a HelloRetryRequest naming it. That proves hybrid ML-KEM support without generating any key material, and it works with any server.

Reports

Write as many as you need in one run; the format comes from the file extension:

postshor scan . -o report.html -o cbom.cdx.json -o results.sarif -o summary.md -o results.json
File Format For
.html Self-contained executive report: grade, deadlines, three-phase migration plan, filterable findings Leadership, auditors
.cdx.json CycloneDX 1.6 CBOM (validated against the official schema) Compliance, asset inventory, CERT-In / regulator requests
.sarif SARIF 2.1.0 GitHub code scanning, IDEs, Azure DevOps
.md Markdown summary with badge Pull-request comments, CI job summaries
.json Complete native output Automation

See docs/examples for sample output.

In CI

GitHub Actions:

permissions:
  contents: read
  security-events: write
steps:
  - uses: actions/checkout@v4
  - uses: postshor/postshor-action@v1
    with:
      fail-on: critical      # block new harvest-now-decrypt-later exposure

Findings appear in GitHub code scanning; the job summary shows the score and migration plan. See postshor/postshor-action for all inputs; it is also listed on the GitHub Marketplace.

pre-commit:

- repo: https://github.com/postshor/postshor
  rev: v0.2.0
  hooks: [{ id: postshor }]

Docker: docker build -t postshor https://github.com/postshor/postshor.git && docker run --rm -v "$PWD:/src" postshor scan .

Adopting on an existing codebase

postshor baseline .                       # record today's findings
postshor scan . --baseline .postshor-baseline.json --fail-on high

New problems fail the build while the backlog is migrated at your own pace.

Configuration

.postshor.toml in the scanned directory:

exclude = ["third_party/**", "docs"]
disable_rules = ["JOSE-RSA-SIG"]
fail_on = "critical"
min_severity = "low"
tls_targets = ["api.example.com"]
downgrade_tests = true          # cap findings in tests, fixtures, examples and docs at LOW (default)

Suppress a single line with a postshor:ignore comment on it or on the line above.

Quantum Readiness Score

Every scan produces a score from 0 to 100 and a grade from A to F, following the open QRS v1 specification. Severity reflects when the risk becomes real: key exchange and encryption are CRITICAL because they can be harvested today; signatures are HIGH because forgery needs a working quantum computer. Any critical finding caps the grade at C.

Show it in your README with postshor scan . --badge:

quantum readiness

How to read the results

PostShor uses pattern matching and real parsing (certificates, keys, manifests, TLS handshakes). It is a discovery and prioritisation tool:

  • A finding means "a quantum-vulnerable primitive is used here". It does not mean the code is exploitable today.
  • A clean scan means no known patterns were found, not that the system is quantum-safe. Dynamically chosen algorithms, compiled binaries and hardware modules need additional review.
  • Run postshor rules to see every rule.

Project

Licensed under the Apache License 2.0.

PostShor is an independent open-source project named after the post-quantum era, not a person. It is not affiliated with or endorsed by Peter Shor.

Metadata

Release files for postshor 0.2.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 postshor 0.2.0
File Size Uploaded Provenance Actions
postshor-0.2.0.tar.gz 103.9 kB With provenance Details for postshor-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 167.6 kB

Release files / postshor-0.2.0.tar.gz

Download URL postshor-0.2.0.tar.gz
Size 103.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8f5cc740607a271f8563a5e16c2782a49596cd10c8e632ea0790137752a226f2
BLAKE2b-256 checksum
How to use checksums
659241044b3f43b39c7619e770c45d1b92369893ae53f39402bf0fc1ac678fda
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 Oct 30, 2026.

Transparency log

Release files / postshor-0.2.0-py3-none-any.whl

Download URL postshor-0.2.0-py3-none-any.whl
Size 63.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9ac9d2fe05817b285083187f89fc3beb3ce07c87f4639db4943fcfd7ab70699
BLAKE2b-256 checksum
How to use checksums
99a1122fab1b403a77a16b005e4cd239d8d9465bd63e63ce46cbf3b8278ef2da
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 Oct 30, 2026.

Transparency log

Security for postshor 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.

Select from 2 files

Attestation for postshor-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 Oct 30, 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