NIST is currently reinventing its recommended password quality parameters.  In light of the many recent hacks that have been attributed to password breaches due to the use of poorly chosen easy-to-guess passwords.  In NIST 800-63-B, NIST is attempting to make the password policies more user friendly by shifting the burden on the verifier.

No matter how strong your password hashes/cryptography is, if the chosen password is inherently weak, then literally no controls can protect them from disclosure attacks.  Previously NIST’s approach has been to shift the risk more onto the consumer.  The new approach is to shift the burden on to the provider.  To that end, one of the key highlights of the new standard is blacklist validation against a list of “known-bad” passwords.  These are some of the highlights of the new standard:

DO’S :

  • Minimum password length should be 8 characters, with a maximum of no less than 64 characters.
  • Recommended to have a minimum of 12 character password for sensitive sites.
  • All ASCII and UNICODE characters should be allowed even emojis.
  • Blacklist validation against a list of “known-bad” passwords.
  • Allow for an option to read the password during input.
  • Use a slow hashing algorithm ex. PBKDF2 for password storage.  Using Scrypt

    (RFC7914which implements PBKDF2-HMAC-SHA-256 is recommended.

DON’TS:

  • No password composition/complexity rules (Ex: Your password must contain one lowercase letter, one uppercase letter, one number, etc..)
  • No password hints.
  • No Knowledge-based authentication (Ex: Where did you attend high school? What’s your favorite pet?).
  • require passwords to expire unless a breach occurs.

SECURE PASSWORD STORAGE:

Keyed HMAC hash(HMAC-SHA1 or HMAC-SHA2 or HMAC-SHA3 as specified in NIST SP 800-131A rev1, Sec 9.) with 32-bit random salt AND stretched using NIST approved key derivation function (PBKDF2 as specified in NIST SP 800-132) with a minimum of 10,000 iterations.  SCRYPT which uses PBKDF2 (RFC7914) is also recommended.  From the NIST800-63b:

Verifiers SHALL store memorized secrets in a form that is resistant to offline attacks. Secrets SHALL be hashed with a salt value using an approved hash function such as PBKDF2 as described in [SP 800-132]. The salt value SHALL be a 32-bit or longer random value generated by an approved random bit generator and stored along with the hash result. At least 10,000 iterations of the hash function SHOULD be performed. A keyed hash function (e.g., HMAC [FIPS198-1]), with the key stored separately from the hashed authenticators (e.g., in a hardware security module) SHOULD be used to further resist dictionary attacks against the stored hashed authenticators.

Out of Band Authenticator

  • Don’t Use SMS
  • Respnse (only) may be over a protected channel
  • OOB device authenticates to verifier using approved crypto
  • Thanks to Ram  C. for providing this great information.

References:

https://blog.tallan.com/2016/12/20/applying-new-nist-standard-to-asp-net-pt-1-pbkdf2-sha256-password-content/

https://www.ftc.gov/news-events/blogs/techftc/2016/03/time-rethink-mandatory-password-changes

http://cups.cs.cmu.edu/passwords.html

https://passwordscon.org/archives/vegas-16/

 

 

 

2 Thoughts on “NIST New Password Controls”