Post-quantum cryptography check
Tell the user, for each public host of their project, whether visitors already get post-quantum key exchange, which protection level the host is at, and the few changes that would raise it. Post-quantum readiness is level 4: levels 1 to 3 are the transport basics it sits on.
Why it matters now: traffic recorded today can be decrypted once a large enough quantum computer exists ("harvest now, decrypt later"). The fix for TLS is a hybrid key exchange (X25519MLKEM768, standardized from NIST's ML-KEM, FIPS 203) that current browsers already offer; the server side is usually a library or CDN setting. Everything here only reads: a TLS handshake, an HTTP GET, a public DNS lookup, and (optional) Cloudflare API GETs and GraphQL queries. You never change a setting, a DNS record or a file while using this skill, even if the user's token would allow it. If the user asks you to apply a fix, that is a separate task: give the exact steps and let them decide.
1. Find the hosts
Use only hosts the user operates. Look in the project before asking:
wrangler.toml/wrangler.jsonc(routes,custom_domain),vercel.json,netlify.toml,fly.toml,CNAME(GitHub Pages),astro.config.*/next.config.*(site),package.json(homepage), MCP server URLs in.mcp.json, README links.- Include the apex and
www, and every API, admin, webhook or MCP subdomain: they often differ (one can be behind a CDN and another not).
Show the list and ask the user to confirm or add to it before running. If they name a domain that is clearly not theirs, check it only if they say they are authorized to assess it.
2. Run the check
python3 .claude/skills/post-quantum-cryptography-check/scripts/pqc_check.py example.com www.example.com api.example.com --jsonThe script sits in scripts/ next to this file (adjust the path if the skill
is installed elsewhere, e.g. ~/.claude/skills/). Python 3.9+, standard library only, about
5 seconds per host. Drop --json for a plain-text report.
Cloudflare (optional). When a host answers from Cloudflare and the
environment has CLOUDFLARE_API_TOKEN, the script also reads the zone's SSL
mode, post-quantum to origin, managed WAF rules and the last 24 hours of TLS
traffic (--hours N, max 168; lower plans keep less history, so use 24 if it errors). Ask the user to
create a token with read-only permissions only: Zone: Zone Read, Zone
Settings Read, Analytics Read, Firewall Services (WAF) Read, and
User: User Details Read if they want the 2FA check. Never ask them to paste the
token into the chat: they export it in the shell that runs the script. Without
a token the public checks still run.
Privacy. The hosts receive normal visits identified as
post-quantum-cryptography-check/1.0 (read-only); DNS lookups go to dns.google; one
handshake goes to www.google.com to detect TLS interception. Redirects are
followed only inside the host's DNS zone (found by its SOA record, so
a.github.io never follows to b.github.io), so no third-party site is visited.
Hostnames only: IP addresses are refused. With a token, the traffic section
lists visitor user agents and hostnames from Cloudflare analytics; mention that
before the user pastes the report somewhere public.
3. Read the result
overallLevel is the lowest level of all hosts. Each host has level,
toReachNextLevel (check ids) and checks (status: pass, fail, warn,
unknown, info). A host reaches a level when no check up to it fails and at
least one check at that level passes; unknown, warn and info never count
as a pass.
| Level | Name | Checks at this level |
|---|---|---|
| 0 | Unprotected | no valid HTTPS certificate |
| 1 | Basic | valid certificate; Cloudflare login has 2FA and SSL mode is not Flexible (if read) |
| 2 | Standard | TLS 1.0/1.1 off, TLS 1.3 on, HTTP redirects to HTTPS (port 80 closed is only a warning), HSTS of 6 months or more, certificate 14+ days from expiry, Cloudflare SSL Full (strict) |
| 3 | Hardened | DNSSEC, CAA, SPF ending in -all or ~all + DMARC quarantine/reject, nosniff, no framing and a CSP (both HTML pages only; a report-only CSP is a warning, not a fail), Cloudflare managed WAF (behind Cloudflare) |
| 4 | Post-quantum ready | X25519MLKEM768 to visitors, and Cloudflare to origin when read |
tlsInterception set: a corporate proxy, antivirus or sandboxed container
re-terminates TLS on this machine, so certificate, TLS version and
post-quantum results are the proxy's. Those come back unknown and the level is
null. Say so plainly and offer the command so the user runs it on their own
laptop (off VPN) or in CI. Report the DNS and header results, which are still
valid.
4. Report
Answer in the user's language, short, in this order:
- One line per host: level and name, e.g. "api.example.com: level 2 of 4 (Standard)".
- To reach the next level: the failing checks of the next level, each with
its
fixin one sentence. Then, separately, the rest of the fails by level. Warnings go last, labeled as optional. - Traffic (Cloudflare only): share of post-quantum handshakes and TLS
versions. If
clientsBelowTls13is not empty, list who would break if TLS 1.3 were required (host + user agent), before any advice to require it. - Not checkable from outside, as a short checklist the user confirms by hand: 2FA on the registrar, DNS, CDN, hosting and GitHub accounts; API tokens with an expiry and the smallest scope (delete unused ones); registrar transfer lock; whether the origin answers directly by IP, bypassing the CDN.
Do not invent checks the script did not run, and do not turn unknown into a
pass or a fail.
Advice that has bitten real sites
Include the relevant line when you recommend the change:
- Requiring TLS 1.3 breaks clients that only speak 1.2. Agent and MCP
clients, payment-provider webhooks and link-preview bots are common. Check the
traffic list first; keep 1.2 on hosts that serve them and require 1.3 per host
(on Cloudflare Pages hostnames that needs a WAF rule on
cf.tls_version, since per-hostname minimum TLS requires Advanced Certificate Manager). - DNSSEC: right after adding the DS record some resolvers return SERVFAIL for up to ~15 minutes (stale "not signed" proofs). Wait and measure; removing the DS makes it worse (its TTL is often a day).
- HSTS
includeSubDomains/preloadare hard to undo: add them only when every subdomain serves HTTPS, and preload only after weeks without issues. - CSP: start with
Content-Security-Policy-Report-Only, fix the reports, then enforce. Never jump straight to an enforced policy on a live site. - Cloudflare SSL "Flexible" looks like HTTPS to visitors but sends their traffic to the origin in plain HTTP. Go to Full (strict) once the origin has a valid certificate (a free Cloudflare Origin CA certificate works).
- Post-quantum needs no client change: current browsers offer X25519MLKEM768 and fall back to classical groups when the server does not. The server side is a TLS library upgrade (OpenSSL 3.5+, BoringSSL, Go 1.24+ or recent rustls) or a CDN that has it.
- WAF managed rules: turn OWASP Core on in log mode, review what it would block for a few days, then switch to block.
Post-quantum cryptography check
Tell the user, for each public host of their project, whether visitors already get post-quantum key exchange, which protection level the host is at, and the few changes that would raise it. Post-quantum readiness is level 4: levels 1 to 3 are the transport basics it sits on.
Why it matters now: traffic recorded today can be decrypted once a large enough quantum computer exists ("harvest now, decrypt later"). The fix for TLS is a hybrid key exchange (X25519MLKEM768, standardized from NIST's ML-KEM, FIPS 203) that current browsers already offer; the server side is usually a library or CDN setting. Everything here only reads: a TLS handshake, an HTTP GET, a public DNS lookup, and (optional) Cloudflare API GETs and GraphQL queries. You never change a setting, a DNS record or a file while using this skill, even if the user's token would allow it. If the user asks you to apply a fix, that is a separate task: give the exact steps and let them decide.
1. Find the hosts
Use only hosts the user operates. Look in the project before asking:
wrangler.toml/wrangler.jsonc(routes,custom_domain),vercel.json,netlify.toml,fly.toml,CNAME(GitHub Pages),astro.config.*/next.config.*(site),package.json(homepage), MCP server URLs in.mcp.json, README links.- Include the apex and
www, and every API, admin, webhook or MCP subdomain: they often differ (one can be behind a CDN and another not).
Show the list and ask the user to confirm or add to it before running. If they name a domain that is clearly not theirs, check it only if they say they are authorized to assess it.
2. Run the check
python3 .claude/skills/post-quantum-cryptography-check/scripts/pqc_check.py example.com www.example.com api.example.com --jsonThe script sits in scripts/ next to this file (adjust the path if the skill
is installed elsewhere, e.g. ~/.claude/skills/). Python 3.9+, standard library only, about
5 seconds per host. Drop --json for a plain-text report.
Cloudflare (optional). When a host answers from Cloudflare and the
environment has CLOUDFLARE_API_TOKEN, the script also reads the zone's SSL
mode, post-quantum to origin, managed WAF rules and the last 24 hours of TLS
traffic (--hours N, max 168; lower plans keep less history, so use 24 if it errors). Ask the user to
create a token with read-only permissions only: Zone: Zone Read, Zone
Settings Read, Analytics Read, Firewall Services (WAF) Read, and
User: User Details Read if they want the 2FA check. Never ask them to paste the
token into the chat: they export it in the shell that runs the script. Without
a token the public checks still run.
Privacy. The hosts receive normal visits identified as
post-quantum-cryptography-check/1.0 (read-only); DNS lookups go to dns.google; one
handshake goes to www.google.com to detect TLS interception. Redirects are
followed only inside the host's DNS zone (found by its SOA record, so
a.github.io never follows to b.github.io), so no third-party site is visited.
Hostnames only: IP addresses are refused. With a token, the traffic section
lists visitor user agents and hostnames from Cloudflare analytics; mention that
before the user pastes the report somewhere public.
3. Read the result
overallLevel is the lowest level of all hosts. Each host has level,
toReachNextLevel (check ids) and checks (status: pass, fail, warn,
unknown, info). A host reaches a level when no check up to it fails and at
least one check at that level passes; unknown, warn and info never count
as a pass.
| Level | Name | Checks at this level |
|---|---|---|
| 0 | Unprotected | no valid HTTPS certificate |
| 1 | Basic | valid certificate; Cloudflare login has 2FA and SSL mode is not Flexible (if read) |
| 2 | Standard | TLS 1.0/1.1 off, TLS 1.3 on, HTTP redirects to HTTPS (port 80 closed is only a warning), HSTS of 6 months or more, certificate 14+ days from expiry, Cloudflare SSL Full (strict) |
| 3 | Hardened | DNSSEC, CAA, SPF ending in -all or ~all + DMARC quarantine/reject, nosniff, no framing and a CSP (both HTML pages only; a report-only CSP is a warning, not a fail), Cloudflare managed WAF (behind Cloudflare) |
| 4 | Post-quantum ready | X25519MLKEM768 to visitors, and Cloudflare to origin when read |
tlsInterception set: a corporate proxy, antivirus or sandboxed container
re-terminates TLS on this machine, so certificate, TLS version and
post-quantum results are the proxy's. Those come back unknown and the level is
null. Say so plainly and offer the command so the user runs it on their own
laptop (off VPN) or in CI. Report the DNS and header results, which are still
valid.
4. Report
Answer in the user's language, short, in this order:
- One line per host: level and name, e.g. "api.example.com: level 2 of 4 (Standard)".
- To reach the next level: the failing checks of the next level, each with
its
fixin one sentence. Then, separately, the rest of the fails by level. Warnings go last, labeled as optional. - Traffic (Cloudflare only): share of post-quantum handshakes and TLS
versions. If
clientsBelowTls13is not empty, list who would break if TLS 1.3 were required (host + user agent), before any advice to require it. - Not checkable from outside, as a short checklist the user confirms by hand: 2FA on the registrar, DNS, CDN, hosting and GitHub accounts; API tokens with an expiry and the smallest scope (delete unused ones); registrar transfer lock; whether the origin answers directly by IP, bypassing the CDN.
Do not invent checks the script did not run, and do not turn unknown into a
pass or a fail.
Advice that has bitten real sites
Include the relevant line when you recommend the change:
- Requiring TLS 1.3 breaks clients that only speak 1.2. Agent and MCP
clients, payment-provider webhooks and link-preview bots are common. Check the
traffic list first; keep 1.2 on hosts that serve them and require 1.3 per host
(on Cloudflare Pages hostnames that needs a WAF rule on
cf.tls_version, since per-hostname minimum TLS requires Advanced Certificate Manager). - DNSSEC: right after adding the DS record some resolvers return SERVFAIL for up to ~15 minutes (stale "not signed" proofs). Wait and measure; removing the DS makes it worse (its TTL is often a day).
- HSTS
includeSubDomains/preloadare hard to undo: add them only when every subdomain serves HTTPS, and preload only after weeks without issues. - CSP: start with
Content-Security-Policy-Report-Only, fix the reports, then enforce. Never jump straight to an enforced policy on a live site. - Cloudflare SSL "Flexible" looks like HTTPS to visitors but sends their traffic to the origin in plain HTTP. Go to Full (strict) once the origin has a valid certificate (a free Cloudflare Origin CA certificate works).
- Post-quantum needs no client change: current browsers offer X25519MLKEM768 and fall back to classical groups when the server does not. The server side is a TLS library upgrade (OpenSSL 3.5+, BoringSSL, Go 1.24+ or recent rustls) or a CDN that has it.
- WAF managed rules: turn OWASP Core on in log mode, review what it would block for a few days, then switch to block.
Scanned by
NVIDIA SkillSpector
Automated static analysis (no LLM) · v2.12.0 · 2026-12-04
Partial analysis: some checks could not run on this component.
2 observations in 2 categories
- Data Exfiltration 1
- MCP Least Privilege 1
SkillSpector looks for patterns such as shell commands, credential access, network calls or unpinned dependencies. An observation is something worth reading in the files before you install, not a confirmed vulnerability. Components that run code locally, like hooks, MCP servers and security tooling, naturally show more of them. Open one to see the lines it points at.
Without declared permissions the skill's intent is opaque and cannot be validated.MCP Least Privilege · SKILL.md:1
| 1 | --- |
| 2 | name: post-quantum-cryptography-check |
| 3 | description: Read-only check of whether a project's public site, API or MCP endpoint is ready for post-quantum cryptography and protected in transit, with a level from 0 to 4 and what to do next. Tests the hybrid post-quantum key exchange X |
External TransmissionData Exfiltration · scripts/pqc_check.py:41
| 39 | TLS_PORT = 443 # change only to test against a local server |
| 40 | UA = "post-quantum-cryptography-check/1.0 (read-only)" |
| 41 | CF_API = "https://api.cloudflare.com/client/v4" |
| 42 | DOH = "https://dns.google/resolve" |
| 43 |
Learn more about NVIDIA SkillSpector or how components are reviewed.
Agent compatibility
Checked by NVIDIA SkillEvaluator Harness Check · v1.0.1 · 2026-12-04
How each agent reads this skill once it is installed, from the agents' documented loading rules. No agent was run. A note means the agent loads the skill but changes part of its text, or drops it.
Claude Code
loadsCodex
loadsCopilot CLI
loadsOpenCode
loadsHermes
loadsOpenClaw
loads
Every agent loads this skill as written. No notes.
Learn more about NVIDIA SkillEvaluator.