Skip to content
Software development
ASD ISMISM-2050

ASD ISM 2050 Validate digital signature certificates securely

What it says

When digital signatures are processed by software, they are validated against a certificate trust chain and checked for revocation using a Certificate Revocation List or with the Online Certificate Status Protocol.

Quoted as published. Everything else on this page is written by Control Stack.

In plain English

Software that processes digital signatures must confirm each signing certificate chains to a trusted root and has not been revoked, using a CRL or OCSP.

When software processes digital signatures, it must put each one through two checks as well as verifying the signature itself:

  • Trust chain: the signer's certificate is validated back through any intermediate certificates to a root certificate the software trusts.
  • Revocation: the certificates are checked to confirm none has been revoked, using a Certificate Revocation List (the issuer's published list of revoked certificates) or the Online Certificate Status Protocol (OCSP, an online query for one certificate's status).

Why it matters

Checking a signature's maths only proves the data matches a key, not whose key it is. Without the trust chain anyone can sign with a certificate they made, and without revocation checks a stolen signing key stays trusted after its certificate is revoked.

How to implement

  1. Find every place the software processes a digital signature.

    Include signed files, updates, documents, messages and tokens, and libraries that verify signatures on its behalf. For a signature checked against a bare public key, which the statement does not exempt, use a certificate where the signer offers one, and record any that remain as known shortfalls until closed.

  2. Validate the full chain against a defined trust store.

    Build the path through intermediates to a trusted root, and reject broken chains, certificates not issued for signing, and certificates not valid at the signing time a trusted timestamp proves or, without one, when checked. Use a maintained cryptographic library's path validation, with no switch to skip it.

  3. Check the signer's and intermediate certificates for revocation.

    Use the CRL from each certificate's distribution point or query its OCSP responder. A cached CRL or OCSP response counts only while it is within its validity period, so systems without network access need current CRLs loaded before the old ones lapse.

  4. Treat an unknown revocation status as a failure.

    If neither a current CRL nor an OCSP response can be obtained, reject the signature until its status can be checked, because accepting it means no revocation check took place.

  5. Test with bad certificates before each release.

    Feed the software signatures from an untrusted root, an expired certificate with no trusted timestamp and a revoked certificate, plus one with CRL and OCSP locations blocked, and expect each to be rejected. Where a supplier builds the software, make these acceptance tests.

Keep it running

Review the trust store when a certificate authority is added, removed or distrusted, and before root or intermediate certificates expire. Re-run the bad-certificate tests after updating the cryptographic library or changing network access to CRL and OCSP locations.

Evidence and audit

  1. Check 1 of 3What an auditor asks for

    Ask for

    Test signatures made with a self-signed certificate, an expired certificate without a trusted timestamp, a revoked certificate and a valid chain, processed by the software.

    Look at

    Which signatures the software accepts and what it reports for each.

    Good evidence

    The software rejects the self-signed, expired and revoked cases and accepts the valid one.

  2. Check 2 of 3What an auditor asks for

    Ask for

    A test of a validly chained signature with the CRL distribution point and OCSP responder blocked.

    Look at

    Whether the software still accepts the signature.

    Good evidence

    The software does not accept the signature unless a cached CRL or OCSP response, still within its validity period, shows the certificate is not revoked.

  3. Check 3 of 3What an auditor asks for

    Ask for

    The list of places the software processes digital signatures, and a search of its code and dependencies for signature verification calls.

    Look at

    Whether each call the search finds is on the list, performs both checks and can be switched off by any setting.

    Good evidence

    Every verification call found is on the list, each validates the trust chain and checks revocation by CRL or OCSP, and no production setting disables either check.

Mappings

Closest match in ISO/IEC 27001: A.8.24, Use of cryptography, which this control partially meets.

ISO 27001

ISO/IEC 27001: 1 mapping

  • A.8.24Use of cryptographyPartially meets
Essential Eight

ASD Essential Eight: 1 mapping

Mappings show how controls relate across frameworks. They do not imply full equivalence or certification.