Identity and Access Management

Learn how organizations decide who you are and what you may do. Separate identification, authentication, authorization and accounting; set password rules that resist real attacks; and compare multi-factor methods, passkeys and security keys. Follow single sign-on and federation with directories, Kerberos, SAML, OAuth 2.0 and OpenID Connect. Apply least privilege with discretionary, mandatory, role-based, rule-based and attribute-based access control, manage accounts from joiner to leaver, protect administrator access with privileged access management, and secure buildings and server rooms with layered physical controls.

BeginnerLesson 5 of 8 in Cybersecurity Fundamentals Course

What you will learn

  1. Separate identification, authentication, authorization and accounting, compare the kinds of authentication factors, and set password rules that hold up against real attacks.
    • Tell identification, authentication, authorization and accounting apart
      Follow one sign-in from the claimed identity to the logged action, and see how identities, accounts and identity proofing fit together.
    • Compare authentication factors and how much assurance they give
      Sort authenticators into knowledge, possession and inherence factors, use location and behavior as context, and read the error rates of biometric systems.
    • Set password policies that resist real attacks
      Explain how passwords are attacked, apply current rules on length and screening, and use password managers, safe storage and careful account recovery.
  2. Choose multi-factor methods that fit the risk, defend them against common attacks, and explain how passkeys and security keys remove phishable secrets.
    • Choose and use multi-factor authentication methods
      Compare one-time codes, push approvals, tokens, smart cards and backup codes, and protect MFA against fatigue attacks, SIM swapping and real-time phishing.
    • Explain passwordless and phishing-resistant authentication
      Describe how security keys and passkeys use public-key cryptography, why they resist phishing, and how to plan for lost devices.
  3. Explain how directories, single sign-on and federation let one trusted sign-in reach many applications, and how SAML, OAuth 2.0 and OpenID Connect each play their part.
    • Explain directories and single sign-on inside an organization
      Describe how a directory stores identities, how LDAP reads it and how ticket-based single sign-on lets one sign-in open many internal services.
    • Federate identities with SAML
      Explain the trust between an identity provider and service providers, follow a SAML sign-in step by step and check what a service provider must validate.
    • Explain how OAuth 2.0 delegates authorization
      Identify the OAuth roles, follow the authorization code flow with PKCE, and use scopes and tokens to grant limited access without sharing a password.
    • Sign users in with OpenID Connect and choose the right protocol
      Explain how OpenID Connect adds identity to OAuth through ID tokens, check the claims a token carries, and choose between SAML, OAuth 2.0 and OpenID Connect for a situation.
  4. Apply least privilege and separation of duties, compare the main access control models, and manage accounts from the day someone joins to the day they leave.
    • Apply least privilege and the other access control principles
      Decide whether a subject may perform an action on an object, and apply least privilege, need to know, separation of duties, default deny and context conditions.
    • Compare access control models
      Explain discretionary, mandatory, role-based, rule-based and attribute-based access control, and choose a suitable model or combination for a situation.
    • Manage the identity lifecycle and review access regularly
      Provision, change and remove accounts as people join, move and leave, handle each account type, and run access reviews that catch privilege creep and orphaned accounts.
  5. Identify the accounts that can do the most damage, reduce their standing power, and use privileged access management tools to vault, limit and record their use.
    • Identify privileged accounts and reduce their risk
      Recognize administrator, service and emergency accounts, explain why attackers target them, and separate everyday work from administrative work.
    • Use privileged access management tools
      Apply password vaulting, just-in-time elevation, ephemeral credentials and session recording, and connect them to least privilege and accountability.
  6. Design layered physical access controls from the site boundary to the server rack, stop tailgating, and use guards, cameras, sensors and logs to detect and respond to intrusion.
    • Secure the perimeter, entrances and secure rooms
      Combine barriers, locks, badges, vestibules, guards and visitor procedures in layers, and choose how doors behave when power fails.
    • Monitor and detect physical intrusion
      Use cameras, sensors, alarms and access logs to detect intrusion, design spaces that discourage it, and connect physical events to logical security.

Identity and Access Management study guide

6 chapters

1

Explain how systems identify and authenticate users

An identity claim, a successful sign-in and a permission to act answer different questions. Following a request through those checks makes it easier to diagnose refusals and understand the evidence in a log. Authentication factors, biometric errors and password defenses then explain how an organization chooses evidence strong enough for the account, including the enrollment and recovery paths that can otherwise undermine it.

1.1 Tell identification, authentication, authorization and accounting apart

An identity claim, evidence for that claim and permission to act are separate decisions. Keeping them separate explains why a successful sign-in can still lead to an access refusal.

Follow the four decisions

Identification names the claimed identity. Authentication checks evidence tied to it. Authorization decides which actions it may perform. Accounting records activity. The last three form AAA: authentication, authorization and accounting.

Mira opens payroll:

  1. She types "m.lopez", identifying the account she claims.
  2. She enters her password and approves a phone prompt, authenticating the claim.
  3. Payroll lets her view salaries but refuses changes because her role permits reading only.
  4. A log records "m.lopez viewed March payroll at 09:14" for accounting.

Resetting Mira's password would not give her the finance manager's editing authority. The refused action concerns authorization, even though authentication succeeded.

Connect identities and accounts

An identity is a set of attributes describing a person, device or service, such as employee number, department or device name. An account is its record in one system, with credentials and permissions. One employee can have accounts in email, payroll and a project application.

Identity and access management (IAM) creates, links, controls and removes those records. A laptop authenticating with a certificate and a backup job using a service account also need named owners, task-limited permissions and removal when no longer needed.

Issue credentials to the right person

Identity proofing checks who should receive an account or credential. It can compare a person with an identity document or confirm a new hire's HR record. NIST's identity assurance levels (IALs) describe increasing proofing strength, reaching supervised in-person verification at the highest level.

If an attacker registers in a victim's name and receives the authenticator, later sign-ins can correctly verify the attacker's control of it. Strong authentication cannot repair that enrollment error.

Make actions traceable

Named accounts support accountability by linking each action to its operator. If five receptionists share "frontdesk", the log leaves the individual operator uncertain.

Non-repudiation supplies stronger evidence making an action hard to deny later. A digital signature made with a personally controlled key can provide evidence beyond an ordinary account log.

Key Takeaways

  • Identification claims an identity; authentication checks evidence for that claim.
  • Authorization decides whether a specific action is allowed, even after successful authentication.
  • An identity can have several accounts, and devices and services need identity management too.
  • Identity proofing protects enrollment; named accounts make later actions traceable.

1.2 Compare authentication factors and how much assurance they give

An authenticator supplies evidence for a sign-in. Its strength depends on what evidence it checks, how it can fail and whether an attacker can reuse it. Two prompts on a screen do not necessarily mean two different factors.

Sort the evidence
FactorMeaningExamples
KnowledgeSomething you knowPassword, PIN, passphrase
PossessionSomething you haveAuthenticator phone, smart card, security key
InherenceSomething you areFingerprint, face, iris

A password and security-question answer are both knowledge. A password and a code from an authenticator phone combine knowledge and possession. Different types help because an attacker must defeat different protections: guessing a password does not also supply the phone.

Each has weaknesses. Knowledge can be guessed, phished or reused. A possession device can be lost or stolen; a phone number can be taken over through SIM swapping. A leaked biometric template is hard to recover from because the person cannot replace their fingerprints.

Location and behavior add context. An unfamiliar device, unusual typing rhythm or apparently impossible travel can raise risk. Adaptive or risk-based authentication can then block the attempt or require step-up authentication, an additional check. A location signal can be spoofed, so it does not replace a second authentication factor.

Read biometric error rates

A biometric reader compares a new sample with a stored template. A match threshold decides how similar they must be. Two error rates describe different groups of attempts:

  • False acceptance rate (FAR): the share of impostor attempts accepted.
  • False rejection rate (FRR): the share of genuine attempts rejected.

A face scanner accepts 3 of 10,000 impostor attempts and rejects 20 of 1,000 genuine attempts. Calculate each against its own group:

FAR=(3/10000)×100%=0.03% FRR=(20/1000)×100%=2%

Dividing both counts by all attempts would answer a different question. Tightening the threshold reduces false acceptance but increases false rejection. A server room may favor rejecting more genuine attempts to keep impostors out; a phone unlock design may favor convenience and also provide a PIN fallback.

The crossover error rate (CER), or equal error rate, is the error rate at the threshold where FAR and FRR are equal. It is a rate, not the threshold setting itself. A lower CER means fewer errors at that balance point under comparable test conditions. A product decision also needs the error rates at the threshold the application will actually use.

Match assurance to risk

NIST SP 800-63B-4 defines authenticator assurance levels. AAL1 permits a single factor. AAL2 requires two distinct factors and requires the service to offer a phishing-resistant option. AAL3 requires two factors with phishing-resistant public-key authentication and a non-exportable private key.

Administrator consoles and sensitive records call for stronger assurance than a low-risk account. Context checks still help at any level: sign-ins from Lisbon and Singapore ten minutes apart deserve investigation, even when the correct password was entered.

Key Takeaways

  • MFA combines different factor types; two knowledge checks remain one type.
  • Location and behavior guide risk decisions and step-up checks.
  • FAR counts impostor acceptance; FRR counts genuine-user rejection.
  • A stricter biometric threshold lowers FAR and raises FRR.
  • CER is the equal error rate; assurance levels describe authentication strength.

1.3 Set password policies that resist real attacks

Password defenses must address both live sign-in attempts and stolen password databases. A long password helps, but reuse, predictable patterns and weak recovery can defeat an otherwise strong policy.

Recognize the attack
AttackWhat the attacker tries
Brute forceEvery possible combination
Dictionary attackCommon words and leaked passwords
Password sprayingA few common passwords across many accounts
Credential stuffingStolen username-password pairs on other sites

Phishing and keyloggers capture passwords directly. Online guessing uses the live sign-in service. Offline guessing tests candidates against stolen hashes, without that service's attempt limits. Its speed depends on the hash, its settings and the attacker's hardware; fast hashes can allow billions of guesses each second.

Understand length and randomness

Eight random characters from 95 printable keyboard characters give 958≈6.6×1015 possibilities. At 10 billion guesses per second, trying all of them takes about 663,000 seconds, or 7.7 days. Fifteen random lowercase letters give 2615≈1.7×1021 possibilities: about 5,300 years at that same assumed speed.

These are exhaustive-search times for random choices, not promises about human passwords. Attackers try patterns such as "Summer2026!" early. Several randomly selected words, such as "orbit tulip canvas ladder ferry", provide length without relying on a predictable sentence.

Apply current password policy

NIST SP 800-63B-4 requires at least 15 characters for a password used alone, or 8 when it is part of MFA. Accept at least 64 characters, including spaces. Screen new passwords against a blocklist of common, expected and compromised values, and explain a rejection.

Do not impose character-composition rules, password hints, security questions or routine forced changes. Require a change when there is evidence of compromise. Routine expiry encourages predictable edits such as changing "Winter2025!" to "Spring2026!".

Older settings still appear in systems and exams: complexity requires character types; expiration sets maximum age; history blocks recent passwords; minimum age stops rapid changes that cycle through history back to an old password. Knowing a setting's function is separate from choosing it for a current policy.

Protect use, storage and recovery

A password manager generates a long, unique random password for each site and stores it in an encrypted vault. Protect that vault with a strong master password and a second factor. Matching the website before filling helps expose look-alike pages. Unique passwords prevent one site's leak from supplying working credentials for another.

Throttling adds delays after failures. Temporary lockout and malicious-source blocking also slow online guessing. Permanent lockout can let an attacker deny service to legitimate users. Spraying stays below individual account limits, so monitoring must also spot failures spread across many accounts.

Store passwords as salted hashes with a deliberately slow function such as Argon2, bcrypt, scrypt or PBKDF2. A unique random salt makes equal passwords produce different hashes and defeats precomputed rainbow tables. Slow hashing reduces offline guess speed. Plain text and reversible encryption expose recoverable passwords if storage is compromised.

