pq-stack-check

A free command-line check that detects what your project is built with, then looks for post-quantum readiness gaps and common security faults. Runs on its own or as a Claude Code skill.

Version
1.3.1
Licence
MIT
SHA-256 of pq-stack-check-1.3.1.zip
0629EF07179FF205499BED8E0E54ABC734ED63A5E4CDAE72EADEAE67444CF6F5
Important: This is a pattern-based first pass, not a security audit. It will miss things and raise false alarms, and a clean result does not mean your project is safe. Its version and library advice is dated 3 December 2026.

What it looks for

  • Public-key cryptography to record and plan to replace
  • Token and key columns too small for post-quantum sizes
  • TLS and database connection settings
  • Hard-coded secrets, committed env files and private keys, including ones added in earlier commits, with whether they are still in your files (optional --history scan)
  • Disabled certificate or token verification, weak hashing and randomness
  • Dependencies and runtimes:
    • Requirements that are not pinned to an exact version
    • Versions of a short list of libraries (psycopg, cryptography, paramiko, asyncssh, jose, PyJWT) against sourced post-quantum thresholds
    • Binary packages that bundle their own OpenSSL, so a base-image update does not reach them
    • Base images and pinned runtime versions that predate hybrid post-quantum TLS
    • Known vulnerabilities in Python and npm packages (optional --deps check)

Library version checks cover seven libraries only, from requirements*.txt, pyproject.toml, Pipfile, poetry.lock, uv.lock, package.json and their lock files. Thresholds are sourced and dated 3 December 2026, and the bundled-OpenSSL ones come from Linux x86_64 wheels only. Other libraries and ecosystems are not checked.

Coverage

LevelStacks
Deeper checksDjango, PostgreSQL
Basic pattern checksPython, Flask, FastAPI, JavaScript/TypeScript, Node, React, Next.js, Vue, Angular, Svelte, React Native, PHP, Laravel, Ruby, Rails, Go, Java/Kotlin, Android, .NET, Rust, B4X, Docker, Nginx
Detected, generic checks onlyMySQL, SQLite, MongoDB, Redis, Apache, Railway, Cloudflare, Vercel, Netlify, GitHub Actions, Terraform

Privacy

The default scan is offline and does not run your project's code. It does not print matched secret values, but reports contain file paths, so keep them private. The optional --host, --db and --deps checks make network connections (--history stays offline). Only use them on systems and code you are authorised to test and trust.

--host needs OpenSSL 3.5 or later as openssl on your PATH. macOS's built-in one is LibreSSL and does not qualify. Without a suitable one the probe is skipped and listed under "Not checked", never reported as a pass. It has been run on Windows and Ubuntu, not macOS.

Quick start

Needs Python 3.9 or later. Unzip the download, then:

python pq-stack-check/scripts/pq_check.py path\to\project --detect-only python pq-stack-check/scripts/pq_check.py path\to\project

To use it as a Claude Code skill, unzip it into ~/.claude/skills/. The README lists the requirements and known limits.

Buy me a coffee

If it saved you some time, a coffee helps me keep improving it.

Buy me a coffee