| < draft-ietf-curdle-ssh-kex-sha2-19.txt | draft-ietf-curdle-ssh-kex-sha2-20.txt > | |||
|---|---|---|---|---|
| Internet Engineering Task Force M. D. Baushke | Internet Engineering Task Force M. D. Baushke | |||
| Internet-Draft 25 June 2021 | Internet-Draft 6 August 2021 | |||
| Updates: 4250 4253 4432 4462 (if approved) | Updates: 4250 4253 4432 4462 (if approved) | |||
| Intended status: Standards Track | Intended status: Standards Track | |||
| Expires: 27 December 2021 | Expires: 7 February 2022 | |||
| Key Exchange (KEX) Method Updates and Recommendations for Secure Shell | Key Exchange (KEX) Method Updates and Recommendations for Secure Shell | |||
| (SSH) | (SSH) | |||
| draft-ietf-curdle-ssh-kex-sha2-19 | draft-ietf-curdle-ssh-kex-sha2-20 | |||
| Abstract | Abstract | |||
| This document is intended to update the recommended set of key | This document is intended to update the recommended set of key | |||
| exchange methods for use in the Secure Shell (SSH) protocol to meet | exchange methods for use in the Secure Shell (SSH) protocol to meet | |||
| evolving needs for stronger security. This document updates RFC | evolving needs for stronger security. This document updates RFC | |||
| 4250, RFC 4253, RFC 4432, and RFC 4462. | 4250, RFC 4253, RFC 4432, and RFC 4462. | |||
| Status of This Memo | Status of This Memo | |||
| skipping to change at page 1, line 35 ¶ | skipping to change at page 1, line 35 ¶ | |||
| Internet-Drafts are working documents of the Internet Engineering | Internet-Drafts are working documents of the Internet Engineering | |||
| Task Force (IETF). Note that other groups may also distribute | Task Force (IETF). Note that other groups may also distribute | |||
| working documents as Internet-Drafts. The list of current Internet- | working documents as Internet-Drafts. The list of current Internet- | |||
| Drafts is at https://datatracker.ietf.org/drafts/current/. | Drafts is at https://datatracker.ietf.org/drafts/current/. | |||
| Internet-Drafts are draft documents valid for a maximum of six months | Internet-Drafts are draft documents valid for a maximum of six months | |||
| and may be updated, replaced, or obsoleted by other documents at any | and may be updated, replaced, or obsoleted by other documents at any | |||
| time. It is inappropriate to use Internet-Drafts as reference | time. It is inappropriate to use Internet-Drafts as reference | |||
| material or to cite them other than as "work in progress." | material or to cite them other than as "work in progress." | |||
| This Internet-Draft will expire on 27 December 2021. | This Internet-Draft will expire on 7 February 2022. | |||
| Copyright Notice | Copyright Notice | |||
| Copyright (c) 2021 IETF Trust and the persons identified as the | Copyright (c) 2021 IETF Trust and the persons identified as the | |||
| document authors. All rights reserved. | document authors. All rights reserved. | |||
| This document is subject to BCP 78 and the IETF Trust's Legal | This document is subject to BCP 78 and the IETF Trust's Legal | |||
| Provisions Relating to IETF Documents (https://trustee.ietf.org/ | Provisions Relating to IETF Documents (https://trustee.ietf.org/ | |||
| license-info) in effect on the date of publication of this document. | license-info) in effect on the date of publication of this document. | |||
| Please review these documents carefully, as they describe your rights | Please review these documents carefully, as they describe your rights | |||
| and restrictions with respect to this document. Code Components | and restrictions with respect to this document. Code Components | |||
| extracted from this document must include Simplified BSD License text | extracted from this document must include Simplified BSD License text | |||
| as described in Section 4.e of the Trust Legal Provisions and are | as described in Section 4.e of the Trust Legal Provisions and are | |||
| provided without warranty as described in the Simplified BSD License. | provided without warranty as described in the Simplified BSD License. | |||
| Table of Contents | Table of Contents | |||
| 1. Overview and Rationale . . . . . . . . . . . . . . . . . . . 2 | 1. Overview and Rationale . . . . . . . . . . . . . . . . . . . 2 | |||
| 1.1. Selecting an appropriate hashing algorithm . . . . . . . 3 | 1.1. Selecting an appropriate hashing algorithm . . . . . . . 4 | |||
| 1.2. Selecting an appropriate Public key Algorithm . . . . . . 5 | 1.2. Selecting an appropriate Public key Algorithm . . . . . . 5 | |||
| 1.2.1. Elliptic Curve Cryptography (ECC) . . . . . . . . . . 6 | 1.2.1. Elliptic Curve Cryptography (ECC) . . . . . . . . . . 6 | |||
| 1.2.2. Finite Field Cryptography (FFC) . . . . . . . . . . . 6 | 1.2.2. Finite Field Cryptography (FFC) . . . . . . . . . . . 7 | |||
| 1.2.3. Integer Factorization Cryptography (IFC) . . . . . . 7 | 1.2.3. Integer Factorization Cryptography (IFC) . . . . . . 8 | |||
| 2. Requirements Language . . . . . . . . . . . . . . . . . . . . 8 | 2. Requirements Language . . . . . . . . . . . . . . . . . . . . 9 | |||
| 3. Key Exchange Methods . . . . . . . . . . . . . . . . . . . . 8 | 3. Key Exchange Methods . . . . . . . . . . . . . . . . . . . . 9 | |||
| 3.1. Elliptic Curve Cryptography (ECC) . . . . . . . . . . . . 8 | 3.1. Elliptic Curve Cryptography (ECC) . . . . . . . . . . . . 10 | |||
| 3.1.1. curve25519-sha256 and gss-curve25519-sha256-* . . . . 9 | 3.1.1. curve25519-sha256 and gss-curve25519-sha256-* . . . . 10 | |||
| 3.1.2. curve448-sha512 and gss-curve448-sha512-* . . . . . . 9 | 3.1.2. curve448-sha512 and gss-curve448-sha512-* . . . . . . 11 | |||
| 3.1.3. ecdh-*, ecmqv-sha2, and gss-nistp* . . . . . . . . . 10 | 3.1.3. ecdh-*, ecmqv-sha2, and gss-nistp* . . . . . . . . . 11 | |||
| 3.2. Finite Field Cryptography (FFC) . . . . . . . . . . . . . 11 | 3.2. Finite Field Cryptography (FFC) . . . . . . . . . . . . . 12 | |||
| 3.2.1. FFC diffie-hellman using generated MODP groups . . . 11 | 3.2.1. FFC diffie-hellman using generated MODP groups . . . 13 | |||
| 3.2.2. FFC diffie-hellman using named MODP groups . . . . . 12 | 3.2.2. FFC diffie-hellman using named MODP groups . . . . . 13 | |||
| 3.3. Integer Factorization Cryptography (IFC) . . . . . . . . 13 | 3.3. Integer Factorization Cryptography (IFC) . . . . . . . . 14 | |||
| 3.4. KDFs and Integrity Hashing . . . . . . . . . . . . . . . 14 | 3.4. KDFs and Integrity Hashing . . . . . . . . . . . . . . . 15 | |||
| 3.5. Secure Shell Extension Negotiation . . . . . . . . . . . 15 | 3.5. Secure Shell Extension Negotiation . . . . . . . . . . . 16 | |||
| 4. Summary Guidance for Key Exchange Method Names | 4. Summary Guidance for Key Exchange Method Names | |||
| Implementations . . . . . . . . . . . . . . . . . . . . . 15 | Implementations . . . . . . . . . . . . . . . . . . . . . 16 | |||
| 5. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 17 | 5. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 18 | |||
| 6. Security Considerations . . . . . . . . . . . . . . . . . . . 18 | 6. Security Considerations . . . . . . . . . . . . . . . . . . . 19 | |||
| 7. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 19 | 7. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 20 | |||
| 8. References . . . . . . . . . . . . . . . . . . . . . . . . . 19 | 8. References . . . . . . . . . . . . . . . . . . . . . . . . . 20 | |||
| 8.1. Normative References . . . . . . . . . . . . . . . . . . 19 | 8.1. Normative References . . . . . . . . . . . . . . . . . . 20 | |||
| 8.2. Informative References . . . . . . . . . . . . . . . . . 20 | 8.2. Informative References . . . . . . . . . . . . . . . . . 21 | |||
| Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 21 | Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 22 | |||
| 1. Overview and Rationale | 1. Overview and Rationale | |||
| Secure Shell (SSH) is a common protocol for secure communication on | Secure Shell (SSH) is a common protocol for secure communication on | |||
| the Internet. In [RFC4253], SSH originally defined two Key Exchange | the Internet. In [RFC4253], SSH originally defined two Key Exchange | |||
| (KEX) Method Names that MUST be implemented. Over time what was once | (KEX) Method Names that MUST be implemented. Over time what was once | |||
| considered secure is no longer considered secure. The purpose of | considered secure is no longer considered secure. The purpose of | |||
| this RFC is to recommend that some published key exchanges be | this RFC is to recommend that some published key exchanges be | |||
| deprecated or disallowed as well as recommending some that SHOULD and | deprecated or disallowed as well as recommending some that SHOULD and | |||
| one that MUST be adopted. | one that MUST be adopted. | |||
| This document updates [RFC4250] [RFC4253] [RFC4432] [RFC4462] by | This document updates [RFC4250] [RFC4253] [RFC4432] [RFC4462] by | |||
| changing the requirement level ("MUST" moving to "SHOULD" or "MAY" or | changing the requirement level ("MUST" moving to "SHOULD" or "MAY" or | |||
| "SHOULD NOT", and "MAY" moving to "MUST" or "SHOULD" or "SHOULD NOT" | "SHOULD NOT", and "MAY" moving to "MUST" or "SHOULD" or "SHOULD NOT" | |||
| or "MUST NOT") of various key exchange mechanisms. | or "MUST NOT") of various key exchange mechanisms. Some | |||
| recommendations will be unchanged, but are included for completeness. | ||||
| [RFC4253] section 7.2 says the following: | [RFC4253] section 7.2 says the following: | |||
| "The key exchange produces two values: a shared secret K, and an | "The key exchange produces two values: a shared secret K, and an | |||
| exchange hash H. Encryption and authentication keys are derived from | exchange hash H. Encryption and authentication keys are derived from | |||
| these. The exchange hash H from the first key exchange is | these. The exchange hash H from the first key exchange is | |||
| additionally used as the session identifier, which is a unique | additionally used as the session identifier, which is a unique | |||
| identifier for this connection. It is used by authentication methods | identifier for this connection. It is used by authentication methods | |||
| as a part of the data that is signed as a proof of possession of a | as a part of the data that is signed as a proof of possession of a | |||
| private key. Once computed, the session identifier is not changed, | private key. Once computed, the session identifier is not changed, | |||
| skipping to change at page 3, line 24 ¶ | skipping to change at page 3, line 24 ¶ | |||
| The security strength of the public key exchange algorithm and the | The security strength of the public key exchange algorithm and the | |||
| hash used in the Key Derivation Function (KDF) both impact the | hash used in the Key Derivation Function (KDF) both impact the | |||
| security of the shared secret K being used. | security of the shared secret K being used. | |||
| The hashing algorithms used by key exchange methods described in this | The hashing algorithms used by key exchange methods described in this | |||
| document are: sha1, sha256, sha384, and sha512. In many cases, the | document are: sha1, sha256, sha384, and sha512. In many cases, the | |||
| hash name is explicitly appended to the public key exchange algorithm | hash name is explicitly appended to the public key exchange algorithm | |||
| name. However, some of them are implicit and defined in the RFC that | name. However, some of them are implicit and defined in the RFC that | |||
| defines the key exchange algorithm name. | defines the key exchange algorithm name. | |||
| Various RFCs use different spellings and capitalizations for the | ||||
| hashing function and encryption function names. For the purpose of | ||||
| this document, the following are equivalent names: sha1, SHA1, and | ||||
| SHA-1; sha256, SHA256, and SHA2-256; sha384, SHA384, and SHA2-384; | ||||
| sha512, SHA512, and SHA2-512. | ||||
| For the purpose of this document, the following are equivalent: | ||||
| aes128, AES128, AES-128; aes192, AES192, and AES-192; aes256, AES256, | ||||
| and AES-256. | ||||
| It is good to try to match the security strength of the public key | It is good to try to match the security strength of the public key | |||
| exchange algorithm with security strength of the symmetric cipher. | exchange algorithm with security strength of the symmetric cipher. | |||
| There are many possible symmetric ciphers available, with multiple | There are many possible symmetric ciphers available, with multiple | |||
| modes. The list in Table 1 is intended as a representative sample of | modes. The list in Table 1 is intended as a representative sample of | |||
| those which appear to be present in most SSH implementations. | those which appear to be present in most SSH implementations. The | |||
| security strength estimates are generally available in [RFC4086] for | ||||
| triple-DES and AES as well as [NIST.SP.800-57pt1r5] Section 5.6.1.1. | ||||
| +========================+=============================+ | +========================+=============================+ | |||
| | Cipher Name (modes) | Estimated Security Strength | | | Cipher Name (modes) | Estimated Security Strength | | |||
| +========================+=============================+ | +========================+=============================+ | |||
| | 3des (cbc) | 112 bits | | | 3des (cbc) | 112 bits | | |||
| +------------------------+-----------------------------+ | +------------------------+-----------------------------+ | |||
| | aes128 (cbc, ctr, gcm) | 128 bits | | | aes128 (cbc, ctr, gcm) | 128 bits | | |||
| +------------------------+-----------------------------+ | +------------------------+-----------------------------+ | |||
| | aes192 (cbc, ctr, gcm) | 192 bits | | | aes192 (cbc, ctr, gcm) | 192 bits | | |||
| +------------------------+-----------------------------+ | +------------------------+-----------------------------+ | |||
| skipping to change at page 4, line 13 ¶ | skipping to change at page 4, line 35 ¶ | |||
| reasons. | reasons. | |||
| There have been attacks against SHA-1 and it is no longer strong | There have been attacks against SHA-1 and it is no longer strong | |||
| enough for SSH security requirements. Therefore, it is desirable to | enough for SSH security requirements. Therefore, it is desirable to | |||
| move away from using it before attacks become more serious. | move away from using it before attacks become more serious. | |||
| The SHA-1 hash provides for approximately 80 bits of security | The SHA-1 hash provides for approximately 80 bits of security | |||
| strength. This means that the shared key being used has at most 80 | strength. This means that the shared key being used has at most 80 | |||
| bits of security strength which may not be sufficient for most users. | bits of security strength which may not be sufficient for most users. | |||
| At present, the attacks against SHA-1 are collision attacks that | For purposes of key exchange methods, attacks against SHA-1 are | |||
| usually rely on human help, rather than a pre-image attack. SHA-1 | collision attacks that usually rely on human help, rather than a pre- | |||
| resistance against second pre-image is still at 160 bits, but SSH | image attack. SHA-1 resistance against second pre-image is still at | |||
| does not depend on second pre-image resistance, but rather on chosen- | 160 bits, but SSH does not depend on second pre-image resistance, but | |||
| prefix collision resistance. | rather on chosen-prefix collision resistance. | |||
| Transcript Collision attacks are documented in [TRANS-COLL]. This | Transcript Collision attacks are documented in [TRANS-COLL]. This | |||
| paper shows that the man in the middle does not tamper with the | paper shows that an on-path attacker does not tamper with the Diffie- | |||
| Diffie-Hellman values and does not know the connection keys. The | Hellman values and does not know the connection keys. The attack | |||
| attack could be used to tamper with both I_C and I_S (as defined in | could be used to tamper with both I_C and I_S (as defined in section | |||
| section 7.3 of [RFC4253]), and might potentially be able to downgrade | 7.3 of [RFC4253]), and might potentially be able to downgrade the | |||
| the negotiated ciphersuite to a weak cryptographic algorithm that the | negotiated ciphersuite to a weak cryptographic algorithm that the | |||
| attacker knows how to break. | attacker knows how to break. | |||
| These attacks are still computationally very difficult to perform, | These attacks are still computationally very difficult to perform, | |||
| but is is desirable that any key exchanging using SHA-1 be phased out | but it is desirable that any key exchange using SHA-1 be phased out | |||
| as soon as possible. | as soon as possible. | |||
| If there is a need for using SHA-1 in a key exchange for | If there is a need for using SHA-1 in a key exchange for | |||
| compatibility, it would be desirable it be listed last in the | compatibility, it would be desirable to list it last in the | |||
| preference list of key exchanges. | preference list of key exchanges. | |||
| Use of the SHA-2 family of hashes found in [RFC6234] rather than the | Use of the SHA-2 family of hashes found in [RFC6234] rather than the | |||
| SHA-1 hash is strongly advised. | SHA-1 hash is strongly advised. | |||
| When it comes to the SHA-2 family of Secure Hashing functions, | When it comes to the SHA-2 family of Secure Hashing functions, | |||
| SHA2-256 has 128 bits of security strength; SHA2-384 has 192 bits of | SHA2-256 has 128 bits of security strength; SHA2-384 has 192 bits of | |||
| security strength; and SHA2-512 has 256 bits of security strength. | security strength; and SHA2-512 has 256 bits of security strength. | |||
| It is suggested that the minimum secure hashing function that should | It is suggested that the minimum secure hashing function that should | |||
| be used for key exchange methods is SHA2-256. | be used for key exchange methods is SHA2-256 with 128 bits of | |||
| security strength. Other hashing functions may also have the same | ||||
| number of bits of security strength, but none are as yet defined in | ||||
| any RFC for use in a KEX for SSH. | ||||
| To avoid combinatorial explosion of key exchange names, newer key | To avoid combinatorial explosion of key exchange names, newer key | |||
| exchanges are generally restricted to *-sha256 and *-sha512. The | exchanges are generally restricted to *-sha256 and *-sha512. The | |||
| exceptions are ecdh-sha2-nistp384 and gss-nistp384-sha384-* which are | exceptions are ecdh-sha2-nistp384 and gss-nistp384-sha384-* which are | |||
| defined to use SHA2-384 for the hash algorithm. | defined to use SHA2-384 for the hash algorithm. | |||
| Table 2 provides a summary of security strength for hashing | Table 2 provides a summary of security strength for hashing functions | |||
| functions. | for collision resistance. You may consult [NIST.SP.800-107r1] for | |||
| more information on hash algorithm security strength. | ||||
| +===========+=============================+ | +===========+=============================+ | |||
| | Hash Name | Estimated Security Strength | | | Hash Name | Estimated Security Strength | | |||
| +===========+=============================+ | +===========+=============================+ | |||
| | sha1 | 80 bits (before attacks) | | | sha1 | 80 bits (before attacks) | | |||
| +-----------+-----------------------------+ | +-----------+-----------------------------+ | |||
| | sha256 | 128 bits | | | sha256 | 128 bits | | |||
| +-----------+-----------------------------+ | +-----------+-----------------------------+ | |||
| | sha384 | 192 bits | | | sha384 | 192 bits | | |||
| +-----------+-----------------------------+ | +-----------+-----------------------------+ | |||
| skipping to change at page 5, line 38 ¶ | skipping to change at page 6, line 19 ¶ | |||
| and Curve448 key exchanges are used with ECDH via [RFC8731]. | and Curve448 key exchanges are used with ECDH via [RFC8731]. | |||
| * Finite Field Cryptography (FFC) is used for Diffie-Hellman (DH) | * Finite Field Cryptography (FFC) is used for Diffie-Hellman (DH) | |||
| key exchange with "safe primes" either from a specified list found | key exchange with "safe primes" either from a specified list found | |||
| in [RFC3526] or generated dynamically via [RFC4419] as updated by | in [RFC3526] or generated dynamically via [RFC4419] as updated by | |||
| [RFC8270]. | [RFC8270]. | |||
| * Integer Factorization Cryptography (IFC) using the RSA algorithm | * Integer Factorization Cryptography (IFC) using the RSA algorithm | |||
| is provided for in [RFC4432]. | is provided for in [RFC4432]. | |||
| It is desirable for the security strength of the key exchange be | It is desirable that the security strength of the key exchange be | |||
| chosen to be comparable with the security strength of the other | chosen to be comparable with the security strength of the other | |||
| elements of the SSH handshake. Attackers can target the weakest | elements of the SSH handshake. Attackers can target the weakest | |||
| element of the SSH handshake. | element of the SSH handshake. | |||
| It is desirable to select a minimum of 112 bits of security strength | It is desirable to select a minimum of 112 bits of security strength | |||
| to match the weakest of the symmetric cipher (3des-cbc) available. | to match the weakest of the symmetric cipher (3des-cbc) available. | |||
| Based on implementer security needs, a stronger minimum may be | Based on implementer security needs, a stronger minimum may be | |||
| desired. | desired. | |||
| The larger the MODP group, the ECC curve size, or the RSA key length, | The larger the MODP group, the ECC curve size, or the RSA key length, | |||
| skipping to change at page 6, line 14 ¶ | skipping to change at page 6, line 42 ¶ | |||
| 1.2.1. Elliptic Curve Cryptography (ECC) | 1.2.1. Elliptic Curve Cryptography (ECC) | |||
| For ECC, across all of the named curves the minimum security strength | For ECC, across all of the named curves the minimum security strength | |||
| is approximately 128 bits. The [RFC5656] key exchanges for the named | is approximately 128 bits. The [RFC5656] key exchanges for the named | |||
| curves use a hashing function with a matching security strength. | curves use a hashing function with a matching security strength. | |||
| Likewise, the [RFC8731] key exchanges use a hashing function which | Likewise, the [RFC8731] key exchanges use a hashing function which | |||
| has more security strength than the curves. The minimum strength | has more security strength than the curves. The minimum strength | |||
| will be the security strength of the curve. Table 3 contains a | will be the security strength of the curve. Table 3 contains a | |||
| breakdown of just the ECC security strength by curve name and not | breakdown of just the ECC security strength by curve name and not | |||
| including the hashing algorithm used. The hashing algorithm | including the hashing algorithm used. The curve* security level | |||
| designated for use with the individual curves have approximately the | numbers are in [RFC7748]. The nist* numbers are in [RFC5656]. The | |||
| same number of bits of security as the named curve. | hashing algorithm designated for use with the individual curves have | |||
| approximately the same number of bits of security as the named curve. | ||||
| +============+=============================+ | +============+=============================+ | |||
| | Curve Name | Estimated Security Strength | | | Curve Name | Estimated Security Strength | | |||
| +============+=============================+ | +============+=============================+ | |||
| | nistp256 | 128 bits | | | nistp256 | 128 bits | | |||
| +------------+-----------------------------+ | +------------+-----------------------------+ | |||
| | nistp384 | 192 bits | | | nistp384 | 192 bits | | |||
| +------------+-----------------------------+ | +------------+-----------------------------+ | |||
| | nistp521 | 512 bits | | | nistp521 | 512 bits | | |||
| +------------+-----------------------------+ | +------------+-----------------------------+ | |||
| skipping to change at page 7, line 30 ¶ | skipping to change at page 8, line 13 ¶ | |||
| Table 4: FFC MODP Security Strengths | Table 4: FFC MODP Security Strengths | |||
| The minimum MODP group is the 2048-bit MODP group14. When used with | The minimum MODP group is the 2048-bit MODP group14. When used with | |||
| sha1, this group provides approximately 80 bits of security. When | sha1, this group provides approximately 80 bits of security. When | |||
| used with sha256, this group provides approximately 112 bits of | used with sha256, this group provides approximately 112 bits of | |||
| security. The 3des-cbc cipher itself provides at most 112 bits of | security. The 3des-cbc cipher itself provides at most 112 bits of | |||
| security, so the group14-sha256 key exchanges is sufficient to keep | security, so the group14-sha256 key exchanges is sufficient to keep | |||
| all of the 3des-cbc key, for 112 bits of security. | all of the 3des-cbc key, for 112 bits of security. | |||
| A 3072-bit MODP group with sha256 hash will provide approximately 128 | A 3072-bit MODP group with sha256 hash will provide approximately 128 | |||
| bits of security. This is desirable when using a Cipher such as | bits of security. This is desirable when using a cipher such as | |||
| aes128 or chacha20-poly1305 that provides approximately 128 bits of | aes128 or chacha20-poly1305 that provides approximately 128 bits of | |||
| security. | security. | |||
| The 8192-bit group18 MODP group when used with sha512 provides | The 8192-bit group18 MODP group when used with sha512 provides | |||
| approximately 200 bits of security which is sufficient to protect | approximately 200 bits of security which is sufficient to protect | |||
| aes192 with 192 bits of security. | aes192 with 192 bits of security. | |||
| 1.2.3. Integer Factorization Cryptography (IFC) | 1.2.3. Integer Factorization Cryptography (IFC) | |||
| The only IFC algorithm for key exchange is the RSA algorithm | The only IFC algorithm for key exchange is the RSA algorithm | |||
| specified in [RFC4432]. RSA 1024 bit keys have approximately 80 bits | specified in [RFC4432]. RSA 1024-bit keys have approximately 80 bits | |||
| of security strength. RSA 2048 bit keys have approximately 112 bits | of security strength. RSA 2048-bit keys have approximately 112 bits | |||
| of security strength. It is worth noting that the IFC types of key | of security strength. It is worth noting that the IFC types of key | |||
| exchange do not provide Forward Secrecy which both FFC and ECC do | exchange do not provide Forward Secrecy which both FFC and ECC do | |||
| provide. | provide. | |||
| In order to match the 112 bits of security strength needed for 3des- | In order to match the 112 bits of security strength needed for 3des- | |||
| cbc, an RSA 2048 bit key matches the security strength. The use of a | cbc, an RSA 2048-bit key matches the security strength. The use of a | |||
| SHA-2 Family hash with RSA 2048-bit keys has sufficient security to | SHA-2 Family hash with RSA 2048-bit keys has sufficient security to | |||
| match the 3des-cbc symmetric cipher. The rsa1024-sha1 key exchange | match the 3des-cbc symmetric cipher. The rsa1024-sha1 key exchange | |||
| has approximately 80 bits of security strength and is not desirable. | has approximately 80 bits of security strength and is not desirable. | |||
| Table 5 summarizes the security strengths of these key exchanges | Table 5 summarizes the security strengths of these key exchanges | |||
| without including the hashing algorithm strength. | without including the hashing algorithm strength. Guidance for these | |||
| strengths are in [NIST.SP.800-57pt1r5] Section 5.6.1.1. | ||||
| +=====================+=============================+ | +=====================+=============================+ | |||
| | Key Exchange Method | Estimated Security Strength | | | Key Exchange Method | Estimated Security Strength | | |||
| +=====================+=============================+ | +=====================+=============================+ | |||
| | rsa1024-sha1 | 80 bits | | | rsa1024-sha1 | 80 bits | | |||
| +---------------------+-----------------------------+ | +---------------------+-----------------------------+ | |||
| | rsa2048-sha256 | 112 bits | | | rsa2048-sha256 | 112 bits | | |||
| +---------------------+-----------------------------+ | +---------------------+-----------------------------+ | |||
| Table 5: IFC Security Strengths | Table 5: IFC Security Strengths | |||
| skipping to change at page 8, line 28 ¶ | skipping to change at page 9, line 15 ¶ | |||
| 2. Requirements Language | 2. Requirements Language | |||
| The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", | The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", | |||
| "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and | "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and | |||
| "OPTIONAL" in this document are to be interpreted as described in | "OPTIONAL" in this document are to be interpreted as described in | |||
| BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all | BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all | |||
| capitals, as shown here. | capitals, as shown here. | |||
| 3. Key Exchange Methods | 3. Key Exchange Methods | |||
| This memo adopts the style and conventions of [RFC4253] in specifying | This document adopts the style and conventions of [RFC4253] in | |||
| how the use of data key exchange is indicated in SSH. | specifying how the use of data key exchange is indicated in SSH. | |||
| This RFC also collects key exchange method names in various existing | This RFC also collects key exchange method names in various existing | |||
| RFCs [RFC4253], [RFC4419], [RFC4432], [RFC4462], [RFC5656], | RFCs [RFC4253], [RFC4419], [RFC4432], [RFC4462], [RFC5656], | |||
| [RFC8268], [RFC8731], [RFC8732], and [RFC8308], and provides a | [RFC8268], [RFC8731], [RFC8732], and [RFC8308], and provides a | |||
| suggested suitability for implementation of MUST, SHOULD, MAY, SHOULD | suggested suitability for implementation of MUST, SHOULD, MAY, SHOULD | |||
| NOT, and MUST NOT. Any method not explicitly listed MAY be | NOT, and MUST NOT. Any method not explicitly listed MAY be | |||
| implemented. | implemented. | |||
| [RFC4253] section 7.2 "Output of Key Exchange" defines generation of | ||||
| a shared secret K (really the output of the KDF) and an exchange key | ||||
| hash H. Each key exchange method uses a specified HASH function | ||||
| which must be the same for both key exchange and Key Derivation. H | ||||
| is used for key exchange integrity across the SSH session as it is | ||||
| computed only once. It is noted at the end of the 7.2 section that | ||||
| "This process will lose entropy if the amount of entropy in K is | ||||
| larger than the internal state size of HASH." so care must be taken | ||||
| that the hashing algorithm used is well chosen ("reasonable") for the | ||||
| key exchange algorithms being used. | ||||
| This document is intended to provide guidance as to what key exchange | This document is intended to provide guidance as to what key exchange | |||
| algorithms are to be considered for new or updated SSH | algorithms are to be considered for new or updated SSH | |||
| implementations. | implementations. | |||
| In general, key exchange methods which are considered 'weak' are | ||||
| being moved to either deprecated ("SHOULD NOT"), or disallowed ("MUST | ||||
| NOT"). Methods which are newer or considered to be stronger usually | ||||
| require more device resources than many administrators and/or | ||||
| developers need are to be allowed ("MAY"). (Eventually, some of | ||||
| these methods could be moved by consensus to "SHOULD" to increase | ||||
| interoperability and security.) Methods which are not 'weak' and | ||||
| have implementation consensus are encouraged ("SHOULD"). There needs | ||||
| to be at least one consensus method promoted to a mandatory to | ||||
| implement (MTI). This should help to provide continued | ||||
| interoperability even with the loss of one of the now disallowed MTI | ||||
| methods. | ||||
| For this document, 112 bits of security strength is the minimum. Use | ||||
| of either or both of SHA-1 and RSA 1024-bits at an approximate 80 | ||||
| bits of security fall below this minimum and should be deprecated and | ||||
| moved to disallowed as quickly as possible in configured deployments | ||||
| of SSH. It seems plausible that this minimum may be increased over | ||||
| time, so authors and administrators may wish to prepare for a switch | ||||
| to algorithms that provide more security strength. | ||||
| 3.1. Elliptic Curve Cryptography (ECC) | 3.1. Elliptic Curve Cryptography (ECC) | |||
| The EC key exchange algorithms used with SSH include the ECDH and EC | The EC key exchange algorithms used with SSH include the ECDH and EC | |||
| Menezes-Qu-Vanstone (ecmqv). | Menezes-Qu-Vanstone (ecmqv). | |||
| The ECC curves defined for the key exchange algorithms above include; | The ECC curves defined for the key exchange algorithms above include; | |||
| curve25519, curve448, the NIST prime curves (nistp256, nistp384, | curve25519, curve448, the NIST prime curves (nistp256, nistp384, | |||
| nistp521) as well as other curves allowed for by [RFC5656] section 6. | nistp521) as well as other curves allowed for by [RFC5656] section 6. | |||
| There are GSSAPI-based key-exchange mechanisms that use these curves | There are GSSAPI-based key-exchange mechanisms that use these curves | |||
| as well which have a 'gss-' prefix. | as well which have a 'gss-' prefix. | |||
| 3.1.1. curve25519-sha256 and gss-curve25519-sha256-* | 3.1.1. curve25519-sha256 and gss-curve25519-sha256-* | |||
| Curve25519 is efficient on a wide range of architectures with | Curve25519 is efficient on a wide range of architectures with | |||
| properties that allow higher performance implementations compared to | properties that allow higher performance implementations compared to | |||
| traditional elliptic curves. The corresponding key exchange methods | the patented elliptic curve parameters purchased by NIST for the | |||
| use SHA2-256 (also known as SHA-256) defined in [RFC6234]. SHA2-256 | general public to use and described in [RFC5656]. The corresponding | |||
| is a reasonable hash in both the KDF and integrity in both gss and | key exchange methods use SHA2-256 (also known as SHA-256) defined in | |||
| non-gss uses of curve25519 key exchange methods. These key exchange | [RFC6234]. SHA2-256 is a reasonable hash for use in both the KDF and | |||
| methods are described in [RFC8731] and [RFC8732] and are similar to | session integrity. It is reasonable for both gss and non-gss uses of | |||
| the IKEv2 key agreement described in [RFC8031]. The | curve25519 key exchange methods. These key exchange methods are | |||
| curve25519-sha256 key exchange method has multiple implementations | described in [RFC8731] and [RFC8732] and are similar to the IKEv2 key | |||
| and SHOULD be implemented. The gss-curve25519-sha256-* key exchange | agreement described in [RFC8031]. The curve25519-sha256 key exchange | |||
| method SHOULD also be implemented because it shares the same | method has multiple implementations and SHOULD be implemented. The | |||
| performance and security characteristics as curve25519-sha256. | gss-curve25519-sha256-* key exchange method SHOULD also be | |||
| implemented because it shares the same performance and security | ||||
| characteristics as curve25519-sha256. | ||||
| Table 6 contains a summary of the recommendations for curve25519 | Table 6 contains a summary of the recommendations for curve25519 | |||
| based key exchanges. | based key exchanges. | |||
| +==========================+==========+ | +==========================+==========+ | |||
| | Key Exchange Method Name | Guidance | | | Key Exchange Method Name | Guidance | | |||
| +==========================+==========+ | +==========================+==========+ | |||
| | curve25519-sha256 | SHOULD | | | curve25519-sha256 | SHOULD | | |||
| +--------------------------+----------+ | +--------------------------+----------+ | |||
| | gss-curve25519-sha256-* | SHOULD | | | gss-curve25519-sha256-* | SHOULD | | |||
| +--------------------------+----------+ | +--------------------------+----------+ | |||
| Table 6: Curve25519 Implementation | Table 6: Curve25519 Implementation | |||
| Guidance | Guidance | |||
| 3.1.2. curve448-sha512 and gss-curve448-sha512-* | 3.1.2. curve448-sha512 and gss-curve448-sha512-* | |||
| Curve448 provides more security strength than Curve25519 at a higher | Curve448 provides more security strength than Curve25519 at a higher | |||
| computational and bandwidth cost. The corresponding key exchange | computational and bandwidth cost. The corresponding key exchange | |||
| methods use SHA2-512 (also known as SHA-512) defined in [RFC6234]. | methods use SHA2-512 (also known as SHA-512) defined in [RFC6234]. | |||
| SHA2-512 is a reasonable hash in both the KDF and integrity in both | SHA2-512 is a reasonable hash for use in both the KDF and session | |||
| gss and non-gss uses of curve448 key exchange methods. These key | integrity. It is reasonable for both gss and non-gss uses of | |||
| exchange methods are described in [RFC8731] and [RFC8732] and are | curve448 key exchange methods. These key exchange methods are | |||
| similar to the IKEv2 key agreement described in [RFC8031]. The | described in [RFC8731] and [RFC8732] and are similar to the IKEv2 key | |||
| curve448-sha512 key exchange method MAY be implemented. The gss- | agreement described in [RFC8031]. The curve448-sha512 key exchange | |||
| curve448-sha512-* key exchange method MAY also be implemented because | method MAY be implemented. The gss-curve448-sha512-* key exchange | |||
| it shares the same performance and security characteristics as | method MAY also be implemented because it shares the same performance | |||
| curve448-sha512. | and security characteristics as curve448-sha512. | |||
| Table 7 contains a summary of the recommendations for curve448 based | Table 7 contains a summary of the recommendations for curve448 based | |||
| key exchanges. | key exchanges. | |||
| +==========================+==========+ | +==========================+==========+ | |||
| | Key Exchange Method Name | Guidance | | | Key Exchange Method Name | Guidance | | |||
| +==========================+==========+ | +==========================+==========+ | |||
| | curve448-sha512 | MAY | | | curve448-sha512 | MAY | | |||
| +--------------------------+----------+ | +--------------------------+----------+ | |||
| | gss-curve448-sha512-* | MAY | | | gss-curve448-sha512-* | MAY | | |||
| skipping to change at page 11, line 32 ¶ | skipping to change at page 13, line 4 ¶ | |||
| | ecmqv-sha2 | MAY | | | ecmqv-sha2 | MAY | | |||
| +--------------------------+----------+ | +--------------------------+----------+ | |||
| Table 8: ECDH Implementation Guidance | Table 8: ECDH Implementation Guidance | |||
| It is advisable to match the ECDSA and ECDH algorithms to use the | It is advisable to match the ECDSA and ECDH algorithms to use the | |||
| same curve for both to maintain the same security strength in the | same curve for both to maintain the same security strength in the | |||
| connection. | connection. | |||
| 3.2. Finite Field Cryptography (FFC) | 3.2. Finite Field Cryptography (FFC) | |||
| 3.2.1. FFC diffie-hellman using generated MODP groups | 3.2.1. FFC diffie-hellman using generated MODP groups | |||
| [RFC4419] defines two key exchange methods that use a random | [RFC4419] defines two key exchange methods that use a random | |||
| selection from a set of pre-generated moduli for key exchange: the | selection from a set of pre-generated moduli for key exchange: the | |||
| diffie-hellman-group-exchange-sha1 method, and the diffie-hellman- | diffie-hellman-group-exchange-sha1 method, and the diffie-hellman- | |||
| group-exchange-sha256 method. Per [RFC8270], implementations SHOULD | group-exchange-sha256 method. Per [RFC8270], implementations SHOULD | |||
| use a MODP group whose modulus size is equal to or greater than 2048 | use a MODP group whose modulus size is equal to or greater than 2048 | |||
| bits. MODP groups with a modulus size less than 2048 bits are weak | bits. MODP groups with a modulus size less than 2048 bits are weak | |||
| and MUST NOT be used. | and MUST NOT be used. | |||
| The diffie-hellman-group-exchange-sha1 key exchange method SHOULD NOT | The diffie-hellman-group-exchange-sha1 key exchange method SHOULD NOT | |||
| be used. This method uses SHA-1, which is being deprecated. | be used. This method uses SHA-1, which is being deprecated. | |||
| The diffie-hellman-group-exchange-sha256 key exchange method MAY be | The diffie-hellman-group-exchange-sha256 key exchange method MAY be | |||
| used. This method uses SHA-256, which is reasonable for MODP groups | used. This method uses SHA-256, which is reasonable for MODP groups | |||
| less than 4K bits. | less than 4000 bits. | |||
| Care should be taken in the pre-generation of the moduli P and | Care should be taken in the pre-generation of the moduli P and | |||
| generator G such that the generator provides a Q-ordered subgroup of | generator G such that the generator provides a Q-ordered subgroup of | |||
| P. Otherwise, the parameter set may leak one bit of the shared | P. Otherwise, the parameter set may leak one bit of the shared | |||
| secret. | secret. | |||
| Table 9 provides a summary of the Guidance for these exchanges. | Table 9 provides a summary of the Guidance for these exchanges. | |||
| +======================================+============+ | +======================================+============+ | |||
| | Key Exchange Method Name | Guidance | | | Key Exchange Method Name | Guidance | | |||
| skipping to change at page 12, line 34 ¶ | skipping to change at page 13, line 50 ¶ | |||
| The diffie-hellman-group14-sha256 key exchange method is defined in | The diffie-hellman-group14-sha256 key exchange method is defined in | |||
| [RFC8268] and represents a key exchange which has approximately 112 | [RFC8268] and represents a key exchange which has approximately 112 | |||
| bits of security strength that matches 3des-cbc symmetric cipher | bits of security strength that matches 3des-cbc symmetric cipher | |||
| security strength. It is a reasonably simple transition from SHA-1 | security strength. It is a reasonably simple transition from SHA-1 | |||
| to SHA-2 and given that diffie-hellman-group14-sha1 and diffie- | to SHA-2 and given that diffie-hellman-group14-sha1 and diffie- | |||
| hellman-group14-sha256 share a MODP group and only differ in the hash | hellman-group14-sha256 share a MODP group and only differ in the hash | |||
| function used for the KDF and integrity, it is a correspondingly | function used for the KDF and integrity, it is a correspondingly | |||
| simple transition from implementing diffie-hellman-group14-sha1 to | simple transition from implementing diffie-hellman-group14-sha1 to | |||
| implementing diffie-hellman-group14-sha256. Given that diffie- | implementing diffie-hellman-group14-sha256. Given that diffie- | |||
| hellman-group14-sha1 is being removed from MTI status, the diffie- | hellman-group14-sha1 is being removed from mandatory to implement | |||
| hellman-group14-sha256 method MUST be implemented. The rest of the | (MTI) status, the diffie-hellman-group14-sha256 method MUST be | |||
| FFC MODP group from [RFC8268] have a larger number of security bits | implemented. The rest of the FFC MODP group from [RFC8268] have a | |||
| and are suitable for symmetric ciphers that also have a similar | larger number of security bits and are suitable for symmetric ciphers | |||
| number of security bits. | that also have a similar number of security bits. | |||
| Table 10 below provides explicit guidance by name. | Table 10 below provides explicit guidance by name. | |||
| +===============================+==========+ | +===============================+==========+ | |||
| | Key Exchange Method Name | Guidance | | | Key Exchange Method Name | Guidance | | |||
| +===============================+==========+ | +===============================+==========+ | |||
| | diffie-hellman-group14-sha256 | MUST | | | diffie-hellman-group14-sha256 | MUST | | |||
| +-------------------------------+----------+ | +-------------------------------+----------+ | |||
| | gss-group14-sha256-* | SHOULD | | | gss-group14-sha256-* | SHOULD | | |||
| +-------------------------------+----------+ | +-------------------------------+----------+ | |||
| skipping to change at page 14, line 24 ¶ | skipping to change at page 15, line 24 ¶ | |||
| 3.4. KDFs and Integrity Hashing | 3.4. KDFs and Integrity Hashing | |||
| The SHA-1 and SHA-2 family of hashing algorithms are combined with | The SHA-1 and SHA-2 family of hashing algorithms are combined with | |||
| the FFC, ECC, and IFC algorithms to comprise a key exchange method | the FFC, ECC, and IFC algorithms to comprise a key exchange method | |||
| name. | name. | |||
| The selected hash algorithm is used both in the KDF as well as for | The selected hash algorithm is used both in the KDF as well as for | |||
| the integrity of the response. | the integrity of the response. | |||
| All of the key exchanges methods using the SHA-1 hashing algorithm | All of the key exchange methods using the SHA-1 hashing algorithm | |||
| should be deprecated and phased out due to security concerns for SHA- | should be deprecated and phased out due to security concerns for SHA- | |||
| 1, as documented in [RFC6194]. | 1, as documented in [RFC6194]. | |||
| Unconditionally deprecating and/or disallowing SHA-1 everywhere will | Unconditionally deprecating and/or disallowing SHA-1 everywhere will | |||
| hasten the day when it may be simply removed from implementations | hasten the day when it may be simply removed from implementations | |||
| completely. Leaving partially-broken algorithms laying around is not | completely. Leaving partially-broken algorithms lying around is not | |||
| a good thing to do. | a good thing to do. | |||
| The SHA-2 Family of hashes [RFC6234] is more secure than SHA-1. They | The SHA-2 Family of hashes [RFC6234] is more secure than SHA-1. They | |||
| have been standardized for use in SSH with many of the currently | have been standardized for use in SSH with many of the currently | |||
| defined key exchanges. | defined key exchanges. | |||
| Please note that at the present time, there is no key exchange method | Please note that at the present time, there is no key exchange method | |||
| for Secure Shell which uses the SHA-3 family of Secure Hashing | for Secure Shell which uses the SHA-3 family of Secure Hashing | |||
| functions or the Extendable Output Functions. | functions or the Extendable Output Functions. | |||
| Prior to the changes made by this document, diffie-hellman- | Prior to the changes made by this document, diffie-hellman- | |||
| group1-sha1 and diffie-hellman-group14-sha1 were mandatory to | group1-sha1 and diffie-hellman-group14-sha1 were MTI. diffie- | |||
| implement (MTI). diffie-hellman-group14-sha1 is the stronger of the | hellman-group14-sha1 is the stronger of the two. Group14 (a 2048-bit | |||
| two. Group14 (a 2048-bit MODP group) is defined in [RFC3526]. The | MODP group) is defined in [RFC3526]. The group1 MODP group with | |||
| group1 MODP group with approximately 80 bits of security is too weak | approximately 80 bits of security is too weak to be retained. | |||
| to be retained. However, rather than jumping from the MTI to making | However, rather than jumping from the MTI to making it disallowed, | |||
| it disallowed, many implementers suggested that it should transition | many implementers suggested that it should transition to deprecated | |||
| to deprecated first and be disallowed at a later time. The group14 | first and be disallowed at a later time. The group14 MODP group | |||
| MODP group using a sha1 hash for the KDF is not as weak as the group1 | using a sha1 hash for the KDF is not as weak as the group1 MODP | |||
| MODP group. There are some legacy situations where it will still | group. There are some legacy situations where it will still provide | |||
| provide administrators with value. Transitioning from MTI to a | administrators with value, such as small hardware IOT devices which | |||
| requirement status that provides for continued use with the | have insufficient compute and memory resources to use larger MODP | |||
| groups before a timeout of the session occurs. Transitioning from | ||||
| MTI to a requirement status that provides for continued use with the | ||||
| expectation of deprecating or disallowing it in the future was able | expectation of deprecating or disallowing it in the future was able | |||
| to find consensus. Therefore, it is considered reasonable to retain | to find consensus. Therefore, it is considered reasonable to retain | |||
| the diffie-hellman-group14-sha1 exchange for interoperability with | the diffie-hellman-group14-sha1 exchange for interoperability with | |||
| legacy implementations. The diffie-hellman-group14-sha1 key exchange | legacy implementations. The diffie-hellman-group14-sha1 key exchange | |||
| MAY be implemented, but should be put at the end of the list of | MAY be implemented, but should be put at the end of the list of | |||
| negotiated key exchanges. | negotiated key exchanges. | |||
| The diffie-hellman-group1-sha1 and diffie-hellman-group-exchange-sha1 | The diffie-hellman-group1-sha1 and diffie-hellman-group-exchange-sha1 | |||
| SHOULD NOT be implemented. The gss-group1-sha1-*, gss- | SHOULD NOT be implemented. The gss-group1-sha1-*, gss- | |||
| group14-sha1-*, and gss-gex-sha1-* key exchanges are already | group14-sha1-*, and gss-gex-sha1-* key exchanges are already | |||
| skipping to change at page 17, line 25 ¶ | skipping to change at page 18, line 27 ¶ | |||
| +--------------------------+-----------+----------------+-----------+ | +--------------------------+-----------+----------------+-----------+ | |||
| | rsa2048-sha256 | RFC4432 | MAY | MAY | | | rsa2048-sha256 | RFC4432 | MAY | MAY | | |||
| +--------------------------+-----------+----------------+-----------+ | +--------------------------+-----------+----------------+-----------+ | |||
| Table 12: IANA guidance for key exchange method name implementations | Table 12: IANA guidance for key exchange method name implementations | |||
| The full set of official [IANA-KEX] key algorithm method names not | The full set of official [IANA-KEX] key algorithm method names not | |||
| otherwise mentioned in this document MAY be implemented. | otherwise mentioned in this document MAY be implemented. | |||
| [TO BE REMOVED: This registration should take place at the following | [TO BE REMOVED: This registration should take place at the following | |||
| location URL: http://www.iana.org/assignments/ssh-parameters/ssh- | location URL: https://www.iana.org/assignments/ssh-parameters/ssh- | |||
| parameters.xhtml#ssh-parameters-16 It is hoped that the Table 12 in | parameters.xhtml#ssh-parameters-16 It is hoped that the Table 12 in | |||
| section 4 of this draft provide guidance information to be merged | section 4 of this draft provide guidance information to be merged | |||
| into the IANA ssh-parameters-16 table. Future RFCs may update the | into the IANA ssh-parameters-16 table. Future RFCs may update the | |||
| these Implementation Guidance notations. ] | these Implementation Guidance notations. ] | |||
| 5. Acknowledgements | 5. Acknowledgements | |||
| Thanks to the following people for review and comments: Denis Bider, | Thanks to the following people for review and comments: Denis Bider, | |||
| Peter Gutmann, Damien Miller, Niels Moeller, Matt Johnston, Iwamoto | Peter Gutmann, Damien Miller, Niels Moeller, Matt Johnston, Iwamoto | |||
| Kouichi, Simon Josefsson, Dave Dugal, Daniel Migault, Anna Johnston, | Kouichi, Simon Josefsson, Dave Dugal, Daniel Migault, Anna Johnston, | |||
| Tero Kivinen, and Travis Finkenauer. | Tero Kivinen, and Travis Finkenauer. | |||
| Thanks to the following people for code to implement interoperable | Thanks to the following people for code to implement interoperable | |||
| exchanges using some of these groups as found in an this draft: | exchanges using some of these groups as found in this draft: Darren | |||
| Darren Tucker for OpenSSH and Matt Johnston for Dropbear. And thanks | Tucker for OpenSSH and Matt Johnston for Dropbear. And thanks to | |||
| to Iwamoto Kouichi for information about RLogin, Tera Term (ttssh) | Iwamoto Kouichi for information about RLogin, Tera Term (ttssh) and | |||
| and Poderosa implementations also adopting new Diffie-Hellman groups | Poderosa implementations also adopting new Diffie-Hellman groups | |||
| based on this draft. | based on this draft. | |||
| 6. Security Considerations | 6. Security Considerations | |||
| This SSH protocol provides a secure encrypted channel over an | This SSH protocol provides a secure encrypted channel over an | |||
| insecure network. It performs server host authentication, key | insecure network. It performs server host authentication, key | |||
| exchange, encryption, and integrity checks. It also derives a unique | exchange, encryption, and integrity checks. It also derives a unique | |||
| session ID that may be used by higher-level protocols. The key | session ID that may be used by higher-level protocols. The key | |||
| exchange itself generates a shared secret and uses the hash function | exchange itself generates a shared secret and uses the hash function | |||
| for both the KDF and integrity. | for both the KDF and integrity. | |||
| Full security considerations for this protocol are provided in | Full security considerations for this protocol are provided in | |||
| [RFC4251] continue to apply. In addition, the security | [RFC4251] continue to apply. In addition, the security | |||
| considerations provided in [RFC4432] apply. Note that Forward | considerations provided in [RFC4432] apply. Note that Forward | |||
| Secrecy is NOT available with the rsa1024-sha1 or rsa2048-sha256 key | Secrecy is NOT available with the rsa1024-sha1 or rsa2048-sha256 key | |||
| exchanges. | exchanges. | |||
| It is desirable to deprecate or disallow key exchange methods that | It is desirable to deprecate or disallow key exchange methods that | |||
| are considered weak so they are not in still actively in operation | are considered weak, so they are not in still actively in operation | |||
| when they are broken. | when they are broken. | |||
| A key exchange method is considered weak when the security strength | A key exchange method is considered weak when the security strength | |||
| is insufficient to match the symmetric cipher or the algorithm has | is insufficient to match the symmetric cipher or the algorithm has | |||
| been broken. | been broken. | |||
| The 1024-bit MODP group used by diffie-hellman-group1-sha1 is too | The 1024-bit MODP group used by diffie-hellman-group1-sha1 is too | |||
| small for the symmetric ciphers used in SSH. | small for the symmetric ciphers used in SSH. | |||
| MODP groups with a modulus size less than 2048 bits are too small for | MODP groups with a modulus size less than 2048 bits are too small for | |||
| skipping to change at page 18, line 47 ¶ | skipping to change at page 19, line 47 ¶ | |||
| At this time, the rsa1024-sha1 key exchange is too small for the | At this time, the rsa1024-sha1 key exchange is too small for the | |||
| symmetric ciphers used in SSH. | symmetric ciphers used in SSH. | |||
| The use of SHA-1 for use with any key exchange may not yet be | The use of SHA-1 for use with any key exchange may not yet be | |||
| completely broken, but it is time to retire all uses of this | completely broken, but it is time to retire all uses of this | |||
| algorithm as soon as possible. | algorithm as soon as possible. | |||
| The diffie-hellman-group14-sha1 algorithm is not yet completely | The diffie-hellman-group14-sha1 algorithm is not yet completely | |||
| deprecated. This is to provide a practical transition from the MTI | deprecated. This is to provide a practical transition from the MTI | |||
| algorithms to a new one. However, it would be best to only be as a | algorithms to a new one. However, it would be best to only be as a | |||
| last resort in key exchange negotiations. All key exchanges methods | last resort in key exchange negotiations. All key exchange methods | |||
| using the SHA-1 hash are to be considered as deprecated. | using the SHA-1 hash are to be considered as deprecated. | |||
| 7. IANA Considerations | 7. IANA Considerations | |||
| IANA is requested to annotate entries in [IANA-KEX] with the | IANA is requested to add a new column to [IANA-KEX] with heading "OK | |||
| suggested implementation guidance provided in section 4 "Summary | to Implement", and to annotate entries therein with the | |||
| Guidance for Key Exchange Method Names Implementation" in this | implementation guidance provided in section 4 "Summary Guidance for | |||
| document. A summary may be found in Table 12 in section 4. The | Key Exchange Method Names Implementation" in this document. A | |||
| entry with "MUST NOT" should be considered disallowed. An entry with | summary may be found in Table 12 in section 4. IANA is additionally | |||
| "SHOULD NOT" is deprecated and may be disallowed in the future. | requested to include this document as an additional reference for the | |||
| with the suggested implementation guidance provided in section 4 | ||||
| "Summary Guidance for Key Exchange Method Names Implementation" in | ||||
| this document. [IANA-KEX] registry. Registry entries annotated with | ||||
| "MUST NOT" are considered disallowed. Registry entries annotated | ||||
| with "SHOULD NOT" are deprecated and may be disallowed in the future. | ||||
| 8. References | 8. References | |||
| 8.1. Normative References | 8.1. Normative References | |||
| [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate | [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate | |||
| Requirement Levels", BCP 14, RFC 2119, | Requirement Levels", BCP 14, RFC 2119, | |||
| DOI 10.17487/RFC2119, March 1997, | DOI 10.17487/RFC2119, March 1997, | |||
| <https://www.rfc-editor.org/info/rfc2119>. | <https://www.rfc-editor.org/info/rfc2119>. | |||
| skipping to change at page 20, line 13 ¶ | skipping to change at page 21, line 17 ¶ | |||
| 2018, <https://www.rfc-editor.org/info/rfc8308>. | 2018, <https://www.rfc-editor.org/info/rfc8308>. | |||
| [RFC8731] Adamantiadis, A., Josefsson, S., and M. Baushke, "Secure | [RFC8731] Adamantiadis, A., Josefsson, S., and M. Baushke, "Secure | |||
| Shell (SSH) Key Exchange Method Using Curve25519 and | Shell (SSH) Key Exchange Method Using Curve25519 and | |||
| Curve448", RFC 8731, DOI 10.17487/RFC8731, February 2020, | Curve448", RFC 8731, DOI 10.17487/RFC8731, February 2020, | |||
| <https://www.rfc-editor.org/info/rfc8731>. | <https://www.rfc-editor.org/info/rfc8731>. | |||
| 8.2. Informative References | 8.2. Informative References | |||
| [IANA-KEX] IANA, "Secure Shell (SSH) Protocol Parameters: Key | [IANA-KEX] IANA, "Secure Shell (SSH) Protocol Parameters: Key | |||
| Exchange Method Names", June 2021, | Exchange Method Names", July 2021, | |||
| <http://www.iana.org/assignments/ssh-parameters/ssh- | <https://www.iana.org/assignments/ssh-parameters/ssh- | |||
| parameters.xhtml#ssh-parameters-16>. | parameters.xhtml#ssh-parameters-16>. | |||
| [NIST.SP.800-107r1] | ||||
| Dang, Q., "Recommendation for applications using approved | ||||
| hash algorithms", DOI 10.6028/NIST.SP.800-107r1, August | ||||
| 2012, <https://doi.org/10.6028/NIST.SP.800-107r1>. | ||||
| [NIST.SP.800-57pt1r5] | ||||
| Barker, E., "Recommendation for Key Management - Part 1 - | ||||
| General", DOI 10.6028/NIST.SP.800-57pt1r5, May 2020, | ||||
| <https://doi.org/10.6028/NIST.SP.800-57pt1r5>. | ||||
| [RFC3526] Kivinen, T. and M. Kojo, "More Modular Exponential (MODP) | [RFC3526] Kivinen, T. and M. Kojo, "More Modular Exponential (MODP) | |||
| Diffie-Hellman groups for Internet Key Exchange (IKE)", | Diffie-Hellman groups for Internet Key Exchange (IKE)", | |||
| RFC 3526, DOI 10.17487/RFC3526, May 2003, | RFC 3526, DOI 10.17487/RFC3526, May 2003, | |||
| <https://www.rfc-editor.org/info/rfc3526>. | <https://www.rfc-editor.org/info/rfc3526>. | |||
| [RFC4086] Eastlake 3rd, D., Schiller, J., and S. Crocker, | ||||
| "Randomness Requirements for Security", BCP 106, RFC 4086, | ||||
| DOI 10.17487/RFC4086, June 2005, | ||||
| <https://www.rfc-editor.org/info/rfc4086>. | ||||
| [RFC4251] Ylonen, T. and C. Lonvick, Ed., "The Secure Shell (SSH) | [RFC4251] Ylonen, T. and C. Lonvick, Ed., "The Secure Shell (SSH) | |||
| Protocol Architecture", RFC 4251, DOI 10.17487/RFC4251, | Protocol Architecture", RFC 4251, DOI 10.17487/RFC4251, | |||
| January 2006, <https://www.rfc-editor.org/info/rfc4251>. | January 2006, <https://www.rfc-editor.org/info/rfc4251>. | |||
| [RFC4419] Friedl, M., Provos, N., and W. Simpson, "Diffie-Hellman | [RFC4419] Friedl, M., Provos, N., and W. Simpson, "Diffie-Hellman | |||
| Group Exchange for the Secure Shell (SSH) Transport Layer | Group Exchange for the Secure Shell (SSH) Transport Layer | |||
| Protocol", RFC 4419, DOI 10.17487/RFC4419, March 2006, | Protocol", RFC 4419, DOI 10.17487/RFC4419, March 2006, | |||
| <https://www.rfc-editor.org/info/rfc4419>. | <https://www.rfc-editor.org/info/rfc4419>. | |||
| [RFC4432] Harris, B., "RSA Key Exchange for the Secure Shell (SSH) | [RFC4432] Harris, B., "RSA Key Exchange for the Secure Shell (SSH) | |||
| skipping to change at page 21, line 10 ¶ | skipping to change at page 22, line 26 ¶ | |||
| [RFC6194] Polk, T., Chen, L., Turner, S., and P. Hoffman, "Security | [RFC6194] Polk, T., Chen, L., Turner, S., and P. Hoffman, "Security | |||
| Considerations for the SHA-0 and SHA-1 Message-Digest | Considerations for the SHA-0 and SHA-1 Message-Digest | |||
| Algorithms", RFC 6194, DOI 10.17487/RFC6194, March 2011, | Algorithms", RFC 6194, DOI 10.17487/RFC6194, March 2011, | |||
| <https://www.rfc-editor.org/info/rfc6194>. | <https://www.rfc-editor.org/info/rfc6194>. | |||
| [RFC6234] Eastlake 3rd, D. and T. Hansen, "US Secure Hash Algorithms | [RFC6234] Eastlake 3rd, D. and T. Hansen, "US Secure Hash Algorithms | |||
| (SHA and SHA-based HMAC and HKDF)", RFC 6234, | (SHA and SHA-based HMAC and HKDF)", RFC 6234, | |||
| DOI 10.17487/RFC6234, May 2011, | DOI 10.17487/RFC6234, May 2011, | |||
| <https://www.rfc-editor.org/info/rfc6234>. | <https://www.rfc-editor.org/info/rfc6234>. | |||
| [RFC7748] Langley, A., Hamburg, M., and S. Turner, "Elliptic Curves | ||||
| for Security", RFC 7748, DOI 10.17487/RFC7748, January | ||||
| 2016, <https://www.rfc-editor.org/info/rfc7748>. | ||||
| [RFC8031] Nir, Y. and S. Josefsson, "Curve25519 and Curve448 for the | [RFC8031] Nir, Y. and S. Josefsson, "Curve25519 and Curve448 for the | |||
| Internet Key Exchange Protocol Version 2 (IKEv2) Key | Internet Key Exchange Protocol Version 2 (IKEv2) Key | |||
| Agreement", RFC 8031, DOI 10.17487/RFC8031, December 2016, | Agreement", RFC 8031, DOI 10.17487/RFC8031, December 2016, | |||
| <https://www.rfc-editor.org/info/rfc8031>. | <https://www.rfc-editor.org/info/rfc8031>. | |||
| [RFC8732] Sorce, S. and H. Kario, "Generic Security Service | [RFC8732] Sorce, S. and H. Kario, "Generic Security Service | |||
| Application Program Interface (GSS-API) Key Exchange with | Application Program Interface (GSS-API) Key Exchange with | |||
| SHA-2", RFC 8732, DOI 10.17487/RFC8732, February 2020, | SHA-2", RFC 8732, DOI 10.17487/RFC8732, February 2020, | |||
| <https://www.rfc-editor.org/info/rfc8732>. | <https://www.rfc-editor.org/info/rfc8732>. | |||
| End of changes. 42 change blocks. | ||||
| 108 lines changed or deleted | 186 lines changed or added | |||
This html diff was produced by rfcdiff 1.48. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ | ||||