Recovery must use a verified method suited to the account's risk, such as protected recovery codes or repeated identity proofing, and notify the user after a reset. A callback to a number on file or manager confirmation can support checks, but neither alone is sufficient for a high-risk reset.

Key Takeaways

  • Password spraying spreads guesses across accounts; credential stuffing reuses stolen pairs.
  • Random length increases the search space; predictable patterns undermine it.
  • NIST requires 15 characters for password-only sign-in, or 8 with MFA, and blocklist screening.
  • Use unique passwords and slow salted hashes; throttle online guesses.
  • Recovery must resist impersonation as carefully as ordinary sign-in.
  • Routine expiration and composition rules are absent from current NIST password policy.
2

Strengthen sign-in with multi-factor and passwordless methods

An extra sign-in step helps only when it supplies useful additional evidence. One-time codes, push prompts, smart cards and passkeys differ in what an attacker must steal or persuade a user to do. Their behavior during phishing is especially important. Registration, spare authenticators and recovery complete the choice: the normal sign-in can be strong while the lost-device path remains an easier route into the account.

2.1 Choose and use multi-factor authentication methods

Multi-factor authentication, or MFA, combines at least two different factor types. It blocks a stolen password from being enough to sign in. The second method still needs protection against theft, deceptive approval requests and real-time phishing.

Compare codes and devices

A one-time password (OTP) is accepted once. HOTP, defined in RFC 4226, uses a shared secret and an advancing counter. TOTP, defined in RFC 6238, uses that secret and the current time, commonly generating six digits every 30 seconds. Enrollment often transfers the shared secret through a QR code; the authenticator and server then calculate matching codes.

At Unix time 1,750,000,000, dividing by 30 gives 58,333,333 complete steps with 10 seconds left over. The current code appeared 10 seconds earlier and has 20 seconds until the next step at 1,750,000,020. Servers may accept a neighboring step for clock differences. Once a code is successfully used, it cannot be accepted again during its window.

A six-digit code has a one-in-1,000,000 chance of matching one random guess. Attempt limits matter: a short lifetime alone does not stop repeated guessing.

A hard token is a dedicated device: an OTP fob, smart card or security key. A soft token is software, such as a phone authenticator app. A smart card stores a private key and certificate, and a PIN unlocks it; possession and knowledge work together. Backup codes provide single-use recovery when the normal authenticator is unavailable. Store them securely before the device is lost.

Match methods to attacks
MethodMain concernUseful protection
SMS or voice codeNumber takeover through SIM swappingPrefer a stronger available method
Push approvalRepeated prompts pressure the userNumber matching and prompt limits
App-based OTPA fake site relays a fresh codePhishing-resistant authentication

NIST treats phone-network codes as a restricted method. They improve on password-only sign-in but face SIM swapping, message-reading malware and phishing. An authenticator app avoids reliance on control of the phone number, though its codes remain phishable.

A push asks the registered user to approve. In an MFA fatigue attack, someone with a stolen password sends repeated requests until the user gives in. Number matching makes the user enter the sign-in screen's number in the app. Showing the application and location, limiting prompts, and denying and reporting unrequested approvals reduce this risk.

Understand the remaining gap

An adversary-in-the-middle phishing site can relay a password and fresh code to the real service, then steal the returned session cookie. The short-lived code worked exactly as intended, but the attacker captured the resulting session. OTP and ordinary push approval do not provide phishing resistance.

Begin rollout with administrators, remote access, email and other high-value systems. Register at least two methods per person so loss does not force an insecure reset. Protect enrollment and recovery: an attacker who adds their own authenticator can pass later MFA checks.

Key Takeaways

  • MFA needs different factor types, not simply two sign-in steps.
  • HOTP advances with a counter; TOTP advances with time, and both codes are single use.
  • Number matching and prompt limits reduce MFA fatigue.
  • OTP and push can be relayed through phishing; protect enrollment, recovery and spare methods.

2.2 Explain passwordless and phishing-resistant authentication

Passwordless authentication signs in without an account password. It can still require a local PIN or biometric check. That local check unlocks an authenticator; it is not a password sent to the website.

Follow a passkey from registration to sign-in

FIDO2 combines WebAuthn, the browser-to-website interface, with CTAP, which connects a device to an external authenticator such as a USB or NFC security key.

During registration:

  1. The authenticator creates a key pair for the relying party, the website accepting the sign-in.
  2. The private key remains under the authenticator's protection.
  3. The website stores the public key.

During sign-in:

  1. The website sends a fresh random challenge.
  2. The user unlocks the authenticator with a fingerprint, face scan or local PIN.
  3. The authenticator signs the challenge using the private key.
  4. The website checks the signature with the registered public key.

The website verifies cryptographic possession. It never needs the private key or the fingerprint data used to unlock it. Device possession plus that local knowledge or biometric check provides multiple factors.

See why a look-alike site fails

Sam registers a passkey for "shop.example". A phishing link opens "shop-example.co". The browser will not offer the real site's passkey to the fake domain. The website origin is also bound into the signed data, so a relayed challenge from the wrong origin fails validation at the real site.

No reusable account password or one-time code is available for Sam to type into that copy. A leak of the real website's public keys also does not give an attacker the private keys needed to produce signatures. Phishing resistance comes from the binding to the correct service, not merely from a code changing often.

Choose where the key lives
TypeWhere the credential is keptMain planning need
Synced passkeyEncrypted provider keychain across devicesProtect provider access and recovery
Device-bound passkeyOne device, such as a security keyKeep a spare registered authenticator

Synced passkeys use an end-to-end encrypted keychain so a replacement device can keep working. Device-bound credentials stay on one device. NIST SP 800-63B-4 permits syncable authenticators up to AAL2, but AAL3 requires non-exportable keys, so synced credentials do not qualify there.

A platform authenticator is built into a phone or computer. A roaming authenticator is separate and works with different computers, commonly over USB or NFC. These terms describe the authenticator's placement, not whether an entire recovery process is secure.

Certificate-based smart-card sign-in using client-authenticated TLS can also resist phishing. Its proof is cryptographically bound to the TLS connection, preventing relay to a different connection; simply storing a key on a card does not explain that protection.

Prepare recovery before loss

Register at least two authenticators, such as a phone passkey and a spare hardware key stored safely. Remove a lost authenticator's registered public key so it can no longer authenticate. Keep recovery as strong as sign-in. An emailed sign-in link is passwordless too, but depends on the email account and can be phished; the label "passwordless" alone says little about assurance.

Key Takeaways

  • Passwordless sign-in can use a local PIN without sending an account password.
  • Passkeys sign a challenge; the website stores a public key.
  • Binding authentication to the real website makes FIDO sign-in phishing-resistant.
  • Synced passkeys support continuity but do not meet AAL3 non-exportable-key requirements.
  • Register spare authenticators and remove lost credentials.
3

Share identities across systems with single sign-on and federation

One trusted authentication can serve many applications, but those applications still need a way to interpret and validate it. Directories and Kerberos support internal access; federation carries trust between separately operated services. SAML, OAuth and OpenID Connect solve related jobs with different messages. Following each recipient and each token makes it possible to choose a protocol without confusing identity, API permission and account provisioning.

3.1 Explain directories and single sign-on inside an organization

A directory centralizes identity records. Single sign-on reuses an authentication so the user need not submit credentials to every application.

Query the identity records

A directory service stores users, groups, devices and attributes. Microsoft Active Directory and OpenLDAP are examples. Applications can query account information and group membership before deciding access.

LDAP, the Lightweight Directory Access Protocol, reads and searches entries. A distinguished name such as CN=Mira Lopez,OU=Finance,DC=example,DC=com identifies a common name in the Finance organizational unit under the example.com domain components.

LDAP commonly uses TCP port 389; LDAP over TLS (LDAPS) commonly uses 636. StartTLS can protect an LDAP connection on 389. Plain LDAP authentication can expose passwords, so use TLS protection. A port number alone does not establish whether a connection is protected.

Recognize actual SSO

Single sign-on (SSO) lets connected applications reuse one authentication during a session. Later applications need not collect the password. MFA and sign-in monitoring can be enforced centrally, and disabling an identity stops new centrally controlled sign-ins.

If each application asks for the same directory password, the user still authenticates repeatedly. This is sometimes called "same sign-on": one credential without the reused authentication of SSO.

Centralization also concentrates risk. A stolen identity-system session can reach several applications, and an outage can interrupt all connected work. Protect the central entry point with strong, preferably phishing-resistant MFA and monitoring, and plan protected emergency access.

Follow Kerberos tickets

Kerberos supplies internal ticket-based SSO, including in Active Directory:

  1. At sign-in, the Key Distribution Center (KDC) checks the user and issues a ticket-granting ticket (TGT).
  2. The client presents the TGT to the KDC when it needs a file share.
  3. The KDC issues a service ticket for that file server.
  4. The client presents the service ticket to the server, which never needs the password.

Tickets carry timestamps and expire. Active Directory user tickets last 10 hours by default, with a default clock tolerance of 5 minutes. Greater clock drift can therefore explain authentication failure despite correct credentials.

SAML and OpenID Connect extend trusted sign-in to external applications through federation. OAuth delegates API authorization and underlies OpenID Connect's identity layer.

Key Takeaways

  • A directory stores identities; LDAP searches and reads their attributes.
  • Use LDAPS or StartTLS to protect LDAP credentials in transit.
  • SSO reuses authentication; repeatedly typing one shared password is not SSO.
  • Kerberos exchanges a TGT for service tickets, keeping passwords away from application servers.
  • Ticket expiry and clock agreement matter to Kerberos authentication.

3.2 Federate identities with SAML

An outside application can accept an organization's sign-in without collecting that organization's passwords. Federation creates the trust that makes this possible. SAML is one standard for carrying the signed statement between the systems.

Establish who trusts whom

The identity provider (IdP) authenticates the user. The service provider (SP), or relying party, accepts the IdP's statement. Administrators establish trust in advance using metadata, including endpoints and the IdP's signing certificate.

Federation describes the trust arrangement; SSO describes the experience of signing in once. Federation often gives users SSO across separately operated services, such as an employer's application portal and an outside HR service.

SAML 2.0, the Security Assertion Markup Language standardized by OASIS in 2005, carries an XML assertion. It can identify the user, describe when and how authentication occurred, supply attributes such as department, and limit the statement to an audience and time window. A digital signature allows the service provider to check its origin and integrity.

Follow a browser sign-in

Mira starts at an HR application in a service-provider-initiated flow:

  1. The HR application redirects her browser to the company IdP with an authentication request.
  2. The IdP authenticates her, perhaps using a password and passkey, or reuses her current IdP session.
  3. The IdP returns the browser to the HR application carrying a signed assertion.
  4. The HR application validates it and starts an application session.

Mira's company password goes to the IdP, not to the HR application. In an IdP-initiated flow, she starts with a tile in the company portal instead.

Validate before trusting

The receiving application checks the assertion's signature against the IdP certificate it already trusts. It must also check that the audience names that application, the validity window is current and the assertion is not a replay. A genuine signature is insufficient when the assertion was issued for a different service or has expired.

An attribute such as "HR-Managers" can map to a role in the application. The application still enforces its own authorization rules. With just-in-time provisioning, it can create a local account at the user's first sign-in from the supplied attributes. This creates an account; it is a different process from temporarily elevating an administrator's permissions.

Keep application access in step

Disabling an identity at the IdP stops new federated sign-ins. It can leave an existing application session active until that session ends. Short session lifetimes and automated deprovisioning close this gap; session termination must also be handled where immediate removal is needed.

SCIM, the System for Cross-domain Identity Management, lets identity systems push account changes to connected applications. Sign-in and account removal solve related but separate problems.

