KPF-432 Multi-Basis PQC Shield, Perimeter Auditor & Crypto-Agility (v1.2.0)
- Runtime: Pure Python 3.12 stdlib CLI (
0pipdependencies,0network calls,0tracking) +14,467 B#![no_std]RustWASM32browser verifier - 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.2.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 / Container / Kubernetes Hardening: Flags
TLSv1.0/TLSv1.1,TLSv1.2-without-TLSv1.3, weak ciphers, missing hybrid PQC KEM groups (X25519MLKEM768/mlkem768x25519-sha256),cert-managerclassical keys,openssl genrsainDockerfiles, and committed PEM private-key blocks.
- Pure-Python ASN.1 DER X.509 PEM Parser: Decodes certificate OIDs (
- 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 code5, SARIFbaselineState: new), transition via--mode hybrid, 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. Optional one-command CLI install directly from GitHub release tag (PyPI package: kpf432-shield)
pip install git+https://github.com/OMNISAVALON/kpf432-pqc-shield.git@v1.2.0
kpf432-shield --self-test
# 1. Or run the single file directly with zero installation: Verify SHAKE256 KAT, dual-root sign/verify, ASN.1 DER X.509 & ratchet
python3 kpf432_shield.py --self-test
# 2. Audit repository + TLS/SSH/X.509 perimeter in progressive ratchet mode
python3 kpf432_shield.py --audit ./src --mode observe --write-baseline kpf432-baseline.json
python3 kpf432_shield.py --audit ./src \
--mode hybrid \
--baseline kpf432-baseline.json \
--out cirg-report.json \
--cbom cirg-cbom.json \
--sarif cirg-audit.sarif \
--badge cirg-badge.svg \
--cert-md cirg-certificate.md \
--fail-on-hygiene \
--min-score 70
# 3. Generate a reference hybrid keypair and sign/verify sequentially (stateful next_leaf_idx persists in key.json)
python3 kpf432_shield.py --keygen --out kpf432-keys.json
python3 kpf432_shield.py --sign release.tar.gz --key kpf432-keys.json --out release.kpf432.sig.json
python3 kpf432_shield.py --verify release.tar.gz --pub kpf432-keys.json --sig release.kpf432.sig.json
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.2.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.2.0.tar.gz | 32.4 kB | With provenance | Details for kpf432_shield-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kpf432_shield-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for kpf432_shield-1.2.0-py3-none-any.whl |
Total release size: 65.3 kB
Release files / kpf432_shield-1.2.0.tar.gz
| Download URL | kpf432_shield-1.2.0.tar.gz |
|---|---|
| Size | 32.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0decf6ca5b9e1bcaec0f64c687acf6a0f8a592fa79397a6d7fe1941203e00c8e
|
|
BLAKE2b-256 checksum How to use checksums |
252f00d2dd675ac4b2dbd3f4071474f55a32d7cce6c46761419a7fa4a9caa297
|
| 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.2.0-py3-none-any.whl
| Download URL | kpf432_shield-1.2.0-py3-none-any.whl |
|---|---|
| Size | 32.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc30e76637bdb45507064e1946c87454483e656489d61091410a2a495ec058e9
|
|
BLAKE2b-256 checksum How to use checksums |
fc1549500275714ffc61e685c05c08f7dc094469ec5151a8ae4456bc175c6638
|
| 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.2.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.2.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.