Skip to content
Back to skills

Post Quantum Cryptography Check

ASecurity

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 X25519MLKEM768 directly, plus the certificate, TLS versions, HTTPS redirect, HSTS and security headers, DNSSEC, CAA and email spoofing, and Cloudflare zone settings and TLS traffic when a read-only token is set. Use when the user asks "am I post-quantum ready", "is my si...

  • 34,789 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentspythonrustgoshellbashreactgitapisecurity

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add davila7/claude-code-templates --skill post-quantum-cryptography-check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Post Quantum Cryptography Check?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Post Quantum Cryptography Check
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/davila7-post-quantum-cryptography-check/badge)](https://www.skillsdirectory.com/skills/davila7-post-quantum-cryptography-check)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: post-quantum-cryptography-check
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 X25519MLKEM768 directly, plus the certificate, TLS versions, HTTPS redirect, HSTS and security headers, DNSSEC, CAA and email spoofing, and Cloudflare zone settings and TLS traffic when a read-only token is set. Use when the user asks "am I post-quantum ready", "is my site quantum safe", "check my TLS", "can I require TLS 1.3", "is my site protected", or reacts to news about quantum computing breaking encryption. Changes nothing.
metadata:
  author: davila7
  version: "1.0"
---

# 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

```bash
python3 .claude/skills/post-quantum-cryptography-check/scripts/pqc_check.py example.com www.example.com api.example.com --json
```

The 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:

1. **One line per host:** level and name, e.g. "api.example.com: level 2 of 4 (Standard)".
2. **To reach the next level:** the failing checks of the next level, each with
   its `fix` in one sentence. Then, separately, the rest of the fails by level.
   Warnings go last, labeled as optional.
3. **Traffic (Cloudflare only):** share of post-quantum handshakes and TLS
   versions. If `clientsBelowTls13` is not empty, list who would break if TLS
   1.3 were required (host + user agent), before any advice to require it.
4. **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` / `preload`** are 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.

Files in this skill

  • SKILL.md7.9 KB
  • scripts/pqc_check.py35.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.