Open standards support interoperability: different vendors can exchange a statement they understand. The same approach lets university staff reach partner institutions' services with their home identity. The trust is in a validated statement, not in a password copied between organizations.

Key Takeaways

  • Federation establishes cross-system trust; SSO is the sign-in experience.
  • The IdP authenticates; the SP validates a signed assertion and creates its session.
  • Check signature, audience, validity and replay before accepting a SAML assertion.
  • IdP disabling blocks new sign-ins; application sessions and accounts also need removal.

3.3 Explain how OAuth 2.0 delegates authorization

A printing application needs access to your cloud photos, but it does not need your cloud password or permission to delete files. OAuth 2.0 delegates limited access using tokens. It answers what an application may do on someone's behalf.

Identify the roles and permissions

The resource owner is the user whose data is involved. The client is the printing application requesting access. The authorization server handles user authentication and approval and issues tokens. The resource server is the API holding the photos.

Scopes name requested permissions, such as "photos.read". Requesting only the needed scopes applies least privilege to software. The user approves the request, and the client receives an access token with limited permissions and a short lifetime, typically minutes to an hour.

A refresh token lets the client obtain new access tokens without asking the user again. It usually lives longer and needs careful storage. Revoking it stops further access tokens being issued through it. Already issued access tokens may remain valid until expiry or separate invalidation.

Most access tokens are bearer tokens: possession is enough to present them. Protect them in storage and send them only over TLS. Resource servers check validity, expiry and permitted scopes before allowing an action.

Follow authorization code flow with PKCE

PKCE, Proof Key for Code Exchange, protects against an intercepted authorization code. In this flow:

  1. The printing app generates a random code verifier, keeps it secret, and derives a code challenge from it.
  2. It sends the browser to the authorization server with that challenge and the "photos.read" scope.
  3. The user signs in and approves the requested access.
  4. The server redirects the browser back with a one-time authorization code.
  5. The client sends the code and its original verifier to the token endpoint.
  6. The server checks the verifier against the challenge and issues an access token. The client presents that token to the photo API.

An attacker who captures only the code lacks the verifier and cannot redeem it. The code is a temporary exchange credential; it is not the token that the photo API accepts.

Recognize other needs and unsafe flows

For machine-to-machine access with no user, the client credentials grant lets a service authenticate as itself. A nightly billing job can obtain a token for an invoicing API. Its own credentials still need protection and narrow permissions.

RFC 6749 defines OAuth 2.0. RFC 7636 defines PKCE. Current security guidance in RFC 9700, published in January 2025, requires PKCE for public clients and recommends it for all clients. Do not use the older implicit grant or the resource owner password credentials grant. Redirect addresses must match registered values exactly. The OAuth 2.1 draft gathers modern security requirements.

Separate permission from identity

An access token is for the API. It is not, by itself, reliable proof to the client of who signed in. OpenID Connect adds that identity layer.

Consent phishing exploits approval instead of stealing a password. A malicious app may request permission to read and send all email. MFA can authenticate the person who approves that harmful grant. Review scopes, restrict approvable apps, and regularly review and revoke grants.

Key Takeaways

  • OAuth delegates limited API access without sharing the resource owner's password.
  • Scopes restrict permission; bearer access tokens need secure transport and storage.
  • PKCE binds code redemption to the client holding the original verifier.
  • Refresh-token revocation prevents new tokens but may leave existing access tokens usable.
  • Client credentials serves a machine acting as itself.
  • OAuth alone is not a sign-in protocol; consent phishing can abuse an authenticated approval.

3.4 Sign users in with OpenID Connect and choose the right protocol

An application may need to know who signed in as well as obtain permission to call an API. OpenID Connect (OIDC) adds the identity part to OAuth 2.0. The two jobs remain separate even when one flow supplies both tokens.

Give each token the right job

OpenID Connect Core 1.0 was published by the OpenID Foundation in 2014. The client, called the relying party, requests the "openid" scope. It receives an ID token describing authentication as well as an access token for API calls.

TokenIntended receiverPurpose
ID tokenThe client applicationEstablish who signed in
Access tokenThe resource APIPermit allowed API actions

An API should not accept an ID token as a substitute for an access token. A client should not treat an ordinary access token as proof of the user's identity.

Read a JWT without confusing it with encryption

An ID token is a JSON Web Token (JWT). A signed JWT has a header, payload and signature, joined with dots. Base64url encoding makes those parts transportable; it does not hide them. A signature protects against undetected changes, not reading.

The payload holds claims:

  • iss: the provider that issued it.
  • sub: the stable user identifier at that provider.
  • aud: the client the token is intended for.
  • exp: expiry time.
  • iat: issue time.
  • nonce: a value supplied by the client to bind the response to its request and resist replay.

A readable token must still be validated. Decoding claims is not signature verification.

Validate the sign-in

Consider this example payload:

{"iss":"https://login.example.com","sub":"248289761001","aud":"hr-portal","iat":1767222000,"exp":1767225600,"nonce":"n-0S6WzA2M"}

The HR portal checks the signature with the expected issuer's public signing keys. It checks iss against its trusted provider and aud against its own client ID. It confirms the token is not expired and that nonce matches the request it made.

The two timestamps are 3,600 seconds apart, giving a one-hour lifetime. The expiry, 1767225600, is January 1, 2026, at 00:00 UTC. A valid signature cannot rescue an expired token or one addressed to another client.

Use the pair issuer and subject to identify the account. An email address can change or be assigned to someone else. The sub value is stable for that account at its issuer; another issuer can use the same text for an unrelated account.

Choose and connect services

OIDC standardizes "profile" and "email" scopes and a UserInfo endpoint for additional claims requested with an access token. Its discovery document at /.well-known/openid-configuration lists endpoints and the address of the public signing keys. The discovery document points to the key set; it does not itself have to contain the keys.

Use SAML when an enterprise web service supports SAML assertions. Use OAuth when a background application needs API authorization. Use OIDC with OAuth for a modern web or mobile app that needs user sign-in and API access. The decision follows the job and the protocols the parties support.

Key Takeaways

  • OIDC adds authenticated identity to OAuth using the openid scope and ID tokens.
  • ID tokens identify a user to the client; access tokens authorize API calls.
  • Check signature, issuer, audience, expiry and the request nonce.
  • A signed JWT is readable unless separately encrypted; identify users by issuer and subject.
4

Control what authenticated users are allowed to do

Access policies turn job responsibilities into specific allowed actions. They must answer who is asking, what resource is involved and which conditions apply now. Principles such as least privilege guide the decision; models such as roles or attributes organize its enforcement. Joiner, mover and leaver processes then keep those permissions aligned with real work, while reviews find old or unowned access that routine changes missed.

4.1 Apply least privilege and the other access control principles

Authorization evaluates a subject requesting an action on an object. A user, process or device can be the subject; a file, record, function or room can be the object. Read, edit, delete and approve are different actions.

Limit the task and information

Least privilege gives only the permissions a task requires, for only the needed time. A support agent resetting passwords does not need permission to export the customer database. If that account is compromised, the attacker inherits fewer capabilities.

Need to know restricts the particular information needed for current work. A nurse's role may permit clinical access while the nurse's assignment limits it to patients on that ward. The principle applies to applications too: a report process may need read access without deletion or security-administration rights.

Split sensitive work

Separation of duties divides a process so one person cannot complete it alone. Someone adding a supplier cannot also approve its payments. A two-person rule applies shared control to one action, such as two administrators supplying separate parts of a vault-opening code. Requester self-approval removes the independent check.

Apply an access list

An access control list (ACL) records permissions for an object. Suppose "Q3-budget.xlsx" grants Finance read and write, Managers read, and no other access:

PersonMembershipResult
MiraFinanceRead and edit
AnaManagersRead only
TomNeither groupRefused

Tom is refused by implicit deny, or default deny: no explicit grant allows his request. Some systems also give an explicit deny precedence over group allows; follow the particular system's conflict rules.

Check conditions on the request

Time, location and device requirements can further limit a grant. A contractor may be allowed from 07:00 to 19:00 on weekdays, using a managed, updated device. A correct role on an unmanaged laptop still fails the device condition. Adding administrator rights would expand power without meeting that condition.

Such conditional access puts zero trust into practice: evaluate identity, device and context instead of trusting a request because it comes from inside the office. Broad "Everyone" shares, administrator rights granted "just in case" and permissions kept after a job change all weaken task-based access.

Key Takeaways

  • Authorization evaluates a subject, an action and an object.
  • Least privilege limits rights and duration; need to know limits the information required for current work.
  • Separation of duties prevents one person from completing a sensitive process alone.
  • Default deny refuses requests with no explicit permission.
  • Context conditions can refuse a request even when identity and role are correct.

4.2 Compare access control models

Access control models describe how permissions are chosen and enforced. They differ in who makes the decision and what information drives it. An organization can combine models when one model does not capture the whole policy.

Compare the main models
ModelBasis of the decisionTypical example
Discretionary (DAC)Object owner's choicesAn author shares a document
Mandatory (MAC)Central labels and clearancesClassified records
Role-based (RBAC)Job-role membershipA billing clerk's permissions
Rule-basedCentrally defined request rulesA remote-access time block
Attribute-based (ABAC)Subject, object, action and environment attributesSame-ward access on a managed device

In DAC, the system enforces the owner's access list. Discretionary means the owner has discretion over sharing; it does not mean permission checks disappear. Flexibility can produce inconsistent grants, and malware acting as the user can exploit that user's rights.

In MAC, a central authority assigns classifications to objects and clearances to subjects. Users cannot freely relabel or share records. An analyst cleared for Secret can read Confidential and Secret documents in the introductory model, but not Top Secret. Compartments can further limit access to the relevant projects. MAC appears in classified environments and hardened operating system features such as SELinux.

Use roles without creating a role for every case

Role-based access control assigns permissions to job functions and assigns users to those roles. A change from nurse to ward manager changes role membership instead of dozens of individual grants. Hundreds of tiny specialized roles can create role explosion, making administration difficult again.

Rule-based access control applies rules to requests, such as blocking remote access between 00:00 and 05:00. Because both models may be called RBAC, write out "rule-based" when that is the intended meaning. RBAC alone usually refers to role-based control.

Evaluate attributes together

ABAC tests a policy against attributes of the subject, object, action and environment. A policy could allow reading only if the record's department matches the user's department, the device is company-managed and the time is between 07:00 and 19:00. Each required condition must hold. NIST SP 800-162 describes this model.

ABAC can express fine-grained context without creating a separate role for every combination. It also needs careful design, testing and auditing: a mistaken condition can affect many requests.

Combine models around the work

A hospital can give doctors and nurses clinical roles through RBAC, then use an ABAC condition to limit them to their ward. Staff can share meeting notes through DAC, while a rule blocks remote clinical access outside approved hours. None of these choices requires replacing the others.

Time-based access grants permission for a defined period. Just-in-time access grants it when requested for a particular task and removes it afterward. These time limits are especially useful for privileged work. Central classifications, job roles and temporary grants solve different questions; choosing a stricter-sounding name alone does not identify the right model.

Key Takeaways

  • DAC lets owners choose sharing; MAC enforces central labels and clearances.
  • Role-based control assigns job permissions through role membership.
  • Rule-based control applies request rules; spell it out to avoid the RBAC ambiguity.
  • ABAC evaluates subject, object, action and environment attributes.
  • Models can be combined, including time limits and just-in-time access.
  • Too many narrow roles create role explosion.

4.3 Manage the identity lifecycle and review access regularly

Access must follow people's work as it changes. Creating an account is only the start: role changes and departures need equally reliable processes. Unused or ownerless accounts can otherwise remain available to attackers.

Handle joiners, movers and leavers

Provisioning creates an identity, account and baseline access when a person joins. Start from an authoritative record, usually human resources. Assign the job's role, and have a system or data owner approve any extra access. Requesters should not approve their own exceptions.

