@hardkeel/benthic 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/CHANGELOG.md +121 -0
  2. package/LICENSE +92 -0
  3. package/NOTICE +16 -0
  4. package/README.md +424 -2
  5. package/action.yml +54 -0
  6. package/dist/agility.js +80 -0
  7. package/dist/badge.js +62 -0
  8. package/dist/baseline.js +81 -0
  9. package/dist/cbom-diff.js +273 -0
  10. package/dist/cbom.js +418 -0
  11. package/dist/cli.js +834 -0
  12. package/dist/cloud-aws-services.js +375 -0
  13. package/dist/cloud-aws.js +354 -0
  14. package/dist/cloud-azure-services.js +73 -0
  15. package/dist/cloud-azure.js +144 -0
  16. package/dist/cloud-common.js +242 -0
  17. package/dist/cloud-gcp-services.js +90 -0
  18. package/dist/cloud-gcp.js +150 -0
  19. package/dist/comments.js +138 -0
  20. package/dist/community-rules.js +37 -0
  21. package/dist/community.js +30 -0
  22. package/dist/deps.js +406 -0
  23. package/dist/der.js +571 -0
  24. package/dist/evidence-cli.js +235 -0
  25. package/dist/evidence-live.js +109 -0
  26. package/dist/evidence.js +512 -0
  27. package/dist/ignore.js +90 -0
  28. package/dist/image.js +1224 -0
  29. package/dist/infra.js +635 -0
  30. package/dist/inventory.js +277 -0
  31. package/dist/map-activity.js +24 -0
  32. package/dist/map-areas.js +60 -0
  33. package/dist/map-cloud-keys.js +110 -0
  34. package/dist/map-cloud.js +34 -0
  35. package/dist/map-ct.js +107 -0
  36. package/dist/map-host.js +335 -0
  37. package/dist/map-network.js +520 -0
  38. package/dist/map-people.js +79 -0
  39. package/dist/map-rank.js +70 -0
  40. package/dist/map-report.js +304 -0
  41. package/dist/map-run.js +327 -0
  42. package/dist/map-sarif.js +61 -0
  43. package/dist/map-signin.js +247 -0
  44. package/dist/map-types.js +19 -0
  45. package/dist/map-web.js +666 -0
  46. package/dist/native.js +168 -0
  47. package/dist/policy.js +221 -0
  48. package/dist/pqc.js +46 -0
  49. package/dist/profile.js +65 -0
  50. package/dist/project.js +928 -0
  51. package/dist/prose.js +159 -0
  52. package/dist/protocols.js +207 -0
  53. package/dist/registry.js +326 -0
  54. package/dist/report.js +190 -0
  55. package/dist/rules.js +230 -0
  56. package/dist/sarif-common.js +30 -0
  57. package/dist/sarif.js +114 -0
  58. package/dist/scan.js +601 -0
  59. package/dist/score.js +124 -0
  60. package/dist/secrets.js +192 -0
  61. package/dist/share-config.js +129 -0
  62. package/dist/share-lists.js +19 -0
  63. package/dist/share.js +125 -0
  64. package/dist/sonar.js +83 -0
  65. package/dist/structure.js +218 -0
  66. package/dist/suites.js +402 -0
  67. package/dist/tls-check.js +122 -0
  68. package/dist/types.js +4 -0
  69. package/dist/walk.js +78 -0
  70. package/dist/yaml.js +173 -0
  71. package/package.json +73 -4
