The main mechanisms for securing software artifacts are code signing and, in newer implementations, signed attestations.
Both face the same challenges:
Availability of cryptographic infrastructure, e.g. HSM and KMS services
Standardization of cryptographic methods and file formats between producers and verifiers
Continued flexibility to change algorithms and keys as their reliability may need to be reconsidered
Status quo
Cryptographic infrastructure
Hardware Security Modules (HSMs) are increasingly supporting post-quantum cryptography algorithms, such as ML-DSA and SLH-DSA. The transition is still ongoing though, as not all vendors or models provide full support today. Limitations include FIPS 140-3 validation, availability through standardized interfaces (PKCS#11) vs. proprietary extensions, and some products are not there yet at all or require a hardware update. Availability for Key Management Systems (KMS) and PKI systems varies too.
Standardization of code signing methods
While cryptographic primitives have been standardized for a while now, many platforms still have to include these specifications in their respective signing formats. The good news is that ML-DSA and SLH-DSA have been standardized for X.509 and CMS about a year ago, and many specific implementations build on those.
But platform support is only beginning to become available, and it's important to make sure that you don't only have support on the signing side of things, but also for verification on the receiving end. In many situations, PQC code signing is not supported in a usable end-to-end fashion today. Specs may be unavailable, preliminary, or simply not yet implemented on the targeted systems.
Specialized systems like firmware platforms can already use these standards (and others such as LMS/XMSS family). But again, availability varies based on platform/vendor and device upgrade status. Proprietary implementations must be updated by their owners.
Continued flexibility: crypto agility
Crypto agility is defined as being able to change algorithms, keys and parameters without redesigning the system. That means no hard-coded algorithm assumptions, a defined key-lifetime policy, and the ability to rotate or dual-sign.
As we are entering the post-quantum age, we must be prepared for further changes down the road. This is not a one-time transition from classical asymmetric cryptography to a new set of algorithms, but a capability that spans processes and technology.
Crypto agility requirements for code signing
In practice, crypto agility for code signing comes down to a few concrete requirements:
Central control instead of hard-coded pipelines. Build pipelines should request a signature, not decide how it is created. The choice of algorithm, key and certificate belongs in a central signing configuration, so that it can be changed in one place without having to modify and test every build script and CI job.
Key infrastructure that can follow. Private keys should be generated and kept in HSMs, but pipelines should not depend on a specific HSM, interface or firmware version. When PQC support arrives on a new HSM model or firmware release, adopting it should be an infrastructure change, not a software project.
Parallel signatures during transitions. Where file formats allow it, artifacts should be able to carry classical and post-quantum signatures side by side. This lets verifiers move at their own pace. Note that parallel signatures only add protection when verifiers actually require all of them to be valid; otherwise an attacker only needs to defeat the weakest one. This must be defined by the verifier (in software or configuration) and therefore requires an update of the verifier/configuration. Be aware that systems without these updates will still be susceptible to forged signatures if their expectations don't keep up with current cryptographic requirements.
Agility beyond the signature itself. Changing the signing algorithm is the easy part. Artifact formats, certificates and chains, trust anchors, timestamps and the deployed verification systems all need to accommodate the change as well.
Timestamps with stronger foundation. Trusted timestamps extend the lifetime of signatures, but only as long as their own cryptography remains trustworthy. Timestamping services must be included in migration plans, not treated as a separate concern. If the platform-defined format is the limiting factor for crypto algorithms, consider providing timestamps in detached files as evidence for subsequent re-signing.
Evidence and the ability to re-sign. If trust in an algorithm declines, it must be possible to prove what was signed, when, and by whom, and to re-sign existing releases with a different algorithm. This requires a complete audit trail and access to the original artifacts. During a transition phase, a combination of a still-reliable signature and a timestamp based on a stronger algorithm may be enough evidence for re-signing. (The timestamp proves that the original signature was provided when it's algorithm was still considered secure.)
Knowing your verifiers. Software and firmware may stay in service for decades, and updating deployed verifiers is much harder than changing how new releases are signed. An inventory of verification endpoints, especially embedded devices and secure boot implementations, and a plan for updating their trust anchors are essential. For critical systems that don't receive continuous updates, consider expiry dates for trust anchors or verification policies, so that outdated systems reject signatures instead of silently accepting weak ones (fail-secure). This requires a trusted time source and a recovery path.
Testing before switching. New algorithms and formats should be trialed with test keys and certificates in non-release pipelines, end to end from signing to verification on the actual target platforms, before they are used for production releases.
Starting now. None of this requires waiting for the ecosystem to settle. Organizations that centralize signing and remove algorithm assumptions from their pipelines today will be able to adopt post-quantum algorithms, and whatever comes after them, with far less effort.
Using SignPath for crypto agility - and what's still missing
Requirement | SignPath support | Remaining responsibilities |
|---|---|---|
Central control instead of hard-coded pipelines. | Keys and certificates selected through polices. Signing is declarative based on release artifacts' structure, formats, etc. | Centralize key/certificate provisioning. |
Key infrastructure that can follow. | HSM/KMS is controlled by SignPath, not by CI/CD. PKI is integrated independently. | Choose an HSM with current/announced PQC support. |
Parallel signatures during transitions. | Allows adding signatures for formats that support it and additional detached signatures by configuration. | Verifiers must require all signatures. |
Agility beyond the signature itself. | Timestamping controlled by release artifact configuration. | Trust anchors and verifiers on target systems. |
Timestamps with stronger foundation. | Arbitrary selection of external timestamp authorities (TSA) for public trust, integrated TSA provided. | |
Evidence and the ability to re-sign. | Keeps record of signed artifacts incl. origin and verifications for policy-based re-signing. Can verify existing signatures and timestamps. | |
Knowing your verifiers. | Keep a record of systems including update levels and verification requirements. Plan for timely updates and consider fail-secure setups. | |
Testing before switching. | Provide a complete separate trust path for development and functional testing. Only use production keys/certificates for ultimate end-to-end tests. | |
Starting now. | Start using SignPath today, add PQC configurations later or switch transparently without touching a single script. |
Conclusion
With the right supporting system, providing future-proof releases, signing, and distribution can become easy, including timely reactions to new developments in cryptography.
To be fully prepared though, distributors and operators of software must also keep records of the systems that will receive this software for installation or updates. Missing updates or broken update processes, incomplete validations, and insecure configurations and defaults can render your systems vulnerable without any reliable cure on the side of software distribution.
