[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E58KMZDB7ZFDM3X81HF6ZV":3,"skill-same:01M7E58KMZDB7ZFDM3X81HF6ZV":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M7E58KMZDB7ZFDM3X81HF6ZV","migrating-to-post-quantum-cryptography",null,"Build a cryptographic inventory\u002FCBOM with OpenSSL 3.5+, deploy hybrid post-quantum key exchange (X25519MLKEM768) on TLS\u002FVPN\u002FSSH endpoints, generate ML-KEM\u002FML-DSA keys and PQC\u002Fhybrid certificates, and prioritize migration by harvest-now-decrypt-later (HNDL) exposure per NIST SP 1800-38. Use when inventorying enterprise cryptography for quantum-readiness, enabling hybrid PQC key exchange, or issuing and verifying PQC\u002Fhybrid certificates.","sanjeevafk\u002Fagent-skills","sanjeevafk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F230678117?v=4","01M7C540EFY46ETG1NNWKS5X3Q","Sanjeev","01M7C540F366J5C1D587BMKH9Q",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fmigrating-to-post-quantum-cryptography\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fmigrating-to-post-quantum-cryptography\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: migrating-to-post-quantum-cryptography\ndescription: Build a cryptographic inventory\u002FCBOM with OpenSSL 3.5+, deploy hybrid post-quantum key exchange (X25519MLKEM768) on TLS\u002FVPN\u002FSSH endpoints, generate ML-KEM\u002FML-DSA keys and PQC\u002Fhybrid certificates, and prioritize migration by harvest-now-decrypt-later (HNDL) exposure per NIST SP 1800-38. Use when inventorying enterprise cryptography for quantum-readiness, enabling hybrid PQC key exchange, or issuing and verifying PQC\u002Fhybrid certificates.\ndomain: cybersecurity\nsubdomain: cryptography\ntags:\n- post-quantum\n- cryptography\n- ml-kem\n- ml-dsa\n- crypto-agility\n- cbom\n- tls\n- quantum-readiness\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.DS-02\nmitre_attack:\n- T1573\n---\n# Migrating to Post-Quantum Cryptography\n\n> **Scope and Authorization:** This skill describes defensive cryptographic-migration engineering on systems you own or operate. Cryptographic discovery scanning can touch sensitive key material and production traffic — run inventory tooling only with authorization and in line with your organization's change-management and data-handling policies.\n\n## Overview\n\nA cryptographically relevant quantum computer (CRQC) running Shor's algorithm will break the public-key cryptography that secures almost all of today's communications and signatures: RSA, finite-field and elliptic-curve Diffie-Hellman (DH\u002FECDH), and ECDSA. Symmetric primitives (AES) and hashes (SHA-2\u002F3) are only weakened (Grover gives a quadratic speedup, mitigated by larger key\u002Foutput sizes), but asymmetric algorithms are catastrophically broken. The most urgent threat is **harvest-now, decrypt-later (HNDL)**: adversaries capturing encrypted traffic today to decrypt once a CRQC exists, which puts long-lived secrets (health records, state secrets, intellectual property, root-of-trust keys) at risk *now*.\n\nOn 13 August 2024 NIST finalized the first post-quantum standards: **FIPS 203 (ML-KEM**, Module-Lattice KEM, formerly CRYSTALS-Kyber) for key establishment, **FIPS 204 (ML-DSA**, Module-Lattice digital signatures, formerly CRYSTALS-Dilithium), and **FIPS 205 (SLH-DSA**, the stateless hash-based signature scheme SPHINCS+). The migration playbook (NIST SP 1800-38, *Migration to Post-Quantum Cryptography*) is: (1) build a **cryptographic inventory \u002F CBOM**, (2) prioritize by HNDL exposure and crypto-agility, (3) deploy **hybrid** schemes (a classical algorithm AND a PQC algorithm combined, e.g. `X25519MLKEM768`) so a break in either leg does not compromise the session, and (4) re-key and rotate.\n\nThis skill maps to ATT&CK **T1573 – Encrypted Channel**: the same cryptographic channels adversaries abuse for stealthy C2 are the channels defenders must make quantum-resistant; understanding the algorithms in use is foundational to both attack detection and defensive migration. The NIST CSF outcome is **PR.DS-02 (data-in-transit protection)** — and by extension data-at-rest for HNDL-sensitive stores.\n\n## When to Use\n\n- When building an enterprise cryptographic inventory \u002F Cryptography Bill of Materials (CBOM) for quantum-readiness.\n- When prioritizing which systems must migrate first based on data lifetime and HNDL exposure.\n- When enabling hybrid post-quantum key exchange (`X25519MLKEM768`) on TLS endpoints, VPNs, or SSH.\n- When issuing PQC or hybrid certificates and testing PQC signature verification.\n- When evaluating crypto-agility — the ability to swap algorithms without re-architecting applications.\n\n## Prerequisites\n\n- OpenSSL **3.5.0 or later**, which ships native ML-KEM, ML-DSA, and SLH-DSA support:\n  ```bash\n  openssl version            # expect 3.5.0+\n  openssl list -kem-algorithms | grep -i mlkem\n  openssl list -signature-algorithms | grep -i mldsa\n  ```\n- For OpenSSL 3.0–3.4, the Open Quantum Safe **oqs-provider** plus **liboqs**:\n  ```bash\n  git clone https:\u002F\u002Fgithub.com\u002Fopen-quantum-safe\u002Fliboqs && \\\n    cmake -S liboqs -B liboqs\u002Fbuild && cmake --build liboqs\u002Fbuild && \\\n    sudo cmake --install liboqs\u002Fbuild\n  git clone https:\u002F\u002Fgithub.com\u002Fopen-quantum-safe\u002Foqs-provider && \\\n    cmake -S oqs-provider -B oqs-provider\u002F_build && \\\n    cmake --build oqs-provider\u002F_build && \\\n    sudo cmake --install oqs-provider\u002F_build\n  ```\n- Python 3.8+ for the inventory helper:\n  ```bash\n  python3 -m pip install cryptography\n  ```\n- (Optional) A CBOM generator: CycloneDX `cdxgen`, or `cbomkit-theia` for container\u002Fdirectory crypto discovery.\n\n## Objectives\n\n- Produce a cryptographic inventory (CBOM) of algorithms, key sizes, certificates, and protocols in use.\n- Classify assets by quantum vulnerability and HNDL exposure and prioritize migration.\n- Stand up and verify hybrid `X25519MLKEM768` key exchange on a TLS endpoint.\n- Generate ML-KEM and ML-DSA keys and a PQC\u002Fhybrid certificate, and verify signatures.\n- Establish a crypto-agility baseline and a re-keying \u002F rotation plan.\n\n## MITRE ATT&CK Mapping\n\n| ID | Official Technique Name | Relevance |\n|----|------------------------|-----------|\n| T1573 | Encrypted Channel | Migration secures the encrypted channels (TLS\u002FVPN\u002FSSH) that protect data in transit; cryptographic inventory of these channels also underpins detection of adversary-controlled encrypted C2. |\n| T1573.002 | Encrypted Channel: Asymmetric Cryptography | RSA\u002FECDH key exchange — the exact asymmetric primitives broken by a CRQC and replaced by ML-KEM hybrids. |\n| T1573.001 | Encrypted Channel: Symmetric Cryptography | AES and other symmetric ciphers; quantum-weakened by Grover, mitigated by 256-bit keys rather than replacement. |\n\n## Workflow\n\n### 1. Confirm PQC algorithm availability\n```bash\nopenssl version\n# List quantum-safe KEMs and signatures available in this OpenSSL build\nopenssl list -kem-algorithms | grep -Ei 'mlkem|kyber'\nopenssl list -signature-algorithms | grep -Ei 'mldsa|dilithium|slhdsa|sphincs'\nopenssl list -tls-groups 2>\u002Fdev\u002Fnull | grep -Ei 'mlkem'\n```\nIf using oqs-provider on OpenSSL 3.0–3.4, activate it in `openssl.cnf`:\n```ini\n[provider_sect]\ndefault = default_sect\noqsprovider = oqsprovider_sect\n[default_sect]\nactivate = 1\n[oqsprovider_sect]\nactivate = 1\n```\n\n### 2. Build a cryptographic inventory (CBOM)\nGenerate a CycloneDX CBOM from a code repo or container with `cbomkit-theia` \u002F `cdxgen`:\n```bash\n# Directory \u002F container image crypto discovery\ncbomkit-theia dir .\u002Fmyapp --output cbom.json\n# or with cdxgen (Java keystores, certs, source-level algorithms)\ncdxgen -t java --include-crypto -o cbom.json .\u002Fmyapp\n```\nEnumerate TLS algorithms and certificate signature schemes across live endpoints with the helper `agent.py scan` (below), and the public-key strength of any certificate:\n```bash\nopenssl x509 -in server.crt -noout -text | grep -E 'Signature Algorithm|Public Key'\n```\n\n### 3. Classify and prioritize by HNDL exposure\nFor each inventoried asset, record: algorithm, key size, where the key lives, data sensitivity, and **data lifetime**. Prioritize migration where `data_lifetime_years + migration_time > years_until_CRQC` (Mosca's inequality). Long-lived confidential data over public networks ranks highest; ephemeral internal traffic ranks lower. Hash-based signature roots-of-trust (firmware signing) are also high priority because they protect long-lived trust anchors.\n\n### 4. Generate ML-KEM and ML-DSA key material\n```bash\n# ML-KEM-768 (key establishment) keypair\nopenssl genpkey -algorithm ML-KEM-768 -out mlkem768.key\n# OpenSSL 3.0-3.4 + oqs-provider uses lowercase 'mlkem768'\n# openssl genpkey -algorithm mlkem768 -out mlkem768.key\n\n# ML-DSA-65 (signature) keypair\nopenssl genpkey -algorithm ML-DSA-65 -out mldsa65.key\nopenssl pkey -in mldsa65.key -pubout -out mldsa65.pub\n```\n\n### 5. Issue a PQC (ML-DSA) certificate\n```bash\n# Self-signed ML-DSA-65 certificate for testing\nopenssl req -new -x509 -key mldsa65.key -out mldsa65.crt -days 365 \\\n  -subj \"\u002FCN=pqc-test.example.com\"\nopenssl x509 -in mldsa65.crt -noout -text | grep -A1 'Signature Algorithm'\n```\n\n### 6. Sign and verify with ML-DSA\n```bash\necho \"firmware-image-v2.bin\" > artifact.txt\nopenssl dgst -sign mldsa65.key -out artifact.sig artifact.txt\nopenssl dgst -verify mldsa65.pub -signature artifact.sig artifact.txt\n# -> \"Verified OK\"\n```\n\n### 7. Deploy and test hybrid TLS key exchange\nRun a TLS 1.3 server and force the hybrid group `X25519MLKEM768` (classical X25519 + ML-KEM-768):\n```bash\n# Server (use a classical or ML-DSA cert\u002Fkey)\nopenssl s_server -accept 4433 -www -tls1_3 \\\n  -cert mldsa65.crt -key mldsa65.key -groups X25519MLKEM768\n\n# Client — negotiate the hybrid group and confirm it was used\nopenssl s_client -connect localhost:4433 -tls1_3 -groups X25519MLKEM768 \\\n  \u003C\u002Fdev\u002Fnull 2>\u002Fdev\u002Fnull | grep -E 'Negotiated|Server Temp Key|Cipher'\n```\nFor external endpoints, confirm support against a public PQC test server:\n```bash\nopenssl s_client -groups X25519MLKEM768 -tls1_3 -connect pq.cloudflareresearch.com:443 \u003C\u002Fdev\u002Fnull\n```\n\n### 8. Enable hybrid PQC on production TLS terminators\nConfigure the web server \u002F load balancer to offer the hybrid group while keeping classical fallback for old clients. NGINX with OpenSSL 3.5+:\n```nginx\nserver {\n    listen 443 ssl;\n    ssl_protocols TLSv1.3;\n    ssl_ecdh_curve X25519MLKEM768:X25519:secp256r1;   # hybrid first, classical fallback\n    ssl_certificate     \u002Fetc\u002Fnginx\u002Fcerts\u002Fserver.crt;\n    ssl_certificate_key \u002Fetc\u002Fnginx\u002Fcerts\u002Fserver.key;\n}\n```\nReload and verify with the s_client command from step 7 against the live host.\n\n### 9. Establish crypto-agility and a rotation plan\nCentralize algorithm selection (config, not code), record key\u002Fcert expiry, and schedule re-keying. Re-run the inventory (step 2) on a cadence to confirm no quantum-vulnerable-only algorithms remain on prioritized assets, and track residual RSA\u002FECDH usage to zero on high-HNDL paths.\n\n## Tools and Resources\n\n| Tool \u002F Resource | Purpose | Link |\n|-----------------|---------|------|\n| FIPS 203 (ML-KEM) | KEM standard | https:\u002F\u002Fcsrc.nist.gov\u002Fpubs\u002Ffips\u002F203\u002Ffinal |\n| FIPS 204 (ML-DSA) | Signature standard | https:\u002F\u002Fcsrc.nist.gov\u002Fpubs\u002Ffips\u002F204\u002Ffinal |\n| FIPS 205 (SLH-DSA) | Hash-based signature standard | https:\u002F\u002Fcsrc.nist.gov\u002Fpubs\u002Ffips\u002F205\u002Ffinal |\n| NIST SP 1800-38 | Migration practice guide \u002F crypto discovery | https:\u002F\u002Fwww.nccoe.nist.gov\u002Fcrypto-agility-considerations-migrating-post-quantum-cryptographic-algorithms |\n| OpenSSL 3.5 | Native ML-KEM\u002FML-DSA\u002FSLH-DSA + hybrid groups | https:\u002F\u002Fwww.openssl.org |\n| oqs-provider \u002F liboqs | PQC for OpenSSL 3.0–3.4 | https:\u002F\u002Fgithub.com\u002Fopen-quantum-safe\u002Foqs-provider |\n| CycloneDX CBOM | Cryptography Bill of Materials spec | https:\u002F\u002Fcyclonedx.org\u002Fcapabilities\u002Fcbom\u002F |\n| CBOMkit \u002F cbomkit-theia | Crypto discovery & CBOM generation | https:\u002F\u002Fgithub.com\u002Fcbomkit\u002Fcbomkit-theia |\n\n## Algorithm Reference\n\n| Classical (broken\u002Fweakened) | Quantum-safe replacement | Standard | Use |\n|-----------------------------|--------------------------|----------|-----|\n| RSA \u002F ECDH \u002F DH key exchange | ML-KEM-512\u002F768\u002F1024 (hybrid: X25519MLKEM768) | FIPS 203 | Key establishment |\n| RSA \u002F ECDSA \u002F EdDSA signatures | ML-DSA-44\u002F65\u002F87 | FIPS 204 | General signatures |\n| (backup signature) | SLH-DSA (SPHINCS+) | FIPS 205 | Conservative\u002Ffirmware signing |\n| AES-128 | AES-256 | FIPS 197 | Symmetric (Grover-hardened) |\n| SHA-256 | SHA-384\u002F512, SHA-3 | FIPS 180-4\u002F202 | Hashing |\n\n## Validation Criteria\n\n- [ ] OpenSSL 3.5+ (or 3.x + oqs-provider) confirmed exposing ML-KEM and ML-DSA.\n- [ ] Cryptographic inventory \u002F CBOM produced covering algorithms, keys, certs, and protocols.\n- [ ] Assets classified and prioritized by HNDL exposure (Mosca's inequality applied).\n- [ ] ML-KEM-768 and ML-DSA-65 keypairs generated successfully.\n- [ ] PQC (ML-DSA) certificate issued and its signature algorithm verified.\n- [ ] Sign\u002Fverify round trip with ML-DSA returns \"Verified OK\".\n- [ ] Hybrid `X25519MLKEM768` key exchange negotiated and confirmed on a test endpoint.\n- [ ] Production TLS terminator offers the hybrid group with classical fallback.\n- [ ] Crypto-agility\u002Frotation plan documented and inventory re-run scheduled.\n","# Migrating to Post-Quantum Cryptography\n\n> **Scope and Authorization:** This skill describes defensive cryptographic-migration engineering on systems you own or operate. Cryptographic discovery scanning can touch sensitive key material and production traffic — run inventory tooling only with authorization and in line with your organization's change-management and data-handling policies.\n\n## Overview\n\nA cryptographically relevant quantum computer (CRQC) running Shor's algorithm will break the public-key cryptography that secures almost all of today's communications and signatures: RSA, finite-field and elliptic-curve Diffie-Hellman (DH\u002FECDH), and ECDSA. Symmetric primitives (AES) and hashes (SHA-2\u002F3) are only weakened (Grover gives a quadratic speedup, mitigated by larger key\u002Foutput sizes), but asymmetric algorithms are catastrophically broken. The most urgent threat is **harvest-now, decrypt-later (HNDL)**: adversaries capturing encrypted traffic today to decrypt once a CRQC exists, which puts long-lived secrets (health records, state secrets, intellectual property, root-of-trust keys) at risk *now*.\n\nOn 13 August 2024 NIST finalized the first post-quantum standards: **FIPS 203 (ML-KEM**, Module-Lattice KEM, formerly CRYSTALS-Kyber) for key establishment, **FIPS 204 (ML-DSA**, Module-Lattice digital signatures, formerly CRYSTALS-Dilithium), and **FIPS 205 (SLH-DSA**, the stateless hash-based signature scheme SPHINCS+). The migration playbook (NIST SP 1800-38, *Migration to Post-Quantum Cryptography*) is: (1) build a **cryptographic inventory \u002F CBOM**, (2) prioritize by HNDL exposure and crypto-agility, (3) deploy **hybrid** schemes (a classical algorithm AND a PQC algorithm combined, e.g. `X25519MLKEM768`) so a break in either leg does not compromise the session, and (4) re-key and rotate.\n\nThis skill maps to ATT&CK **T1573 – Encrypted Channel**: the same cryptographic channels adversaries abuse for stealthy C2 are the channels defenders must make quantum-resistant; understanding the algorithms in use is foundational to both attack detection and defensive migration. The NIST CSF outcome is **PR.DS-02 (data-in-transit protection)** — and by extension data-at-rest for HNDL-sensitive stores.\n\n## When to Use\n\n- When building an enterprise cryptographic inventory \u002F Cryptography Bill of Materials (CBOM) for quantum-readiness.\n- When prioritizing which systems must migrate first based on data lifetime and HNDL exposure.\n- When enabling hybrid post-quantum key exchange (`X25519MLKEM768`) on TLS endpoints, VPNs, or SSH.\n- When issuing PQC or hybrid certificates and testing PQC signature verification.\n- When evaluating crypto-agility — the ability to swap algorithms without re-architecting applications.\n\n## Prerequisites\n\n- OpenSSL **3.5.0 or later**, which ships native ML-KEM, ML-DSA, and SLH-DSA support:\n  ```bash\n  openssl version            # expect 3.5.0+\n  openssl list -kem-algorithms | grep -i mlkem\n  openssl list -signature-algorithms | grep -i mldsa\n  ```\n- For OpenSSL 3.0–3.4, the Open Quantum Safe **oqs-provider** plus **liboqs**:\n  ```bash\n  git clone https:\u002F\u002Fgithub.com\u002Fopen-quantum-safe\u002Fliboqs && \\\n    cmake -S liboqs -B liboqs\u002Fbuild && cmake --build liboqs\u002Fbuild && \\\n    sudo cmake --install liboqs\u002Fbuild\n  git clone https:\u002F\u002Fgithub.com\u002Fopen-quantum-safe\u002Foqs-provider && \\\n    cmake -S oqs-provider -B oqs-provider\u002F_build && \\\n    cmake --build oqs-provider\u002F_build && \\\n    sudo cmake --install oqs-provider\u002F_build\n  ```\n- Python 3.8+ for the inventory helper:\n  ```bash\n  python3 -m pip install cryptography\n  ```\n- (Optional) A CBOM generator: CycloneDX `cdxgen`, or `cbomkit-theia` for container\u002Fdirectory crypto discovery.\n\n## Objectives\n\n- Produce a cryptographic inventory (CBOM) of algorithms, key sizes, certificates, and protocols in use.\n- Classify assets by quantum vulnerability and HNDL exposure and prioritize migration.\n- Stand up and verify hybrid `X25519MLKEM768` key exchange on a TLS endpoint.\n- Generate ML-KEM and ML-DSA keys and a PQC\u002Fhybrid certificate, and verify signatures.\n- Establish a crypto-agility baseline and a re-keying \u002F rotation plan.\n\n## MITRE ATT&CK Mapping\n\n| ID | Official Technique Name | Relevance |\n|----|------------------------|-----------|\n| T1573 | Encrypted Channel | Migration secures the encrypted channels (TLS\u002FVPN\u002FSSH) that protect data in transit; cryptographic inventory of these channels also underpins detection of adversary-controlled encrypted C2. |\n| T1573.002 | Encrypted Channel: Asymmetric Cryptography | RSA\u002FECDH key exchange — the exact asymmetric primitives broken by a CRQC and replaced by ML-KEM hybrids. |\n| T1573.001 | Encrypted Channel: Symmetric Cryptography | AES and other symmetric ciphers; quantum-weakened by Grover, mitigated by 256-bit keys rather than replacement. |\n\n## Workflow\n\n### 1. Confirm PQC algorithm availability\n```bash\nopenssl version\n# List quantum-safe KEMs and signatures available in this OpenSSL build\nopenssl list -kem-algorithms | grep -Ei 'mlkem|kyber'\nopenssl list -signature-algorithms | grep -Ei 'mldsa|dilithium|slhdsa|sphincs'\nopenssl list -tls-groups 2>\u002Fdev\u002Fnull | grep -Ei 'mlkem'\n```\nIf using oqs-provider on OpenSSL 3.0–3.4, activate it in `openssl.cnf`:\n```ini\n[provider_sect]\ndefault = default_sect\noqsprovider = oqsprovider_sect\n[default_sect]\nactivate = 1\n[oqsprovider_sect]\nactivate = 1\n```\n\n### 2. Build a cryptographic inventory (CBOM)\nGenerate a CycloneDX CBOM from a code repo or container with `cbomkit-theia` \u002F `cdxgen`:\n```bash\n# Directory \u002F container image crypto discovery\ncbomkit-theia dir .\u002Fmyapp --output cbom.json\n# or with cdxgen (Java keystores, certs, source-level algorithms)\ncdxgen -t java --include-crypto -o cbom.json .\u002Fmyapp\n```\nEnumerate TLS algorithms and certificate signature schemes across live endpoints with the helper `agent.py scan` (below), and the public-key strength of any certificate:\n```bash\nopenssl x509 -in server.crt -noout -text | grep -E 'Signature Algorithm|Public Key'\n```\n\n### 3. Classify and prioritize by HNDL exposure\nFor each inventoried asset, record: algorithm, key size, where the key lives, data sensitivity, and **data lifetime**. Prioritize migration where `data_lifetime_years + migration_time > years_until_CRQC` (Mosca's inequality). Long-lived confidential data over public networks ranks highest; ephemeral internal traffic ranks lower. Hash-based signature roots-of-trust (firmware signing) are also high priority because they protect long-lived trust anchors.\n\n### 4. Generate ML-KEM and ML-DSA key material\n```bash\n# ML-KEM-768 (key establishment) keypair\nopenssl genpkey -algorithm ML-KEM-768 -out mlkem768.key\n# OpenSSL 3.0-3.4 + oqs-provider uses lowercase 'mlkem768'\n# openssl genpkey -algorithm mlkem768 -out mlkem768.key\n\n# ML-DSA-65 (signature) keypair\nopenssl genpkey -algorithm ML-DSA-65 -out mldsa65.key\nopenssl pkey -in mldsa65.key -pubout -out mldsa65.pub\n```\n\n### 5. Issue a PQC (ML-DSA) certificate\n```bash\n# Self-signed ML-DSA-65 certificate for testing\nopenssl req -new -x509 -key mldsa65.key -out mldsa65.crt -days 365 \\\n  -subj \"\u002FCN=pqc-test.example.com\"\nopenssl x509 -in mldsa65.crt -noout -text | grep -A1 'Signature Algorithm'\n```\n\n### 6. Sign and verify with ML-DSA\n```bash\necho \"firmware-image-v2.bin\" > artifact.txt\nopenssl dgst -sign mldsa65.key -out artifact.sig artifact.txt\nopenssl dgst -verify mldsa65.pub -signature artifact.sig artifact.txt\n# -> \"Verified OK\"\n```\n\n### 7. Deploy and test hybrid TLS key exchange\nRun a TLS 1.3 server and force the hybrid group `X25519MLKEM768` (classical X25519 + ML-KEM-768):\n```bash\n# Server (use a classical or ML-DSA cert\u002Fkey)\nopenssl s_server -accept 4433 -www -tls1_3 \\\n  -cert mldsa65.crt -key mldsa65.key -groups X25519MLKEM768\n\n# Client — negotiate the hybrid group and confirm it was used\nopenssl s_client -connect localhost:4433 -tls1_3 -groups X25519MLKEM768 \\\n  \u003C\u002Fdev\u002Fnull 2>\u002Fdev\u002Fnull | grep -E 'Negotiated|Server Temp Key|Cipher'\n```\nFor external endpoints, confirm support against a public PQC test server:\n```bash\nopenssl s_client -groups X25519MLKEM768 -tls1_3 -connect pq.cloudflareresearch.com:443 \u003C\u002Fdev\u002Fnull\n```\n\n### 8. Enable hybrid PQC on production TLS terminators\nConfigure the web server \u002F load balancer to offer the hybrid group while keeping classical fallback for old clients. NGINX with OpenSSL 3.5+:\n```nginx\nserver {\n    listen 443 ssl;\n    ssl_protocols TLSv1.3;\n    ssl_ecdh_curve X25519MLKEM768:X25519:secp256r1;   # hybrid first, classical fallback\n    ssl_certificate     \u002Fetc\u002Fnginx\u002Fcerts\u002Fserver.crt;\n    ssl_certificate_key \u002Fetc\u002Fnginx\u002Fcerts\u002Fserver.key;\n}\n```\nReload and verify with the s_client command from step 7 against the live host.\n\n### 9. Establish crypto-agility and a rotation plan\nCentralize algorithm selection (config, not code), record key\u002Fcert expiry, and schedule re-keying. Re-run the inventory (step 2) on a cadence to confirm no quantum-vulnerable-only algorithms remain on prioritized assets, and track residual RSA\u002FECDH usage to zero on high-HNDL paths.\n\n## Tools and Resources\n\n| Tool \u002F Resource | Purpose | Link |\n|-----------------|---------|------|\n| FIPS 203 (ML-KEM) | KEM standard | https:\u002F\u002Fcsrc.nist.gov\u002Fpubs\u002Ffips\u002F203\u002Ffinal |\n| FIPS 204 (ML-DSA) | Signature standard | https:\u002F\u002Fcsrc.nist.gov\u002Fpubs\u002Ffips\u002F204\u002Ffinal |\n| FIPS 205 (SLH-DSA) | Hash-based signature standard | https:\u002F\u002Fcsrc.nist.gov\u002Fpubs\u002Ffips\u002F205\u002Ffinal |\n| NIST SP 1800-38 | Migration practice guide \u002F crypto discovery | https:\u002F\u002Fwww.nccoe.nist.gov\u002Fcrypto-agility-considerations-migrating-post-quantum-cryptographic-algorithms |\n| OpenSSL 3.5 | Native ML-KEM\u002FML-DSA\u002FSLH-DSA + hybrid groups | https:\u002F\u002Fwww.openssl.org |\n| oqs-provider \u002F liboqs | PQC for OpenSSL 3.0–3.4 | https:\u002F\u002Fgithub.com\u002Fopen-quantum-safe\u002Foqs-provider |\n| CycloneDX CBOM | Cryptography Bill of Materials spec | https:\u002F\u002Fcyclonedx.org\u002Fcapabilities\u002Fcbom\u002F |\n| CBOMkit \u002F cbomkit-theia | Crypto discovery & CBOM generation | https:\u002F\u002Fgithub.com\u002Fcbomkit\u002Fcbomkit-theia |\n\n## Algorithm Reference\n\n| Classical (broken\u002Fweakened) | Quantum-safe replacement | Standard | Use |\n|-----------------------------|--------------------------|----------|-----|\n| RSA \u002F ECDH \u002F DH key exchange | ML-KEM-512\u002F768\u002F1024 (hybrid: X25519MLKEM768) | FIPS 203 | Key establishment |\n| RSA \u002F ECDSA \u002F EdDSA signatures | ML-DSA-44\u002F65\u002F87 | FIPS 204 | General signatures |\n| (backup signature) | SLH-DSA (SPHINCS+) | FIPS 205 | Conservative\u002Ffirmware signing |\n| AES-128 | AES-256 | FIPS 197 | Symmetric (Grover-hardened) |\n| SHA-256 | SHA-384\u002F512, SHA-3 | FIPS 180-4\u002F202 | Hashing |\n\n## Validation Criteria\n\n- [ ] OpenSSL 3.5+ (or 3.x + oqs-provider) confirmed exposing ML-KEM and ML-DSA.\n- [ ] Cryptographic inventory \u002F CBOM produced covering algorithms, keys, certs, and protocols.\n- [ ] Assets classified and prioritized by HNDL exposure (Mosca's inequality applied).\n- [ ] ML-KEM-768 and ML-DSA-65 keypairs generated successfully.\n- [ ] PQC (ML-DSA) certificate issued and its signature algorithm verified.\n- [ ] Sign\u002Fverify round trip with ML-DSA returns \"Verified OK\".\n- [ ] Hybrid `X25519MLKEM768` key exchange negotiated and confirmed on a test endpoint.\n- [ ] Production TLS terminator offers the hybrid group with classical fallback.\n- [ ] Crypto-agility\u002Frotation plan documented and inventory re-run scheduled.\n",{"name":5,"tags":25,"author":34,"domain":35,"license":15,"version":36,"nist_csf":37,"subdomain":27,"description":7,"mitre_attack":39},[26,27,28,29,30,31,32,33],"post-quantum","cryptography","ml-kem","ml-dsa","crypto-agility","cbom","tls","quantum-readiness","mahipal","cybersecurity","1.0",[38],"PR.DS-02",[40],"T1573","main","4e084e84eb42fc53e144c89c0f7f48b39c8a4b0f","collections\u002Fcybersecurity-skills\u002Fskills\u002Fmigrating-to-post-quantum-cryptography",1,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Fsanjeevafk","First make it work. Then make it right. Then make it fast.","2026-11-14 13:36:16",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add sanjeevafk\u002Fagent-skills --skill migrating-to-post-quantum-cryptography",{"tool":55,"command":56},"bunx","bunx skills add sanjeevafk\u002Fagent-skills --skill migrating-to-post-quantum-cryptography",{"tool":58,"command":59},"pnpm","pnpm dlx skills add sanjeevafk\u002Fagent-skills --skill migrating-to-post-quantum-cryptography","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fmigrating-to-post-quantum-cryptography\u002FSKILL.md",true,[63,67,73,77],{"path":64,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fapi-reference.md","REFERENCE","参考文档",2678,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fmigrating-to-post-quantum-cryptography\u002Freferences\u002Fapi-reference.md",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fstandards.md",1842,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fmigrating-to-post-quantum-cryptography\u002Freferences\u002Fstandards.md",{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"scripts\u002Fagent.py","SCRIPT","脚本",7941,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Fmigrating-to-post-quantum-cryptography\u002Fscripts\u002Fagent.py",[84,92,100,108,116,123],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":20},"01M7EFHX67M3KKXT1BXVPA5ADT","zarr-python","Chunked N-D arrays for cloud storage (Zarr-Python 3). Compressed arrays, parallel I\u002FO, S3\u002FGCS via fsspec, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","MIT","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":20},"01M7EFFQGM51TZBGRENXY50ZYM","whiteboard-diagrams","Create accurate, simple, hand-drawn whiteboard diagrams from a user's process, system, architecture, learning workflow, comparison, or causal explanation. Use when the user asks for a scribbly whiteboard visual, educational workflow graphic, hand-drawn explainer, or diagram like the bundled reference; ask one focused clarification question when the subject or relationships are missing, then generate and visually verify the final image.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":20},"01M7EFF1CSQNTDMHFK4ZGY6NYK","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":20},"01M7EFE8106X6C28FT8PA74427","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":20},"01M7EFCSNZM9G7ZHS6F127Q71X","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":88,"licenseFileUrl":127,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":20},"01M7EFCE7EZMKPRYDDNKBQ9EEH","vercel-deploy","Deploy applications and websites to Vercel. Use when the user requests deployment actions like \"deploy my app\", \"deploy and give me the link\", \"push this live\", or \"create a preview deployment\".","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FSKILL.md",[],[]]