package/CHANGELOG.md ADDED
@@ -0,0 +1,121 @@
1
+ # Changelog
2
+
3
+ ## 1.0.0
4
+
5
+ - **Quantum Scan is now Benthic.** The package is `@hardkeel/benthic` and the command is `benthic`. The `quantum-scan` command still works, and so do the older names for settings: `.quantum-scan-ignore` and `.quantum-scan.yml` are read when there is no `.benthic-ignore` or `.benthic.yml`, `QUANTUM_SCAN_SHARING`, `QUANTUM_SCAN_OFFLINE`, `QUANTUM_SCAN_CONFIG` and `QUANTUM_SCAN_CACHE` are read when the `BENTHIC_` one isn't set, and saved settings (sharing, offline mode, industry and size) carry over. Reports, SARIF, SonarQube output and the CBOM name the tool Hard Keel Benthic, so code scanning and SonarQube show findings under that name. The GitHub Action keeps its default file names.
6
+ - **`benthic evidence`: a cryptographic inventory for a compliance review** such as PCI DSS 12.3.3. Every protocol version, cipher suite and encryption method in use, strong ones included, each with system, cardholder data, purpose, where it was seen, viability and the source for that rating. A scope file given with `--scope` (never read from the scanned folder) places rows in systems, with anything outside it in an appendix. The pack adds a review record, a plan for when an algorithm breaks, a 12.3.3 table with notes on 4.2.1, 4.2.1.1 and 3.6/3.7, the changes since the last review (`--baseline`), leaked keys in their own appendix, and the commit, uncommitted-changes flag, rules version, scope hash and a SHA-256 manifest. No grade. Writes Markdown, CSV and JSON.
7
+ - **Cipher strings and named policies are expanded.** OpenSSL cipher strings (`HIGH:!aNULL`, `+`, `-`, `@STRENGTH`, `@SECLEVEL`), TLS 1.3 suite lists, AWS ELB and Azure Application Gateway policy names are turned into the suites they enable. Read from nginx, Apache, HAProxy, ssh and sshd config, Terraform, Kubernetes annotations, and Node, Go, Java and Python code.
8
+ - **Live checks list every accepted suite.** For the hosts in the scope, read-only handshakes find each TLS version and suite a server accepts and its certificate's issuer and expiry, and every SSH algorithm offered.
9
+ - **The CBOM lists protocols in use.** One protocol asset per TLS version with its cipher suites by name and code, and one for SSH. The metadata says whether the scanned folder had uncommitted changes.
10
+ - **The smallest lattice parameter sets are worth a look.** ML-KEM-512 and ML-DSA-44, and Kyber512 and Dilithium2 under their standard names, in code, config or a PEM key, are listed under "Worth a look" with ML-KEM-768 or ML-KEM-1024, and ML-DSA-65 or ML-DSA-87, as the sets to move to. They stay post-quantum in the CBOM, with a `hardkeel:caution` note beside them.
11
+ - **How much post-quantum encryption rests on lattices alone.** The text summary, `--format json` (`pqcReliance`) and the CBOM (`hardkeel:pqcPlaces`, `hardkeel:pqcLatticeOnly` and `hardkeel:agility` in the metadata) count the places post-quantum encryption is used and how many rest on lattice math alone. Where key exchange is ML-KEM with no hybrid, or every post-quantum signature is lattice-based, a short note suggests X25519MLKEM768 or SLH-DSA for keys that must last, and keeping the algorithm choice in one place. ML-KEM and ML-DSA stay the recommended standards.
12
+ - Neither changes the grade, adds a finding or fails a build. A baseline from 0.8.0 doesn't count them as new.
13
+ - **Keys stay out of every output.** A found key or password is shown only by its public prefix (`AKIA`, `ghp_`, `sk_live_`), never its first characters. Every key on a line is found and masked, not just the first, and a key is removed from any line printed for another reason, such as weak encryption on the same line, in text, JSON, SARIF, the CBOM and the report. A private key pasted on one line shows only its header.
14
+ - **More leaked keys are found.** Unquoted values in `.env` files, shell scripts and ini or properties files; AWS secret access keys; passwords of 12 characters or more; names like `DEPLOY_REPO_TOKEN`; tokens on lines over 2,000 characters; and a real key next to a placeholder. A provider token in a folder like `src/integration/` counts when it looks live.
15
+ - **Fewer false alarms that fail CI.** IAM user, role and group ids (`AIDA`, `AROA`, `AGPA`) aren't reported as keys, certificates in a Kubernetes Secret (`tls.crt`, `ca.crt`) aren't reported as secrets, and a Java `initialize(800, 600)` isn't read as an RSA key size.
16
+ - **The ignore file can't hide much without saying so.** A folder entry no longer hides leaked keys; only an exact file entry does. Every output says how many findings the ignore file hid. `--no-repo-config` leaves out the ignore file and policy in the scanned folder, `--ignore-file` uses a trusted one, and an image scan never uses an ignore file found inside the image. The GitHub Action has `repo-config` and `ignore-file` inputs.
17
+ - **Mistyped options stop the scan.** An unknown `--fail-on` name, an unknown option, a missing value or an unknown `--format` exits with 2 instead of passing silently. `benthic tls` checks its `--format` too.
18
+ - **Safer reports.** File and repository names are escaped in the Markdown report and pull request comments, control characters are removed from terminal output, and SARIF paths with `#` or `?` point at the right file.
19
+ - **The GitHub Action has a `v1` tag.** `uses: Hard-Keel/benthic@v1` follows the newest 1.x release; each release moves it.
20
+ - **The GitHub Action scans once,** writes SARIF, CBOM and report from that run, and fails with the scanner's exit code even when no report was written.
21
+ - **Faster scans of large repositories.** Files that name no post-quantum algorithm and hold no detection rules skip the line-by-line checks for them, and a line with many slashes no longer slows comment blanking. Results are unchanged.
22
+
23
+ ## 0.8.0
24
+
25
+ - **New license: the PolyForm Shield License 1.0.0.** The source stays public and free to use on your own code and systems, commercially included. Using the scanner, or something built from it, to compete with Hard Keel isn't allowed. 0.7.0 and earlier stay under Apache 2.0.
26
+ - **`quantum-scan image` pulls straight from a registry.** Give it an image name, like `nginx:1.27-alpine` or `ghcr.io/acme/api@sha256:…`, and it reads the image over the registry API with no Docker or Podman daemon. It only reads. It uses the login already on the machine: Podman's auth file, then Docker's `config.json` and its credential helpers. Credentials go only to an https registry, or to one on this machine. `--platform` picks one platform of a multi-platform image. Every manifest and layer is checked against its digest.
27
+ - **Encryption built into programs.** Programs and shared libraries the application brought along (in `/usr/local`, `/opt` and its own folders) are read for statically linked OpenSSL, LibreSSL, BoringSSL, AWS-LC, Mbed TLS, wolfSSL, Libgcrypt, libsodium, liboqs and Rust's ring, with versions where the build records one. A program that links to the system's OpenSSL isn't counted as a copy of its own, even though it carries the version text.
28
+ - **Java keystores.** JKS and JCEKS keystores are read for their entries without a password: how many hold private or secret keys, and the type and size of each stored certificate. PKCS #12 files are recognized and counted. The JVM's own trust store is still skipped.
29
+ - **Package signing keys.** The distribution's signing keys (Alpine's, and the OpenPGP keyrings apt and rpm use) are counted by type and size in the summary, including post-quantum ones such as ML-DSA-87+Ed448, rather than listed one by one.
30
+ - **Layers are cached by digest.** A layer read once isn't read again by the same version of the scanner, so a second scan of an image, or of one that shares its base, only reads what changed. The cache lives in the user's cache folder; `--no-cache` skips it, and `QUANTUM_SCAN_CACHE` moves it.
31
+ - **Java key factories and signature names.** `KeyFactory.getInstance("RSA" | "EC" | "Ed25519" | ...)` is reported as a key of that type (`SecretKeyFactory` stays out). A signature or key name handed back or stored for later, like `return "SHA256withECDSA"` or `"Ed25519"`, is reported with the hash it fixes.
32
+ - **Private keys pasted with escaped Windows line breaks.** A key in one string with `\r\n` or `\r` between its lines is found, like one with `\n`.
33
+ - **Fuller CBOM.** Parameters an algorithm's name already fixes are written out: the curve for Ed25519, Ed448, X25519 and X448, the digest size for MD5 and SHA-1, the key size for DES and 3DES, the parameter set for ML-KEM, ML-DSA and SLH-DSA, and the curve for JOSE `ES256`, `ES384`, `ES512` and `ES256K`. Nothing is guessed: RSA, ECDSA and AES without a size in the code stay without one.
34
+ - Accuracy on 14 public repositories: 206 of 217 findings right (94.9%), up from 192 of 203.
35
+
36
+ ## 0.7.0
37
+
38
+ - **Nothing is sent from CI pipelines unless you turn it on.** When `CI` or `GITHUB_ACTIONS` is set, the scan makes no outbound call. Set `QUANTUM_SCAN_SHARING=on` to share from a pipeline. Runs on a workstation are unchanged.
39
+ - **`quantum-scan diff` lines up CBOMs from different tools.** Assets are matched on their OID plus parameter set or curve, so the same algorithm under two names (`ML-DSA-65` and `ML-DSA (FIPS 204)`) is one asset. Names are compared only when an asset has no OID, and only where one asset fits. Between two tools, a field only one of them writes isn't counted as a change. A matched asset with another name shows the earlier one.
40
+ - **ECDSA signature OIDs.** An ECDSA signature whose hash the code fixes (JOSE `ES256`, Java `SHA256withECDSA`) is listed in the CBOM with its signature OID, such as `ecdsa-with-SHA256`, and the finding carries the hash. Where the hash isn't known, the key type OID stays, since guessing SHA-256 would be wrong for P-384 and P-521.
41
+ - **Text that names an algorithm no longer counts as using it.** Translation catalogs (locale folders, files named for a language such as `en.json` or `de-DE.yml`, `.arb` and `.resx` files, and data files that are mostly sentences) and sentences inside strings are left out of findings, the inventory and post-quantum credit. So are detection rules and finding records that rate an algorithm, like `{ id: "ecdh", name: "ECDH", severity: "high" }`, so a scanner's own rule tables don't read as encryption in use. Accuracy on the labeled corpus and the 14 public repositories is unchanged.
42
+
43
+ ## 0.6.0
44
+
45
+ - **Traces values across files and into functions.** A constant set in one file and imported into another is followed to where it's used, in Python, JavaScript and TypeScript, Go, Java, Kotlin, Scala and C#. A value passed into a function is followed to the call inside it, up to three calls deep, including default arguments. Calls from tests, examples and docs don't count. Each traced finding lists the lines it came through, in the text report, as SARIF related locations and code flows, and as SonarQube secondary locations.
46
+ - **Your own policy.** A `.quantum-scan.yml` file, or `--policy <file>`, sets denied algorithms, minimum key sizes, exceptions with a reason and an expiry date, and severity overrides. `--fail-on policy` (or `fail: true`) fails CI on a break. Expired and unused exceptions are reported. Never changes the grade.
47
+ - **`quantum-scan diff`.** Compares two CycloneDX CBOMs and lists what was added, removed or changed. `--fail-on new-risk` fails only when something weak or quantum-breakable was added or got worse.
48
+ - **SonarQube output.** `--format sonar` writes SonarQube's generic external issue format, for `sonar.externalIssuesReportPaths`.
49
+ - **`quantum-scan image`.** Scans a container image saved with `docker save` or `podman save`, an OCI layout, or an unpacked root filesystem, offline. Lists system encryption packages (OpenSSL, OpenSSH, Java, Go and others) with whether they can do post-quantum key exchange, reads the Go version and modules of Go programs in the image, checks sshd, OpenSSL and web server settings, and finds keys and passwords in any layer and in `ENV` build history.
50
+ - **Reads code structure.** Constants are followed to where they're used, calls spread over several lines are read as one, Python import aliases are followed, and one line that names two algorithms reports both. Import lines, type names and regular expression literals no longer count as uses.
51
+ - **More rules.** Go key parsing and x509 signature choices, SSH host key and key exchange lists in Go, weak Go TLS cipher suites, old TLS versions requested in Java and Kotlin, node-rsa, pyOpenSSL, and SHA-1 through Web Crypto. Certificate checks turned off in application code (`InsecureSkipVerify`, `rejectUnauthorized: false`, `verify=False`, trust-all host name verifiers) are flagged, unless the line carries a `nosec`-style marker.
52
+ - **Fewer false positives on real code.** Integration test `suites/` folders and shared test resource folders are test code; plain settings in Kubernetes Secret data, database table names, contract addresses and ORM `Account.create()` calls are no longer reported. A Go TLS curve list without ML-KEM is now reported as a key exchange setting, like the same list in nginx or Java.
53
+ - **Published accuracy.** `npm run bench` scores a labeled corpus of 104 findings (100% precision, 98.1% recall); `npm run bench:real` checks every finding on 14 public repositories at pinned commits against hand labels (94.6% precision). Method and caveats in `docs/ACCURACY.md`.
54
+ - **Signed releases.** The package, an SBOM and the built Action files get Sigstore build provenance on every release, alongside npm provenance, and the release checks the committed `dist/` matches a fresh build. How to check them: `docs/VERIFYING.md`.
55
+
56
+ - **Reads keys and certificates.** PEM certificates, certificate requests and public keys in your files (also inside JSON, code strings and JWKS `x5c`) are read for their real algorithm, curve and key size. A certificate signed with SHA-1 or MD5 is flagged as weak now. Private keys are still treated as leaked secrets and never parsed.
57
+ - **JSON Web Keys and Ethereum signatures.** Finds JWKs in JSON and config with their curve, JOSE algorithm settings, and EIP-712, EIP-2612 permit, EIP-3009 and `ecrecover` signing in JavaScript, Python, Java, Go and Solidity, all on secp256k1. Lists that deny an algorithm no longer count as using it.
58
+ - **TLS key exchange settings.** Group and curve lists without ML-KEM in nginx, Apache, HAProxy, Caddy, OpenSSL, Envoy, Traefik, Node and Java, and AWS load balancer policies without `-PQ-`, are flagged with the setting to use.
59
+ - **`quantum-scan tls`.** A quick check of hosts you name: whether TLS agrees hybrid ML-KEM key exchange, and what key the certificate has. `--require-pq` for CI.
60
+ - **LMS and XMSS parameter sets.** Sets that SP 800-208 doesn't approve, and SHA-256 sets where SHAKE256 gives more margin, are listed as worth a look. They don't change the grade.
61
+ - **Richer CBOM.** Certificates and public keys are their own assets with subject, issuer, dates and signature algorithm. Curves and classical security levels are listed.
62
+ - **`--baseline` and `--fail-on increase`.** Compare with an earlier CBOM or JSON run and fail CI only when quantum-breakable use goes up.
63
+ - UTF-16 files are read. CycloneDX and SARIF files in the repository are no longer scanned as code.
64
+ - New community rules: Solidity `ecrecover` and EIP-712, OpenSSL X25519 and DH in C, PHP sodium, Rust `k256` and `p256`.
65
+ - **Encryption libraries from package manifests.** npm, PyPI, Go, Maven and Gradle, Cargo, RubyGems, Composer and NuGet manifests are read for JWT, JOSE, TLS, SSH, wallet and post-quantum libraries. Each is listed with what it offers, in the text summary, `--format json` and the CBOM (as library components with package URLs). Never changes the grade.
66
+ - **Trailing comments are left out.** `# was RS256` after code no longer counts as RSA, and a comment that mentions ML-KEM no longer counts as post-quantum use in the score.
67
+ - **Wallet addresses** in code and settings are listed in the inventory to check, not as findings.
68
+ - **SSH in the quick check.** `quantum-scan tls ssh://host` reads what an SSH server offers before login and says whether it has a quantum-safe key exchange.
69
+ - **CNSA 2.0 profile.** `--profile cnsa2` lists what the suite rules out (AES-128, SHA-256, ML-KEM-512/768, ML-DSA-44/65, SLH-DSA, XMSS^MT, ChaCha20). `--fail-on profile` for CI.
70
+ - Every CI run now checks the CBOM against the official CycloneDX 1.6 schema.
71
+
72
+ ## 0.5.0
73
+
74
+ - **Live cloud account checks.** `quantum-scan cloud --provider aws` reads your AWS account's encryption settings: KMS key types, ACM certificates, Application, Network and Classic Load Balancer TLS policies (including whether key exchange is post-quantum) and CloudFront minimum TLS versions. `--provider azure` reads Key Vault keys and certificates, and `--provider gcp` reads Cloud KMS keys. It runs through the provider's own command line tool and the sign-in already on your machine, makes only list, describe, get and show calls from a fixed list, and never changes anything, uses a key, reads secrets or handles credentials. Writes the same findings, CBOM, SARIF and migration plan as `map`. The read-only permissions it needs are in the README.
75
+ - **AWS services beyond keys and load balancers:** API Gateway (including the post-quantum TLS policy), OpenSearch, Transfer Family SFTP and FTP servers (including post-quantum SSH key exchange), Private CA, uploaded IAM certificates, encryption in transit and at rest for ElastiCache, RDS, Aurora, Redshift, EFS and MSK, RDS certificate authorities that have expired or expire soon, default EBS encryption, SSH key pairs, S3 buckets without a TLS rule, plain HTTP on load balancers and CloudFront, and CloudFront origins on old TLS.
76
+ - **Azure:** storage accounts that accept plain HTTP, App Service and Functions apps (HTTPS only, minimum TLS, plain FTP), and Redis caches with the unencrypted port open. **Google Cloud:** load balancer SSL policies and certificates, and Cloud SQL encryption and certificate expiry.
77
+ - A service AWS doesn't offer in a region is listed once, with the regions, instead of as an error for each.
78
+ - `quantum-scan map` can now include cloud accounts, asking first like every other area, and scope files accept a `cloud` section.
79
+ - The anonymized summary for cloud checks holds only rule ids and algorithm names, never account ids, ARNs, resource names or regions.
80
+
81
+ ## 0.4.0
82
+
83
+ - **Find forgotten hostnames.** `quantum-scan hosts example.com` lists the names under a domain from public certificate logs (crt.sh), so old APIs, staging sites and vendor portals on your domain don't get missed. One request to the public log; none of the hosts are contacted. Respects offline mode.
84
+ - **Fairer grade on older Node.js.** If your Node.js can't offer ML-KEM (it needs OpenSSL 3.5 or later), a TLS 1.3 website is no longer marked down for "no quantum-safe option". The map lists it as not tested instead.
85
+ - **Full encryption inventory.** The CBOM (`--cbom`, and `map.cbom.json` from `map`) now lists every algorithm in use, not only the ones to fix: AES with key size and mode, ChaCha20-Poly1305, SHA-2, SHA-3, HMAC, PBKDF2, scrypt, Argon2, bcrypt and HKDF, plus ML-KEM, ML-DSA and SLH-DSA with their NIST security level. Each entry says what it's used for (encrypt, digest, sign and so on). `--format json` includes it as `inventory`, and the text summary names the top ones. It never changes the grade.
86
+ - **Sign-in signing check.** For proved websites, `map` reads the OpenID Connect discovery document (and its signing keys) or listed SAML metadata, and reports the algorithm sign-in tokens and assertions are signed with. RSA and ECDSA are quantum-breakable; unsigned tokens, RSA under 2048 bits and SHA-1 signatures are broken now. Only domains you proved are read.
87
+ - **High, medium and low ratings.** Every `map` finding now carries a plain rating, shown in the terminal, as a label in `map.html`, and as `rating` and `ratings` in `map.json`. Internet-facing systems and long-lived keys rank first. The tiers and the grade are unchanged.
88
+ - **SARIF and CycloneDX everywhere.** `map` now also writes `map.sarif.json`, its findings in SARIF 2.1.0 with the rating, tier and area on each, for security tools that read SARIF. Code findings point at their file and line; websites, network and machine findings name the place they were found. `--format cyclonedx` prints the encryption inventory, the same CBOM as `--cbom`. For GitHub code scanning, upload the code scan's `--format sarif` output, since GitHub only shows results tied to a file.
89
+ - The website check now accepts either hybrid ML-KEM key exchange, X25519MLKEM768 or SecP256r1MLKEM768, in the same single handshake.
90
+ - **Better results in GitHub code scanning.** Encryption quantum computers will break is now scored Medium or lower, so it lands in the plan rather than ahead of what is broken now. Rules have help text with the fix and a link. Paths start at the repository root when you scan a subfolder, so code scanning can place them. Rule ids for exposed settings no longer change with the ports found (for example `exposed/open-to-the-internet`), so those alerts keep their history from this version on. A sample workflow is in `docs/examples/code-scanning.yml`.
91
+ - **A more accurate encryption inventory.** SSH findings are now SSH protocol assets instead of TLS 1.0/1.1, certificate problems (expired, wrong name) are no longer listed as encryption methods, and common algorithms carry their object identifier.
92
+ - "SSH key exchange" no longer reads "SSH key exchange key exchange" in reports.
93
+
94
+ ## 0.3.2
95
+
96
+ - **Finds encryption in signing and token libraries.** Recognizes JWT and JOSE algorithm names (RS256, ES256, EdDSA, RSA-OAEP, ECDH-ES and the rest) in JavaScript, TypeScript, Python, Go and Java; Node's RSA and ECDSA signing names; RSA public-key encryption; JWK key types and curves; elliptic, @noble/curves and tweetnacl; golang-jwt signing methods; Java JWT constants; and python-rsa and paramiko key generation. On 259 popular npm packages that handle encryption or tokens, the scanner finds quantum-breakable encryption in 52.
97
+ - Type declaration files (`.d.ts`) and comment lines no longer count as encryption in use.
98
+ - Shorter, plainer wording for the anonymized sharing notice, with "files" added to what is never sent.
99
+ - Fewer false leaked-key alarms: constants whose value is their own name (like a header name), and long names made only of words (like `urn:ietf:params:oauth:grant-type:token-exchange`), no longer count.
100
+
101
+ ## 0.3.1
102
+
103
+ - **A report you can hand to someone.** `map.html` is now a clean, branded report: the grade up top, a short "Start here" list, findings ranked by what breaks first with how to fix each one, and the same problem in many places shown once with its list of places. It prints well, with page numbers, so your browser's Save as PDF gives a ready PDF. Still one file, with no web fonts or scripts from anywhere else, so it works offline.
104
+ - At the end of `quantum-scan map`, the tool prints where the report is and, in a terminal, offers to open it.
105
+
106
+ ## 0.3.0
107
+
108
+ New in `quantum-scan map`:
109
+
110
+ - **Network and connected equipment.** Looks at routers, switches, printers, cameras, storage boxes and smart devices on your own private network: about 30 common ports, the title of any web page they serve, the certificate on secure admin pages, and the router's list of automatic port forwards (UPnP). Flags Telnet and plain FTP, open remote desktop, VNC and remote support tools, devices still on their setup page, admin pages without encryption or with the factory certificate, open print ports, camera and recorder ports, unencrypted MQTT, open databases, the Docker API, and router forwards from the internet. It never logs in, tries a password or changes a setting.
111
+ - **Who can read your cloud data.** Notes cloud storage, databases, disks and backups in Terraform and CloudFormation whose encryption keys the provider holds, and how to keep the keys yourself. Advice only; it doesn't change the score.
112
+ - **People and process.** 18 optional yes/no questions about what no scan can see, from phishing training and call-back checks to backups and a breach plan. Scored on their own, kept on your machine and never shared.
113
+
114
+ Code scan:
115
+
116
+ - Finds Go TLS settings that list curves without the hybrid ML-KEM group, which turns off Go's post-quantum key exchange.
117
+ - Far fewer false leaked-key alarms. Translated "password" labels, editor token names, keys and fake tokens in test code, CI databases on localhost, `.env.example` files, API spec examples, secret-store references and public client keys no longer count, so they no longer pull the grade down. Real token formats and private keys in shipped code still do.
118
+
119
+ ## 0.2.0
120
+
121
+ First public release: code and infrastructure config scan, encryption inventory (CycloneDX CBOM), SARIF, migration report, readiness score and badge, and `quantum-scan map` for code, websites and this machine, with one readiness grade across areas, accepted leftovers in `.quantum-scan-ignore`, a public resolver fallback for the ownership record, and an HTML report that reads in light and dark mode and prints cleanly.
package/LICENSE ADDED
@@ -0,0 +1,92 @@
1
+ Required Notice: Copyright 2026 Hard Keel (https://hardkeel.com)
2
+ Licensor Line of Business: Encryption, post-quantum readiness and security scanning tools and services (https://hardkeel.com)
3
+
4
+ # PolyForm Shield License 1.0.0
5
+
6
+ <https://polyformproject.org/licenses/shield/1.0.0>
7
+
8
+ ## Acceptance
9
+
10
+ In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
11
+
12
+ ## Copyright License
13
+
14
+ The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
15
+
16
+ ## Distribution License
17
+
18
+ The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
19
+
20
+ ## Notices
21
+
22
+ You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
23
+
24
+ > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
25
+
26
+ ## Changes and New Works License
27
+
28
+ The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
29
+
30
+ ## Patent License
31
+
32
+ The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
33
+
34
+ ## Noncompete
35
+
36
+ Any purpose is a permitted purpose, except for providing any product that competes with the software or any product the licensor or any of its affiliates provides using the software.
37
+
38
+ ## Competition
39
+
40
+ Goods and services compete even when they provide functionality through different kinds of interfaces or for different technical platforms. Applications can compete with services, libraries with plugins, frameworks with development tools, and so on, even if they're written in different programming languages or for different computer architectures. Goods and services compete even when provided free of charge. If you market a product as a practical substitute for the software or another product, it definitely competes.
41
+
42
+ ## New Products
43
+
44
+ If you are using the software to provide a product that does not compete, but the licensor or any of its affiliates brings your product into competition by providing a new version of the software or another product using the software, you may continue using versions of the software available under these terms beforehand to provide your competing product, but not any later versions.
45
+
46
+ ## Discontinued Products
47
+
48
+ You may begin using the software to compete with a product or service that the licensor or any of its affiliates has stopped providing, unless the licensor includes a plain-text line beginning with `Licensor Line of Business:` with the software that mentions that line of business. For example:
49
+
50
+ > Licensor Line of Business: YoyodyneCMS Content Management System (http://example.com/cms)
51
+
52
+ ## Sales of Business
53
+
54
+ If the licensor or any of its affiliates sells a line of business developing the software or using the software to provide a product, the buyer can also enforce [Noncompete](#noncompete) for that product.
55
+
56
+ ## Fair Use
57
+
58
+ You may have "fair use" rights for the software under the law. These terms do not limit them.
59
+
60
+ ## No Other Rights
61
+
62
+ These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
63
+
64
+ ## Patent Defense
65
+
66
+ If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
67
+
68
+ ## Violations
69
+
70
+ The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
71
+
72
+ ## No Liability
73
+
74
+ ***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
75
+
76
+ ## Definitions
77
+
78
+ The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
79
+
80
+ A **product** can be a good or service, or a combination of them.
81
+
82
+ **You** refers to the individual or entity agreeing to these terms.
83
+
84
+ **Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all its affiliates.
85
+
86
+ **Affiliates** means the other organizations than an organization has control over, is under the control of, or is under common control with.
87
+
88
+ **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
89
+
90
+ **Your licenses** are all the licenses granted to you for the software under these terms.
91
+
92
+ **Use** means anything you do with the software requiring one of your licenses.
package/NOTICE ADDED
@@ -0,0 +1,16 @@
1
+ Hard Keel Quantum Scan
2
+ Copyright 2026 Hard Keel (https://hardkeel.com)
3
+
4
+ Licensed under the PolyForm Shield License 1.0.0. See LICENSE.
5
+
6
+ Reports, CBOMs, SARIF files and other output the scanner makes are yours to
7
+ use however you want. The license covers the scanner's code only.
8
+
9
+ Versions 0.7.0 and earlier were released under the Apache License, Version 2.0,
10
+ and remain under it.
11
+
12
+ This repository also includes copies of the CycloneDX 1.6 JSON schemas, as published, in scripts/cyclonedx-1.6
13
+ (bom-1.6.schema.json, jsf-0.82.schema.json, spdx.schema.json), used only to check the CBOM files
14
+ that tests write. They are not part of the npm package.
15
+ From the CycloneDX project (OWASP Foundation). Licensed under the Apache License, Version 2.0.
16
+ Source: https://github.com/CycloneDX/specification (schema/)