{"slug": "show-hn-pqc-audit-audit-openssh-ml-kem-tls-1-3-pq-and-wireguard-psks", "title": "Show HN: Pqc-Audit – Audit OpenSSH ML-KEM, TLS 1.3 PQ, and WireGuard PSKs", "summary": "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.", "body_md": "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**.\n\nFollowing 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.\n\n- **Read-only by design:** Never edits`/etc/ssh` ,`/etc/nginx` , or`/etc/wireguard` .\n- **Zero dependencies:** Pure Bash 3.2+ using standard`ssh` ,`openssl` , and`wg` .\n- **CI/Ansible ready:** Structured`--json` output and deterministic exit codes (`0` pass,`1` HNDL exposure found,`2` usage error).\n\n| Layer | Local Audit ( `sudo ./pqc-audit.sh` ) | Remote Audit ( `--host example.com` ) | Pass Criteria | \n|---|---|---|---|\n| **OpenSSH** | Active `sshd -T`` kexalgorithms` (or client`ssh -Q kex` ) | Live `ssh -vv` negotiation | `mlkem768x25519-sha256` or`sntrup761x25519-sha512` | \n| **TLS 1.3** | Local `openssl list -kem-algorithms` | Live `openssl s_client -groups X25519MLKEM768` | NIST `ML-KEM-768` /`X25519MLKEM768` | \n| **WireGuard** | `wg show all preshared-keys` +`rosenpass` detection | Skipped (local-only) | `0` peers with`(none)` PSK | \n\n```\ngit clone https://github.com/privatebyte-com/pqc-audit.git\ncd pqc-audit\nchmod +x pqc-audit.sh\nsudo ./pqc-audit.sh --print-fix\n./pqc-audit.sh --host cloudflare.com\n./pqc-audit.sh --host vps.example.com --ssh-port 2222 --tls-port 443 --print-fix\n./pqc-audit.sh --host cloudflare.com --json\n{\n  \"version\": \"1.1.0\",\n  \"target\": \"cloudflare.com\",\n  \"pass\": 1,\n  \"warn\": 1,\n  \"fail\": 0,\n  \"checks\": {\n    \"ssh\": { \"status\": \"WARN\", \"detail\": \"could not negotiate SSH on cloudflare.com:22 (port closed or filtered)\" },\n    \"tls\": { \"status\": \"PASS\", \"detail\": \"Negotiated TLS1.3 group: X25519MLKEM768 on cloudflare.com:443\" },\n    \"wireguard\": { \"status\": \"SKIP\", \"detail\": \"remote --host mode (run locally on the VPN node to inspect WireGuard peers)\" }\n  }\n}\n```\n\n| Flag | Default | Description | \n|---|---|---|\n| `--host <host>` | *(local)* | Probe a remote server's live SSH and TLS 1.3 handshakes | \n| `--ssh-port <port>` | `22` | SSH port for remote `--host` probe | \n| `--tls-port <port>` | `443` | TLS port for remote `--host` probe | \n| `--print-fix` | off | Print drop-in hardening snippets for failing checks | \n| `--json` | off | Emit single-line JSON summary (disables ANSI colors) | \n| `-v` ,`--version` |  | Print version | \n| `-h` ,`--help` |  | Print usage help | \n\n- **Remote TLS PQ probing requires OpenSSL 3.5+ locally:** If your local workstation runs OpenSSL 3.0/3.2 (which does not know`X25519MLKEM768` ),`pqc-audit` reports`WARN` rather than a false`FAIL` .\n- **Key exchange focus (HNDL):** This tool audits**confidentiality key exchange** (the immediate harvest-now, decrypt-later threat), not post-quantum certificate signatures (`ML-DSA` ), which are still rolling out across public CAs.\n- **No automatic mutations:** Even with`--print-fix` ,`pqc-audit` only prints commands for you to review and apply.\n\n- Browser-native WireGuard 256-bit PSK generator & hardening workbench: [privatebyte.com/post-quantum-checker](https://privatebyte.com/post-quantum-checker)\n- WireGuard v2 & immediate PSK / Rosenpass hardening guide: [privatebyte.com/blog/wireguard-v2-post-quantum](https://privatebyte.com/blog/wireguard-v2-post-quantum)\n- OpenSSH `mlkem768` & Nginx`X25519MLKEM768` VPS migration guide:[privatebyte.com/blog/post-quantum-ssh-tls-vps-guide](https://privatebyte.com/blog/post-quantum-ssh-tls-vps-guide)\n\nMaintained by [PrivateByte](https://privatebyte.com) · [Security Policy](https://github.com/privatebyte-com/pqc-audit/blob/main/SECURITY.md) · [Contributing](https://github.com/privatebyte-com/pqc-audit/blob/main/CONTRIBUTING.md) · Licensed under [MIT](https://github.com/privatebyte-com/pqc-audit/blob/main/LICENSE).", "url": "https://wpnews.pro/news/show-hn-pqc-audit-audit-openssh-ml-kem-tls-1-3-pq-and-wireguard-psks", "canonical_source": "https://github.com/privatebyte-com/pqc-audit", "published_at": "2026-12-03 13:29:40+00:00", "updated_at": "2026-12-03 13:47:51.389575+00:00", "lang": "en", "topics": ["ai-safety", "developer-tools"], "entities": ["PrivateByte", "pqc-audit", "OpenSSH", "WireGuard", "TLS 1.3", "NSA", "CISA", "Jason Donenfeld"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-pqc-audit-audit-openssh-ml-kem-tls-1-3-pq-and-wireguard-psks", "markdown": "https://wpnews.pro/news/show-hn-pqc-audit-audit-openssh-ml-kem-tls-1-3-pq-and-wireguard-psks.md", "text": "https://wpnews.pro/news/show-hn-pqc-audit-audit-openssh-ml-kem-tls-1-3-pq-and-wireguard-psks.txt", "jsonld": "https://wpnews.pro/news/show-hn-pqc-audit-audit-openssh-ml-kem-tls-1-3-pq-and-wireguard-psks.jsonld"}}