Code signing

Applying a digital signature to software or a build artefact so anyone installing or deploying it can confirm who published it and that it has not been altered since it was signed.

Code signing applies a digital signature to software: an executable, a script, a package, a container image or another build artefact. The publisher hashes the code and signs the hash with a private key, whose certificate is commonly issued through a public key infrastructure. Anyone installing or deploying the code can then check two things: who signed it, and whether it has changed since. NIST SP 800-218, the Secure Software Development Framework, gives code signing as an example of protecting the integrity of executables and of letting acquirers verify a release.

Inside a CI/CD pipeline, a signature applied at build time gives later stages a way to reject any artefact that differs from the one that passed testing. A signature does not show the code is safe. It establishes origin and integrity only, and is only as trustworthy as the signing key: an attacker who steals the key, or who compromises the build before signing takes place, can produce malicious code that verifies correctly. Protecting signing keys, often in hardware security modules, is part of the control.

Exam relevance: a scenario about confirming that downloaded software came from its publisher and was not tampered with is likely to point to code signing. Candidates are expected to remember that a valid signature shows authenticity and integrity, not quality or safety.