post-quantum-pqc-audit-skill

agent
Guvenlik Denetimi
Gecti
Health Gecti
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 20 GitHub stars
Code Gecti
  • Code scan — Scanned 2 files during light audit, no dangerous patterns found
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Agent skill (SKILL.md) and read-only OpenSSL 3.5+/4.x prober to audit any web, DB, worker, desktop, or mobile stack for Post-Quantum Cryptography (PQC / X25519MLKEM768) readiness.

README.md

Post-Quantum Cryptography (PQC) Audit Skill

An agent skill (SKILL.md) and non-mutating TLS prober (probe_tls.py) that lets coding agents (Claude Code, Codex, Cursor, Antigravity, OpenCode) empirically audit any modern web, API, database, worker, desktop, or mobile stack for Post-Quantum Cryptography (PQC) readiness — and produce a concrete, prioritized migration plan.

Active-probe audit guide: TLS and SSH handshakes do not modify production services, but they create network traffic and logs. Inventory offline first, obtain authorization for an exact target allowlist, and test runtime/proxy upgrades in staging before production.


Why This Exists

When post-quantum advisories drop, most developers either panic over things that are already safe (AES-256, HMAC-SHA256) or only run openssl s_client on their main domain and call it a day.

The #1 trap engineers miss: TLS is a two-sided handshake. Even when your cloud edge, S3 bucket, CDN, and managed Postgres pooler already support hybrid X25519MLKEM768, your own outbound client runtimes (older Node/OpenSSL builds, Ubuntu 24.04 Python OpenSSL 3.0, older Electron desktop apps, older Caddy 2.6.2 reverse proxies) may silently fall back to classical X25519.


Quick Start (Give This to Your Agent)

Option 1: Install as an Agent Skill

# Clone into your project's skills directory (works with Claude Code, Codex, Cursor, Antigravity)
git clone https://github.com/0xburn/post-quantum-pqc-audit-skill.git /tmp/pqc-skill
# Review and pin the exact commit before installing instructions into an agent.
reviewed_commit=PUT_FULL_COMMIT_SHA_HERE
git -C /tmp/pqc-skill checkout "$reviewed_commit"
mkdir -p .agents/skills .claude/skills
cp -r /tmp/pqc-skill/skills/pqc-audit .agents/skills/pqc-audit
cp -r /tmp/pqc-skill/skills/pqc-audit .claude/skills/pqc-audit

Then ask your agent:

"Run the offline inventory phase of the pqc-audit skill, show me the proposed probe allowlist for approval, and then give me a phased plan for what we control vs. what is vendor-blocked."

Option 2: Run the Live TLS Prober Directly

Requires OpenSSL 3.5+ (on macOS: brew install openssl):

python3 skills/pqc-audit/scripts/probe_tls.py \
  --acknowledge-authorized \
  your-app.example.com \
  your-origin.example.com \
  your-bucket.s3.us-west-2.amazonaws.com \
  your-db-pooler.example.com:5432:postgres

Plain-English Mental Model

Category Threat Posture What to Do
TLS & SSH Key Exchange (X25519, P-256) Harvest Now, Decrypt Later (HNDL): Traffic recorded today may be decrypted by a future cryptographically relevant quantum computer. Prioritize by risk Prioritize long-lived sensitive data, exposed capture paths, regulatory deadlines, and long migration lead times. Move TLS 1.3 to X25519MLKEM768 (FIPS 203) and SSH to mlkem768x25519 / sntrup761x25519 where supported.
Symmetric Encryption & Hashes (AES-256-GCM, ChaCha20-Poly1305, HMAC-SHA256, SHA-256/512, HKDF) Grover's algorithm only halves key strength (256-bit -> 128-bit PQ security). Already Quantum-Safe Keep them. Focus on key separation & rotation hygiene instead.
Digital Signatures (RSA, ECDSA, Ed25519 certs, webhooks, signed URLs) Requires a live quantum computer at verification time to forge (not HNDL). Track Vendors Don't break third-party webhook verification unilaterally. Adopt ML-DSA (FIPS 204) as vendors ship it.

See NIST IR 8547 for current risk-prioritized transition guidance and timelines.


Minimum Runtime Versions for X25519MLKEM768

Stack Minimum Version Watch Out For
OpenSSL 3.5.0+ Ubuntu 24.04 ships 3.0.13 — system Python & libpq are classical-only.
Node.js Official 22.20+ or 24.x+ builds Node 22 moved to OpenSSL 3.5 in 22.20. Third-party builds may link a different TLS library; verify process.versions.openssl.
Go / Caddy Go 1.24+ / Caddy 2.10+ Ubuntu's default apt package installs Caddy 2.6.2 (pre-Go 1.24).
Electron 35+ (Chromium 134+) with net.fetch(), or 40+ for Node 24-backed fetch() Main-process Node fetch() uses Electron's bundled Node TLS stack, not Chromium BoringSSL. Verify the actual Electron, Chromium, Node, and TLS versions.
OpenSSH 9.0+ for sntrup761x25519; 9.9+ for mlkem768x25519 Verify the algorithm actually negotiated with the server.

Anonymized Real-World Case Study: "PulseMetrics"

To show what this skill catches on a real production stack, here is an anonymized audit of PulseMetrics — a modern Next.js SaaS app with private file uploads, real-time streaming, a desktop companion app, a mobile app, and an Ubuntu GPU/worker host:

  • Stack: Next.js on Vercel (Node 22.x) + Prisma + Managed Serverless Postgres + Managed Auth + AWS S3 + CloudFront + Ubuntu 24.04 worker/GPU server (Caddy 2.6.2, Python 3.12) + Electron 27 desktop app + Expo mobile app.

4 Real Surprises the Audit Caught

  1. Same database vendor, two different TLS stacks: The managed Postgres pooler (ep-quiet-brook-123456-pooler...) passed X25519MLKEM768 (Rust rustls proxy), while the same vendor's Managed Auth host (ep-quiet-brook-123456.neonauth...) failed (classical X25519 only).
  2. ORM passed PQC, but an older Node 22 runtime didn't: Prisma's Rust engine negotiated X25519MLKEM768, while every other outbound HTTPS call (S3 SDK, email, webhooks, OAuth APIs) ran on a pre-22.20 Node build with OpenSSL 3.0 and fell back to classical X25519.
  3. Self-hosted Caddy 2.6.2 + EOL Electron 27: The team's own live-ingest reverse proxy failed X25519MLKEM768 solely because Ubuntu 24.04 apt shipped Caddy 2.6.2. And the Electron desktop app called Node 18's fetch() instead of Chromium's net.fetch().
  4. Secret reuse & unencrypted local dump: Symmetric crypto was already quantum-safe, but one AUTH_COOKIE_SECRET was reused across cookies, OAuth state, mobile JWTs, and encrypted DB tokens — and an unencrypted 5 GB .sql.gz backup sat in a repo directory.

What PulseMetrics Fixed Today vs. Left on the Vendor Watchlist

  • Fixed Today (You Control): Bumped Vercel to Node 24.x, upgraded Caddy to 2.10+ (Go 1.24+), scheduled Electron 35+ (net.fetch()) + macOS notarization and worker OpenSSL 3.5+ upgrades, split shared secrets, added S3 aws:SecureTransport: false Deny, and removed the unencrypted local dump.
  • Vendor-Blocked (Re-Probe Quarterly): Managed Auth TLS, Stripe API TLS, Discord Ed25519 webhooks, and CloudFront RSA-2048 signed URLs (5-minute TTL).

Author & License

Built by @peteyburn (0xburn).
Licensed under the MIT License.

Yorumlar (0)

Sonuc bulunamadi