Skip to content
Cryptography
ASD ISMISM-1629

ASD ISM 1629 Select correct modulus for Diffie-Hellman encryption

What it says

When using DH for agreeing on encryption session keys, a modulus and associated parameters are selected according to NIST SP 800-56A Rev. 3.

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

In plain English

Wherever DH is used to agree on encryption session keys, choose the modulus and associated parameters as NIST SP 800-56A Rev. 3 directs; size alone does not make them compliant.

When DH (Diffie-Hellman) is used to agree on encryption session keys, the modulus and its associated parameters must be selected according to NIST SP 800-56A Rev. 3. The modulus is the large prime that defines the DH group, and the associated parameters include the generator and the subgroup order. The document approves only the named groups it lists, such as ffdhe3072, and 2048-bit values generated by the method it requires. A modulus picked any other way does not comply, however big. ISM-0472 and ISM-1759 set the minimum sizes.

Why it matters

A DH modulus can be large and still weak if it was badly made, for example a value that is not actually prime or parameters open to small-subgroup attacks, letting an attacker recover session keys. Selecting by the document avoids trusting unchecked parameters.

How to implement

  1. Record where each DH use gets its parameters.

    For every TLS server, SSH server, IPsec gateway and application that uses DH, note whether it uses a named group or values generated locally, such as a TLS 1.2 DH parameter file or an SSH group-exchange moduli file.

  2. Switch to named groups the document lists.

    Use groups such as ffdhe3072 in TLS, the 3072-bit or 4096-bit MODP groups in IKE, and fixed-group SSH methods such as diffie-hellman-group16-sha512, at a size ISM-0472 or ISM-1759 allows for the system's classification.

  3. Replace locally generated values with listed groups.

    Where a TLS 1.2 parameter file or SSH moduli file holds generated values, replace it with a listed group or turn that method off. The document approves generated values only as 2048-bit sets made by its required method, meant for older systems, so a larger generated modulus never complies.

  4. Get the facts for products you cannot configure.

    For a bought service or appliance, ask the vendor which DH groups the installed version uses and how they were selected, and choose listed groups where a setting allows. If it cannot comply, it falls short of this control until upgraded or replaced.

Keep it running

Re-check parameters after upgrades and configuration changes, whenever a product generates new ones, and if the ISM moves to a newer revision of the document. ASD's approval of DH ends after 2030, so include DH in the post-quantum cryptography transition plan (ISM-2073).

Evidence and audit

  1. Check 1 of 2What an auditor asks for

    Ask for

    The record of where each DH use gets its parameters, and a scan of TLS, SSH and IPsec services that identifies every DH group and method each one offers or accepts, not only the one it negotiates.

    Look at

    Whether the scan finds DH in use that the record misses, and whether every modulus each service offers or accepts matches a group listed in NIST SP 800-56A Rev. 3.

    Good evidence

    Every DH use the scan finds is in the record, and each offers or accepts only groups listed in NIST SP 800-56A Rev. 3 or, only at 2048 bits, values shown to be generated and validated as that document requires.

  2. Check 2 of 2What an auditor asks for

    Ask for

    The DH parameter files and SSH moduli files on a sample of servers, with any records of how generated values were made.

    Look at

    Whether each modulus is a listed group and, if generated, whether it is 2048 bits and the records show it was generated and validated as NIST SP 800-56A Rev. 3 requires.

    Good evidence

    Each sampled modulus is a group the document lists, or a 2048-bit set with records showing it was generated and validated as the document requires; a larger generated modulus, or a record of primality tests alone, does not pass.

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

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