Skip to content
Cryptography
ASD ISMISM-0472

ASD ISM 0472 Using proper modulus size for Diffie-Hellman keys

What it says

When using DH for agreeing on encryption session keys, a modulus of at least 2048 bits is used, preferably 3072 bits.

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

In plain English

On non-classified, OFFICIAL: Sensitive and PROTECTED systems, DH used to agree on encryption session keys must have a modulus of at least 2048 bits, with 3072 preferred.

When DH (Diffie-Hellman) is used to agree on encryption session keys, the modulus must be at least 2048 bits, and preferably 3072 bits. DH lets two parties agree on a shared secret over an open network; the modulus is the large prime whose size largely sets how strong the exchange is. The rule covers both ends, so a client that accepts a smaller group falls short too. The ISM applies this control to non-classified, OFFICIAL: Sensitive and PROTECTED systems; ISM-1759 sets a 3072-bit minimum for SECRET and TOP SECRET.

Why it matters

A modulus under 2048 bits gives less than 112 bits of security, the minimum ASD targets for data up to PROTECTED. That leaves recorded key exchanges open to attacks, now or as computing improves, that recover the session keys and expose the traffic.

How to implement

  1. Find every place DH is used to agree on session keys.

    Review TLS, SSH and IPsec settings on servers, VPN gateways, clients and appliances, and scan the network for services that negotiate DH. Record the groups each one offers or accepts, including on connections your systems make to outside services.

  2. Remove groups under 2048 bits at both ends.

    Disable 1024-bit and 1536-bit groups, such as IKE groups 2 and 5 and the SSH method diffie-hellman-group1-sha1, and replace TLS 1.2 DH parameter files under 2048 bits. Set clients and libraries to refuse a peer offering less than 2048 bits.

  3. Prefer 3072-bit groups where both ends support them.

    Use named groups such as ffdhe3072 in TLS and the 3072-bit MODP group in IKE, one of the groups ISM-0999 prefers for IPsec. Keep 2048 bits only for peers that cannot go higher. ISM-1629 sets how moduli are chosen, and ISM-0994 prefers ECDH to DH.

  4. Deal with services you cannot configure.

    For a bought service or appliance, choose the vendor setting or security policy that offers only groups of 2048 bits or more, or one that uses ECDH instead. If none exists, it falls short of this control until upgraded or replaced, so record it as an open risk with a fix date.

Keep it running

Re-test after upgrades, new connections and vendor default changes, which can restore small groups, and apply ISM-1759 if the system is reclassified to SECRET or TOP SECRET. 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 list of DH uses in non-classified, OFFICIAL: Sensitive and PROTECTED systems, with the groups each offers or accepts, and a network scan of their TLS, SSH and IPsec services.

    Look at

    Whether the scan finds DH in use that the list misses, and the smallest modulus each service will accept, not only its first choice.

    Good evidence

    Every DH use the scan finds is on the list, and none offers or accepts a modulus under 2048 bits.

  2. Check 2 of 2What an auditor asks for

    Ask for

    Test connections offering only a 1024-bit DH group, then only a 1536-bit group such as IKE group 5, to a sample of servers and gateways, and test servers offering only those groups to a sample of clients.

    Look at

    Whether each connection is refused or keys are agreed.

    Good evidence

    Every sampled server, gateway and client refuses to agree keys with a modulus under 2048 bits.

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.