A mover changes job, department or responsibilities. Add the new task's permissions and remove the old ones. Tom worked in payroll until 2024 and moved to sales in 2025. If he can still export salaries, the mover process has left privilege creep: access has accumulated beyond present need.

Deprovisioning removes access when a person leaves:

  1. Disable the account promptly, immediately for a dismissal.
  2. End active sessions and revoke tokens.
  3. Collect badges, keys and devices.
  4. Transfer needed data and shared mailboxes to an accountable new owner.
  5. Delete the account after the required retention period.

Disabling first blocks use while preserving data and the audit trail. Immediate deletion can destroy evidence or disrupt ownership of records. Disabling only the central identity also leaves a gap if application sessions remain active.

Know which accounts need care
Account typeMain management need
Standard userAccess tied to current work
PrivilegedStrong controls on elevated actions
ServiceNamed owner and narrow application permissions
Guest or temporaryAn expiry date
Third-party or vendorAccess ending with the contract
EmergencyProtected, monitored access during sign-in failure

Shared or generic accounts weaken accountability because several people can act under one name. Every account, including a non-human one, needs a named owner.

An orphaned account has no current owner. A dormant account has not been used for a long time. An account can be both, but inactivity and missing ownership are different findings. Find and disable accounts that are no longer needed instead of assuming a quiet account is harmless.

Review need and audit reality

An access review, also called recertification or attestation, asks a manager or system owner to confirm ongoing need at regular intervals, such as quarterly or yearly. Keep a current sales employee's needed role; remove a transferred worker's old administrator rights; remove an ended contractor's access; assign an owner to an unowned vendor account or disable it.

A signed review records the decision for audit. Short, specific reviews that highlight administrator rights, inactivity and job changes reduce rubber-stamping. Unconfirmed access should be removed automatically under the review process.

Account auditing compares actual accounts and events with expected records. Check for accounts missing MFA, activity after departure, unexpected permission changes and exposed credentials. Compromised credential monitoring can identify passwords found in breach data. SCIM can automate account changes from the identity provider to connected applications, but the resulting accounts and permissions still need review.

Key Takeaways

  • Joiners receive approved baseline access; movers lose old access as they gain new permissions.
  • Deprovisioning includes sessions, tokens and physical credentials, with deletion after retention.
  • Orphaned means no current owner; dormant means inactive.
  • Access reviews confirm need; account audits compare reality with expected records.
5

Protect privileged access

Administrator access can change security controls and affect many users at once. The most useful protections reduce where that power appears, how long it lasts and how clearly its use can be traced. Separate accounts and workstations limit everyday exposure; inventories and ownership make hidden access visible. Vaults, temporary elevation and recorded sessions put those choices into a controlled process for each privileged task.

5.1 Identify privileged accounts and reduce their risk

Privileged accounts can change settings, control other accounts or reach sensitive data. Attackers seek them to turn one foothold into wider control. Start by finding every privileged account and assigning its owner and purpose.

Separate daily and administrative work

Examples include domain administrators, server root accounts, database and network administrators, cloud administrators and broadly privileged service accounts. A local administrator controls one computer; domain or global privilege reaches many resources.

Mira uses "m.lopez" for email and chat and "adm-m.lopez" only for administration. A phishing link opened under the daily account then reaches standard permissions. A compromised device can still threaten privileged sessions held on it.

A privileged access workstation (PAW) is hardened and reserved for administration, without email or ordinary web browsing. Unique random local administrator passwords also limit lateral movement: a secret stolen from one laptop should not unlock every other laptop. Windows LAPS manages those passwords and changes them regularly.

Control non-human privilege

Service accounts run applications and scheduled jobs. Excessive rights, unchanged passwords, interactive sign-in and secrets embedded in scripts create unnecessary exposure.

For a nightly application job, grant only the data access and actions it needs. Block interactive sign-in and keep secrets in a vault; managed service accounts can rotate credentials automatically. Assign an owner responsible for changes and access reviews.

Prepare emergency access

A break-glass account provides access when normal authentication fails. Use strongly protected credentials, dual control, alerts on every use and regular tests. Credentials might include a hardware key or a long random password divided between separately controlled sealed envelopes.

The emergency route must work during the failure it addresses. An account entirely dependent on an unavailable IdP cannot solve that outage. Testing exposes this dependency before an emergency.

Preserve individual accountability

Change factory-default administrator credentials before deployment and give administrators named accounts. If a shared credential is unavoidable, a vault records who checked it out and when; an "admin" log alone leaves the operator unclear.

Inventory privileged accounts across servers, applications, network devices and cloud services, including forgotten vendor logins. Accounts absent from the inventory cannot be reliably protected or reviewed.

Key Takeaways

  • Inventory privileged accounts and assign each a named owner.
  • Separate daily and administrator accounts; use a hardened workstation for administration.
  • Unique local administrator passwords limit spread between machines.
  • Service accounts need minimal rights, protected secrets and no interactive sign-in.
  • Break-glass access needs strong protection, alerts and regular tests.

5.2 Use privileged access management tools

Privileged access management (PAM) controls when elevated access is available, who uses it and what happened during use. It combines credential protection, temporary permissions and activity records to reduce permanent power.

Protect and track credentials

A privileged password vault stores secrets in encrypted form. An administrator authenticates with MFA and obtains independent approval where required. The vault can inject a credential into a session without revealing it to the administrator.

After checkout ends, the vault is normally configured to rotate the password. A copied old value then stops working. The checkout record links the shared credential to a named person and period. The vault itself needs strong MFA and tightly controlled access because it concentrates powerful secrets.

Grant power for the task window

Just-in-time (JIT) permissions replace standing administrator rights with temporary elevation. At 14:00 Ana requests the "Database-Production-Admin" role for two hours under change ticket CHG-4821. A separate approver checks the need. The role is added, then automatically removed at 16:00.

The weekly exposure changes from 168 hours to 2 hours:

Time holding the role=(2/168)×100%≈1.2%

This measures the time with the role, not the probability of compromise. A stolen session outside that window no longer carries the role, while activity during the approved window still needs monitoring. Record the request, approval, start, end and activity. A temporary exception with no enforced end becomes standing privilege again.

Elevation on demand applies the same principle to one task on a computer. A standard user can obtain approval or authenticate again for "Run as administrator" or sudo, then return to ordinary rights. The elevation should cover the action that needs it, not every action for the rest of the day.

Limit the credential as well as the permission

An ephemeral credential is created for a session or short period and expires automatically. A server sign-in certificate valid for one hour leaves no permanent password to keep rotating. Short duration limits later reuse; the credential still needs protection while it is valid.

JIT permissions and ephemeral credentials are related but different. One limits when the account has a right. The other limits how long the authentication secret or token works. A design can use both for the same maintenance job.

Observe and end sensitive sessions

A controlled gateway, often called a jump server or bastion host, brokers privileged sessions. It can record activity, alert on risky commands and terminate a live session. Recordings help investigations connect a change to the person who performed it.

For a production database task, the chain can be: named administrator, phishing-resistant MFA, independent approval, temporary role, vault-injected credential and recorded gateway session. Each element serves a different need. Recording a permanent superuser session supplies evidence but does not reduce its permissions. Letting the requester approve their own role removes separation of duties; an audit trail cannot restore the missing independent decision.

Key Takeaways

  • PAM combines credential control, limited elevation and attributable activity.
  • Vaulting protects secrets and can inject and rotate them without revealing passwords.
  • JIT limits the permission window; ephemeral credentials limit credential lifetime.
  • A gateway can record, alert on and end privileged sessions.
  • Independent approval and strong MFA also protect the PAM system itself.
  • A percentage of time with access is not a percentage probability of attack.
6

Control physical access to sites and equipment

A site boundary, a building door and a server rack protect the same information at different points of entry. Barriers and identity checks delay unauthorized access; cameras, sensors and guards help detect and handle it. Door failure behavior must also preserve safe exit. Reading physical and digital records together helps investigate suspicious events without treating a successful badge presentation as certain identification of its user.

6.1 Secure the perimeter, entrances and secure rooms

Physical access controls protect sites, equipment and paper records. An intruder reaching an unlocked computer or exposed network socket may bypass logical protections, so protect the route to the asset in layers.

Arrange the layers
LayerExamples
PerimeterFence, gate, lighting, bollards
Building entranceControlled door, staffed reception
Secure zoneBadge plus PIN, vestibule
AssetLocked rack, laptop cable lock

Fencing marks boundaries and delays entry. Gates channel traffic; lighting helps guards and cameras see; signs deter. Bollards block vehicles while letting pedestrians through.

Check the entrant

Keys and badges supply possession, PINs knowledge and biometrics inherence. Badge plus PIN gives two factors. Electronic badges produce reader-event logs and can be disabled promptly when lost; metal keys cannot be remotely disabled.

Older 125 kHz cards can transmit a fixed identifier that is easy to copy. Smart cards answering cryptographic challenges are harder to clone. A granted badge event identifies the credential, while confirming the entrant may need video or witnesses.

Tailgating is following an authorized person through a controlled door without presenting a badge; knowingly being let through is often called piggybacking. A reader alone cannot stop a follower through an open door. An access control vestibule uses interlocking doors and verifies the entrant before releasing the second. Turnstiles, guards and staff challenge procedures also control individual passage.

Visitors need recorded sign-in, an identity check, a distinct same-day-expiring badge, an escort in secure areas and sign-out with badge return. A uniform or urgent claim is not authorization.

Plan power failure and escape

A fail-safe lock unlocks on power loss. A fail-secure lock remains locked. Escape must remain possible: a door can stay locked from outside while an inside push bar releases it. Life safety governs escape routes, including where protected server cages use fail-secure entry.

Protect a data room

Use a lit fenced perimeter, badge-controlled building door and reception for visitors. Add a badge-plus-PIN vestibule at the data room and locked racks inside. Cameras support investigation and guards respond. When an employee leaves, disable the badge along with the account and collect keys and devices.

Key Takeaways

  • Layer perimeter, entrance, secure-zone and asset controls.
  • Badge plus PIN combines possession and knowledge; lost badges need prompt disabling.
  • Vestibules and turnstiles address tailgating that a reader alone cannot stop.
  • Visitors need identity checks, expiring badges, escorts and sign-out.
  • Fail-safe unlocks on power loss; fail-secure stays locked while safe exit must remain available.

6.2 Monitor and detect physical intrusion

A physical barrier buys time. Detection and response determine what happens during that time. Monitoring combines cameras, sensors, alarms and access records so that an unexpected event reaches someone who can act.

Cover each control function

Visible cameras, lighting and signs deter. Fences and locks delay or prevent. Sensors and alarms detect. Guards or a monitoring center respond. Video and access logs record. One control can serve several functions, but a camera recording an event does not physically stop entry.

CCTV should cover entrances, exits and secure rooms with useful sightlines and no avoidable blind spots. Live monitoring can support a fast response; recordings support later investigation. Keep recordings for the period defined by policy and applicable privacy requirements.

Choose a sensor for the event
SensorWhat it detects
InfraredChanges in heat associated with movement
PressureWeight on a surface such as a floor mat
MicrowaveMovement changing reflected microwave signals
UltrasonicMovement changing echoes of high-frequency sound
Door or window contactOpening of the protected door or window

Dual-technology sensors combine methods to reduce false alarms. Placement and tuning matter: repeated nuisance alerts can produce alarm fatigue, where staff stop treating warnings as useful. Route events to a guard or monitoring center and record the response to each alarm. A detector disconnected from a response process leaves the incident unresolved.

Interpret records as evidence

A badge log records which credential was presented, where, when and whether the reader granted access. It leaves questions about the person carrying it and anyone following through.

Suppose a contractor's badge is refused three times at 02:15 because its allowed hours are 07:00 to 19:00. An employee's badge succeeds at 02:17. This pattern calls for investigation of a borrowed credential or tailgating, together with camera footage. The log alone cannot choose between those explanations or establish who entered.

