KPF-432 Multi-Basis PQC Shield, Holistic Balance Radar, TLS Probe & MCP (v1.4.0)
- Runtime: Pure Python 3.10+ stdlib CLI & MCP Server (
0pipdependencies,0tracking) +14,467 B#![no_std]RustWASM32browser verifier - PyPI Package:
kpf432-shield(pip install kpf432-shield) - Hash / XOF: Standard FIPS 202
SHAKE256(hashlib.shake_256in CLI,Keccak-f[1600]in Rust WASM32) - Author: Ihor Dietochevskyi (OMNISAVALON) — Part of the OMNISAVALON engineering ecosystem. (ROADMAP)
What KPF-432 Does (v1.4.0)
- 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) andLATTICE_MONOCULTURE_RISK(structured-lattice PQC deployed without hash-based or code-based fallback). - Exports CycloneDX 1.6 CBOM (
--cbom, including infracertificateandprotocolassets), SARIF 2.1.0 (--sarif, withbaselineState), README SVG badges (--badge), and Markdown compliance certificates sealed withSHAKE256(--cert-md).
- Scans source code (
- Infrastructure Perimeter Scanner (0 External ASN.1/OpenSSL Packages):
- Pure-Python ASN.1 DER X.509 PEM Parser: Decodes certificate OIDs (
RSAwith exact modulus bit length e.g.RSA-1024/RSA-2048,sha1WithRSAEncryption,ECDSA,Ed25519, plus NISTML-DSA&SLH-DSA) directly from DER bytes. - OpenSSH Wire Key Parser: Extracts exact RSA bit lengths from
ssh-rsa,ssh-dss,ecdsa-*, andssh-ed25519public keys inauthorized_keys,known_hosts, and.pubfiles. - 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.5version pinning, WireGuard peers missingPresharedKey,cert-managerclassical keys,openssl genrsainDockerfiles, and committed PEM private-key blocks.
- Pure-Python ASN.1 DER X.509 PEM Parser: Decodes certificate OIDs (
- 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.
- Inspects live TLS handshakes over stdlib
- 6-Axis Holistic Resilience Radar, Executive HTML Report (
--report-html) & Built-in MCP Server (--mcp):- Evaluates any repository and live TLS perimeter across 6 orthogonal axes (
mathematical_foundation,live_perimeter,inventory_visibility,crypto_agility,code_and_prompt_hygiene,defensive_sovereignty), computes a weak-link Harmonic Resilience Index (skew_penalty), classifies gaps into H1 2027 Urgency Buckets (TIER_0_IMMEDIATE_CRITICAL,TIER_1_PRE_2027_H1,TIER_2_MULTI_BASIS_ORTHOGONAL), and generates strictly defensiverebalance_directives. - Generates a zero-dependency, print-ready HTML/PDF audit deliverable (
--report-html audit.html) with an embedded 6-axis Kintsugi SVG radar, sealed withSHAKE256. - Exposes a stdlib JSON-RPC 2.0 MCP server (
kpf432-shield --mcp) with 5 native tools so any AI agent can invokekpf432_audit_repo,kpf432_probe_tls,kpf432_check_hygiene,kpf432_check_ratchet, andkpf432_rebalance_plan.
- Evaluates any repository and live TLS perimeter across 6 orthogonal axes (
- Tiered Crypto-Agility Gates (
observe->hybrid->enforce|ai-accelerated-2027) & 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 code5, SARIFbaselineState: new), transition via--mode hybrid, target the H1 2027 critical transition window via--policy ai-accelerated-2027, and lock in full multi-basis readiness with--mode enforce.
- Adopt PQC progressively without breaking legacy production builds: start in
- 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 asU+6536 U+8D77collapse-button glyphs) across code, configs, and manifests with line/column/codepoint reporting in SARIF 2.1.0. Pass--allow-cjkfor CJK-localized repositories.
- Catches CVE-2021-42574 BiDi override/isolate controls (
- Reference Dual-Orthogonal Hybrid Signer (
Module-LWE AND Stateful WOTS+/Merkle):- Root 1 (Algebraic Lattice):
Module-LWE / Module-SISoverZ_8380417[X]/(X^256 + 1)withk=4, l=4, eta=2, tau=39, gamma1=131072, unbiased rejection sampling, and negacyclic NTT. - Root 2 (Stateful Hash Tree): Stateful
WOTS+(w=16, 67chains) +Merkle Tree(H=6, 64one-time leaves in CLI;H=4in browser demo) overSHAKE256, with strict monotonicnext_leaf_idxpersistence and exhaustion guards (STATEFUL_WOTS_LEAVES_EXHAUSTED). - Verification uses strict conjunction (
AND): both roots must validate independently.
- Root 1 (Algebraic Lattice):
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 overSHAKE256— 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 with 6-Axis Holistic Radar
kpf432-shield --audit ./src --probe example.com:443 --policy ai-accelerated-2027 --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.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kpf432_shield-1.4.0.tar.gz | 49.9 kB | With provenance | Details for kpf432_shield-1.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kpf432_shield-1.4.0-py3-none-any.whl | Python 3 | none | any | Details for kpf432_shield-1.4.0-py3-none-any.whl |
Total release size: 100.4 kB
Release files / kpf432_shield-1.4.0.tar.gz
| Download URL | kpf432_shield-1.4.0.tar.gz |
|---|---|
| Size | 49.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c5e1f7b723ce51bd52f188de3533e83e5c1e0b1e523740d7841691925f5df7e
|
|
BLAKE2b-256 checksum How to use checksums |
2bd43c27d8b3d7f92842adf5240f8ee81f98feda696cf48aef4ccd7580f0aa6e
|
| 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 logRelease files / kpf432_shield-1.4.0-py3-none-any.whl
| Download URL | kpf432_shield-1.4.0-py3-none-any.whl |
|---|---|
| Size | 50.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf148186fcebbdb3be72272d730c72e093225992281b3b99323402eb5e020748
|
|
BLAKE2b-256 checksum How to use checksums |
604691f7a60709f441892b93f5f9a6592ec1ad7c3565ff0e7d215e9e2bc86c43
|
| 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 logSecurity for kpf432-shield 1.4.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.
Attestation for kpf432_shield-1.4.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 logA 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.