# PQC audit kit (a starting point for app devs)

> Source: <https://github.com/RevvWorks/pqc-audit-kit>
> Published: 2026-12-04 21:32:52+00:00

**Key takeaway:** A read-only coding-agent audit kit inventories every cryptographic use, secret and exposure across code, hosting, DNS, CDN and email and outputs a prioritized remediation plan without making commits or write calls, using the cautious-2026-12 policy by default.

A free kit from [RevvWorks Inc.](https://revv.works) for app developers: prompts and tools for a coding agent (Claude Code, or any agent that can run shell commands) to run a **read-only cryptography and post-quantum audit** of a web app: its code, hosting, database, DNS and CDN, email, code host and admin logins.

- **What you get:** a set of Markdown files that list:
  - every use of cryptography, with what it means for your data;
  - every secret and where it has traveled;
  - the ordinary security bugs found along the way;
  - an exposure report;
  - a remediation plan in priority order.
- **Where it runs:** written and tested on macOS (see[Requirements](#requirements) ).
- **What you provide:** a scope and read-only tokens.[prompt/before-you-start.md](https://github.com/RevvWorks/pqc-audit-kit/blob/main/prompt/before-you-start.md) lists everything, with defaults.
- **The promise:** the audit changes nothing. It makes no commits, rotates no secrets, and sends no write calls to any provider. It recommends; you decide.
- **At your own risk:** this is a free starting point with no warranty and no liability accepted; see[About this kit](#about-this-kit) .

The prompts were written after the [NSA's December 2026 advisory](https://www.nsa.gov/Press-Room/Press-Releases-Statements/Press-Release-View/Article/4662430/nsa-advises-immediate-transition-to-post-quantum-cryptography-to-protect-nation/) on moving to post-quantum cryptography. [Background reading](#background-reading) lists the sources. They apply to any policy, though: pick the cautious reading of that advisory, CNSA 2.0, or your national agency's baseline ([prompt/policies/](https://github.com/RevvWorks/pqc-audit-kit/blob/main/prompt/policies)).

1. 
Clone this repository next to the repository you want to audit.
2. 
Prepare the answers in [prompt/before-you-start.md](https://github.com/RevvWorks/pqc-audit-kit/blob/main/prompt/before-you-start.md) .
3. 
Open your coding agent in the repository to audit, and give it this prompt: Run the audit in `../pqc-audit-kit/prompt/coordinator.md` on this repository. The kit's tools are in`../pqc-audit-kit/tools/` .
4. 
Answer its questions. It asks them once, at the start.
5. 
Review the report in VS Code's Markdown preview ( `Cmd+K V` ).

The report describes unfixed vulnerabilities. Keep it out of the audited repository and share it only privately until the critical items are fixed.

| Path | What it is | 
|---|---|
| [prompt/coordinator.md](https://github.com/RevvWorks/pqc-audit-kit/blob/main/prompt/coordinator.md) | The main prompt: questions, scope, running the slices, writing up. | 
| [prompt/slice-network.md](https://github.com/RevvWorks/pqc-audit-kit/blob/main/prompt/slice-network.md) | Live network, CDN, DNS and mail. Runs first. | 
| [prompt/slice-runtimes-and-dependencies.md](https://github.com/RevvWorks/pqc-audit-kit/blob/main/prompt/slice-runtimes-and-dependencies.md) | Runtimes, images, dependencies, code host and CI. | 
| [prompt/slice-code-and-secrets.md](https://github.com/RevvWorks/pqc-audit-kit/blob/main/prompt/slice-code-and-secrets.md) | Application crypto, authentication and authorization, inbound trust, and secrets. | 
| [prompt/rules.md](https://github.com/RevvWorks/pqc-audit-kit/blob/main/prompt/rules.md) | The read-only, token, probing and evidence rules. | 
| [prompt/rubric.md](https://github.com/RevvWorks/pqc-audit-kit/blob/main/prompt/rubric.md) | The rating labels and how to apply them. | 
| [prompt/policies/](https://github.com/RevvWorks/pqc-audit-kit/blob/main/prompt/policies) | Swappable policies: `cautious-2026-12` (the one used in practice), plus`cnsa-2.0` and`national-baseline` , which haven't been tested in a run. | 
| [prompt/deliverables.md](https://github.com/RevvWorks/pqc-audit-kit/blob/main/prompt/deliverables.md) | The report's files and format. | 
| [prompt/exposure-and-remediation.md](https://github.com/RevvWorks/pqc-audit-kit/blob/main/prompt/exposure-and-remediation.md) | How to write the Exposure Report and the Remediation Plan. | 
| [prompt/reference/](https://github.com/RevvWorks/pqc-audit-kit/blob/main/prompt/reference) | Risky library defaults, and notes per platform (Cloudflare, Fly.io, Render, Supabase, GitHub). | 
| [tools/](https://github.com/RevvWorks/pqc-audit-kit/blob/main/tools) | Tested scripts the prompts call: a TLS probe, a Postgres TLS probe, a production runtime check, a header check, Cloudflare read-only queries and the CBOM renderer. | 

The kit was written and tested on macOS with Homebrew. The scripts are bash and Python and should also run on Linux, but they haven't been tested there. On Windows, use WSL (also untested).

| Tool | Version | Used for | On macOS | 
|---|---|---|---|
| bash | 3.2+ | every script | ships with macOS | 
| curl | any | headers, Cloudflare API | ships with macOS | 
| perl | any | handshake timeouts | ships with macOS | 
| python3 | 3.9+ | Postgres probe, runtime check, CBOM renderer | ships with the command line tools ( `xcode-select --install` ) | 
| OpenSSL | 3.5+ | every TLS probe | `brew install openssl` ; macOS's own`openssl` is LibreSSL and can't offer the hybrid groups | 
| jq | any | Cloudflare scripts | ships with recent macOS, or `brew install jq` | 
| shellcheck | any | the tool tests only | `brew install shellcheck` | 

To install and check everything on macOS:

```
cd pqc-audit-kit
brew bundle          # installs what the Brewfile lists
tools/doctor.sh      # checks each tool and version, and says how to fix what's missing
```

`tools/doctor.sh` changes nothing; run it on any machine before an audit. The probe scripts find Homebrew's OpenSSL on their own; to use another build, set `OPENSSL=/path/to/openssl`.

asdf and mise users can keep their own Python: any 3.9+ works. Neither tool manages OpenSSL or jq well, so those come from Homebrew or the system package manager.

Run the tool tests with `tools/tests/run.sh`. They are offline and use local fixtures.

The advisory and how to read it:

- NSA, [NSA advises immediate transition to post-quantum cryptography to protect nation](https://www.nsa.gov/Press-Room/Press-Releases-Statements/Press-Release-View/Article/4662430/nsa-advises-immediate-transition-to-post-quantum-cryptography-to-protect-nation/) (2026-12-02).
- Filippo Valsorda, [his reading of the NSA advisory](https://words.filippo.io/nsa-advisory/) : 256-bit curve exposure, stopgaps, and what to do first. The default policy follows it.
- US agencies' [joint statement on recent advances in cryptographic and cybersecurity capabilities](https://www.cisa.gov/news-events/news/joint-statement-recent-advances-cryptographic-and-cybersecurity-capabilities) : the findings are not an immediate and widespread threat.

Quantum risk:

- Michele Mosca and Marco Piani (evolutionQ), [Why the quantum threat should be treated as an accelerating material risk](https://www.evolutionq.com/post/why-the-quantum-threat-should-be-treated-as-an-accelerating-material-risk) (2026-11-19).
- evolutionQ and the Global Risk Institute, [Quantum Briefing, November 2026](https://www.evolutionq.com/publications/quantum-briefing-november-2026) .

Standards and national guidance:

- NIST, [the first three post-quantum standards: FIPS 203, 204 and 205](https://www.nist.gov/news-events/news/2024/08/nist-releases-first-3-finalized-post-quantum-encryption-standards) (2024), and[IR 8547, the transition to post-quantum cryptography](https://www.nist.gov/news-events/news/2026/10/nist-report-provides-guidelines-transition-post-quantum-cryptography) (2026).
- UK NCSC, [urgent action on migration to post-quantum cryptography](https://www.ncsc.gov.uk/news/ncsc-advises-urgent-action-on-migration-to-post-quantum-cryptography) ,[post-quantum updates to its TLS guidance](https://www.ncsc.gov.uk/blogs/post-quantum-updates-to-our-tls-guidance) , and[cryptographic agility](https://www.ncsc.gov.uk/blogs/cryptographic-agility-part-of-your-pqc-migration) .
- Canadian Centre for Cyber Security, [ITSP.40.111, cryptographic algorithms](https://www.cyber.gc.ca/en/guidance/cryptographic-algorithms-unclassified-protected-protected-b-information-itsp40111) , and[ITSM.40.001, the PQC migration roadmap](https://www.cyber.gc.ca/en/guidance/roadmap-migration-post-quantum-cryptography-government-canada-itsm40001) .

Practical:

- Cloudflare, [post-quantum support across its products](https://developers.cloudflare.com/ssl/post-quantum-cryptography/pqc-support/) .

[RevvWorks Inc.](https://revv.works) offers this kit as is, free of charge, in the hope that it's useful. Treat it as a starting point: adapt the prompts, policies and tools to your own app, and build on them.

**Use it at your own risk.** RevvWorks Inc. accepts no liability for its use or for anything that results from it. It gives no warranty that an audit run with it is complete or correct, and no guarantee that its recommendations are safe for your systems. An agent following these prompts can still make mistakes: read what it proposes to run, keep its tokens read-only, and have a qualified person review the report before acting on it. The kit is not professional security advice for any particular system.

RevvWorks doesn't currently plan to maintain this repo or to take issues or pull requests. Fork it and make it your own.

[MIT](https://github.com/RevvWorks/pqc-audit-kit/blob/main/LICENSE), for the prompts and the tools alike. © 2026 [RevvWorks Inc.](https://revv.works) The license disclaims all warranties and liability.
