post-quantum-crypto
Use this skill when the user says 'post-quantum cryptography', 'PQC migration', 'quantum-safe', 'ML-KEM', 'ML-DSA', 'SLH-DSA', 'Kyber/Dilithium', 'harvest now…
от j4flmao★ 47 звёзд на GitHub
Установить post-quantum-crypto в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Post-Quantum Cryptography (PQC) Migration
Purpose
A cryptographically relevant quantum computer (CRQC) running Shor's algorithm would break RSA, finite-field Diffie-Hellman, and elliptic-curve cryptography (ECDH, ECDSA, EdDSA). Nobody knows when one will exist, but data encrypted today can be recorded and decrypted later, and large systems take a decade to migrate. This skill turns that into a plan: what to replace, with which standardized algorithms, in what order, and how to stay agile.
Agent Protocol
Trigger
"post-quantum", "PQC", "quantum-safe", "ML-KEM", "ML-DSA", "SLH-DSA", "FN-DSA", "Kyber", "Dilithium", "harvest now decrypt later", "crypto inventory", "CNSA 2.0", "Q-Day".
Input Context
- Systems and protocols in use (TLS, SSH, VPN/IPsec, code signing, PKI, tokens/JWT, data-at-rest encryption, HSMs).
- Data confidentiality lifetimes; regulatory regime (US federal/NSS, EU, financial).
- Vendor/library versions and upgrade cadence.
Output Artifact
Risk-ranked inventory, target algorithms per use, hybrid/transition strategy, milestone plan, and agility requirements.
Response Format
Asset: {system/protocol} Primitive: {RSA-2048 key exchange|ECDSA P-256 sig|...}
Exposure: {HNDL confidentiality|signature forgery after CRQC} Data lifetime: {years}
Mosca: x + y > z ? {yes/no}
Target: {X25519MLKEM768 | ML-DSA-65 | SLH-DSA | AES-256} Mode: {hybrid|pure}
Dependency: {library/HSM/vendor version} Milestone: {date}
Completion Criteria
- Inventory covers protocols, libraries, certificates, HSMs, and third parties.
- Key exchange for long-lived confidential data prioritized (harvest-now-decrypt-later).
- Algorithms and parameter sets come from finalized standards.
- Hybrid strategy and fallback defined; crypto-agility built in.
What Breaks and What Doesn't
| Primitive | Quantum impact | Action |
|---|---|---|
| RSA, DH, ECDH, ECDSA, EdDSA | Broken by Shor (polynomial time on a CRQC) | Replace with ML-KEM / ML-DSA / SLH-DSA (hybrid during transition) |
| AES, ChaCha20 | Grover gives at most a quadratic speedup on key search, hard to parallelize | AES-128 still acceptable per NIST; prefer AES-256 for long-lived/high-assurance data (CNSA 2.0 requires it) |
| SHA-2, SHA-3 | Quadratic-type speedups at most | SHA-256+ fine; SHA-384/512 for high assurance |
| HMAC, KDFs | Symmetric; same as above | Keep, use 256-bit keys |
Standards (NIST)
| Standard | Algorithm | Type | Notes |
|---|---|---|---|
| FIPS 203 (Aug 2024) | ML-KEM-512/768/1024 (from CRYSTALS-Kyber) | KEM | ML-KEM-768 is the common default |
| FIPS 204 (Aug 2024) | ML-DSA-44/65/87 (from CRYSTALS-Dilithium) | Signature | General-purpose default |
| FIPS 205 (Aug 2024) | SLH-DSA (from SPHINCS+) | Hash-based signature | Conservative security assumption; large/slow signatures |
| FIPS 206 (forthcoming) | FN-DSA (from Falcon) | Signature | Small signatures; tricky floating-point implementation |
| SP 800-208 | LMS, XMSS | Stateful hash-based signatures | Firmware/code signing; state management is critical |
| Selected 2025 | HQC | KEM | Code-based backup to ML-KEM; standard in progress |
Size reality (bytes): ML-KEM-768 public key 1,184 / ciphertext 1,088 (X25519: 32/32). ML-DSA-65 public key 1,952 / signature 3,309 (Ed25519: 32/64). Protocols, certificate chains, and constrained devices must absorb this.
Timing: Mosca's Inequality
If x (years data must stay secret) + y (years to migrate) > z (years until a CRQC), you are already late for that data. Since z is uncertain and recorded traffic is decryptable later, key exchange protecting long-lived secrets is the first priority; signatures matter for anything whose authenticity must hold after a CRQC exists (firmware roots of trust, long-lived certificates, legal documents).
Policy signals: NSA CNSA 2.0 sets PQ transition milestones for US national security systems through the early 2030s; NIST IR 8547 (draft, 2024) proposes deprecating quantum-vulnerable public-key algorithms after 2030 and disallowing them after 2035. Track the final versions applicable to you.
Hybrid Deployment
- Key exchange: combine a classical and a PQ KEM so security holds if either is unbroken. In TLS 1.3 the deployed hybrid group is
X25519MLKEM768, on by default in current major browsers, Cloudflare, OpenSSL 3.5+, and Go 1.24+. - Signatures: WebPKI PQ certificates are not broadly deployed yet; internal PKI, code signing, and firmware can adopt ML-DSA/SLH-DSA or composite (dual) signatures sooner where you control verifiers.
- SSH: OpenSSH offers hybrid key exchange (
sntrup761x25519-sha512, andmlkem768x25519-sha256in recent releases; the latter became the default in OpenSSH 10.0).
Migration Program
- Inventory: scan code, configs, certificates, TLS endpoints, SSH, VPNs, HSM/KMS key types, third-party SDKs; produce a cryptographic bill of materials (CBOM).
- Classify: data lifetime, exposure (HNDL vs forgery), system li
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл post-quantum-crypto?
Use this skill when the user says 'post-quantum cryptography', 'PQC migration', 'quantum-safe', 'ML-KEM', 'ML-DSA', 'SLH-DSA', 'Kyber/Dilithium', 'harvest now decrypt later', 'crypto inventory', 'crypto agility', 'CNSA 2.0', 'Q-Day'. Plans the move to post-quantum cryptography: threat timing (Mosca), NIST standards and parameter choices, hybrid deployment, cryptographic inventory, prioritization, and crypto-agility. Do NOT use for: hands-on TLS/liboqs experiments (rnd/security/post-quantum-crypto-poc), how Shor's algorithm works (quantum-computing/shors-algorithm), or general crypto rules (.claude/rules/crypto-deprecation.md).
Как установить скилл post-quantum-crypto?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл post-quantum-crypto запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…