Documentation

Pull the container image, add your key, and run your first scan.

Quickstart

The scanner ships as one container image for Linux (x86-64 and Arm). It runs anywhere Docker or Podman runs, including macOS and Windows laptops, servers and CI runners.

1. Pull the image

shell
docker pull byterock/quantumsafecryptography

2. Add your key

Get a free key, then make it available to the container:

shell
export QSC_LICENSE_KEY=<key>

3. Create the qsc alias

The alias runs the image on the current directory, so every qsc command on this site works as written. Reports are written to the current directory; scan history and advisory updates are kept in the qsc-data volume.

shell
alias qsc='docker run --rm -u "$(id -u):$(id -g)" -e QSC_LICENSE_KEY -v "$PWD:/src" -v qsc-data:/home/qsc/.qsc byterock/quantumsafecryptography'

4. Scan

shell
qsc scan .

5. Fix

Writes a remediation plan and, for deterministic configuration cases only, unified-diff patches. Use --apply to write them; humans review every change. No changes are deployed automatically.

shell
qsc fix .

6. Re-check and gate CI

Classifies findings as fixed, new or still open against a previous result, and fails the build on new findings.

shell
qsc scan . --baseline previous.json --fail-on new

7. Dashboard

The dashboard has no login, so publish its port on your own machine only:

shell
docker run --rm -e QSC_LICENSE_KEY -v qsc-data:/home/qsc/.qsc -p 127.0.0.1:8765:8765 byterock/quantumsafecryptography serve --host 0.0.0.0
# then open http://127.0.0.1:8765

8. More commands

shell
qsc learn                        # education in your terminal
qsc advisories show QSC-ALG-0001 # one advisory
qsc doctor                       # licence, version and probe checks

Without the alias, put docker run --rm -u "$(id -u):$(id -g)" -e QSC_LICENSE_KEY -v "$PWD:/src" -v qsc-data:/home/qsc/.qsc byterock/quantumsafecryptography in front of any command instead of qsc.

CI/CD

Store the key as a secret named QSC_LICENSE_KEY. Any CI system that can run a container works: GitHub Actions, GitLab, Jenkins, Azure DevOps and Bitbucket.

GitHub Actions

.github/workflows/qsc.yml
name: quantum-safe-scan
on: [push, pull_request]
jobs:
  qsc:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      security-events: write
    steps:
      - uses: actions/checkout@v4
      - name: Scan for quantum-vulnerable cryptography
        env:
          QSC_LICENSE_KEY: ${{ secrets.QSC_LICENSE_KEY }}
        run: >
          docker run --rm -u "$(id -u):$(id -g)" -e QSC_LICENSE_KEY -v "$PWD:/src"
          byterock/quantumsafecryptography scan . --format sarif,html,cbom --fail-on critical
      - uses: github/codeql-action/upload-sarif@v3
        if: always()
        with:
          sarif_file: qsc-reports/qsc-report.sarif

Findings appear under Security, Code scanning; the job fails on critical findings.

GitLab CI

.gitlab-ci.yml
quantum-safe-scan:
  image:
    name: byterock/quantumsafecryptography:latest
    entrypoint: [""]
  script:
    - qsc scan . --format sarif,html,cbom --fail-on critical
  artifacts:
    when: always
    paths: [qsc-reports/]

Report formats

  • JSON: full scan result.
  • SARIF 2.1.0: for GitHub code scanning and other review tools.
  • CycloneDX CBOM (1.6): the cryptographic inventory.
  • HTML: a readable report.
  • Markdown: for tickets and pull requests.
shell
qsc scan . --format cbom,html,sarif

Licence model

Keys are signed tokens verified offline by the scanner. They are valid for 30 days and renew free of charge.

What each licence state allows
StateWhat happens
No keyScanning is refused, with a link to the free key page. Help, qsc learn, qsc advisories, qsc doctor and qsc license still work.
Valid keyEverything works.
Expired keyScanning keeps working (console results and CI exit codes, so pipelines do not break). Report and export files, qsc fix, qsc diff, the dashboard and advisory updates pause until a free renewal.

Renew your key

Data boundary

The scanner runs inside your network and sends nothing anywhere: no telemetry, no scan results. The only outbound calls are ones you start:

  • qsc advisories update: a licence-authenticated download of a signed advisory bundle.
  • Opt-in network and cloud probes of your own targets.

This website stores your registration details, licence issuance and renewal events, and service requests. It never receives scan results.

Licence terms

Quantum Safe Compliance is proprietary software, distributed only as a compiled container image. Use within your organisation is governed by the licence key terms; see licensing for common questions. Enterprise, partner and OEM licences are available through Services.