RFC 5114 publishes DSA-style DH groups with no published seeds
RFC 5114 (Informational, January 2008, BBN authors) published additional DH groups for IETF protocols, including a 1024-bit and two 2048-bit MODP groups with small prime-order subgroups (160, 224 and 256 bits), taken from NIST test data. Unlike the Oakley and RFC 3526 groups, the primes are not safe primes, and neither the RFC nor NIST's data includes the seeds needed to verify how they were generated.
Background
The groups became widely deployed. Researchers later counted about 900,000 TLS hosts (2.25% on port 443, September 2016) and 340,000 IKE hosts (13%, February 2016) supporting them. Two separate concerns followed. First, because p-1 has many small factors besides q, implementations that skip subgroup checks and reuse exponents are open to Lim-Lee key recovery (OpenSSL CVE-2016-0701, Valenta et al. 2017). Second, with no verifiable seed, nobody can rule out a deliberately trapdoored prime, a point made concrete by the 2016 kilobit hidden-SNFS computation.
No trapdoor has been found in RFC 5114, and there is no evidence one exists. The issue is unverifiable provenance plus fragile validation requirements. Both are reasons TLS 1.3 and RFC 7919 use only safe primes derived from e.
Sources
- standardRFC 5114: Additional Diffie-Hellman Groups for Use with IETF StandardsIETF, rfc-editor.org
- paperA kilobit hidden SNFS discrete logarithm computation (EUROCRYPT 2017), section on unverifiable standardized primesIACR ePrint, eprint.iacr.org
- paperMeasuring small subgroup attacks against Diffie-Hellman (NDSS 2017)IACR ePrint, eprint.iacr.org