← LeaderboardThe Skill Leaderboard

post-quantum-crypto-audit

Audit or migrate cryptography in a codebase. Trace quantum exposure and legacy crypto, then verify NIST-aligned replacements, compatibility, and performance.

Published by sickn33 ↗sickn33/agentic-awesome-skills

Try your first task

A source-grounded starter task has not been verified for this skill yet.

SKILL.md

name: post-quantum-crypto-auditdescription: Audit or migrate cryptography in a codebase. Trace quantum exposure and legacy crypto, then verify NIST-aligned replacements, compatibility, and performance.category: securityrisk: criticalsource: selfsource_type: selfdate_added: "2026-12-03"author: ShianMiketags: [security, cryptography, post-quantum, nist, migration, tls]

Post-quantum cryptography audit and migration

Overview

Produce a source-backed cryptographic inventory and a prioritized migration. Start with a review. Make targeted code, dependency, or configuration changes when the user asks to implement the migration.

When to Use

  • Audit a repository for RSA, Diffie-Hellman, elliptic-curve cryptography, obsolete primitives, or risky cryptographic configuration.
  • Plan a NIST-aligned change to key establishment, signatures, certificate validation, envelope encryption, or another cryptographic boundary.
  • Verify that an existing post-quantum rollout is negotiated, preserves authorized clients, and fits measured resource limits.

Prerequisites

  • Identify repository scope, security policy, supported peers, and the runtime versions that matter. Treat production, managed services, and key stores as separate access scopes.
  • Read the standards baseline before recommending a named algorithm, protocol binding, library version, or deadline. Recheck the relevant primary source when making a current recommendation or implementing a change.

1. Build an evidence-backed inventory

  • Follow inventory and migration checks. Search source, dependency manifests and locks, configurations, infrastructure, and build inputs. Trace actual callers and the linked provider. Include delegated TLS termination and KMS when evidence is available.
  • Record purpose, location, algorithm and strength, protocol or format, runtime version, asset lifetime, peer constraints, and evidence. Mark findings as observed, configured, dependency-only, or unresolved.
  • Review results for reachability. An old algorithm name in a fixture, checksum, or compatibility reader has different impact from a deployed signing or encryption path.

2. Prioritize and choose a supported replacement

  • Assess risks separately for quantum-sensitive public-key uses, classically obsolete primitives or modes, and implementation advisories. Prioritize exposed paths with long confidentiality lifetimes and signing roots or artifacts that must remain trusted for years.
  • Match the replacement to the purpose. Use ML-KEM for standardized key establishment, ML-DSA or SLH-DSA for supported signature profiles, and approved symmetric algorithms for bulk protection. Verify parameter sets, protocol bindings, key handling, and vendor support.
  • For a TLS migration, inventory key agreement and authentication independently. A negotiated hybrid key exchange can protect session establishment while certificate and signature migration remains pending.
  • Prefer a maintained implementation with the approved configuration and current patches. For regulated deployments, verify the exact module, certificate, operating environment, and service in the applicable validation program.

3. Implement and verify within scope

  • Prefer a standard, maintained protocol integration. Preserve wire and storage layouts through supported negotiation or versioned formats. Version keys and records when a format changes, and test reads or verification of retained artifacts.
  • Use supported hybrid negotiation when policy and peers allow it. Make permitted classical exceptions explicit and measurable. A path that requires post-quantum protection should fail when the required capability is absent.
  • Patch the narrow application boundary, preserve authentication and error handling, then run valid, legacy, and policy-rejection cases. Measure negotiation success, latency, CPU, payload sizes, and memory on representative inputs before claiming performance.
  • Report risk, evidence, exact changes, compatibility results, remaining dependencies, and unresolved scope. Include a staged rollout and rollback plan that respects the minimum policy. Keep production changes, credentials, and key rotations within their authorized scope.

Examples

Audit this repository for quantum-sensitive and obsolete cryptography.
Trace the deployed TLS and signing paths, rank the findings, and propose
versioned replacements. Keep this pass read-only.

Verify a hybrid TLS rollout demonstrates a local group negotiation, an explicit compatibility exception, and required-mode rejection.

Limitations

  • Static evidence cannot determine a deployed provider, peer capability, or policy exception by itself. Identify the missing runtime evidence.
  • One TLS handshake establishes an observed key agreement for that session. Separately validate certificate chains, signing, storage, other clients, and performance.
  • Algorithm approval, protocol support, and module validation are independent checks.

Safety and side effects

Keep the audit defensive and within authorized code and test environments. Use synthetic material for runtime checks. Public research queries should contain only public identifiers and versions. Keep private keys, certificates with internal identifiers, production logs, and proprietary code local.

Sources and related skills