Password requirements for solutions design
Evening all, a question was asked on what benchmark should you follow for the implementation of secure solutions.
This is the password requirements for the application it is based on the NIST framework with some updates for clarification.
User-generated passwords should be at least 10 characters in length.
Machine-generated passwords should be at least 6 characters in length.
Users should be able to create passwords at least 64 characters in length.
All ASCII/Unicode characters should be allowed, including emojis and spaces.
Stored passwords should be hashed and salted, and never truncated.
The hash used is to be a secure hashing algorithm i.e. SHA3 or SHAKE
Passwords should not expire.
Users should be prevented from using sequential characters (e.g., “1234”) or repeated characters (e.g., “aaaa”).
MFA must be an option to be setup/enabled by the client (this will be a requirement to meet ASD8 and SOC2 compliance), it does not have to be enforced yet only optional.
Two-factor authentication (2FA) must not use SMS for codes and will be performed via an authentication application (MS auth, google auth etc)
Knowledge-based authentication (KBA), such as “What was the name of your first pet?”, should not be used.
Users should be allowed 10 failed password attempts before being locked out of a system or service.
Passwords should not have hints.
Complexity requirements — like requiring special characters, numbers or uppercase letters — should not be used. (this increases the likelihood of reuse or writing down)
Context-specific words, such as the name of the service or the individual’s username, are not to be permitted.
Ideally business name and business attributes should not be allowed either (understand this may be complex to implement – willing to discuss)
The token for the web session is to be a nonce (to prevent replay attacks)
A failed password for an account that exits and an account that does not exist is to take the same time and generate the same error message
No messaging that “account does not exist” or similar.
Password reset to be performed by way of a OTP with a 10 minute timeout and require MFA validation on reauthentication (if present)
More detailed notes can be found here.