Identity and access

45 min 5 outcomes Interactive password analyser + drag challenge 5 standards cited

By the end of this module you will be able to:

  • Classify authentication factors by category and explain why combining categories is stronger than repeating a single one
  • State the 2025 NIST password rules and why length and blocklists replaced composition rules and forced rotation
  • Rank second factors by tier and justify the ranking with the adversary-in-the-middle mechanic
  • Choose between RBAC and ABAC for a scenario and apply the principle of least privilege to an access review
  • Explain what a stolen session token bypasses and why session lifetime and binding matter

Attackers called Twitter's internal support line. Within hours they controlled Barack Obama's account.

On 15 July 2020, attackers compromised the Twitter accounts of Barack Obama, Joe Biden, Elon Musk, Bill Gates, Apple, Uber, and 124 other high-profile accounts. From those accounts, they broadcast a cryptocurrency scam that generated over 120,000 US dollars in Bitcoin in a matter of hours.

The attackers did not find a software vulnerability. They called Twitter's internal support line, impersonated IT colleagues, and persuaded at least two employees to provide access to an internal administrative tool called "Agent Tool." Using this tool, they changed the email addresses associated with target accounts, disabled two-factor authentication, and reset passwords. Every user-facing security control was bypassed by targeting insider access directly.

Three individuals were later charged. The youngest was 17 years old. The breach demonstrated that identity and access management is not merely a technical problem. Verified identity, access scoped to what is genuinely necessary, and processes that cannot be bypassed by social pressure are all required together.

The attackers bypassed every user-facing security control without exploiting a single software vulnerability. What does this reveal about where the real identity and access problem was?

7.1 Authentication factors: what they are and why combining them matters

Before a system grants access, it must verify the identity of the party requesting it. This process is . The evidence provided during authentication falls into three categories, known as factors.

Something you know covers knowledge factors: passwords, PINs (Personal Identification Numbers), and security questions. These are the most widely used but also the most vulnerable, because knowledge can be stolen, guessed, or phished.

Something you have covers possession factors: a physical security key, a smartphone running an authenticator app, or a smart card. Possession factors are harder to steal remotely because the attacker needs physical access or malware on the device.

Something you are covers inherence factors: fingerprints, facial recognition, retina scans. Biometric factors are convenient and difficult to share deliberately, but they cannot be changed if compromised and may have false acceptance or rejection rates that create usability problems.

combines factors from at least two different categories. The key word is different categories: two passwords are not multi-factor. A password and a code from an authenticator app qualify, because one is something you know and the other is something you have.

7.2 Passwords done right in 2026

Most organisations still enforce the password policy that the current standard now prohibits. NIST SP 800-63B-4, finalised in 2025, rewrote the rules on the evidence of what actually keeps accounts safe, and the change is worth stating plainly because it reverses two decades of habit.

Length beats complexity. A long passphrase is far harder to crack than a short string of mixed symbols, and it is easier to remember, so the standard now tells verifiers to require a minimum length and to allow much longer secrets. Where a password is the only factor, aim for at least 15 characters. Composition rules, the familiar demand for an uppercase letter, a digit and a symbol, are now a SHALL NOT: the standard says verifiers shall not impose them, because they push people towards predictable substitutions such as Password1! without adding real strength.

Forced periodic rotation is also gone. Requiring a new password every ninety days made people iterate a weak base, so the standard says do not force routine expiry. Change a password when there is evidence it has been compromised, not on a calendar.

What replaces the old rules is screening and tooling. Check every new password against a blocklist of known-breached and common values and reject a match. Encourage a password manager so that each account can hold a long, unique, random secret nobody has to remember. Better still, move the account off passwords entirely, which is where the next section goes.

Common misconception

Strong passwords need an uppercase letter, a number, a symbol, and a change every ninety days.

That is precisely the policy NIST SP 800-63B-4 now tells verifiers not to run. Composition rules produce predictable substitutions and forced rotation produces weak iterations of the same base, so both are counter-productive. The current guidance is length over complexity, a 15-character minimum where a password stands alone, screening every choice against a breached-password blocklist, and changing a password on evidence of compromise rather than on a schedule.

