Insecure Diffie-Hellman Parameters

Detects use of weak Diffie-Hellman parameters (< 2048 bits, export-grade, or known broken groups).

zakirkun c39c6ad 2 files · 1.9 KB Updated

File contents

Insecure Diffie-Hellman Parameters

Overview

Diffie-Hellman key exchange with weak parameters is vulnerable to precomputation attacks (LogJam attack, 2015). Common issues:

  • DH groups < 2048 bits (export-grade: 512/768/1024 bits)
  • Using standard well-known small prime groups (precomputed NFS databases)
  • Reusing the same DH parameters across many connections (static DH)

Remediation

  • Use DH groups ≥ 2048 bits or RFC 7919 FFDHE groups
  • Prefer ECDH (Elliptic Curve DH) with P-256/P-384/X25519 — more efficient and secure
  • Generate unique DH parameters per deployment

zakirkun/ice-tea/tree/main/skills/crypto/insecure-dh-params commit c39c6ad4da

Frequently asked questions

npx skillmds@latest add zakirkun/insecure-diffie-hellman-parameters