Skip to main content

KPF-432 Multi-Basis PQC Shield, Perimeter Auditor, TLS Probe & MCP (v1.3.0)

  • Runtime: Pure Python 3.10+ stdlib CLI & MCP Server (0 pip dependencies, 0 tracking) + 14,467 B #![no_std] Rust WASM32 browser verifier
  • PyPI Package: kpf432-shield (pip install kpf432-shield)
  • Hash / XOF: Standard FIPS 202 SHAKE256 (hashlib.shake_256 in CLI, Keccak-f[1600] in Rust WASM32)
  • Author: Ihor Dietochevskyi (OMNISAVALON) — Part of the OMNISAVALON engineering ecosystem. (ROADMAP)

What KPF-432 Does (v1.3.0)

  1. DevSecOps PQC Readiness & CIRG Diversity Scanner (CI/CD Ready):
    • Scans source code (.py, .rs, .js, .ts, .go, .java, .c, .cpp, etc.), dependency manifests (package.json, Cargo.toml, pyproject.toml, requirements.txt, go.mod, pom.xml), and configs separately from documentation (scoring_basis: code_and_manifests).
    • Detects CLASSICAL_ONLY_QUANTUM_EXPOSED (RSA, ECDSA, Ed25519, X25519) and LATTICE_MONOCULTURE_RISK (structured-lattice PQC deployed without hash-based or code-based fallback).
    • Exports CycloneDX 1.6 CBOM (--cbom, including infra certificate and protocol assets), SARIF 2.1.0 (--sarif, with baselineState), README SVG badges (--badge), and Markdown compliance certificates sealed with SHAKE256 (--cert-md).
  2. Infrastructure Perimeter Scanner (0 External ASN.1/OpenSSL Packages):
    • Pure-Python ASN.1 DER X.509 PEM Parser: Decodes certificate OIDs (RSA with exact modulus bit length e.g. RSA-1024/RSA-2048, sha1WithRSAEncryption, ECDSA, Ed25519, plus NIST ML-DSA & SLH-DSA) directly from DER bytes.
    • OpenSSH Wire Key Parser: Extracts exact RSA bit lengths from ssh-rsa, ssh-dss, ecdsa-*, and ssh-ed25519 public keys in authorized_keys, known_hosts, and .pub files.
    • TLS / SSH / WireGuard / OpenSSL / K8s Hardening: Flags TLSv1.0/TLSv1.1, TLSv1.2-without-TLSv1.3, weak ciphers, missing hybrid PQC KEM groups (X25519MLKEM768 / mlkem768x25519-sha256), OpenSSL < 3.5 version pinning, WireGuard peers missing PresharedKey, cert-manager classical keys, openssl genrsa in Dockerfiles, and committed PEM private-key blocks.
  3. Live TLS Endpoint Probe (--probe host:443 & --probe-file):
    • Inspects live TLS handshakes over stdlib ssl + pure-Python ASN.1 DER X.509 parsing: reports TLS protocol, negotiated cipher, exact leaf cert RSA/ECC/PQC details, expiry, and distinguishes managed CDN edges (Cloudflare/Fastly/Akamai) from self-hosted origin TLS.
  4. Executive HTML/PDF Audit Report (--report-html) & Built-in MCP Server (--mcp):
    • Generates a zero-dependency, print-ready HTML/PDF audit deliverable (--report-html audit.html) sealed with SHAKE256.
    • Exposes a stdlib JSON-RPC 2.0 MCP server (kpf432-shield --mcp) so any AI agent can invoke kpf432_audit_repo, kpf432_probe_tls, kpf432_check_hygiene, and kpf432_check_ratchet natively.
  5. Tiered Crypto-Agility Gates (observe -> hybrid -> enforce) & Ratchet Baseline:
    • Adopt PQC progressively without breaking legacy production builds: start in --mode observe, record a repo snapshot via --write-baseline, block new classical/infra regressions in PRs with --baseline (exit code 5, SARIF baselineState: new), transition via --mode hybrid, and lock in full multi-basis readiness with --mode enforce.
  6. Deterministic Unicode / BiDi Hygiene Gate (--fail-on-hygiene):
    • Catches CVE-2021-42574 BiDi override/isolate controls (U+202A..U+202E, U+2066..U+2069), zero-width invisible characters (U+200B..U+200D, U+2060), and unexpected stray CJK UI tokens (such as U+6536 U+8D77 collapse-button glyphs) across code, configs, and manifests with line/column/codepoint reporting in SARIF 2.1.0. Pass --allow-cjk for CJK-localized repositories.
  7. Reference Dual-Orthogonal Hybrid Signer (Module-LWE AND Stateful WOTS+/Merkle):
    • Root 1 (Algebraic Lattice): Module-LWE / Module-SIS over Z_8380417[X]/(X^256 + 1) with k=4, l=4, eta=2, tau=39, gamma1=131072, unbiased rejection sampling, and negacyclic NTT.
    • Root 2 (Stateful Hash Tree): Stateful WOTS+ (w=16, 67 chains) + Merkle Tree (H=6, 64 one-time leaves in CLI; H=4 in browser demo) over SHAKE256, with strict monotonic next_leaf_idx persistence and exhaustion guards (STATEFUL_WOTS_LEAVES_EXHAUSTED).
    • Verification uses strict conjunction (AND): both roots must validate independently.

