cd /news/ai-safety/show-hn-pqc-audit-audit-openssh-ml-k… · home › topics › ai-safety › article
[ARTICLE · art-181038] src=github.com ↗ pub= topic=ai-safety verified=true sentiment=· neutral

Show HN: Pqc-Audit – Audit OpenSSH ML-KEM, TLS 1.3 PQ, and WireGuard PSKs

PrivateByte released pqc-audit, a single-file, read-only Bash CLI (version 1.1.0, MIT licensed) that audits Linux and macOS servers in 5 seconds for harvest-now, decrypt-later exposure across OpenSSH, TLS 1.3 and WireGuard. The tool checks for the mlkem768x25519-sha256 or sntrup761x25519-sha512 key exchange in OpenSSH, the X25519MLKEM768 group in TLS 1.3, and WireGuard peers with no preshared key, returning deterministic exit codes (0 pass, 1 HNDL exposure found, 2 usage error) and single-line JSON for CI and Ansible use. PrivateByte said it built the tool after the December 2, 2026 NSA/CISA/ONCD post-quantum advisory and Jason Donenfeld's WireGuard v2 mailing list update, so operators could replace stitched-together ssh -vv, openssl s_client and wg show commands with one auditable check.

key takeaway

pqc-audit 1.1.0 checks OpenSSH for mlkem768x25519-sha256 or sntrup761x25519-sha512, TLS 1.3 for X25519MLKEM768, and WireGuard for peers with no PSK, emitting JSON with exit code 1 on HNDL exposure; remote TLS probing needs OpenSSL 3.5+ locally or it reports WARN.

read2 min views6 publishedDec 3, 2026
Show HN: Pqc-Audit – Audit OpenSSH ML-KEM, TLS 1.3 PQ, and WireGuard PSKs
Image: Michielbdejong (auto-discovered)

A single-file, read-only Bash CLI that audits any Linux/macOS server or remote host in 5 seconds for harvest-now, decrypt-later (HNDL) exposure across OpenSSH, TLS 1.3, and WireGuard.

Following the December 2, 2026 NSA/CISA/ONCD post-quantum advisory and Jason Donenfeld's WireGuard v2 mailing list update, operators needed one fast, auditable check instead of stitching together verbose ssh -vv, openssl s_client, and wg show commands across fleets.

  • Read-only by design: Never edits/etc/ssh ,/etc/nginx , or/etc/wireguard .
  • Zero dependencies: Pure Bash 3.2+ using standardssh ,openssl , andwg .
  • CI/Ansible ready: Structured--json output and deterministic exit codes (0 pass,1 HNDL exposure found,2 usage error).
Layer Local Audit ( sudo ./pqc-audit.sh ) Remote Audit ( --host example.com ) Pass Criteria
OpenSSH Active sshd -T`` kexalgorithms (or clientssh -Q kex ) Live ssh -vv negotiation mlkem768x25519-sha256 orsntrup761x25519-sha512
TLS 1.3 Local openssl list -kem-algorithms Live openssl s_client -groups X25519MLKEM768 NIST ML-KEM-768 /X25519MLKEM768
WireGuard wg show all preshared-keys +rosenpass detection Skipped (local-only) 0 peers with(none) PSK
git clone https://github.com/privatebyte-com/pqc-audit.git
cd pqc-audit
chmod +x pqc-audit.sh
sudo ./pqc-audit.sh --print-fix
./pqc-audit.sh --host cloudflare.com
./pqc-audit.sh --host vps.example.com --ssh-port 2222 --tls-port 443 --print-fix
./pqc-audit.sh --host cloudflare.com --json
{
  "version": "1.1.0",
  "target": "cloudflare.com",
  "pass": 1,
  "warn": 1,
  "fail": 0,
  "checks": {
    "ssh": { "status": "WARN", "detail": "could not negotiate SSH on cloudflare.com:22 (port closed or filtered)" },
    "tls": { "status": "PASS", "detail": "Negotiated TLS1.3 group: X25519MLKEM768 on cloudflare.com:443" },
    "wireguard": { "status": "SKIP", "detail": "remote --host mode (run locally on the VPN node to inspect WireGuard peers)" }
  }
}
Flag Default Description
--host <host> (local) Probe a remote server's live SSH and TLS 1.3 handshakes
--ssh-port <port> 22 SSH port for remote --host probe
--tls-port <port> 443 TLS port for remote --host probe
--print-fix off Print drop-in hardening snippets for failing checks
--json off Emit single-line JSON summary (disables ANSI colors)
-v ,--version Print version
-h ,--help Print usage help
  • Remote TLS PQ probing requires OpenSSL 3.5+ locally: If your local workstation runs OpenSSL 3.0/3.2 (which does not knowX25519MLKEM768 ),pqc-audit reportsWARN rather than a falseFAIL .

  • Key exchange focus (HNDL): This tool auditsconfidentiality key exchange (the immediate harvest-now, decrypt-later threat), not post-quantum certificate signatures (ML-DSA ), which are still rolling out across public CAs.

  • No automatic mutations: Even with--print-fix ,pqc-audit only prints commands for you to review and apply.

  • Browser-native WireGuard 256-bit PSK generator & hardening workbench: privatebyte.com/post-quantum-checker

  • WireGuard v2 & immediate PSK / Rosenpass hardening guide: privatebyte.com/blog/wireguard-v2-post-quantum

  • OpenSSH mlkem768 & NginxX25519MLKEM768 VPS migration guide:privatebyte.com/blog/post-quantum-ssh-tls-vps-guide

Maintained by PrivateByte · Security Policy · Contributing · Licensed under MIT.

── more in #ai-safety 4 stories · sorted by recency
── more on @privatebyte 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-pqc-audit-au…] indexed:0 read:2min 2026-12-03 · —