Internet-Draft | SASL SCRAM-SHA-512/SCRAM-SHA-512-PLUS | March 2023 |
Melnikov | Expires 11 September 2023 | [Page] |
This document registers the Simple Authentication and Security Layer (SASL) mechanisms SCRAM-SHA-512 and SCRAM-SHA-512-PLUS.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 11 September 2023.¶
Copyright (c) 2023 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
This document registers the SASL [RFC4422] mechanisms SCRAM-SHA-512 and SCRAM-SHA-512-PLUS. SHA-512 has stronger security properties than SHA-1, and it is expected that SCRAM mechanisms based on it will have greater predicted longevity than the SCRAM mechanisms based on SHA-1.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all¶
The SCRAM-SHA-512 and SCRAM-SHA-512-PLUS SASL mechanisms are defined in the same way that SCRAM-SHA-1 and SCRAM-SHA-1-PLUS are defined in [RFC5802], except that the hash function for HMAC() and H() uses SHA-512 instead of SHA-1 [RFC6234].¶
For the SCRAM-SHA-512 and SCRAM-SHA-512-PLUS SASL mechanisms, the hash iteration-count announced by a server SHOULD be at least 10000.¶
The GSS-API mechanism OID for SCRAM-SHA-512 is 1.3.6.1.5.5.<TBD> (see Section 5).¶
This is a simple example of a SCRAM-SHA-512 authentication exchange when the client doesn't support channel bindings. The username 'user' and password 'pencil' are being used.¶
[[TBD: Add an example]]¶
The security considerations from [RFC5802] still apply.¶
To be secure, SCRAM-SHA-512-PLUS MUST be used over a TLS channel that has had the session hash extension [RFC7627] negotiated, or session resumption MUST NOT have been used. When using SCRAM over TLS 1.2 [RFC5246], the "tls-unique" channel binding is still the default channel binding to use (see Section 6.1 of [RFC5802]), assuming the above conditions are satisfied. As "tls-unique" channel binding is not defined for TLS 1.3 [RFC8446], when using SCRAM over TLS 1.3, the "tls-exporter" channel binding [RFC9266] MUST be the default channel binding (in the sense specified in Section 6.1 of [RFC5802]) to use.¶
See [RFC4270] and [RFC6194] for reasons to move from SHA-1 to a strong security mechanism like SHA-512.¶
The strength of this mechanism is dependent in part on the hash iteration-count, as denoted by "i" in [RFC5802]. As a rule of thumb, the hash iteration-count should be such that a modern machine will take 0.1 seconds to perform the complete algorithm; however, this is unlikely to be practical on mobile devices and other relatively low- performance systems. At the time this was written, the rule of thumb gives around 15,000 iterations required; however, a hash iteration- count of 10000 takes around 0.5 seconds on current mobile handsets. This computational cost can be avoided by caching the ClientKey (assuming the Salt and hash iteration-count is stable). Therefore, the recommendation of this specification is that the hash iteration- count SHOULD be at least 10000, but careful consideration ought to be given to using a significantly higher value, particularly where mobile use is less important.¶
IANA is requested to add the following new SASL SCRAM mechanisms to the "SASL SCRAM Family Mechanisms" registry:¶
This document is based on RFC 7677 by Tony Hansen.¶
Thank you to Ludovic Bocquet for comments and corrections.¶