Skip to main content

p256check

Today's numbers: top-10,000 sites that chain through a P-256 CA

Check your site and see the full daily scoreboard: https://mfaiqkhan.github.io/p256check/ (the card above updates every day).

Will Chrome block your site on 15 March 2027? From that date Chrome blocks certificate chains in which any CA certificate has an ECDSA P-256 key (Chrome Root Program, 3 Dec 2026). Microsoft follows: Edge applies the same rule on the same day, and Windows stops trusting P-256 roots on 23 February 2027 (Microsoft Trusted Root Program, 4 Dec 2026). p256check builds the path from your site to a Chrome root and to a Microsoft root, reads every CA key on it (root included), and tells you for all three. The same tool inventories the cryptography in code, binaries and live servers for the move to post-quantum algorithms (ML-KEM, ML-DSA, SLH-DSA), with a CycloneDX 1.6 CBOM.

uvx p256check example.com                       # Chrome, Edge and Windows P-256 rules + ML-KEM key exchange
uvx p256check scan --domain example.com --ssh example.com .   # everything: TLS, JWKS, DNSSEC, SSH, this repo
claude mcp add p256check -- uvx p256check mcp   # let a coding agent check and draft the fixes

No dependencies: Python 3.13+, standard library only. Live scoreboard of ~100 major sites and a daily survey of the Tranco top 10,000: docs/ (GitHub Pages).

The 15 March check

$ p256check bitbucket.org
bitbucket.org:443  BLOCKED FROM 15 MARCH 2027
  Blocked in Chrome from 15 March 2027: P-256 CA key in the chain, and this certificate is valid until 2027-05-26
  chain *.bitbucket.org [ECDSA P-256, expires 2027-05-26]
        <- Amazon ECDSA 256 S17 [ECDSA P-256]  <- P-256 CA key
        <- Amazon Root CA 3 [ECDSA P-256, Chrome root]  <- P-256 CA key; Chrome stops trusting its new certificates after 2027-09-14
  Edge: blocked from 15 March 2027: P-256 CA key in the chain (Amazon ECDSA 256 S17, Amazon Root CA 3) and the certificate is valid until 2027-05-26
  Windows: blocked from 23 February 2027: P-256 root (Amazon Root CA 3) and the certificate is valid until 2027-05-26
  site key: ECDSA P-256 (not covered by the 15 March rule; a 256-bit curve the 2 Dec 2026 NSA advisory flags)
  key exchange: X25519MLKEM768 (post-quantum hybrid)
Status Meaning
blocked A CA key on the path is P-256 and the certificate is valid past the cutoff
renewal-at-risk A CA key on the path is P-256; the certificate expires first, so the next one must come from a CA without a P-256 key (the common case: Google says over 99% of affected certificates expire first)
alt-path The served chain has a P-256 CA, but another path to a Chrome root avoids it
ok No CA key on the path is P-256 (a P-256 site key is reported, but the rule does not cover it)
no-chrome-root No path to a Chrome root: the rule does not apply

Edge and Windows use the same statuses against Microsoft's root store (no-root when there is none). Windows counts only the root's key and uses 23 February 2027. Microsoft's server-authentication roots come from its CCADB report and Microsoft's own download point (tools/update_ms_root_store.py; 227 roots, 5 of them P-256).

How: the certificates the server sends, missing intermediates from the AIA URL, and the trust anchors of the Chrome Root Store bundled from Chromium's source (tools/update_root_store.py; version 45 has 95 roots, 3 of them P-256, as Google's announcement says). Chrome's "no new certificates after" dates for roots are reported as notes. Exit code 1 when a site is blocked or at risk (for CI), 2 on a connection error.

Checked against OpenSSL's own path building and signature verification on the same roots, 106 major sites: verdict, CA names, CA keys and site key agree on 106 of 106 (tests/eval_chrome_p256.py, tests/real/RESULTS.md).

Limits: one connection from one place (a CDN can serve other chains elsewhere); a server with both RSA and ECDSA certificates shows the one a modern client gets; signatures are not verified by p256check itself (certificates are linked by name and key identifier).

