Skip to main content

PlySec

Stop Hardcoding Math That Breaks. Audit Your Repo's Crypto-Agility in 10 Seconds.

PlySec is an open-source Zero-Trust CBOM Scanner, Post-Quantum Exposure Auditor, and Policy-Driven "Matryoshka" Crypto-Agility SDK.

Modern breaches and cryptographic failures don't just come from MD5 or RSA-1024. Following November 2026 CIRG & Post-Quantum Crypto-Agility advisories, deploying un-hybridized Post-Quantum primitives (ML-KEM / Kyber without classical X25519/ECDH fallback) creates a dangerous PQC Single-Point-of-Failure—while scattering raw cryptographic library imports across business logic creates crippling Agility Debt.

PlySec solves both in one workflow:

  1. Audit (plysec scan): AST + multi-language scanner computes your Crypto-Agility Score (0–100), estimates remediation engineering hours, and exports a CycloneDX 1.6 CBOM JSON.
  2. Abstract (plysec.Vault): Write Vault.protect(data) and Vault.unprotect(token) once. Hot-swap nested AEAD layers (AES-256-GCM braided with ChaCha20-Poly1305 via HKDF-SHA256) and rotate key versions declaratively in plysec.yaml—zero business-logic rewrites.

Quickstart

1. Install the CLI & SDK

pip install plysec

(For local development from source: pip install -e ".[dev]")

2. Audit a Repository

plysec scan ./demo_vulnerable_app

Export a CycloneDX-compatible Cryptographic Bill of Materials (CBOM) and enforce CI gates:

plysec scan ./demo_vulnerable_app --cbom cbom.json --fail-under 70

3. Replace Hardcoded Crypto with plysec.Vault

Create a plysec.yaml policy (plysec init):

version: 1
active_key_version: "v2"
layers:
  - "aes-256-gcm"
  - "chacha20-poly1305"
keys:
  v1: "env:PLYSEC_MASTER_KEY_V1"
  v2: "env:PLYSEC_MASTER_KEY_V2"

Use the SDK once in application code:

from plysec import Vault

vault = Vault.from_yaml("plysec.yaml")
token = vault.protect(b"sensitive customer payload")
plaintext = vault.unprotect(token)

Need to rotate keys (v2 → v3) or reverse/upgrade the cipher braid? Update plysec.yaml—Vault.unprotect() automatically inspects the authenticated envelope header to peel legacy layers and key versions with zero downtime.


What PlySec Detects

Severity Category Examples
CRITICAL Broken Primitives & Hardcoded Secrets MD5, SHA1, DES, 3DES, RC4, RSA-1024, hardcoded PEM private keys & literal AES/JWT secrets
HIGH PQC Single-Point-of-Failure & Legacy Asymmetric Standalone ML-KEM / Kyber without X25519/ECDH hybrid fallback (CIRG Nov 2026), RSA-2048, static ECDSA
AGILITY_DEBT Scattered Crypto Coupling Direct hashlib/cryptography/node:crypto imports spread across multiple business-logic files

Supported languages & configs: Python (AST + rules), TypeScript/JavaScript, Go, Java, Rust, YAML, JSON, and .env.


Web App & Interactive Scanner

PlySec also ships a FastAPI serverless backend (api/index.py) and dark-mode interactive browser scanner (public/index.html) ready for Vercel deployment:

  • POST /api/scan — Instant browser-based Crypto-Agility Score + CycloneDX CBOM export
  • GET /api/samples — Pre-loaded vulnerable microservices for instant testing
  • GET /api/health — Service health & engine metadata

Run locally:

uvicorn api.index:app --reload

License

Apache-2.0

Metadata

Release files for plysec 0.1.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 plysec 0.1.0
File Size Uploaded Provenance Actions
plysec-0.1.0.tar.gz 29.2 kB Without provenance Details for plysec-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for plysec 0.1.0
File Interpreter ABI Platform Actions
plysec-0.1.0-py3-none-any.whl Python 3 none any Details for plysec-0.1.0-py3-none-any.whl

Total release size: 53.6 kB

Release files / plysec-0.1.0.tar.gz

Download URL plysec-0.1.0.tar.gz
Size 29.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bab181aaeec954ceefd12a3723b2925fada0aac020789cfb191d5faadc9fd885
BLAKE2b-256 checksum
How to use checksums
7db49b1d9369f89b44c4e96a26ea31232dd6d94e65d96d148bca7a8f3439c718
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.4

Release files / plysec-0.1.0-py3-none-any.whl

Download URL plysec-0.1.0-py3-none-any.whl
Size 24.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98b7276ed58285e3b087d8ef9a00fdd72e23669a81ff5b627efab1fa9de3e7d4
BLAKE2b-256 checksum
How to use checksums
4389ff493242a7e2a511dde138f3460e25a8bbb590ccf8a4468c391b082fddf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.4

Security for plysec 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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