Compare physical and logical records. An office-desktop sign-in without a corresponding building-entry record can indicate account sharing or compromise, but investigate the surrounding evidence. Anti-passback refuses a second recorded entry without an intervening exit, reducing the opportunity to pass a badge back for another person to use. It relies on the recorded entry/exit sequence; it is not a camera identification system.

Use the layout and close small gaps

Crime Prevention Through Environmental Design (CPTED) discourages intrusion through the site itself. Natural surveillance uses windows and clear sightlines over entrances and parking lots. Natural access control uses paths, landscaping and an obvious entrance to guide movement. Territorial reinforcement marks the boundary between public and private space.

Inside, automatic screen locks, clean desks, locked network cabinets and disabled or locked public-area network sockets reduce opportunities after someone reaches the building. Authorized physical penetration tests and social engineering exercises check whether staff challenge unknown visitors, doors close and lock, and alarms reach a person who responds. The test must follow the actual path from detection through action.

Key Takeaways

  • Physical security needs deterrence, delay, detection, response and records.
  • Sensors detect different events; placement and tuning reduce nuisance alarms.
  • Badge logs record credential events; use video and other evidence to investigate the person involved.
  • Anti-passback checks entry/exit sequence, while CPTED discourages intrusion through layout.
  • Test doors, staff procedures and the full alarm-response path.

Identity and Access Management examples

6 Walkthroughs

1

Trace identity evidence and permissions

13 steps
Follow enrollment, sign-in and an access decision, then apply factor and password defenses.
  1. 1
    IntroductionFollow one access request

    A new analyst needs an account, a way to sign in and permission to view a report. Those are separate decisions. An account issued to the wrong person, weak sign-in evidence or excessive permissions creates a different failure. Follow the chain from enrollment through authentication to a recorded action, then examine how factors and password defenses strengthen it.

  2. 2
    ExampleName the claim

    Leah types "l.amin". That is identification: it names the claimed account. Anyone could type it. The service must next check evidence tied to that account before treating the claim as authenticated.

  3. 3
    ExampleCheck permission after authentication

    Leah supplies the registered password and phone confirmation. The service authenticates her, then permits report viewing but refuses editing because her role has no write permission. Authorization evaluates the requested action. A log records the account, action, time and result for accounting; the successful sign-in does not grant every application function.

  4. 4
    ChallengeLocate the broken link

    An impostor receives an account under a real employee’s name after weak enrollment checks. The impostor later passes the registered key check. Which earlier process failed?

    ---reveal---

    Identity proofing failed before credentials were issued. Later authentication can correctly verify control of that key while the account remains tied to the wrong person. Repeating the same key check does not repair enrollment.

  5. 5
    ExplanationCount types of evidence

    A password is knowledge, a security key is possession, and a fingerprint is inherence. MFA combines different types. A password plus a security question stays within knowledge, even though the screen asks twice. Location and behavior add risk context; an unusual location can trigger an additional factor check without becoming a reliable second factor by itself.

  6. 6
    ExampleCalculate false acceptance

    A reader accepts 3 of 10,000 impostor attempts: FAR=(3/10000)×100%=0.03%. Use impostor attempts as the denominator. Genuine-user refusals belong to FRR, a different population.

  7. 7
    ExampleCalculate false rejection

    The same reader rejects 20 of 1,000 genuine attempts: FRR=(20/1000)×100%=2%. Tightening the match threshold usually reduces FAR and raises FRR. CER is the rate where they are equal, not the threshold setting. A secure-room decision needs the rates at its chosen setting and comparable testing conditions, not an isolated product score.

  8. 8
    ChallengeChoose the direction of change

    A secure laboratory wants fewer impostors admitted, accepting that genuine staff may need more retries. Should the biometric threshold be tightened or loosened?

    ---reveal---

    Tighten it. A closer match is required, lowering false acceptance while raising false rejection. A claim that both errors necessarily fall from this single adjustment misses the threshold trade-off.

  9. 9
    ExplanationSeparate online and offline attacks

    An online attacker sends guesses to the live service, where delays and temporary lockout can slow attempts. An offline attacker tests candidates against stolen hashes on separate hardware. The live sign-in limit cannot govern those tests. Unique salts defeat precomputed tables; deliberately slow password hashing increases the cost of each offline guess.

  10. 10
    ExampleBuild the password rule

    NIST SP 800-63B-4 requires 15 characters for password-only sign-in or 8 with MFA. Accept 64 or more, including spaces. Block common or compromised choices. Do not require composition rules or routine changes; change after compromise.

  11. 11
    ChallengeMatch the attack to the defense

    A site breach exposes a person’s password, and an attacker tries the same username-password pair at the person’s email service. What attack is this, and what password habit limits it?

    ---reveal---

    This is credential stuffing. A unique email password prevents the stolen pair from working there. A more complex password reused at both services would still supply the attacker with a working pair after the breach.

  12. 12
    ChallengeDiagnose a refusal

    A user passes password and phone checks but cannot edit a report. A colleague recommends resetting the password and sharing a manager’s account. What should be examined instead?

    ---reveal---

    Check the user’s authorization for editing and whether that permission is appropriate for the task. Authentication already succeeded. Sharing the manager’s account would also make actions harder to attribute to the correct person.

  13. 13
    RecapKeep the decisions separate

    Locate the failure: proofing governs enrollment, authentication checks sign-in evidence, and authorization permits an action. Named accounts make activity attributable. Unique passwords, slow salted storage and strong recovery protect different attack paths.

2

Compare codes, push and passkeys

11 steps
Follow OTP timing and passkey signatures, with challenges about phishing and recovery.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionTest what the extra step adds
  2. 2
    ExplanationGenerate a changing code
  3. 3
    ExampleLocate the TOTP window
  4. 4
    TipReduce pressure to approve
  5. 5
    ChallengeExplain a relayed code
  6. 6
    ExampleRegister the passkey
  7. 7
    ExampleAnswer the challenge
  8. 8
    ExampleBind the proof to the site
  9. 9
    ChallengePlan device loss
  10. 10
    ChallengeChoose continuity without a weak reset
  11. 11
    RecapChoose for the attack and the recovery path
3

Trace tickets, assertions and tokens

18 steps
Follow internal SSO, SAML federation, OAuth with PKCE and OIDC token validation.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionGive every message a recipient
  2. 2
    ExplanationLook up the directory record
  3. 3
    ExampleObtain the Kerberos tickets
  4. 4
    ChallengeFind the same-sign-on mistake
  5. 5
    ExplanationSet up the federation trust
  6. 6
    ExampleRedirect and return the assertion
  7. 7
    ChallengeCheck more than the signature
  8. 8
    ConnectionKeep creation and removal separate
  9. 9
    ExampleAsk for delegated permission
  10. 10
    ExampleCreate the PKCE binding
  11. 11
    ExampleExchange the code and call the API
  12. 12
    ChallengeSeparate revocation effects
  13. 13
    ExplanationAdd the identity layer
  14. 14
    ExampleValidate the token claims
  15. 15
    Key InsightKeep the account identity stable
  16. 16
    ChallengeReject a token with the wrong purpose
  17. 17
    ChallengeChoose protocols for two jobs
  18. 18
    RecapMatch evidence to its job
4

Apply policy and follow an account through change

12 steps
Work through ACLs, combined models, movers, leavers and an access review.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionDecide on one requested action
  2. 2
    ExampleRead the ACL
  3. 3
    ExplanationLimit power and split the process
  4. 4
    ChallengeFind the failed condition
  5. 5
    ExplanationLocate the decision authority
  6. 6
    ExampleCombine a role with context
  7. 7
    ChallengeChoose labels or roles
  8. 8
    ExampleProcess a mover
  9. 9
    ExampleProcess a leaver
  10. 10
    ChallengeMake the review specific
  11. 11
    ChallengeRepair role explosion without losing limits
  12. 12
    RecapKeep permissions aligned with work
5

Carry out a controlled privileged task

10 steps
Connect separate accounts, vaulting, temporary elevation and session evidence.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionControl the highest-impact access
  2. 2
    ExampleSeparate the working accounts
  3. 3
    ExplanationFind unattended privileged identities
  4. 4
    ChallengeReduce the service account’s reach
  5. 5
    ExampleRequest temporary elevation
  6. 6
    ExampleInject and expire the credential
  7. 7
    ConnectionKeep evidence and response in the session
  8. 8
    ChallengeRead the percentage correctly
  9. 9
    ChallengeRepair the remaining workflow gap
  10. 10
    RecapMake elevated work bounded and traceable
6

Protect the route to a secure room

11 steps
Apply layers, tailgating defenses, safe lock behavior and evidence-based intrusion response.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionFollow the route into the room
  2. 2
    ExamplePlace the barriers in layers
  3. 3
    ExplanationCheck visitors and followers
  4. 4
    ChallengeHandle power failure without trapping people
  5. 5
    ExplanationDetect the event that matters
  6. 6
    ExampleSend the alarm to a responder
  7. 7
    ExampleRead the badge evidence carefully
  8. 8
    ChallengeChoose evidence for the unresolved question
  9. 9
    ConnectionUse the layout and the entry sequence
  10. 10
    ChallengeInvestigate two routes together
  11. 11
    RecapConnect barriers, evidence and action

Identity and Access Management practice questions

50 Practice Questions in 5 sets

Set 1: Practice 3: Diagnose the gap10 Practice Questions

Question 1 of 10

Six operators use the same account. A log shows that account approved a shipment, but the company cannot identify the operator. What account change improves accountability?
  1. Require all six to use one longer shared password.
  2. Replace the account name with the shift's start time.
  3. Keep the shared account and disable activity logging.
  4. Issue a separate named account to each operator.
Show answerHide answer
Answer: D
Named accounts make each operator's activity separately attributable. A stronger shared password can protect access but still leaves all six people under the same log identity. The problem is attribution of an action, not just whether the shared credential is difficult to guess.

Question 2 of 10

At 09:20:41, an authenticator is in a 30-second TOTP step that began at 09:20:30. Ignoring neighboring-step tolerance, how long remains before the next step?
  1. 11 seconds
  2. 30 seconds
  3. 19 seconds
  4. 41 seconds
Show answerHide answer
Answer: C
Eleven seconds of the 30-second step have elapsed, leaving 19 seconds until 09:21:00. The remainder since the step began is the code's age, not its remaining life. The validity window also does not permit a successfully used OTP to be accepted a second time.

Question 3 of 10

An organization requires AAL3, a spare authenticator and recovery that preserves assurance. A proposal offers synced passkeys with SMS fallback. What replacement addresses both shortcomings?
  1. Device-bound non-exportable keys, a spare key and strong recovery.
  2. Device-bound non-exportable keys, a spare key and SMS recovery.
  3. Synced passkeys, a spare device and risk-appropriate strong recovery.
  4. One device-bound non-exportable key, no spare and strong recovery.
Show answerHide answer
Answer: A
AAL3 requires phishing-resistant authentication with non-exportable keys and two factors, so synced passkeys do not qualify. A spare device-bound key supports continuity, and recovery must preserve assurance. Adding a spare while retaining weak SMS or security-question fallback leaves another route around strong sign-in.

Question 4 of 10

A SAML assertion has a trusted signature and is within its time window, but its audience names a different application. What should the receiving application do?
  1. Accept it because a trusted signature overrides the audience.
  2. Reject it because the assertion is not addressed to this service.
  3. Accept it after mapping the supplied group to a local user role.
  4. Reject it only if the user cannot repeat the directory password.
Show answerHide answer
Answer: B
The service must validate audience as well as signature, time and replay conditions. A genuine assertion for another application is not authorization to start a session here. Mapping a group to a role happens only after accepting valid evidence and cannot repair an audience mismatch.

Question 5 of 10

Two identity providers each issue the subject value "731" to different people. What account identifier keeps the two people separate?
  1. The combination of issuer and subject
  2. The subject value without the issuer
  3. The most recently observed email address
  4. The token's issue time and expiry time
