q-trust

qtrust-inspector

Multi-language cryptographic inventory and post-quantum risk scanner. Produces CycloneDX CBOMs, SARIF findings, compliance scoring (NIST / CNSA / PCI / BSI / NCSC / ASD), PCAP and network-log HNDL analysis, and migration roadmaps. Part of the Q-Trust project (humoge7502/q-trust on GitHub).

Install

pip install qtrust-inspector

Use

crypto-inspector scan example.com -c nist,cnsa
crypto-inspector scan ./src --sarif findings.sarif --cyclonedx cbom.json

Library

from qtrust_inspector.scanner import scan_host

result = scan_host("example.com")
print(result.finding_count, result.by_algorithm)

Use in CI

The repository root ships a composite GitHub Action, action.yml (“Q-Trust Crypto Gate”), so other repositories can scan their source for cryptographic API usage on every pull request:

jobs:
  crypto-gate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7  # pin a SHA in your own workflow
      - uses: humoge7502/q-trust@main
        with:
          path: .
          threshold: high        # critical|high|medium
          advisory-only: true    # tripped gate never fails the job
          upload-cbom: true

Each run does the following:

Alpha limitations:

Real-world corpora and benchmarks live in KRISHNAPURI/q-trust-datasets.