CLI · API · SDK
Everything the website does, plus authorized server scans and safe automatic fixes — local-first, scriptable, free.
quantum-shield.mjs · v0.1.0 · 642 KB · one file, no dependencies · Node.js >=20.19 (PQC commands: >=24.7)
SHA-256 bd7433eaf1bdef2f2f6549c46642d3109d8dfd15d18395b45e3907b148e3aa1e
curl -fsSLO https://project486.org/shield/quantum-shield.mjs curl -fsSL https://project486.org/shield/quantum-shield.mjs.sha256 | shasum -a 256 -c - # Linux: sha256sum -c - node quantum-shield.mjs --help
Windows (PowerShell): Get-FileHash quantum-shield.mjs -Algorithm SHA256, then node quantum-shield.mjs --help
| quantum-shield scan web example.com | TLS, certificate and hybrid post-quantum key-exchange check of a public website |
| quantum-shield scan code ./my-app | source code, server configs, dependency manifests, certificates and keys (local) |
| quantum-shield scan host 10.0.0.5 --ports 443,22 --i-am-authorized | TLS + SSH key-exchange check of servers you are authorized to test |
| quantum-shield fix ./my-app | show reviewable diffs; nothing is changed |
| quantum-shield fix ./my-app --apply | apply after confirmation: backup → write → validate (nginx -t, sshd -t, haproxy -c, apachectl) → automatic rollback on failure |
| quantum-shield rollback ./my-app <backup-id> | restore a backup (checksums verified, refuses to overwrite later edits) |
| quantum-shield verify ./my-app | re-scan and compare with the last scan |
| quantum-shield cbom ./my-app --out cbom.cdx.json | CycloneDX 1.6 cryptographic bill of materials |
| quantum-shield osv ./my-app | dependency vulnerabilities from OSV.dev (sends package names + versions only) |
| quantum-shield pqc keygen --alg ML-DSA-65 --out mykey | PKCS#8 / SPKI keys usable with OpenSSL 3.5 |
| quantum-shield selftest | NIST ACVP known-answer tests for the PQC providers |
CI: --fail-on high exits 1 when a finding at or above that severity exists. --json prints the full report. Post-quantum key operations use OpenSSL 3.5 through Node.js 24.7+; on older Node.js they need --provider noble (pure JavaScript, not independently audited).
curl -s https://project486.org/api/shield/v1/scan/tls \
-H 'content-type: application/json' \
-d '{"target":"example.com","shelfLife":10}'No key needed. Public hosts on ports 443 / 8443 only; 6 scans per minute and 40 per hour per client; identical targets are cached for 60 seconds. Response: grade, post-quantum status, findings with plain-language explanations, CBOM assets and raw observations. OpenAPI 3.1
quantum-shield-sdk.mjs · ES module · 614 KB · SHA-256 bdbaff4c52271fe1b7d40773e519448515fe743dcbb8a44a745cbe419ada4338
import { scanTls, assessTls, readProject, scanProject, buildReport, toCycloneDx, applyFixes, pqcProvider } from "./quantum-shield-sdk.mjs";
const tls = await scanTls("example.com");
const { findings, assets, pq } = assessTls(tls);
console.log(pq.status, buildReport({ kind: "website", subject: "example.com", findings, assets, pq }).grade);
const { files } = await readProject("./my-app");
const project = await scanProject(files); // findings, assets, fixes (reviewable)
const cbom = toCycloneDx(project.assets); // CycloneDX 1.6
const mlkem = pqcProvider(); // OpenSSL 3.5 (Node.js 24.7+)
const kp = mlkem.keygen("ML-KEM-768");
const { ciphertext, sharedSecret } = mlkem.encapsulate("ML-KEM-768", kp.publicKey);TypeScript declarations will ship with the npm package; until then the bundle is plain JavaScript.
- FIPS 203 ML-KEM, FIPS 204 ML-DSA, FIPS 205 SLH-DSA — via OpenSSL 3.5 (Node.js crypto) and @noble/post-quantum 0.7.1, both tested against NIST ACVP vectors and against each other.
- TLS hybrid groups X25519MLKEM768 / SecP256r1MLKEM768 / SecP384r1MLKEM1024 (draft-ietf-tls-ecdhe-mlkem); SSH mlkem768x25519-sha256 and sntrup761x25519-sha512.
- Risk timelines from NIST IR 8547 (initial public draft); optional CNSA 2.0 reference profile (self-check, not a certification or compliance claim).
- CBOM: CycloneDX 1.6, validated against the official JSON schema.
- No cryptographic primitives are implemented by Quantum Shield itself; it only parses protocols, certificates and configuration.