Show answerHide answer
Answer: A
A subject is interpreted within its issuer, so combining iss and sub distinguishes the two accounts. The repeated subject text alone would merge them incorrectly. Email addresses can change or be reassigned, and timestamps describe token lifetime rather than a stable account identity.

Question 6 of 10

A data-export policy requires membership in Analysts, a managed device and approved hours. Ravi is an Analyst on an unmanaged laptop at 11:00, within approved hours. He is refused. What change meets the missing condition without expanding permissions?
  1. Add a second Analyst membership on the same laptop.
  2. Grant a permanent administrator role on the same laptop.
  3. Use a compliant managed device with the existing role.
  4. Move the request to a later time within the same approved hours.
Show answerHide answer
Answer: C
The role and time conditions already pass, leaving the device requirement unsatisfied. Using a compliant managed device addresses that specific failure while retaining the current permission scope. Adding administrator rights would expand access without establishing the required device state.

Question 7 of 10

A departing worker is disabled at the IdP, but an application session and an issued API token remain usable. Records must be retained. What response addresses access and retention together?
  1. End app sessions, revoke refresh tokens and leave issued tokens until expiry.
  2. Disable the IdP and preserve records while existing sessions expire naturally.
  3. Invalidate issued tokens and keep app sessions until records can be deleted.
  4. End app sessions, invalidate issued tokens and retain disabled records.
Show answerHide answer
Answer: D
Disabling the IdP prevents new sign-ins but may leave application sessions and tokens active. Terminating that access closes the remaining routes, while retaining disabled records preserves data and audit evidence. Immediate deletion is not required to block use and can destroy records needed later.

Question 8 of 10

An attacker steals one laptop's local administrator password and finds that it works on every laptop. What control most directly limits this route?
  1. One stronger shared administrator password for all laptops.
  2. Unique managed local administrator passwords per laptop.
  3. One generic local account name across all laptop images.
  4. Longer log retention for the same shared administrator password.
Show answerHide answer
Answer: B
Unique managed passwords prevent a secret taken from one laptop from authenticating to every other one. A stronger shared password still becomes a shared entry point once stolen. Logs can help investigate movement but do not remove the reused credential that enables it.

Question 9 of 10

A server-cage lock stays locked when power fails. Staff can exit through an independent safe escape route. What is the cage lock's failure mode?
  1. Fail-safe
  2. Default allow
  3. Fail-secure
  4. Single sign-on
Show answerHide answer
Answer: C
Fail-secure means the lock remains locked without power. Fail-safe describes unlocking on power loss, so it is the opposite lock behavior. The separately stated escape route preserves life safety; staying locked from the outside must not trap people inside.

Question 10 of 10

A service uses unique salted but fast password hashes. Online lockout works well, yet attackers obtain the hash database. What improvement directly slows this attack, and why is lockout insufficient?
  1. Use slow password hashing; offline guesses bypass sign-in limits.
  2. Shorten lockout duration; offline guesses use the same login page.
  3. Remove salts; identical hashes make compromised users easier to find.
  4. Require weekly changes; expiry prevents testing old stolen hashes.
Show answerHide answer
Answer: A
A deliberately slow password-hashing function increases the work of each offline guess. Online lockout governs requests to the service, while the stolen database can be tested elsewhere. Unique salts defeat precomputed tables and equal-password matching, but they do not make a fast hash slow.
Set 2: Practice 4: Combine the evidence10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A biometric reader is tightened after unauthorized entries. Impostor acceptance falls, but more genuine users are rejected. A manager calls the higher FRR proof that the reader became less secure. How should the result be interpreted?
  1. It shows FAR and FRR both increased at the new threshold.
  2. It is a threshold trade-off; compare both rates at the required setting.
  3. It shows the lower FAR makes all genuine rejections disappear.
  4. It makes CER alone sufficient regardless of the test conditions.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A user enters a password and fresh OTP on a fake sign-in page. The page relays both immediately and captures the real site's session cookie. What replacement most directly addresses the relay mechanism?
  1. A passkey sign-in bound to the real service's domain.
  2. An OTP that changes twice as often on the same fake page.
  3. A longer account password entered into the same fake page.
  4. A push approval with more detailed but relayable prompt text.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A computer's clock is eight minutes ahead of its Active Directory domain. Credentials are correct, but Kerberos sign-in fails. What check should come first?
  1. Grant the user a broader role on the requested file share.
  2. Replace the file server's ACL with an Everyone read rule.
  3. Restore clock agreement within the allowed tolerance.
  4. Extend the password history to include more earlier passwords.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

At 13:00 a refresh token is revoked. An already issued access token expires at 13:25, and the API checks only its valid signature, scope and expiry. No separate access-token invalidation occurs. What can still happen at 13:10?
  1. The revoked refresh token can still obtain another access token.
  2. The access token can gain scopes absent from its original grant.
  3. The access token must fail because refresh revocation ends all tokens.
  4. The issued access token can still access its permitted API resources.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A laboratory uses job roles, but scientists may read records only for their current project on managed devices. Creating a separate role for every project-device combination has become unmanageable. What redesign preserves the policy?
  1. Keep job roles and add project and device attribute conditions.
  2. Keep job roles and project conditions but remove managed-device checks.
  3. Keep job roles and device conditions but allow every project’s records.
  4. Replace combinations with one Scientist role lacking project and device checks.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

An audit finds a vendor account with no current owner and another account unused for a year but still owned by an employee. How should they be classified?
  1. Both accounts are orphaned because neither has recent activity.
  2. The vendor account is dormant; the unused account is privileged.
  3. Both accounts are service accounts because an audit found them.
  4. The vendor account is orphaned; the unused account is dormant.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A PAM vault uses password-only administrator sign-in, records sessions and assigns two-hour roles. Requesters approve their own requests, and expired roles stay active. What changes address the authentication, approval and duration failures?
  1. Add strong MFA, self-approval alerts and automatic role removal.
  2. Add strong MFA, independent approval and automatic role removal.
  3. Add strong MFA, independent approval and longer session recording.
  4. Keep password-only login, add independent approval and enforce expiry.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

At 22:10 a badge is accepted at a secure door. Video shows two people entering on that opening; the account linked to the badge signs in remotely at 22:11. What conclusion and next step are justified?
  1. Confirm both entrants were authorized by the granted event.
  2. Confirm a borrowed badge from the remote sign-in alone.
  3. Investigate shared or borrowed access using both records.
  4. Confirm credential sharing from the two-person video alone.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

An OIDC token has a trusted signature, correct issuer and matching nonce. It names "travel-app", is expired, and is linked by email to a reassigned mailbox. What should receiving client "expenses-app" do about the token and its account-linking rule?
  1. Reject for expiry alone; keep email as the stable account identifier.
  2. Reject for audience and expiry; identify accounts by issuer plus subject.
  3. Accept the signed token; identify accounts by issuer plus subject.
  4. Reject for audience alone; identify accounts by the subject without issuer.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

Which password-policy setting stops a user from immediately cycling through several passwords to reuse an old one?
  1. Maximum password age
  2. Password-composition rules
  3. Account lockout duration
  4. Minimum password age
Show answerHide answer

Save this lesson to see this answer.

Set 3: Practice 5: Resolve competing explanations10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

An impostor passes weak enrollment checks and receives an account in an employee's name. Later the impostor correctly uses its registered hardware key, and logs record that account's actions. What failed, and why do the later controls not repair it?
  1. Proofing failed; later checks can validate and record the false identity.
  2. Proofing failed; later key use corrects the original identity assignment.
  3. Authentication failed; successful key use must establish the employee’s name.
  4. Accounting failed; correctly recording account actions establishes the person.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

An unusual sign-in location causes a service to request an additional authenticator check. What is this response called?
  1. Just-in-time provisioning
  2. Credential stuffing
  3. Step-up authentication
  4. Mandatory access control
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

An employee loses a phone containing a device-bound passkey and still has a registered spare key. What account action removes the lost credential's sign-in ability?
  1. Change only the local PIN on the available spare security key.
  2. Rename the phone entry while leaving its public key registered.
  3. Delete only the website's browser history on the spare computer.
  4. Remove the lost passkey's registered public key from the account.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A SaaS service creates accounts at first SAML sign-in. After employees leave, disabling the IdP blocks new sign-ins but leaves their SaaS accounts and open sessions. What addition addresses the missing lifecycle work?
  1. Automate SaaS deprovisioning but let open sessions expire.
  2. Automate SaaS deprovisioning and terminate remaining sessions.
  3. Terminate open sessions but leave local SaaS accounts enabled.
  4. Disable only the IdP and review SaaS accounts at the annual audit.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A warehouse needs motion detection based on reflected radio signals rather than heat changes or sound echoes. Which sensor fits that mechanism?
  1. A pressure mat
  2. An infrared sensor
  3. A microwave sensor
  4. An ultrasonic sensor
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A payment system lets one employee create suppliers and approve payments to them. The account uses a passkey and has detailed logs. What policy change addresses the remaining fraud path?
  1. Require a second passkey from the same person for approval.
  2. Assign creation and approval to different authorized people.
  3. Require a second account owned by the same person for approval.
  4. Let the same person approve, with an independent review afterward.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

An analyst has Secret clearance and the Atlas compartment. A document is Secret in the Orion compartment, and a coworker offers to share it. Under centrally enforced labels and compartments, what result follows?
  1. Refuse access because the required compartment is absent.
  2. Allow access because the Secret clearance level matches.
  3. Allow access because the coworker’s sharing grant applies.
  4. Refuse access only until the coworker adds a sharing grant.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A backup job uses a domain administrator credential embedded in its script and allows interactive sign-in. It needs only to read one backup source. What redesign addresses its exposure and excessive rights?
  1. Use a narrow service identity and vaulted secrets but retain interactive login.
  2. Use a domain admin identity with vaulted secrets and blocked interactive login.
  3. Use a narrow service identity with a script-held secret and blocked interactive login.
  4. Use a narrow service identity, vaulted secrets and blocked interactive login.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A contractor receives a 30-minute administrator role and a credential valid for 10 minutes at the same start time. After 12 minutes, what can be concluded about a new authentication, the role’s remaining time and an already open session?
  1. The role expired with the credential, leaving no permissions assigned.
  2. New use of the credential fails; the role has 18 minutes left; session status is unknown.
  3. The credential remains valid because the role still has time left.
  4. All sessions must end because credential expiry removes every role.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A design keeps a secure room locked from outside during power loss but lets occupants leave using an inside push bar. A reviewer insists fail-secure means people must be trapped. How should the design be assessed?
  1. The push bar forces the outside entry lock to unlock when power fails.
  2. Fail-secure behavior requires the inside push bar to stop working on power loss.
  3. Outside locking can be fail-secure while inside egress remains available.
  4. Inside egress means the outside lock cannot be classified as fail-secure.
Show answerHide answer

Save this lesson to see this answer.

Set 4: Practice 1: Identify the decision10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

Nadia signs in successfully, but the inventory system refuses her request to delete a product. Which IAM function refused the action?
  1. Authentication
  2. Authorization
  3. Identification
  4. Accounting
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

An attacker tries "Welcome2027!" against hundreds of employee accounts. What type of attack is this?
  1. Credential stuffing
  2. Offline brute force
  3. Dictionary attack
  4. Password spraying
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A sign-in requires a password and the answer to a childhood-pet question. How many classic authentication factor types are present?
  1. One: knowledge
  2. Two: knowledge and possession
  3. Two: knowledge and inherence
  4. Three: knowledge, possession and inherence
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