Coding agents

  • MCP server: p256check mcp (stdio). Tools: chrome_p256_check, scan_code, probe_endpoints.
  • Agent Skill: skills/p256check/SKILL.md. It covers the rule, how to read the results, and fixes per CA, based on chains measured on real sites. Copy the folder to ~/.claude/skills/ (Claude Code), or to the skills folder of any agent that reads SKILL.md.

Scoreboard and live checker

  • docs/ is the public page.
  • scoreboard/scan.py refreshes docs/data/ from scoreboard/domains.txt.
  • scoreboard/top.py surveys a pinned Tranco top-10,000 list (scoreboard/top.txt; top.py pin re-pins). It keeps one status letter per domain per day in docs/data/top_history.json, so changes come from certificates, not from the ranking.
  • .github/workflows/scoreboard.yml runs both every day and refreshes both root stores on Mondays.
  • The live checker is api/check.py (Vercel) or p256check serve (anywhere). It only checks public addresses, only on port 443, with a rate limit and a 10-minute cache. Set its URL in docs/config.js.

The full inventory

p256check scan path/to/project       # folder, file, archive (.jar .whl .zip .tgz) or binary
p256check scan --domain example.com   # TLS chain + OpenID/JWKS keys + DNSSEC keys of a domain
p256check scan --ssh host.example.com # SSH key exchange, host key algorithms and host keys
p256check scan --jwks https://login.example.com --dnssec example.com --tls api.example.com:8443
p256check scan . --profile pqc        # rank on the quantum-only timeline instead
p256check scan . --fail-on suspect-now # CI: exit 1 on 256-bit curves or anything worse

Output goes to p256check-out/cbom.json and p256check-out/report.html. From a checkout, use python -m p256check.

What it looks at

Layer How Finds
Dependencies package-lock, yarn, pnpm, requirements, poetry, uv, Pipfile, go.mod, Cargo, Maven, Gradle, Gemfile, Composer, NuGet crypto libraries, direct or transitive
Source language rules for Python, JS/TS, Java/Kotlin, Go, C/C++ (OpenSSL 3, liboqs, PQClean), Rust, C#; comments are blanked first; constants are followed (ALG = "RSA" … getInstance(ALG)); import aliases undone the algorithm, key size or curve, and whether it is used for key exchange or signatures
Hand-written crypto curve primes, orders and generators as integer literals; ML-KEM / ML-DSA NTT root tables as number lists crypto code written without a library
Keys and certificates built-in DER parser: X.509, PKCS#8, PKCS#1, SEC1, OpenSSH private keys, SSH public keys key type, RSA modulus size, curve, signature algorithm, certificates that are still valid after 2030
Configs sshd/ssh config, nginx, Apache, OpenSSL, HAProxy, YAML/properties/TOML keys KEX/host-key algorithms, TLS groups, cipher suites, JWT algorithms
Binaries constant tables computed from their definitions (ML-KEM and ML-DSA NTT roots in plain and Montgomery form, AES, SHA-1/2/3, MD5, P-256/P-384/P-521/secp256k1, Ed25519), symbols, Go package paths, Rust crate paths, Java class constant pools; archives are opened crypto inside compiled code and vendor software
TLS (--tls) a TLS 1.3 ClientHello with an empty key_share, so a server that supports a group must name it in a HelloRetryRequest; then one normal handshake for the certificate chain which groups a server accepts (X25519MLKEM768, SecP256r1MLKEM768, ML-KEM, classical); key and size of the leaf, every intermediate and a sent root. A signature row appears only when its signer is not in the chain
SSH (--ssh) the server's KEXINIT, which is sent in the clear before any key exchange; ssh-keyscan (if installed) for the host keys themselves offered key exchange (mlkem768x25519-sha256, sntrup761, curve25519, ecdh, DH group sizes), host key algorithms (incl. ssh-mldsa44-ed25519), weak ciphers, real host key sizes and curves; classical key exchange next to a PQ hybrid is marked as a fallback
JWT signing keys (--jwks) /.well-known/openid-configuration → jwks_uri, or a JWKS URL directly each key: RSA size from the modulus, EC/OKP curve, ML-DSA (AKP), signing or encryption use; advertised algorithms only when no key of that family is published
DNSSEC (--dnssec) a DNSKEY query with the DO bit to the system resolver (or --resolver), TCP when truncated algorithm and RSA size of the key-signing and zone-signing keys; SHA-1 algorithms (5, 7)

