Identity and Access Management
local graph
Chapter 2 — Identity and Access Management
Section titled “Chapter 2 — Identity and Access Management”This chapter is about identity and authentication. We will be discussing the importance of multi-factor authentication and why you need it. We’ll cover NIST’s new password requirements and why they have changed. Finally, we’ll discuss how to ensure your passwords are secured using a password manager and are securely stored.
In this chapter, we’re going to cover the following main topics:
- Two-factor authentication and why you need it
- Password complexity and NIST 800-63-3B
- Password manager
Two-factor authentication and why you need it
Section titled “Two-factor authentication and why you need it”The importance of multi-factor authentication cannot be overstated. The CEO of True Digital Security, Rory Sanchez, stated that, “ Almost every phishing attack that we’ve seen could have been prevented with multifactor authentication.” 1 If you are a data-driven person like myself, maybe this will convince you; Microsoft says that “ MFA can block over 99.9 percent of account compromise attacks.” 2
Typically, you log in with a username and password for most applications and websites. The best defense against account attacks is to use multi-factor authentication, also known as two-factor authentication
(2FA). Two-factor authentication means that in addition to the first form of authentication, a password, you use another form of authentication. This additional form of authentication may include the following:
- Something you know (a password or PIN code)
- Something you are (fingerprint, iris scan, face scan, or palm scan)
- Something you have (X.509 certificate, digital token, passkey, smart card, or mobile device)
The industry is moving away from passwords, referred to as passwordless, but this still is another form of multi-factor authentication. At the CyberCon 24 people were getting bent out of shape saying the industry is moving away from passwords which is true but passwordless using passkeys is still another form of MFA. Even when you setup passwordless, you still have a password.
Something you know
Section titled “Something you know”Passwords are typically used to secure your applications and websites. A password can be comprised of upper and lower case letters (A-Z), numbers (0–9), and special characters (!*#&). Did you know that a complex eight-character password can now be hacked in five minutes? Hive Systems does annual testing and reports on cracking passwords and the time it takes. In Figure 2*.1*, you can see that an eight-character password only using letters can be cracked instantly:

Figure 2.1 – Hive Systems password cracking
Source: Hive Systems – https://www.hivesystems.io/password-table.
If the attacker uses ChatGPT, then the times are even faster. For the first time, Hive Systems used ChatGPT to crack passwords. The password cracking times are significantly faster when using ChatGPT. The cracking of an eight-character password with upper and lower characters, numbers, and special characters can happen in one second versus five minutes. This means there is a need now more than ever for good password hygiene, such as long, complex passwords and using unique passwords for different applications and websites with multi-factor authentication:

Figure 2.2 – ChatGPT password cracking
I recommend using a minimum of a 14-character password with upper and lower case letters plus one number and special character since it takes 3,000 years to crack even when using ChatGPT. For administrator and banking applications, I recommend using a minimum of 14 characters with upper and lower case letters, one number, and special characters since it takes 232,000 years to crack.
Something you are
Section titled “Something you are”“Something you are” refers to biometric characteristics unique to an individual. These are intrinsic attributes such as fingerprints, facial recognition, iris scans, palm scans, and voice recognition. I’ve only seen the iris scan in the movies. The fingerprint and face scan were originally introduced by Apple and are a great extra step in security for your phone and laptop. Biometric authentication leverages distinct physical or behavioral traits to verify an individual’s identity. Due to the inherent uniqueness of these attributes, biometric systems offer a heightened level of security. However, it’s crucial to handle biometric data with utmost care because, unlike passwords, biometrics cannot be changed if they are compromised. With advancements in technology, biometric authentication methods are becoming increasingly prevalent, particularly in devices such as smartphones and in high-security settings.
Artificial intelligence and biometrics
Section titled “Artificial intelligence and biometrics”Biometrics have been made both more and less secure by artificial intelligence (AI). Let me explain: The security and accuracy of fingerprints, facial recognition, and voice recognition have been improved using machine learning. Using AI with facial recognition will create more accurate authentication methods.3 AI can learn the depths, variations, and textures in order to make the biometric scan truly unique. AI can learn over time as a person’s face changes. Maybe the person has lost or gained weight, or their face has changed with age. AI can recognize these subtle changes and adapt. AI can cross-reference a user’s fingerprint with their face scan in order to reduce false positives and negatives. In addition, using AI with facial recognition will create more accurate authentication methods.4
3 Joshi, Naveen. Biometrics Is Smart, but AI Is Smarter. Here’s Why: Artificial Intelligence AdvancedTech on Demand, 1 Apr. 2019, http://www.allerin.com/blog/biometrics-is-smart-but-ai-is-smarter-heres-why.
4 Joshi, Naveen. Biometrics Is Smart, but AI Is Smarter. Here’s Why: Artificial Intelligence AdvancedTech on Demand, 1 Apr. 2019, http://www.allerin.com/blog/biometrics-is-smart-but-ai-is-smarter-heres-why.
While AI introduces significant advancements in biometric security, it also presents potential vulnerabilities. AI-powered biometric systems rely on machine learning models that, if not properly trained or secured, can be susceptible to adversarial attacks. Skilled adversaries can design input data, termed as adversarial examples, to deceive AI models. For instance, subtle, carefully crafted perturbations to a facial image, often imperceptible to the human eye, can cause an AI-driven facial recognition system to misclassify or falsely authenticate. Additionally, the vast amount of data required to train AI models introduces concerns regarding data privacy and the potential for unintentional biases. If training data are not diverse or representative, the biometric system could exhibit skewed accuracy rates across different demographic groups.
With the advent of Deepfakes, replicating biometrics is becoming more at risk. An example is Deepfakes being able to closely mimic voices and people’s faces. The problem with it is that now, with social media and artificial intelligence, your voice and face can potentially be compromised. There are ways to secure the biometric data in a secure manner: “ We can use encryption, mask the replication keys and other methods. But we need to build algorithms with security in mind—ones that are hardened and protected, in a container that can’t be accessed or compromised.” 5
Something you have
Section titled “Something you have”“Something you have” pertains to an object or device in a user’s possession used for authentication purposes. This could range from a physical hardware token that generates time-based one-time passwords (TOTPs) to a smart card that contains an individual’s cryptographic credentials, such as an X.509 certificate. Today, even smartphones can act as a “something you have” component, where they receive a one-time code via SMS or use an authenticator application to generate a code. This authentication method is especially protective because it requires an attacker to not only know a user’s password but also to physically possess a specific device or object, thus adding a robust layer of security to the authentication process.
SMS is being used to share two-factor authentication, and OTP is not considered to be a secure method. Having said that, using SMS is better than not using it as a second factor. In 2021, Krebs on security wrote a great article titled *Can We Stop Pretending SMS Is Secure Now?*6 In the article, Brian Krebs explains how a security researcher was able to pay a dark web service USD 16 in order to get all the texts of a particular person. Brian says it was “ sickeningly simple ”. Another tactic is for the hacker to call up your cell phone carrier and trick the employee at the phone company to switch the SIM number so that the attacker gets all of your texts. SMS is still used primarily as an authentication method for many applications and websites. Ideally, you should use an authentication application such as Google Authenticator, Authy, or Microsoft Authenticator. Additionally, be careful with the OTP sign-on links you get sent to your phones and computers to authorize a login. Hackers are sending these, and people are quickly approving the login even if it wasn’t them logging in. This can allow the hacker to gain control over their account by changing their password.
Passwordless is the new buzzword in authentication. Essentially, a unique public/ private key pair is generated, and the private key is stored on your device locally, ideally within a third-party password manager (Bitwarden, LastPass, or 1Password). The public key is stored on the website’s key store. A password manager is a secure store for your passwords and will also generate a strong and unique password for each site. Google and Apple are offering passkeys, also known as Universal Authentication Framework (UAF) 7, as an alternative for logins. Once set up, your password manager will automatically launch and present signed data by the private key to the website that has the public key for login. You don’t have to use a password in this case. I don’t see passwords going away any time soon, but passwordless login is definitely a better alternative.
Password complexity and NIST 800-63-3B
Section titled “Password complexity and NIST 800-63-3B”You may have heard about the “new” NIST 800-63-3B password requirements and guidelines. I will cover the highlights of the new guidance for authenticators, where they got it right, and where to be cautious. It is important to highlight the major changes that have taken place and what they mean for individuals and businesses that use passwords to secure their data.
The NIST 800-63-3B guidelines for password management are the most recent version of password security standards from NIST. NIST 800-63-3B is a complete turnaround to what we typically think of as a secure password. You’ll still hear people say the guidance is new, but it was released in June 2017. The IT Industry has been rather slow in implementing the new guidance into their products and applications. The guidelines provide more flexibility to users while maintaining security standards.
Traditionally, the longer and more complex a password, the harder it is to break. Looking at data on password cracking, you can see that complex passwords (meaning passwords with upper and lower case, special symbols, numbers, and letters are harder to crack, as can be seen in Figures 2.1 and 2.2. Complex passwords using upper and lower cases, numbers, and special characters with increasing length will be more difficult to crack. The problem is when you require users to create passwords that adhere to defined password complexity rules; the users typically create weaker passwords. The reason they create weaker passwords is that trying to remember a password made up of symbols, numbers, and upper and lower cases is difficult. When users are forced to create passwords that comply with these password complexity rules, they are more likely to create more easily breakable passwords. For example, take a dictionary word and simply replace the letter “O” with a number zero, the letter “L” with a number 1, or begin a word with a capital letter and end it with an exclamation point. The password cracking programs have known, breached passwords and dictionary words with common substitutions such as capitalized first letter and exclamations at the end. Forced password resets also contribute to users creating weak passwords.
The new NIST 800-63-3B guidelines emphasize the importance of not using complex passwords but focusing on using long passphrases instead. A passphrase is a sentence or several words strung together instead of a word. Since remembering complex passwords with upper and lower cases, numbers, and special characters can be difficult to recall, NIST is recommending using longer all-character passphrases in sentence form. If you think back to the Something You Know section, there is the password-cracking table. Passwords are definitely stronger when longer and more complex. Following NIST’s guidance of
all characters, you would need to have a password of at least 16 characters since there is no complexity at all. This is a big caution. I can’t recommend not using a complex password. A better solution is to use a sentence as a passphrase that is meaningful to you and make the first letter capital and last a special character such as a period, exclamation, or an asterisk. Once you think in terms of sentences you can see how a longer password is easier to create and remember. You should also add spaces or dashes between the words. An example of a strong password is I l0ve Country Music! You can check the strength of your password at https://www.security.org/how-secure-is-my-password. It’s even better to have three or four unrelated words that mean something to you. The spaces are critical in adding more variation and strength to the password.
I totally disagree with the NIST guidance of including an eight-character password as acceptable. Now, with ChatGPT, your password needs to be much longer in length and complex. NIST got it right in recommending that two-factor authentication should be enabled and that passwords should never be reused. The new guidelines encourage using password storage tools such as password managers. The guidelines emphasize educating users about maintaining strong passwords and signaling them during account logins if their passwords do not meet the standard requirements.
NIST 800-63-3B does not want you to force a password change unless there is a known breach. If you force password changes frequently, research shows users will create a weak password.8 I agree that fewer forced password changes are recommended, but I don’t agree with no password change unless a breach happens. There could be a breach of the same password used on another site, but the user is unaware. I don’t think you should force a password change every six weeks or quarterly. I do think a password change should be made at least annually in case of a breach, but the user is unaware. Now, depending on the governance that your organization must comply with, you must check with your compliance department. For example, PCI requires that passwords be changed every 90 days. If you aren’t subject to PCI, then you probably could push out the forced change to 180 days or even once a year.
Application security
Section titled “Application security”On the developer side, NIST 800-63-3B provides good recommendations as far as checking if a password has been compromised before allowing a user to use it and how to securely store the hash of the password. First of all, the guidelines do not want you to allow a user to store a password hint that could be accessible to an unauthenticated user. NIST also does not want you asking the user questions for authentication, such as, what is your first dog’s name? Many applications and websites still use these types of personal questions for authentication. One of the problems with this is that if there is a breach where these answers have been stolen, then you will use the same one across different sites. Additionally, sometimes, people may put this information on their social media, such as what high school they attended. An attacker could use one of these compromised, reused answers to gain control of your account.
In addition, when a new password is entered by a user, the program should check it against dictionary words, weak passwords, and the Have I Been Pwned website before accepting the password. Ideally, you should rate the password so the user knows if it is strong or weak. You don’t want to use repetitive letters or numbers for a password.
After a set number of incorrect logins, the application should lock the user out for a specified period of time. It is recommended to have at least a 15-minute lockout after five failed login attempts. NIST 800-63-3B allows for SMS to be used for out-of-band authentication, but beware, as I stated earlier, there are ways to compromise SMS.
When it comes to storing passwords, it’s essential to keep them secure. One common way to do this is by hashing the password rather than storing it in plain text. This process involves converting the password into a cryptographic hash and then storing the hash instead of the actual password. When a user logs in, the password they enter is hashed again and compared with the stored hash. If they match, the user is allowed access.
NIST 800-63-3B has some guidance on how to securely store your password hashes. This way, hackers won’t be able to break into your system easily. Additionally, it’s imperative to ensure network devices and servers have strong passwords, and the password hash should be stored securely. Some of the secure password hashing algorithms are Scrypt, Bcrypt, Argon2, PBKDF2, and Balloon. Argon2 is memory hard and highly recommended. If your company has to meet FIPS 140, then use PBKDF2 with a minimum of 600,000 iterations.
These algorithms, such as PBKDF2, use a password-based key derivation function that uses a salted, iterative algorithm to derive a cryptographic key from a password. Argon2 is another password hashing algorithm designed to be resistant to attacks such as dictionary, brute-force, and precomputational attacks.
When implementing a key derivation function, it is important to use a one-way function that is approved and secure. The HMAC algorithm specified in FIPS 198-1 is recommended, as well as the Secure Hash Algorithm 3 (SHA-3), which is outlined in FIPS 202.
NIST 800-63-3B also allows for several options, including CMAC [SP800-38B], Keccak Message Authentication Code (KMAC), Customizable SHAKE (cSHAKE), and ParallelHash [SP 800-185]. To ensure maximum security, the output length of the key derivation function should be the same as the length of the one-way function output.
Additionally, a salt value of at least 32 bits in length must be used in conjunction with the key derivation function. The salt value should be selected randomly to reduce the likelihood of collisions among stored hashes. The salt value and the resulting hash must be stored securely for each subscriber using a secret authenticator.
The number of iterations used in the PBKDF2 function should be as large as performance allows, typically a minimum of 10,000 iterations per NIST 800-63B. With today’s processors, the iterations should be a minimum of 600,000 iterations. It is also recommended that a second iteration of the key derivation function be performed that uses a secret salt value known only to the verifier. This salt value should be generated using an approved random bit generator and must provide at least 112 bits of security strength, as specified in SP 800-57 Part 1. The secret salt value should be stored separately from the hashed memorized secrets. Ideally, for high security, the secret salt value should be stored in a hardware security module. With this additional iteration, brute force attacks on the hashed memorized secrets are impractical as long as the secret salt value remains secret. The importance of high iterations is to make it so processor-intensive if a password database is stolen that the hackers cannot easily break the hashes to determine the passwords.
Your company should implement a security baseline that aligns with compliance requirements. We will cover security baselines in a later chapter. By doing so, you can ensure that your security policies are in line with regulatory requirements and best practices. Your entire company will have policies to follow to ensure consistency. In summary, by using secure password hashing algorithms and following NIST guidelines, you can keep your passwords secure and protect user data.
Password manager
Section titled “Password manager”I recommend using a password manager such as Bitwarden, 1Password, or LastPass. By using one of these password storage applications, you can create individual strong and complex passwords for each application and website. You only have to remember the password manager’s password. The password manager will also check the Have I Been Pwned (https://haveibeenpwned.com/) website to alert you if a password has been cracked and is posted on the dark web. You can check your email addresses and passwords on the site. A password manager is also a great way to securely store shared passwords. Ideally, you do not want to use shared passwords. There seem to always be some passwords that need to be shared within a team. These should be stored securely in a company-provided password manager and used sparingly. Ensure that these shared passwords are changed once a team member either moves to another department or leaves the company. This should be part of a formal process that your company follows to revoke access when an individual moves internally or leaves the company. If there is logic to your passwords, such as with I l0ve Country Music! and then I l0ve Rock and Roll!, then also change the logic when the team member leaves. Using individual accounts tied to a user identity is always the best course of action.
Quick reference
Section titled “Quick reference”Ideally, your company’s identification and authentication compliance should include the following:
- Basic:
- Multi-factor authentication for every user
- A 14+ character passphrase
- Unique passwords
- Password manager
- Multi-factor authentication for every user
- Medium:
- Multi-factor authentication for every user
- A 14+ character passphrase
- Unique passwords
- Passwordless
- Context awareness
- Password manager
- Multi-factor authentication for every user
- Advanced:
- Multi-factor authentication for every user
- A 14+ character passphrase
- Unique passwords
- Passwordless
- Context awareness
- Password manager
- Device authentication
- Hardware token
- Multi-factor authentication for every user
Summary
Section titled “Summary”The NIST 800-63-3B guidelines have received a fair amount of criticism for contradicting the previous password guidelines imposed by NIST, such as password-expiration policies, using special characters, and complexity requirements. The guidelines have been criticized for allowing users to use passphrases as passwords without complexity, even though the strength of passwords based on characters only are technically weaker passwords. Even so, the guidelines do provide some good information. I recommend taking what is useful and marrying it with the latest information we have in order to secure your passwords.
In conclusion, using multi-factor authentication is imperative to prevent phishing and account attacks. The NIST 800-63-3B guidelines represent a move toward flexibility in password creation and emphasize education, but it is crucial to be cautious about where they may differ from previous password guidelines. The implementation of the guidelines should be a priority for technology companies and organizations to minimize the risk of data breaches through weak passwords, such as password123. However, it is crucial to weigh the risks associated with certain measures against the benefits they may provide. As such, it is important for businesses to revisit their password policies and ensure that they are in line with the latest guidelines and industry best practices.
In the next chapter, we will be covering security policies; when building a security program, security policies are one of the foundational building blocks. Where are the policies, and are they being used? If you don’t have them, then creating a solid set of policies is essential.