Three applications each ask for the same directory password. What change would give the user actual single sign-on?
  1. Have each app check the password against the same directory.
  2. Have each app apply the same password-expiration setting.
  3. Have later apps reuse the first trusted authentication.
  4. Have each app store a separate copy of the directory password.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A public photo app uses authorization code flow with PKCE. An attacker captures only its returned authorization code. The app's verifier remains secret. Why can the attacker not obtain the access token through that code?
  1. The photo API accepts the code only after an ID token expires.
  2. The token exchange also requires the matching verifier.
  3. The authorization code carries the user's hidden password.
  4. The challenge permits any holder of the code to redeem it.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A support team needs to reset customer passwords, but its role also allows exporting all customer records. What change best applies least privilege?
  1. Keep password reset and remove the export permission.
  2. Keep both permissions and require a longer sign-in password.
  3. Keep both permissions and review exported files each month.
  4. Replace the support role with a full administrator role.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A document owner chooses the colleagues who may read her document. Which access control model is shown?
  1. Mandatory access control
  2. Role-based access control
  3. Attribute-based access control
  4. Discretionary access control
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

An administrator reads email and manages servers using one powerful account. What account change reduces exposure to email phishing?
  1. Use the admin account daily and change its display name.
  2. Use one shared admin account for both email and server work.
  3. Use a standard daily account and a separate admin account.
  4. Use the same admin password on every managed server.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A stranger enters behind an employee through a badge-controlled door without presenting a badge. What control directly addresses this route?
  1. A more complex employee password
  2. A badge printer with clearer photos
  3. A monthly review of directory groups
  4. A two-door access control vestibule
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A calendar app needs to read appointments from an existing calendar service. Its developer proposes collecting users' calendar passwords and storing them for later API calls. What design meets the need while limiting delegated access?
  1. Use OAuth with a read scope and authorization code flow with PKCE.
  2. Use OAuth with a read scope but collect the user’s password at the app.
  3. Use OAuth with PKCE but request full calendar read, write and delete access.
  4. Use OIDC and present the client’s ID token to the calendar API for reading.
Show answerHide answer

Save this lesson to see this answer.

Set 5: Practice 2: Apply the controls10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A Kerberos client has a valid TGT and wants to open a file share. What ticket exchange comes next?
  1. Present the TGT as the user's password to the file share.
  2. Send the directory password to obtain the server's private key.
  3. Exchange the share's service ticket for a new user password.
  4. Present the TGT to obtain a service ticket for the share.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A biometric test accepts 4 of 20,000 impostor attempts and rejects 12 of 600 genuine attempts. What are its FAR and FRR?
  1. FAR 2%; FRR 0.02%
  2. FAR 0.2%; FRR 2%
  3. FAR 0.02%; FRR 2%
  4. FAR 0.02%; FRR 0.2%
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A team is replacing password-only sign-in rules with NIST SP 800-63B-4 guidance. What minimum length and change rule should it use?
  1. At least 15 characters; change when compromise is evident.
  2. At least 8 characters; change on a fixed monthly schedule.
  3. At least 15 characters; change on a fixed monthly schedule.
  4. At least 8 characters; change only after two failed sign-ins.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

During passkey registration, what key does the website store for later verification?
  1. The credential's private key
  2. The local biometric template
  3. The authenticator-unlock PIN
  4. The credential's public key
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A mobile app needs to sign users in and then call an API on their behalf. Which protocol combination and token roles fit?
  1. OAuth tokens for identity; OIDC ID tokens for the API.
  2. OIDC for ID tokens; OAuth access tokens for the API.
  3. SAML for identity; the user's password for the API.
  4. OIDC ID tokens for identity and for API permissions.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

Elena moves from purchasing to customer support but retains supplier-payment approval. What lifecycle failure does this show, and what should change?
  1. Dormancy; force a password change for the support account.
  2. Privilege creep; remove the old approval permission.
  3. Identity proofing; repeat the original employee identity check.
  4. Deprovisioning; delete all records of Elena's employment.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A policy allows a record to be read only when department matches, the device is managed and the request occurs during approved hours. Which model directly evaluates that combination?
  1. Attribute-based access control
  2. Discretionary access control
  3. Mandatory access control
  4. Role-based access control alone
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A technician requests server administrator rights for a 45-minute repair. What mechanism grants the role only for that approved window?
  1. Permanent role membership
  2. Password-history enforcement
  3. Just-in-time permissions
  4. Session recording by itself
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

At night, two people enter on one badge and the camera records them, but nobody responds to alarms. The outside door stays locked on power loss while an inside push bar allows exit. What plan addresses the access and response gaps while preserving safe exit?
  1. Add a vestibule and longer video retention; remove overnight response.
  2. Add a vestibule and alarm responder; keep the inside push bar.
  3. Add an alarm responder and longer retention; admit both on one badge.
  4. Add a vestibule and alarm responder; disable the inside push bar.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

In a federated SAML sign-in, which party authenticates the user and issues the assertion?
  1. The identity provider
  2. The service provider
  3. The directory query client
  4. The resource API gateway
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

111 Key Terms, each with its definition

A

Access control list
An access control list (ACL) records which subjects or groups may perform specified actions on a particular object.
A document’s ACL grants Finance edit access and Managers read access while leaving other users unallowed.
Access control vestibule
An access control vestibule is a space with interlocking doors that controls passage and verifies a person before releasing the next door.
The second door stays closed until the first closes and the entrant completes the required access check.
Access review
An access review asks managers or resource owners to confirm that existing permissions are still appropriate and needed.
The system owner removes a transferred employee’s old administrative role during recertification.
Access token
An access token is a credential presented to an API as evidence of authorization to perform the token’s permitted actions.
The application sends an access token to the API instead of substituting the client’s ID token.
Account
An account is an identity’s record in a particular system, including the credentials and permissions used for access.
An employee can have separate email and payroll accounts tied to the same organizational identity.
Account recovery
Account recovery restores access through a verified alternative path when the normal authentication method is unavailable.
A lost-device process uses protected recovery codes or renewed proofing suited to the account’s risk.
Accounting
Accounting records account actions, their times and outcomes for later examination.
A log entry records which named account exported a report and when the export happened.
Alarm fatigue
Alarm fatigue occurs when repeated nuisance alerts reduce the attention people give to later warnings, including real incidents.
Tuning a badly placed sensor reduces false alarms that staff had begun to ignore.
Anti-passback
Anti-passback uses badge entry and exit records to refuse another entry before an intervening exit has been recorded.
A badge used to enter cannot immediately be passed back for another person’s recorded entry.
Attribute-based access control
Attribute-based access control (ABAC) evaluates subject, object, action and environment attributes against a policy.
A record is readable only when department matches and the requesting device is company-managed.
Authentication
Authentication checks evidence supporting a claimed identity.
A successful security-key challenge supports the claim to the registered account.
Authentication factor
An authentication factor is a type of identity evidence: something known, something possessed or an inherent feature of the person.
A password and a security question remain two checks within the same knowledge factor type.
Authorization
Authorization decides whether a subject may perform an action on an object.
A user can sign in correctly and still be refused permission to delete a customer record.
Authorization server
An authorization server checks authorization grants and issues access tokens.
It returns a token only after the client supplies the code and matching PKCE verifier.

B

Bastion host
A bastion host is a controlled gateway through which privileged sessions can be brokered, monitored, recorded and terminated.
An investigator reviews the gateway’s session recording to connect a sensitive command to its operator.
Biometric template
A biometric template is stored information representing a body feature, used for comparison with a fresh biometric sample.
A fingerprint reader compares the new scan with its stored template using a matching threshold.
Bollard
A bollard is a sturdy post positioned to block vehicle access or ramming while permitting pedestrians through an entrance area.
A row of bollards protects the building frontage while people walk between the posts.
Break-glass account
A break-glass account provides protected emergency access when normal sign-in fails.
Every emergency account use triggers an alert, and regular tests confirm the route works during an IdP outage.
Brute-force attack
A brute-force attack systematically tries possible combinations to find a secret, with cost determined by the search space and guess speed.
Adding a random character multiplies the combinations an exhaustive attacker must consider.

C

Claim
A token claim is a statement about a subject or token, such as issuer, audience, subject identifier or expiration time.
The client compares the "aud" claim with its own client ID rather than trusting any readable payload.
Client
An OAuth client is an application requesting access to protected resources.
An app that prints a user’s cloud photos is the client even when its code runs on a server rather than in the user’s browser.
CPTED
Crime Prevention Through Environmental Design (CPTED) uses sightlines, guided access and clear boundaries to discourage crime.
Windows overlooking the entrance provide natural surveillance, while paths guide visitors toward reception.
Credential stuffing
Credential stuffing tries stolen username-password pairs at other services.
Unique passwords stop a forum breach from supplying the same working credential for an email account.
Crossover error rate
The crossover error rate (CER) is the error rate at the matching threshold where false acceptance and false rejection are equal.
Compare CER under the same test conditions, then examine error rates at the required operating setting.
CTAP
The Client to Authenticator Protocol (CTAP) connects a device to an external authenticator.
A laptop communicates with a separate USB security key while completing a website sign-in.

D

Deprovisioning
Deprovisioning removes access when it is no longer authorized, including accounts, sessions, tokens and physical credentials.
A leaver’s badge is disabled while active application sessions and token access are ended.
Device-bound passkey
A device-bound passkey stays on one authenticator instead of being synchronized.
An administrator keeps a spare registered hardware key because losing one key does not copy it to a new one.
Dictionary attack
A dictionary attack tries likely passwords from words, common patterns or leaked values before attempting all possible combinations.
A word followed by a familiar year can appear early in a cracking tool’s candidate list.
Directory service
A directory service centrally stores identities, groups, devices and attributes that applications can query for identity information.
An application looks up department and group membership without maintaining a separate employee directory.
Discovery document
An OIDC discovery document publishes provider metadata, including endpoints and the address of its public signing key set.
The application follows the published key-set address when obtaining the provider’s verification keys.
Discretionary access control
Discretionary access control (DAC) lets an object’s owner decide who may receive access while the system enforces those choices.
The author shares a working document with two selected colleagues.
Dormant account
A dormant account is an account that has not been used for a long time.
A current employee’s unused legacy account is reviewed for removal even though employment continues.

E

Elevation on demand
Elevation on demand gives a standard user higher permissions only for an action that needs them, with approval or fresh authentication.
The user elevates for one administrative task and continues ordinary work without permanent administrator rights.
Ephemeral credential
An ephemeral credential is created for one session or a short period and expires automatically, limiting later reuse.
A server certificate expires after a brief maintenance period without leaving a permanent password.

F

Fail-safe lock
A fail-safe lock unlocks when power fails; the entry design must still satisfy the site’s escape and protection requirements.
The lock releases on power loss, so the team plans how the entry will be supervised during the outage.
Fail-secure lock
A fail-secure lock stays locked without power while preserving safe exit.
The server cage stays locked from outside while an inside exit mechanism lets occupants leave.
False acceptance rate
The false acceptance rate (FAR) is the share of impostor attempts wrongly accepted.
Accepting 2 out of 10,000 impostor attempts produces a FAR of 0.02%.
False rejection rate
The false rejection rate (FRR) is the proportion of genuine-user attempts that a biometric system incorrectly refuses.
Rejecting 8 of 400 genuine attempts produces an FRR of 2%.
Federation
Federation is a trust agreement under which one system accepts identity statements from another trusted identity provider.
An outside training portal trusts the employer’s IdP instead of collecting the employee’s company password.

H

Hard token
A hard token is a dedicated physical authentication device.
A spare security key provides a second enrolled device if the employee’s usual authenticator is lost.
HOTP
HOTP generates a one-time code from a shared secret and an advancing use counter.
A counter-based token needs its counter kept in step with the verifier, rather than relying on the current time.

I

