Code Signing & Supply Chain Security
Protect software distribution — from classical code signing to post-quantum ML-DSA package integrity.
Why this matters: A forged signature on a software update is a supply-chain compromise at scale — code signing is one of the few PQC migrations where the attacker doesn't need to break today's crypto, just tomorrow's.
Start here: Pick ML-DSA-44, 65 or 87 in Binary Signing. Explore placeholder outputs in the walkthrough, or enable Live HSM Mode, generate sample keys and choose Sign and check sample. The live check verifies a signature on your message; the separately displayed SHA-256 value is its fingerprint.
For your role
- Developer / Engineer
- Sign a file hash with ML-DSA and verify it, build a PQC code-signing chain, simulate RPM-style hybrid ML-DSA-87 plus Ed448 package signing and walk through Sigstore keyless signing with transparency logs.
- Security Architect
- The certificate-chain step and the hybrid package-signing step show the two migration patterns for software distribution; the firmware step compares LMS, XMSS and ML-DSA trust chains for secure boot.
- Researcher / Academic
- Compare the hybrid ML-DSA-87 plus Ed448 package signature with a pure ML-DSA one and the LMS, XMSS and ML-DSA firmware chains: the size and verification-time trade-offs are on screen.
- IT Ops / DevOps
- Walk through the PQC code-signing certificate chain, RPM-style hybrid package signing, and Sigstore transparency-log verification to plan signing-key rollover and verifier deployment across build and release pipelines.
Why Code Signing Matters
Code signing is the cryptographic mechanism that guarantees software integrity and publisher authenticity. Every operating system, package manager, and app store relies on digital signatures to ensure that binaries have not been tampered with after publication.
A compromised signing key is a skeleton key to every machine that trusts it.
Attackers compromised the Orion software build system, so a vulnerability shipped inside Orion updates released between March and June 2020; it was not present in the source code repository. CISA reports that the adversary added a malicious version of an Orion library to the software lifecycle and that it was then signed by the legitimate SolarWinds code signing certificate. SolarWinds believed fewer than 18,000 customers may have had an installation of the affected Orion products.
Mandiant found that 3CX’s network was first breached through malicious software downloaded from the Trading Technologies website: a tampered X_TRADER installer, signed with the subject “Trading Technologies International, Inc”. The attackers then distributed a trojanized 3CX DesktopApp (18.12.416 and earlier) that 3CX offered for download. Mandiant called it the first time it had seen one software supply chain attack lead to another.
A malicious party gained access to Codecov’s Bash Uploader script and modified it without authorization, so it exported CI-related information to a third-party server. That information could include API keys, deploy keys, passwords and authentication tokens.
These attacks exploited trust in code signing infrastructure. Post-quantum code signing must protect not only against today's threats but also against future signature forgery: once a quantum computer can derive private keys from public keys, an attacker could sign code that verifiers still accept. Unlike , which concerns encrypted data recorded today, this risk needs nothing to be collected in advance, because public keys and certificates are already public.
Supply Chain Risk & the Quantum Amplifier
The attacks above are symptoms of deeper structural problems in modern . As software composition grows more complex, the attack surface expands — and quantum computing threatens to break the cryptographic foundations that hold it together.
Applications pull in many transitive dependencies. Each dependency is a link in the trust chain — and each link is only as strong as its maintainer’s signing practices.
You audit your direct dependencies, but do you audit their dependencies? A malicious package five levels deep in the dependency tree can execute arbitrary code in your application.
Build systems, artifact registries, and deployment pipelines are high-value targets. The Codecov Bash Uploader attack shows that a script a pipeline downloads and runs can be modified at its source, and the modified script then runs in the CI systems that fetch it. The SolarWinds compromise shows that checking only the source repository is not enough, because the vulnerability came from the build system. Every step from source code to deployed binary is an attack surface.
An SBOM documents what goes into a build, but build provenance answers how it was built and who built it. Without cryptographically signed provenance, an attacker can substitute a tampered artifact that passes all hash checks.
Frameworks like SLSA and in-toto provide structured approaches to supply chain verification — defining security levels based on how much of the build pipeline is cryptographically attested. Their guarantees depend entirely on the strength of the underlying signatures.
Today, supply chain attackers get malicious code signed or distributed by compromising a build system, an identity or a signing key. A quantum-capable adversary would add another route: deriving a private key from its public key, without breaking into the key holder.
Today's attacks work through build-system or identity compromise as well as key theft (the SolarWinds and 3CX cases above). A quantum attacker running could add a further route for any key whose algorithm it can break (RSA, ECDSA): deriving the private key from the public key, with no infiltration of the key holder. It would not remove the other routes.
Signed binaries and certificates carry only public keys, so nothing secret has to be harvested. The risk is future forgery: once a quantum computer can derive private keys, an attacker could create new signatures that chain to certificates verifiers still trust, or artifacts that appear signed by a publisher whose old key is still accepted. is reserved for encrypted data. For signatures the controls are to stop trusting vulnerable keys in time, and to validate old signatures with timestamps and archive evidence that remain trustworthy.
An attacker holding the private key of a or of an issuing CA could issue certificates for any subject that CA vouches for, and so sign software as any publisher under it. A publisher's own leaf key is scoped to that publisher, while an issuing CA key is scoped to everything the CA issues (limited only by constraints in the chain). If a quantum computer can break the CA's algorithm, that CA private key can be derived from its public key.
A stolen leaf signing key compromises one publisher, and a stolen issuing CA key compromises everything that CA vouches for. A quantum break of or is a shared weakness: every key of that algorithm becomes derivable from its public key once a capable computer exists. That does not mean one event recovers all private keys — each key must still be attacked separately, at the attacker's cost — but migration cannot be limited to one publisher.
SCADA controllers, medical devices, avionics, and industrial infrastructure deployed today with classical signatures may stay in service for many years. Their signature verification is often hard to update, so they may still be running when a quantum computer can forge classical signatures. Until the verifier is updated, those signatures offer no protection against firmware forgery.
This is why PQC migration for code signing is not just about upgrading algorithms — it requires rethinking the entire supply chain trust model, from to signature verification to certificate chain management.
Classical vs PQC Code Signing
Classical code signing relies on and , both of which are vulnerable to on a cryptographically relevant quantum computer. has standardized () and () as PQC replacements for digital signatures.
| Algorithm | Public Key (bytes) | Signature (bytes) | Quantum Safe |
|---|---|---|---|
| RSA-2048 | 256 | 256 | No |
| RSA-4096 | 512 | 512 | No |
| ECDSA P-256 | 64 | 64 | No |
| Ed25519 | 32 | 64 | No |
| Ed448 | 57 | 114 | No |
| ML-DSA-44 | 1,312 | 2,420 | Yes |
| ML-DSA-65 | 1,952 | 3,309 | Yes |
| ML-DSA-87 | 2,592 | 4,627 | Yes |
| SLH-DSA-SHA2-128s | 32 | 7,856 | Yes |
Raw signature sizes vary by algorithm: ML-DSA-44 is 2,420 bytes and SLH-DSA-SHA2-128s is 7,856 bytes, about 38–123 times a 64-byte raw ECDSA P-256 signature. These ratios exclude certificates, artifact framing, and transparency proofs. Signatures may be checked at download, install, boot, launch, or log verification; benchmark the actual workflow instead of assuming verification happens once.
Code Signing Certificate Chains
Code signing certificates form a trust chain from a down to the signing certificate. The chain establishes that a trusted authority vouches for the identity of the software publisher.
Self-signed trust anchor, installed in a trust store (OS, browser or enterprise). This sample uses ML-DSA-87.
Signed by Root. Issues end-entity certificates. This sample uses ML-DSA-65.
End-entity cert with Extended Key Usage: Code Signing (OID 1.3.6.1.5.5.7.3.3). Sample validity: 1 year. This sample uses ML-DSA-44.
Code signing certificates expire, but signed software must remain valid long after. Timestamping (RFC 3161) proves the signature was created while the certificate was still valid. PQC timestamping requires PQC-capable — a critical dependency for migration.
Package Manager Signing
Every major package manager uses code signing to verify package authenticity. Migration to PQC varies widely — RPM supports hybrid ML-DSA-87+Ed448 signatures in RHEL 10.1. npm registry signatures use ECDSA P-256; npm's separate provenance attestations and PyPI attestations use Sigstore. Sigstore's ML-DSA identifiers remain experimental.
| Package Manager | Current Signing | PQC Status |
|---|---|---|
| RPM (Red Hat) | RSA/SHA-256 | ML-DSA-87+Ed448 hybrid, alongside RSA (RHEL 10.1) |
| APK (Alpine) | RSA-2048 | No PQC signing information in the documents we hold |
| dpkg (Debian) | RSA/SHA-256 | No PQC signing information in the documents we hold |
| npm | ECDSA P-256 registry signatures; separate Sigstore provenance | No production PQC public service; separate Sigstore PQ instance targeted for mid-2027 |
| PyPI | Sigstore keyless provenance attestations | No production PQC public service; separate Sigstore PQ instance targeted for mid-2027 |
| Maven Central | RSA/SHA-256 | No PQC signing information in the documents we hold |
Sigstore's October 2026 roadmap proposes a separate, opt-in PQC infrastructure stack, with a production-ready public instance targeted for mid-2027. The classical public service is planned to remain supported through a future turndown tentatively set for 2029 or 2030. These are project targets, not current npm or PyPI support. Read Sigstore's roadmap.
Hybrid signing (also called composite signing) attaches both a classical and PQC signature to the same artifact. This provides backward compatibility — older tools verify the classical signature, while PQC-aware tools verify both. Red Hat's RPM PQC signing uses OpenPGP v6 (RFC 9580, via Sequoia) with the RPM v6 package format.
Sigstore & Keyless Signing
is an open-source project that removes the need for developers to manage long-term artifact-signing keys. Instead of distributing and protecting such keys, developers authenticate with an existing identity (for example GitHub or Google) and receive a short-lived certificate for an ephemeral key. Signing events are recorded in a transparency log.
Developer authenticates via OIDC (GitHub, Google, Microsoft)
Ephemeral ECDSA P-256 keypair created in memory; ML-DSA is a proposed future upgrade
Fulcio CA issues X.509 cert binding identity to ephemeral public key
Artifact hash signed with ephemeral private key
Signature + cert recorded in Rekor transparency log (immutable append-only)
Ephemeral private key destroyed — no long-term key management needed
Verifier checks the signature, the expected identity and issuer, the certificate chain to the Sigstore trust root, and the Rekor inclusion proof
No long-term artifact-signing private keys to manage, rotate, or protect: each signature uses an ephemeral key. Identity-based trust replaces key-based trust for the signer, but verifiers still need a trust root and an expected-identity policy. This removes one part of the migration burden (no developer-held long-lived keys to replace); it does not make the migration automatic.
Sigstore centralizes the CA and the log in and , but migration still needs coordinated change in the signing clients (key generation, signature algorithm, certificate requests), the artifact signatures themselves, the CA chain, the transparency log, and verifiers (algorithm support, trust-root distribution and identity policy). Upgrading Fulcio and Rekor does not change signatures already made, and a client or verifier that does not support the new algorithm cannot use the new ones.
Secure Boot & Firmware Signing
Every platform depends on a chain of trust that starts at an immutable and extends through bootloaders, the OS kernel, and runtime firmware. Each link in the chain verifies a cryptographic signature before passing execution to the next stage. If any signature fails, the boot process halts.
Firmware signing is a critical PQC migration target because the verification algorithm in deployed devices is often hard to update, and devices deployed today may still be in the field when cryptographically relevant quantum computers arrive. Once a quantum computer can derive the signing key from its public key, an attacker could forge firmware updates that a device with a classical-only root of trust would still accept; nothing needs to be harvested in advance, because the public key is on the device.
Immutable hardware anchor. Public key burned into OTP fuses or stored in TPM NVRAM. If compromised, the entire chain collapses.
UEFI firmware verifies the bootloader signature against keys in the Secure Boot database before allowing execution.
Kernel signature verified. Signed drivers loaded into protected memory. Measured boot extends TPM PCR registers for remote attestation.
Device firmware verified before execution. Over-the-air updates require re-verification against the trust chain before flashing.
The NSA's guidance lists stateful hash-based signatures ( or ) for firmware and software signing in National Security Systems, and its FAQ says NSA wants them used whenever possible rather than waiting for , which is also approved for all signing use cases.
Separate general dates, not specific to signing (NSA CNSA 2.0 FAQ v2.2, October 2026): CNSA 2.0 required in new NSS acquisitions from 1 January 2027; NSS equipment and services that cannot support CNSA 2.0 phased out by 31 December 2030 unless excepted; CNSA 2.0 algorithms mandated by 31 December 2031 unless otherwise noted; NSM-10 sets a 2035 goal for quantum-resistant NSS. Check NSA's current documents for the date that applies to your equipment type. For non-NSS systems, NIST IR 8547 (final, October 2026) deprecates quantum-vulnerable signatures after 2030 and disallows them after 2035, while EO 14412 and OMB M-26-15 require prioritized civilian federal systems to complete digital signature migration by 31 December 2031.
Compact signatures (2,512 B, about 2.5 KB) and tiny public keys (56 bytes), per RFC 8554 — ideal for hardware-constrained boot ROM. Fast verification (~0.1 ms). CNSA 2.0 compliant. Security derives solely from hash functions (minimal cryptographic assumptions). Trade-off: the signer must manage a monotonic state counter, typically in an HSM; verification keeps no state.
No signing state — the signer needs no counter, which suits environments where maintaining state is impractical (distributed build systems, CI/CD pipelines). Verifiers of LMS and XMSS keep no state either; the state burden sits with the signer. Trade-off: larger signatures (ML-DSA-65: 3,309 B) and public keys (1,952 B) per FIPS 204. CNSA 2.0 approves only the ML-DSA-87 parameter set (4,627 B signature, 2,592 B public key) and approves it for all signing use cases, including firmware.
For a deep dive into LMS/XMSS parameter selection, Merkle tree mechanics, and the state management challenge, see the Stateful Hash Signatures module.
Sign binaries, build certificate chains, explore Sigstore keyless signing, and verify secure boot trust chains.
Products shown here are a representative selection — not an exhaustive list. For the full vendor landscape with PQC readiness status, visit the Tools & Products tab in this module or browse the Migrate catalog →
Check off all sections and mark this reading done.
Your comments on Code Signing(0)
Stored on this device only. A comment never counts toward your progress.
Related modules
- IoT & Embedded Device PQCSame track · Applications · Same migration phase · Shares LMS/XMSS, ML-DSA, FIPS 204
- OT & Industrial Control Systems PQCSame track · Applications · Same migration phase · Shares ML-DSA, LMS/XMSS, FIPS 204
- Energy, Utilities & Grid PQCSame migration phase · Shares ML-DSA, LMS/XMSS, FIPS 204
- Software Supply Chain PQCSame migration phase · Shares ML-DSA, LMS/XMSS, FIPS 204
Related resources
- ModulePKI WorkshopCertificate chains, X.509 structure, and trust models
- ModuleHybrid CryptographyComposite signatures and dual-algorithm approaches
- ModuleStateful Hash SignaturesLMS/XMSS deep dive, state management, and CNSA 2.0 timelines
- ModuleSecure BootUEFI PK/KEK migration, TPM 2.0, and ML-DSA firmware signing
- ModulePlatform EngineeringCI/CD pipeline crypto, container signing, and OPA/Kyverno policy
In the Industry Landscape
Check your understanding
10 questions on Code Signing, each with its answer and the reason.
Take the quizProduction Tool Capabilities & Verification ChecklistDevSecOps Leads, Release Engineers & Firmware Architects
Capabilities to require in your production tools:
- Artifact, container and package signing (e.g., Cosign with experimental ML-DSA, Java jarsigner in JDK 26, Notation, RPM/DEB) with PQC signature support; Authenticode/SignTool has no PQC support yet.
- RFC 3161 Time-Stamp Authority (TSA) tokens signed with post-quantum algorithms to preserve signature validity beyond algorithm deprecation.
- HSM-backed signing key custody with quorum approval and air-gapped root key ceremonies.
How to evaluate in your environment
Sign a release artifact with an HSM-backed `ML-DSA-65` key, attach a PQC RFC 3161 timestamp, and verify that tampered binaries fail admission control.
Production evidence to collect
Signed artifact bundle, RFC 3161 timestamp verification output, and Kubernetes/OS admission-control rejection log for unsigned/tampered builds.
Completing this Hub module and its browser-based sample exercises teaches the technical and governance decision criteria for your role; it does not test, validate, or certify your deployed production systems.
Record evidence for your environment
Identify the tested build and configuration. Use reference IDs for observations. For a proposed exclusion, record the system boundary or rule and why it excludes this build.
Evidence missing. 0 of 3 requirements have a reference or scope rationale.
Learning module content can be inaccurate. Please double-check its information. Report inaccuracies in PQC Today GitHub Discussions.