Security & Scope Notice: The CI/CD scanner (--audit, --cbom, --sarif, --fail-on-hygiene) is production-ready for repository posture and hygiene gating. The bundled dual-root signer is a compact, zero-dependency reference/research implementation over SHAKE256 — it is not wire-compatible with NIST FIPS 204 (ML-DSA) or FIPS 205 (SLH-DSA). For regulated production artifact signing, pair it with audited FIPS 204 + FIPS 205 implementations.


Quick Start (Zero pip Runtime Dependencies)

# 0. One-command install from PyPI (0 third-party dependencies)
pip install kpf432-shield
kpf432-shield --self-test

# 1. Probe live TLS endpoints + generate an Executive HTML/PDF audit report
kpf432-shield --audit ./src --probe example.com:443 --report-html kpf432-report.html --cbom cirg-cbom.json --sarif cirg-audit.sarif --fail-on-hygiene

# 2. Or run progressive ratchet mode with --baseline
kpf432-shield --audit ./src --mode observe --write-baseline kpf432-baseline.json
kpf432-shield --audit ./src --mode hybrid --baseline kpf432-baseline.json --fail-on-hygiene --min-score 70

# 3. Generate a reference hybrid keypair and sign/verify sequentially (stateful next_leaf_idx persists in key.json)
kpf432-shield --keygen --out kpf432-keys.json
kpf432-shield --sign release.tar.gz --key kpf432-keys.json --out release.kpf432.sig.json
kpf432-shield --verify release.tar.gz --pub kpf432-keys.json --sig release.kpf432.sig.json

Use as an MCP Server in Any AI Agent / IDE

Add kpf432-shield --mcp to your MCP client config (mcp_config.json, Cursor, VS Code, etc.):

{
  "mcpServers": {
    "kpf432-shield": {
      "command": "kpf432-shield",
      "args": ["--mcp"]
    }
  }
}

GitHub Action (OMNISAVALON/kpf432-pqc-shield@v1)

See example-release-workflow.yml to enforce minimum CIRG diversity scores and Unicode BiDi hygiene while generating cirg-audit.sarif, cirg-cbom.json, and cirg-badge.svg in CI.


Licensing (ASL-ULPF Dual-License)

Tier Scope Price
Open-Source Core Personal use, academic research, and OSI-approved Open-Source projects (kpf432_shield.py CLI + WASM32 verifier) Free (€0)
Team Commercial CI/CD License Proprietary commercial repositories, automated CI/CD SARIF/CBOM & perimeter ratchet gates €49 Polar.sh • Creem.io
Enterprise Shield Pack Organization-wide CI/CD deployment across unlimited internal pipelines €99 Polar.sh • Creem.io
Express PQC, TLS/SSH & CBOM Audit (NIS2 Ready) Full repository + X.509/TLS/SSH/K8s perimeter audit within 48h (CycloneDX 1.6 CBOM, SARIF 2.1.0, --baseline ratchet JSON, migration plan + Team license) €199 Polar.sh • Creem.io

Interactive browser WASM32 verifier: https://omnisavalon-kpf432-pqc-site.static.hf.space/ — see LICENSE.md for full terms.

Metadata

Release files for kpf432-shield 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kpf432-shield 1.3.0
File Size Uploaded Provenance Actions
kpf432_shield-1.3.0.tar.gz 43.9 kB With provenance Details for kpf432_shield-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kpf432-shield 1.3.0
File Interpreter ABI Platform Actions
kpf432_shield-1.3.0-py3-none-any.whl Python 3 none any Details for kpf432_shield-1.3.0-py3-none-any.whl

Total release size: 88.4 kB

Release files / kpf432_shield-1.3.0.tar.gz

Download URL kpf432_shield-1.3.0.tar.gz
Size 43.9 kB
Tags Source
SHA-256 checksum
How to use checksums
28b065e93e8311c472102324fec2f9835cfe5b36619fd09ce398ae6121188185
BLAKE2b-256 checksum
How to use checksums
37a0e382e21e0277e687bc232eeb2f8c86c1145a7ac222df2182d743cb5b0944
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Release files / kpf432_shield-1.3.0-py3-none-any.whl

Download URL kpf432_shield-1.3.0-py3-none-any.whl
Size 44.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
81613a1ca60b3810407faedb54fdbdc1d8a6d0bbff2b7aa5b391e256a1b844d8
BLAKE2b-256 checksum
How to use checksums
bbb14ea357bf0fa6fd24922d63cbcae1f64aef824f9f257900b008e70bada69a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Security for kpf432-shield 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kpf432_shield-1.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page