04 · Audit & Agents
Check your systems
CLI probes for live TLS and SSH endpoints, followed by repository audit prompts for coding agents.
openssl s_client -connect api.yourdomain.com:443 -tls1_3 \ -groups X25519MLKEM768:X25519 </dev/null 2>/dev/null \ | grep -E "Negotiated TLS1.3 group|Server Temp Key" # Pass: Negotiated TLS1.3 group: X25519MLKEM768 # Fail: Server Temp Key: X25519, 253 bits
ssh -vvv -o BatchMode=yes -o ConnectTimeout=5 \ bastion.yourdomain.com 2>&1 | grep "kex: algorithm:" # Pass: kex: algorithm: mlkem768x25519-sha256 # Fail: kex: algorithm: curve25519-sha256
01 · Repository cryptographic inventory
Locates every TLS config, SSH client, JWT verifier, and key-wrapping call across your application monorepo.
Build a Cryptographic Bill of Materials (CBOM) for this repository to assess our Post-Quantum Cryptography readiness. Inspect actual source files, lockfiles, and Dockerfiles: 1. TLS & Runtimes: Check our Go version (go.mod), Rust TLS crates (Cargo.lock), and container base images (OpenSSL version). Flag any TLS config that hardcodes classical curves (`CurvePreferences`, `ecdhCurve`, `ssl_ecdh_curve`) and blocks `X25519MLKEM768`. 2. JWTs & Sessions: Find every JWT sign/verify call (`jsonwebtoken`, `jose`, `golang-jwt`, `PyJWT`) and custom signature check. Record the algorithm (`RS256`, `ES256`, `EdDSA`, `HS256`) and whether the issuer and verifier share the same trust boundary. 3. SSH Clients: Find programmatic SSH usage (`x/crypto/ssh`, `paramiko`, `ssh2`, `russh`) and check supported `KexAlgorithms`. 4. Key Wrapping & At-Rest: Find all KMS calls and envelope encryption; flag any static `RSA-OAEP` or `RSAES_PKCS1_V1_5` wrapping. Output a markdown table: [File:Line] | [Component] | [Current Primitive] | [Exposure: HNDL vs Live Forgery vs Safe] | [Exact Fix].
02 · Terraform, ingress, and SSH config audit
Audits cloud load balancers, CDN origin hops, ingress controllers, and bastion configs for classical key-exchange gaps.
Audit all Terraform (`.tf`), Helm charts, Kubernetes manifests, and server provisioning scripts in this repo for Post-Quantum Key Exchange: 1. Cloud Load Balancers: Find every `aws_lb_listener`, `aws_alb_listener`, or GCP/Azure SSL policy. Flag any listener not using a PQ TLS 1.3 policy (`ELBSecurityPolicy-TLS13-1-2-PQ-2025-09`). 2. Ingress & CDN Origin: Inspect NGINX/Envoy/Istio configs and Cloudflare origin settings for missing `X25519MLKEM768` key exchange. 3. OpenSSH: Inspect all `sshd_config` templates and cloud-init scripts; ensure `KexAlgorithms` prioritizes `mlkem768x25519-sha256,[email protected]`. 4. Produce a P0-P3 patch plan with exact file diffs.
03 · Internal JWTs and updater signatures
Migrates internal tokens away from asymmetric public keys and designs composite `Ed25519 + ML-DSA-65` release verification.
Audit all token authentication and binary update verification flows in this codebase: 1. Same-Boundary JWTs: Find every JWT or signed cookie where our backend is both issuer and verifier. Draft a zero-downtime migration from `RS256`/`ES256`/`EdDSA` to 256-bit `HS256` HMAC with strict `algorithms: ['HS256']` verification. 2. Auto-Updaters: Inspect our desktop/CLI self-updater verification logic and design a dual-signature check requiring BOTH classical `Ed25519` and NIST FIPS 204 `ML-DSA-65` signatures to pass before executing an update.