--domain D runs --tls D --jwks D --dnssec D. SSH stays a separate flag, so the tool never connects to a domain's SSH port unasked. All probes read public data only.

Ranking

The threat reading changed on 2 Dec 2026 and is disputed, so the ranking is a switch (--profile).

dec2026 (default). Follows the NSA advisory "Immediate Actions to Push Toward Post-Quantum" (2 Dec 2026). Its inventory step flags every elliptic curve except P-384 and P-521, and EdDSA, and it asks for RSA-3072 or P-384 roots. Filippo Valsorda reads it as 256-bit curves (P-256, X25519, Ed25519) being likely weakened, possibly without a quantum computer. The NSA has not confirmed that, and Rob Joyce says elliptic curves are "still solid". So these curves get their own level, suspect-now, and never fix-now.

Priority dec2026 pqc
fix-now broken in public: MD5, SHA-1, DES, 3DES, RC4, DSA, RSA/DH under 2048 MD5, SHA-1, DES, 3DES, RC4
suspect-now P-256, P-224, P-192, secp256k1, brainpoolP256r1, X25519, Ed25519 (not used)
high key exchange with RSA-3072+, P-384, P-521, DH; RSA-2048 anywhere; keys whose size or curve is not visible quantum-vulnerable key exchange (recorded traffic can be decrypted later)
medium signatures with RSA-3072+, P-384, P-521, Ed448 (stopgaps until ML-DSA) quantum-vulnerable signatures (NIST IR 8547: deprecated after 2030, disallowed after 2035)
ready ML-KEM, ML-DSA, SLH-DSA, hybrids (X25519MLKEM768, mlkem768x25519-sha256, ssh-mldsa44-ed25519) same
info AES, SHA-2/3, crypto libraries (capabilities, not choices), usedforsecurity=False same

Every finding carries a one-line reason (why in JSON, italic in the HTML). Under dec2026 the advice also warns against the migration many guides still suggest: RSA → P-256/ES256/Ed25519 moves a key into the suspect set.

Findings in tests, vendored folders and crypto libraries are listed apart and do not affect --fail-on.

How well it works (measured)

  • Independent corpus (tests/heldout/): 66 files in 8 languages and config formats, with 209 labeled uses and 81 traps (words like RSA in comments, PRESSURE, md5 in URLs, names in disable lists). A separate author wrote it without seeing the scanner. The split was fixed before the first run. On the held-out half after tuning: 84% of uses found on the exact line, 89% within 2 lines, 0 of 52 traps hit. On the tuning half: 98% / 100%. Details: tests/heldout/RESULTS.md.
  • Real binaries. The ML-KEM NTT table was found in four independent implementations: OpenSSL 3.6 libcrypto, OpenSSH 10.5, libsodium and NSS freebl. The ML-DSA table was found in libcrypto. 2 MB of random bytes produce no findings.
  • Real keys. Keys and certificates made by OpenSSL 3.6 and ssh-keygen were read correctly, including an ML-DSA-65 certificate and an ML-KEM-768 key.
  • TLS probe. It tells a hybrid-PQ OpenSSL server (preferred X25519MLKEM768) from a classical one.
  • CBOM. Output validates against the official CycloneDX 1.6 JSON schema (0 errors).
  • A large real tree. Hermes Agent v0.23.1 source (23,435 files, 440 MB) took 114 s on one core. It found real hashlib.md5/sha1 uses and RS256/ES256 JWT checks in auth plugins. It also produced one false positive, "falcon" in a list of animal names read as FN-DSA, which is now fixed: bare words like falcon, kyber and LMS need crypto context.
  • Probes, offline. A local openssl s_server with a P-384 root, an RSA-2048 intermediate and a P-256 leaf: chain read as leaf > intermediate > root, each ranked, no duplicate signature rows. A local unprivileged sshd (OpenSSH 10.5) with RSA-3072, P-384 and Ed25519 host keys: all three read with sizes. A fake SSH server offering ssh-mldsa44-ed25519, diffie-hellman-group1-sha1 and 3des-cbc. A local OpenID provider with RSA-2048/3072, P-256, P-384, Ed25519 and ML-DSA-65 keys. A fake DNS server, over UDP and with truncation to TCP.
  • Probes, real endpoints (3 Dec 2026). DNSSEC: cloudflare.com, isc.org, nic.cz and example.com sign with P-256 (algorithm 13, suspect-now); the root zone and .se with RSA-2048; nasa.gov's zone-signing keys are RSA-1024 (fix-now; sizes checked against dig); google.com is unsigned. OIDC: Google and Microsoft sign ID tokens with RSA-2048 keys. github.com SSH offers mlkem768x25519-sha256 with RSA-3072, P-256 and Ed25519 host keys. cloudflare.com TLS prefers X25519MLKEM768 and still accepts draft Kyber, X25519, P-256 and P-384.
  • Tests. python -m unittest discover -s tests: 39 tests, offline (24 scanner, 15 profile and probe). They generate their own keys and servers.