7.3 MFA has tiers, and phishing kits know it

The right question about multi-factor authentication is not whether an account has it, but which tier it uses, because the tiers are far apart in strength. SMS one-time codes sit at the bottom: they are better than a password alone, but the code travels over the telephone network, so a SIM-swap (persuading a carrier to move a victim's number to an attacker-controlled SIM) or an interception of the network signalling can capture it. An authenticator app generating a time-based code sits above SMS, because the code never leaves the device. A push approval sits alongside it. At the top sit phishing-resistant credentials: a security key or a , which use public-key cryptography bound to the real website domain.

The reason the tiers matter is that the codes and push approvals are no longer enough against an industrialised attack. An kit, sold ready-made under names such as Evilginx, Tycoon 2FA and EvilProxy, does not try to guess the second factor. It relays the genuine login page to the victim in real time. The victim types the password, the real provider issues its one-time code or push, the victim satisfies it, and the real provider hands back a , the cookie that proves the login already happened. The proxy steals that token and replays it, so the attacker is signed in without ever needing the password or the code again.

A passkey is the control that breaks this chain, because the credential is bound to the real domain. At the proxy's lookalike origin the browser simply will not release it, so the attack stops at the proxy step. The figure below traces the five steps of the attack and marks where the passkey refuses.

Common misconception

Any MFA is equally strong, so SMS is fine for everything.

The tiers are far apart. SMS can be captured by a SIM-swap or by network interception, and both SMS codes and app or push approvals are defeated by an adversary-in-the-middle kit that relays the real login and steals the session token. Only a phishing-resistant, domain-bound credential, a FIDO2 key or a passkey, refuses at the attacker's proxy. Reserve the strongest tier for the accounts that can do the most damage, starting with administrators.

7.4 Access control: RBAC, ABAC, and least privilege

Authentication confirms who a user is. determines what that user is allowed to do. Two primary access control models define how authorisation rules are structured.

RBAC (Role-Based Access Control) assigns permissions to roles rather than individual users. A user gains access by being assigned a role. A hospital might define roles such as Nurse, Doctor, Administrator, and Finance. Each role has a defined set of permissions. When a new employee joins, they receive the appropriate role rather than having permissions manually configured. RBAC is operationally straightforward and scales well for large organisations with predictable job functions.

ABAC (Attribute-Based Access Control)makes access decisions based on attributes: the user's department, the data's classification label, the time of day, and the user's location. A policy might state: "Allow access to patient records only if user.department = Clinical AND record.sensitivity = OFFICIAL AND access.time is between 07:00 and 22:00 AND access.location = Hospital." ABAC provides fine-grained control for complex environments but requires careful policy design and is harder to audit.

The is the rule that both models exist to serve: give each user only the access their current job needs. In practice, access creep is the most common way it fails. Users accumulate permissions as they change roles over time, but permissions are rarely revoked when they are no longer needed. Regular access reviews, typically quarterly for privileged accounts and annually for standard accounts, are the primary control. The process is simple: ask each manager to confirm which permissions each of their direct reports actually needs, and remove those that cannot be justified.

Common misconception

Once access rights are assigned during onboarding, they do not need to change unless the employee leaves.

Access creep is one of the most common and dangerous identity failures in organisations. Employees accumulate permissions as they change roles, take on temporary project assignments, or cover colleagues' duties, but permissions are rarely revoked when the original justification expires. The Verizon Data Breach Investigations Report has repeatedly found that a large share of breaches involve the misuse of legitimate credentials, frequently because former role access was never revoked. Quarterly access reviews for privileged accounts and annual reviews for standard accounts are the primary control.

7.5 Single sign-on and session management

SSO (Single Sign-On) allows a user to authenticate once and access multiple systems without re-entering credentials. Common SSO protocols include SAML 2.0 (Security Assertion Markup Language) and OpenID Connect, which builds on OAuth 2.0. SSO improves usability by reducing password fatigue and improves security by centralising authentication, meaning MFA enforcement can be applied at the identity provider rather than inconsistently across individual applications.

The security trade-off: centralising authentication creates a single high-value target. If the identity provider is compromised, all connected applications are at risk. This is why identity providers (such as Microsoft Entra ID, Okta, or Google Workspace) require the strongest available MFA and receive enhanced monitoring attention.

Sessions are the loose end. The session token that single sign-on issues after a successful login is exactly what an adversary-in-the-middle kit steals, and a stolen token grants access with no further login. That is why session lifetime and binding matter as much as the strength of the login itself: short-lived tokens, re-authentication for sensitive actions, and binding a session to the device or network it started on all shrink the value of a token an attacker manages to lift.

The Twitter breach targeted an administrative tool rather than an identity provider. Internal administrative tools often bypass standard SSO and MFA flows, operate with broad permissions, and have weaker audit logging than customer-facing systems. In access control design, internal tools deserve the same scrutiny as public-facing ones.

Loading interactive component...
Loading interactive component...
7.6 Check your understanding

An account is protected by a password plus an authenticator-app code. The user is lured to a proxy phishing page, enters both, and is still taken over. What happened, and which control would have stopped it?

A security team is updating its password standard to match NIST SP 800-63B-4 (2025). Which change is consistent with the current guidance?

In the Twitter 2020 breach, attackers persuaded support staff to grant access to the Agent Tool, which could modify any account. Which design change would most directly have limited the damage?

Loading interactive component...
Loading interactive component...

Core distinctions

  • Authentication factors fall into three categories: something you know, something you have, and something you are. Multi-factor authentication combines factors from different categories.
  • NIST SP 800-63B-4 (2025) makes composition rules and forced rotation obsolete. Favour length, screen against a breached-password blocklist, use a password manager, and change on evidence of compromise.
  • MFA has tiers: SMS below authenticator codes and push, below phishing-resistant FIDO2 keys and passkeys. Adversary-in-the-middle kits relay the real login and steal the session token, defeating codes and push.
  • Only a domain-bound passkey or FIDO2 key refuses at the attacker's proxy. Reserve the strongest tier for the accounts that can do the most damage.
  • RBAC assigns permissions to roles; ABAC applies attribute policies. Both serve least privilege. Access creep is the most common failure, and regular access reviews are the control.
  • A stolen session token grants access with no further login, so session lifetime and binding matter as much as login strength.

You now understand how identity is verified and access is controlled. The Twitter breach and the adversary-in-the-middle kits both show that even strong technical controls can be bypassed when an attacker targets the person rather than the system. Why do people comply with attackers, and what actually reduces the risk when the fakes are convincing? Module 8 covers human factors, social engineering, and verification procedures that do not depend on spotting a fake.

Standards and sources cited in this module

  1. NIST SP 800-63B-4 (July 2025), Digital Identity Guidelines: Authentication and Authenticator Management

    Section 3, Password requirements; Section 4, Authenticator Assurance Levels

    Current federal standard for authentication. Sets the 2025 password rules (length over composition, no forced rotation, blocklist screening) and the phishing-resistant authenticator emphasis cited in Sections 7.1 to 7.3.

  2. Cisco Talos, research on industrialised phishing and MFA bypass (2024)

    Adversary-in-the-middle toolkits and session-token theft

    Primary research on ready-made MFA-bypass kits (Evilginx, Tycoon 2FA, EvilProxy) that relay the real login and replay the session token. Underpins Section 7.3.

  3. W3C Web Authentication (WebAuthn) Level 2 Specification (2021)

    Section 6, Authenticator Data

    Defines the FIDO2 WebAuthn standard and cryptographic binding to the relying party origin. Referenced in Section 7.3 for phishing resistance.

  4. US Department of Justice, Twitter Breach Charges (July 2020)

    Criminal complaint documentation

    Primary source for the Twitter 2020 breach details: Agent Tool access, social engineering of support staff, and scope of access. Used as the opening case study.

Module 7 of 41 · Foundations