- Learn
- Computer Science & IT
- Cybersecurity
- Cybersecurity Fundamentals
- Identity and Access Management
Identity and Access Management
BeginnerLesson 5 of 8 in Cybersecurity Fundamentals Course
What you will learn
- 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 apartFollow 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 giveSort 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 attacksExplain how passwords are attacked, apply current rules on length and screening, and use password managers, safe storage and careful account recovery.
- Tell identification, authentication, authorization and accounting apart
- 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 methodsCompare 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 authenticationDescribe how security keys and passkeys use public-key cryptography, why they resist phishing, and how to plan for lost devices.
- Choose and use multi-factor authentication methods
- 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 organizationDescribe 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 SAMLExplain 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 authorizationIdentify 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 protocolExplain 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.
- Explain directories and single sign-on inside an organization
- 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 principlesDecide 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 modelsExplain 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 regularlyProvision, 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.
- Apply least privilege and the other access control principles
- 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 riskRecognize administrator, service and emergency accounts, explain why attackers target them, and separate everyday work from administrative work.
- Use privileged access management toolsApply password vaulting, just-in-time elevation, ephemeral credentials and session recording, and connect them to least privilege and accountability.
- Identify privileged accounts and reduce their risk
- 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 roomsCombine barriers, locks, badges, vestibules, guards and visitor procedures in layers, and choose how doors behave when power fails.
- Monitor and detect physical intrusionUse cameras, sensors, alarms and access logs to detect intrusion, design spaces that discourage it, and connect physical events to logical security.
- Secure the perimeter, entrances and secure rooms
Identity and Access Management study guide
1Explain 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:
- She types "m.lopez", identifying the account she claims.
- She enters her password and approves a phone prompt, authenticating the claim.
- Payroll lets her view salaries but refuses changes because her role permits reading only.
- 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
| Factor | Meaning | Examples |
|---|---|---|
| Knowledge | Something you know | Password, PIN, passphrase |
| Possession | Something you have | Authenticator phone, smart card, security key |
| Inherence | Something you are | Fingerprint, 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:
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
| Attack | What the attacker tries |
|---|---|
| Brute force | Every possible combination |
| Dictionary attack | Common words and leaked passwords |
| Password spraying | A few common passwords across many accounts |
| Credential stuffing | Stolen 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 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 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.
2Strengthen 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
| Method | Main concern | Useful protection |
|---|---|---|
| SMS or voice code | Number takeover through SIM swapping | Prefer a stronger available method |
| Push approval | Repeated prompts pressure the user | Number matching and prompt limits |
| App-based OTP | A fake site relays a fresh code | Phishing-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:
- The authenticator creates a key pair for the relying party, the website accepting the sign-in.
- The private key remains under the authenticator's protection.
- The website stores the public key.
During sign-in:
- The website sends a fresh random challenge.
- The user unlocks the authenticator with a fingerprint, face scan or local PIN.
- The authenticator signs the challenge using the private key.
- 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
| Type | Where the credential is kept | Main planning need |
|---|---|---|
| Synced passkey | Encrypted provider keychain across devices | Protect provider access and recovery |
| Device-bound passkey | One device, such as a security key | Keep 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.
3Share 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:
- At sign-in, the Key Distribution Center (KDC) checks the user and issues a ticket-granting ticket (TGT).
- The client presents the TGT to the KDC when it needs a file share.
- The KDC issues a service ticket for that file server.
- 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:
- The HR application redirects her browser to the company IdP with an authentication request.
- The IdP authenticates her, perhaps using a password and passkey, or reuses her current IdP session.
- The IdP returns the browser to the HR application carrying a signed assertion.
- 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:
- The printing app generates a random code verifier, keeps it secret, and derives a code challenge from it.
- It sends the browser to the authorization server with that challenge and the "photos.read" scope.
- The user signs in and approves the requested access.
- The server redirects the browser back with a one-time authorization code.
- The client sends the code and its original verifier to the token endpoint.
- 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.
| Token | Intended receiver | Purpose |
|---|---|---|
| ID token | The client application | Establish who signed in |
| Access token | The resource API | Permit 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.
4Control 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:
| Person | Membership | Result |
|---|---|---|
| Mira | Finance | Read and edit |
| Ana | Managers | Read only |
| Tom | Neither group | Refused |
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
| Model | Basis of the decision | Typical example |
|---|---|---|
| Discretionary (DAC) | Object owner's choices | An author shares a document |
| Mandatory (MAC) | Central labels and clearances | Classified records |
| Role-based (RBAC) | Job-role membership | A billing clerk's permissions |
| Rule-based | Centrally defined request rules | A remote-access time block |
| Attribute-based (ABAC) | Subject, object, action and environment attributes | Same-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:
- Disable the account promptly, immediately for a dismissal.
- End active sessions and revoke tokens.
- Collect badges, keys and devices.
- Transfer needed data and shared mailboxes to an accountable new owner.
- 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 type | Main management need |
|---|---|
| Standard user | Access tied to current work |
| Privileged | Strong controls on elevated actions |
| Service | Named owner and narrow application permissions |
| Guest or temporary | An expiry date |
| Third-party or vendor | Access ending with the contract |
| Emergency | Protected, 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.
5Protect 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:
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.
6Control 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
| Layer | Examples |
|---|---|
| Perimeter | Fence, gate, lighting, bollards |
| Building entrance | Controlled door, staffed reception |
| Secure zone | Badge plus PIN, vestibule |
| Asset | Locked 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
| Sensor | What it detects |
|---|---|
| Infrared | Changes in heat associated with movement |
| Pressure | Weight on a surface such as a floor mat |
| Microwave | Movement changing reflected microwave signals |
| Ultrasonic | Movement changing echoes of high-frequency sound |
| Door or window contact | Opening 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
1Trace identity evidence and permissions
13 steps
- 1IntroductionFollow 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.
- 2ExampleName 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.
- 3ExampleCheck 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.
- 4ChallengeLocate 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.
- 5ExplanationCount 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.
- 6ExampleCalculate false acceptance
A reader accepts 3 of 10,000 impostor attempts: . Use impostor attempts as the denominator. Genuine-user refusals belong to FRR, a different population.
- 7ExampleCalculate false rejection
The same reader rejects 20 of 1,000 genuine attempts: . 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.
- 8ChallengeChoose 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.
- 9ExplanationSeparate 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.
- 10ExampleBuild 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.
- 11ChallengeMatch 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.
- 12ChallengeDiagnose 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.
- 13RecapKeep 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.
2Compare codes, push and passkeys
11 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionTest what the extra step adds
- 2ExplanationGenerate a changing code
- 3ExampleLocate the TOTP window
- 4TipReduce pressure to approve
- 5ChallengeExplain a relayed code
- 6ExampleRegister the passkey
- 7ExampleAnswer the challenge
- 8ExampleBind the proof to the site
- 9ChallengePlan device loss
- 10ChallengeChoose continuity without a weak reset
- 11RecapChoose for the attack and the recovery path
3Trace tickets, assertions and tokens
18 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionGive every message a recipient
- 2ExplanationLook up the directory record
- 3ExampleObtain the Kerberos tickets
- 4ChallengeFind the same-sign-on mistake
- 5ExplanationSet up the federation trust
- 6ExampleRedirect and return the assertion
- 7ChallengeCheck more than the signature
- 8ConnectionKeep creation and removal separate
- 9ExampleAsk for delegated permission
- 10ExampleCreate the PKCE binding
- 11ExampleExchange the code and call the API
- 12ChallengeSeparate revocation effects
- 13ExplanationAdd the identity layer
- 14ExampleValidate the token claims
- 15Key InsightKeep the account identity stable
- 16ChallengeReject a token with the wrong purpose
- 17ChallengeChoose protocols for two jobs
- 18RecapMatch evidence to its job
4Apply policy and follow an account through change
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionDecide on one requested action
- 2ExampleRead the ACL
- 3ExplanationLimit power and split the process
- 4ChallengeFind the failed condition
- 5ExplanationLocate the decision authority
- 6ExampleCombine a role with context
- 7ChallengeChoose labels or roles
- 8ExampleProcess a mover
- 9ExampleProcess a leaver
- 10ChallengeMake the review specific
- 11ChallengeRepair role explosion without losing limits
- 12RecapKeep permissions aligned with work
5Carry out a controlled privileged task
10 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionControl the highest-impact access
- 2ExampleSeparate the working accounts
- 3ExplanationFind unattended privileged identities
- 4ChallengeReduce the service account’s reach
- 5ExampleRequest temporary elevation
- 6ExampleInject and expire the credential
- 7ConnectionKeep evidence and response in the session
- 8ChallengeRead the percentage correctly
- 9ChallengeRepair the remaining workflow gap
- 10RecapMake elevated work bounded and traceable
6Protect the route to a secure room
11 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionFollow the route into the room
- 2ExamplePlace the barriers in layers
- 3ExplanationCheck visitors and followers
- 4ChallengeHandle power failure without trapping people
- 5ExplanationDetect the event that matters
- 6ExampleSend the alarm to a responder
- 7ExampleRead the badge evidence carefully
- 8ChallengeChoose evidence for the unresolved question
- 9ConnectionUse the layout and the entry sequence
- 10ChallengeInvestigate two routes together
- 11RecapConnect barriers, evidence and action
Identity and Access Management practice questions
Set 1: Practice 3: Diagnose the gap10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
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
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Practice 4: Combine the evidence10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
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
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
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
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
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
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Access control list
Access control vestibule
Access review
Access token
Account
Account recovery
Accounting
Alarm fatigue
Anti-passback
Attribute-based access control
Authentication
Authentication factor
Authorization
Authorization server
B
Bastion host
Biometric template
Bollard
Break-glass account
Brute-force attack
C
Claim
Client
CPTED
Credential stuffing
Crossover error rate
CTAP
D
Deprovisioning
Device-bound passkey
Dictionary attack
Directory service
Discovery document
Discretionary access control
Dormant account
E
Elevation on demand
Ephemeral credential
F
Fail-safe lock
Fail-secure lock
False acceptance rate
False rejection rate
Federation
H
Hard token
HOTP
I
ID token
Identification
Identity
Identity proofing
Identity provider
Implicit deny
Infrared sensor
Inherence factor
Interoperability
J
JSON Web Token
Just-in-time permissions
Just-in-time provisioning
K
Kerberos
Key Distribution Center
Knowledge factor
L
LDAP
Least privilege
Local administrator
M
Mandatory access control
MFA fatigue
Microwave sensor
Multi-factor authentication
N
Non-repudiation
Nonce
O
OAuth 2.0
Object
One-time password
OpenID Connect
Orphaned account
P
Passkey
Password blocklist
Password manager
Password spraying
Password vaulting
Passwordless authentication
Phishing resistance
PKCE
Possession factor
Pressure sensor
Privilege creep
Privileged access management
Privileged access workstation
Privileged account
Provisioning
R
Refresh token
Resource owner
Resource server
Role-based access control
Rule-based access control
S
Salt
SAML assertion
SCIM
Scope
Separation of duties
Service account
Service provider
SIM swapping
Single sign-on
Soft token
Step-up authentication
Subject
Synced passkey
T
Tailgating
Throttling
Ticket-granting ticket
TOTP
U
Ultrasonic sensor
V
Visitor management
W
WebAuthn
Windows LAPS
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.