ID token
An ID token is an OIDC token intended for the client, carrying claims about the authenticated user and authentication event.
The client validates its audience before using the token to establish the user’s session.
Identification
Identification is the act of claiming an identity, such as entering a username, before evidence for that claim is checked.
Typing "j.chen" tells the system which account is being claimed but supplies no proof by itself.
Identity
An identity is a set of attributes describing a person, device or service, such as an employee number, department or device name.
A backup service has an identity even though no employee uses it for everyday browsing.
Identity proofing
Identity proofing checks who a person is before an identity or credential is issued, linking enrollment to the right person.
Human resources confirms a new hire’s identity before the organization issues a staff account.
Identity provider
An identity provider (IdP) authenticates users and issues trusted identity statements.
The company’s IdP applies MFA before sending an assertion to the external HR application.
Implicit deny
Implicit deny refuses a request that has no explicit permission allowing it, even when no rule specifically names the requester.
A user outside every allowed group is refused access to the file without needing an individual deny entry.
Infrared sensor
An infrared sensor detects heat changes, such as a person moving through its field.
A movement across the sensor’s field triggers an event for the alarm-monitoring process.
Inherence factor
An inherence factor is a biometric feature of a person, such as a fingerprint or face, used as authentication evidence.
A fingerprint can unlock the private key on a device without sending the fingerprint to the website.
Interoperability
Interoperability is the ability of independently built systems to exchange and correctly use information through shared standards.
A SAML-capable application can trust a compatible IdP from a different vendor.

J

JSON Web Token
A JSON Web Token (JWT) carries JSON claims; its signed form joins an encoded header, payload and signature with dots.
Decoding the payload reveals claims but does not verify their signature or concealment.
Just-in-time permissions
Just-in-time permissions grant elevated access for an approved task window and automatically remove it when that window ends.
A database administrator role granted for an approved repair disappears at that repair’s deadline instead of remaining assigned.
Just-in-time provisioning
Just-in-time provisioning creates an application account at the first trusted sign-in, using attributes supplied by the identity provider.
A new employee’s first federated visit creates the local profile without a separate manual account request.

K

Kerberos
Kerberos is a ticket-based authentication protocol that supports internal SSO without sending the user’s password to each service.
A computer obtains a file-service ticket from the KDC before connecting to the file server.
Key Distribution Center
A Key Distribution Center (KDC) authenticates Kerberos clients and issues tickets.
The KDC exchanges a valid ticket-granting ticket for a ticket addressed to a particular service.
Knowledge factor
A knowledge factor is a secret the user knows, such as a password, passphrase or PIN used in an authentication check.
A smart-card PIN adds knowledge to possession of the physical card.

L

LDAP
The Lightweight Directory Access Protocol (LDAP) searches and reads directory entries.
A system retrieves a user’s group membership through an LDAP connection protected by TLS.
Least privilege
Least privilege limits a subject to the permissions needed for its task and only for the period those permissions are needed.
A report service receives read access without also receiving permission to delete the source database.
Local administrator
A local administrator has elevated control over one computer, unlike a domain or global administrator with broader authority.
Unique local administrator passwords prevent one laptop’s stolen secret from unlocking every laptop.

M

Mandatory access control
Mandatory access control (MAC) enforces centrally assigned object labels and subject clearances that ordinary users cannot override.
A user cannot share a classified record around a compartment restriction by editing a personal sharing list.
MFA fatigue
MFA fatigue is an attack that repeatedly sends approval requests to pressure a user into approving an unauthorized sign-in.
Number matching and prompt limits reduce the chance of a tired employee approving repeated unexpected requests.
Microwave sensor
A microwave sensor detects motion through changes in reflected radio signals.
Movement changes the returned radio signal and causes the detector to report an event.
Multi-factor authentication
Multi-factor authentication (MFA) requires evidence from at least two different authentication factor types for sign-in.
A password and registered authenticator app combine knowledge with possession.

N

Non-repudiation
Non-repudiation supplies strong evidence tying an action to its originator, making later denial of that action difficult.
A digital signature from a personally controlled key can provide stronger evidence than a shared-account log.
Nonce
A nonce is a value supplied for a particular request and checked in its response to help bind the response and prevent replay.
The OIDC client rejects an ID token whose nonce differs from the one in its sign-in request.

O

OAuth 2.0
OAuth 2.0 is an authorization framework that lets a client receive limited API access without obtaining the resource owner’s password.
A printing service requests permission to read cloud photos without receiving permission to delete them.
Object
An object is the resource protected by an access-control decision, such as a record, file, application function or room.
The budget document is the object when an employee requests permission to edit it.
One-time password
A one-time password (OTP) is an authentication code accepted only once; time-based variants also have a short validity window.
A code that remains visible for another ten seconds must still be refused if it has already been used.
OpenID Connect
OpenID Connect (OIDC) adds an authentication layer to OAuth 2.0 so a client can verify a signed-in user’s identity.
A mobile app requests the "openid" scope when it needs identity as well as API access.
Orphaned account
An orphaned account has no current accountable owner, such as an employee account left active after its owner departs.
A vendor login with no responsible employee is disabled until ownership and ongoing need are resolved.

P

Passkey
A passkey is a FIDO cryptographic credential that can replace a password by proving control of a key bound to a relying party.
The site verifies a challenge signature instead of asking the user to type a reusable account secret.
Password blocklist
A password blocklist is a set of common, expected or compromised values that a service rejects when a password is chosen.
The service rejects a leaked password even though it satisfies the minimum character count.
Password manager
A password manager generates and stores unique passwords in an encrypted vault and can fill them on matching websites.
The user keeps different random passwords for each service while protecting the manager with strong MFA.
Password spraying
Password spraying tries one or a few common passwords against many accounts, often avoiding per-account lockout limits.
Failures involving one guessed password across hundreds of usernames suggest spraying.
Password vaulting
Password vaulting stores credentials in an encrypted controlled store that manages authorized checkout, injection and rotation.
The vault inserts an administrator password into a session without displaying it to the operator.
Passwordless authentication
Passwordless authentication signs in without an account password, though a local PIN or biometric may still unlock the authenticator.
A phone asks for a local fingerprint before signing the website’s challenge with its passkey.
Phishing resistance
Phishing resistance prevents a fake verifier from obtaining authentication evidence it can reuse successfully at the real service.
Origin-bound FIDO authentication stops a look-alike site from relaying a valid sign-in for the real domain.
PKCE
Proof Key for Code Exchange (PKCE) binds authorization-code redemption to the client that holds the original secret verifier.
An intercepted code cannot be redeemed without a verifier matching the original challenge.
Possession factor
A possession factor is evidence of control of an authenticator the user has, such as a security key or authenticator phone.
An app-generated code shows control of the registered authenticator rather than knowledge of another password.
Pressure sensor
A pressure sensor detects weight or force applied to a protected surface.
Stepping onto the mat sends an event even when the visitor has not touched the door.
Privilege creep
Privilege creep is the accumulation of access beyond current need, often because old permissions remain after role changes.
A former payroll worker still able to export salaries after moving to sales has unnecessary retained access.
Privileged access management
Privileged access management (PAM) controls, limits, monitors and records elevated access to reduce standing power and preserve accountability.
A production change requires MFA, independent approval, a temporary role and a recorded session.
Privileged access workstation
A privileged access workstation (PAW) is a hardened computer reserved for administration and kept away from routine email and browsing.
The administrator opens server-management sessions on a dedicated device rather than the daily email laptop.
Privileged account
A privileged account has elevated rights that can administer systems, manage other accounts or access sensitive resources.
A database administrator can change structures and permissions that a daily reporting user cannot change.
Provisioning
Provisioning creates accounts and grants approved baseline access to joiners.
An authoritative HR record triggers creation of the employee’s account and the role for the new job.

R

Refresh token
A refresh token is a credential used to obtain new access tokens without repeating the user’s original authorization interaction.
Revoking the refresh token stops new issuance through it but may leave an issued access token usable until expiry.
Resource owner
A resource owner is the party entitled to grant a client access to protected resources, commonly the user whose data is involved.
The calendar owner approves an application’s request to read appointments.
Resource server
A resource server is the API that holds protected resources and validates access tokens before allowing requested actions.
A photo API checks an access token’s permissions before returning an album to a photo-printing app that requests it.
Role-based access control
Role-based access control (RBAC) assigns permissions to job roles and gives users access through their membership in those roles.
Moving from billing clerk to billing manager changes role membership rather than dozens of separate permissions.
Rule-based access control
Rule-based access control applies centrally defined request rules, such as restrictions on time or network traffic.
A rule refuses remote access outside approved working hours even when the account has a valid role.

S

Salt
A salt is a unique random input that makes equal passwords produce different hashes.
Two users can choose the same password yet have different hashes because their salts differ.
SAML assertion
A SAML assertion is an XML identity statement carrying authentication information, attributes and validity conditions for a receiving service.
A signed assertion can state the user’s department while limiting the statement to one application and time window.
SCIM
The System for Cross-domain Identity Management (SCIM) standard supports automated account and identity changes between systems.
The IdP pushes a leaver’s deprovisioning change to connected applications instead of relying on first-sign-in provisioning.
Scope
An OAuth scope names a permission requested by or granted to a client.
A "photos.read" scope does not by itself give a photo-printing app permission to delete photos.
Separation of duties
Separation of duties prevents one person from completing a sensitive process alone.
One employee enters a supplier and another independently approves payments to that supplier.
Service account
A service account is a non-human account used by an application or scheduled process and managed by an accountable owner.
A nightly export job uses a managed account with only the permissions required for that job.
Service provider
A service provider (SP) accepts a validated federated identity statement and supplies an application session or service to the user.
An HR service acting as SP checks a received assertion’s signature, audience and validity before starting the user’s session.
SIM swapping
SIM swapping transfers control of a victim’s phone number to an attacker, allowing the attacker to receive calls or codes.
An attacker who takes over the number can receive its SMS sign-in codes without holding the old phone.
Single sign-on
Single sign-on (SSO) reuses one trusted authentication across several applications without repeated credential entry during that session.
A user opens a second workplace app and is admitted through the existing identity-system session.
Soft token
A soft token is software that authenticates on a general-purpose device.
A phone app can generate possession-based codes without receiving SMS messages.
Step-up authentication
Step-up authentication requires additional authentication evidence when a request needs more assurance than the current session supplies.
An unfamiliar device can trigger a security-key check before sensitive account changes are allowed.
Subject
A subject is a user, process or device requesting an action on a protected object.
A nightly report service is the subject when it requests read access to a database table.
Synced passkey
A synced passkey is a credential copied between a person’s devices through a provider’s protected, encrypted keychain.
A replacement phone can regain the credential through the provider’s secured synchronization and recovery path.

T

Tailgating
Tailgating is entering through a controlled door behind an authorized person without presenting one’s own credential.
An unbadged person follows an employee before the door shuts, bypassing the reader’s individual check.
Throttling
Throttling slows repeated online authentication attempts through rate limits or delays.
Increasing delays slow guesses against a live sign-in page but do not govern an attacker’s stolen hash file.
Ticket-granting ticket
A ticket-granting ticket (TGT) is a Kerberos credential used to request service tickets after the initial authentication.
The client keeps using its valid TGT to obtain tickets for internal services during the sign-in period.
TOTP
TOTP generates one-time codes from a shared secret and a time-step counter, commonly changing the displayed code every 30 seconds.
A phone and server calculate matching codes from the enrolled secret and the same time interval.

U

Ultrasonic sensor
An ultrasonic sensor detects motion through changes in high-frequency sound echoes.
The detector analyzes changing sound reflections instead of relying on a visible-light camera image.

V

Visitor management
Visitor management checks and records visitors, issues distinct expiring badges, controls escorts and records departure.
A contractor signs in at reception and remains escorted while visiting the secure records room.

W

WebAuthn
WebAuthn is the web standard interface through which a website and browser register and use public-key authenticators.
A browser mediates the site’s challenge and the user’s interaction with a registered authenticator.
Windows LAPS
Windows LAPS manages unique local administrator passwords for computers, helping limit reuse and lateral movement after compromise.
A password obtained from one managed laptop does not authenticate to another laptop with a different password.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started