Limits

  • Pattern-based, not dataflow. An algorithm chosen at runtime from a config outside the tree, or passed through several functions, can be missed. In a binary, "supports" cannot be told apart from "uses".
  • Draft Kyber and ML-KEM share NTT constants, so in binaries the constants alone cannot tell them apart. Names and OIDs can.
  • In a statically linked binary that embeds OpenSSL (Node, for example), everything OpenSSL supports shows up. It is marked as library capability.
  • Not compared head to head with PQCA CBOMkit or the commercial scanners yet.
  • Probes: SSH host key sizes need ssh-keyscan; without it only the offered algorithm names are listed. The TLS chain needs Python 3.13+ (get_unverified_chain); older versions read the leaf only. DNSSEC trusts the resolver's answer (it does not validate signatures). Identical keys on one endpoint are shown once (two RSA-2048 JWKS keys are one row; the probe summary lists them all).
  • The dec2026 profile encodes one reading of a disputed advisory. Use --profile pqc for the earlier quantum-only view.

Accuracy on real projects and servers (2026-12-04/05)

  • Precision on 11 real open-source projects (two independent samples of 110 random findings, labelled blind): 0.95 and 0.94; key sizes/curves right in every scored case.
  • Recall on real code (42 random crypto files, 600 uses listed blind): the scanner lists the right algorithm for a file in 66% of cases and finds 36% of individual uses. It misses libraries and type-level APIs it has no rules for (Java/Groovy JWK code, libtomcrypt, aws-lc-rs, age's hybrid API). The synthetic corpus (84-89%) overstates recall.
  • Server checks against openssl, ssh, ssh-keyscan, curl/jq and dig on 42 public endpoints: 338/339 facts agree (the one difference is Microsoft serving two key sets).
  • Commands: python tests/eval_real.py fetch|scan|sample|score|recall-score --run N, python tests/eval_probes.py run && python tests/eval_probes.py score. Details and limits: tests/real/RESULTS.md.

Metadata

Release files for p256check 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 p256check 0.2.0
File Size Uploaded Provenance Actions
p256check-0.2.0.tar.gz 406.9 kB Without provenance Details for p256check-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 798.7 kB

Release files / p256check-0.2.0.tar.gz

Download URL p256check-0.2.0.tar.gz
Size 406.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2b9cfb251f441e734e231fa0e09da1e70471a35ee8e5d4dfdced226bfd641ff4
BLAKE2b-256 checksum
How to use checksums
9acbfabf62ce59bdc0cb19f1dea9f6b4da8943e6c91ec7cd00cc2f2a9478b5d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","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 / p256check-0.2.0-py3-none-any.whl

Download URL p256check-0.2.0-py3-none-any.whl
Size 391.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7fb65c9b3a9f083fca96d62faa866fcb71d1241693534457d8d41c0bba04aada
BLAKE2b-256 checksum
How to use checksums
9fdf1edfabcda196d629c5b6d878d884c64e770390940cf6cefe9f78eff1ea47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","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 p256check 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.

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.2.0 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