SkarpSkarp

Chapter 16 of 25

Identity and Access Management in Practice: From AAA to MFA

Follow a user’s journey from login to authorization as you connect AAA concepts to real-world identity and access management controls like multi-factor authentication.

27 min readen

From AAA Theory to IAM Reality

IAM and AAA

Identity and access management (IAM) decides who can do what on systems, and how we track it. At its core are the AAA functions: authentication, authorization, accounting.

AAA Functions

  • Authentication: Proving you are who you claim to be.
  • Authorization: Deciding what an authenticated user is allowed to do.
  • Accounting: Recording what they actually did.

Hybrid Environments

Modern IAM applies AAA across a hybrid environment that mixes cloud, mobile, IoT, OT, and on‑premises resources, all of which must be monitored and secured.

What You Will Do

You will follow a user’s journey from login to authorization, see where MFA fits, connect IAM to account lifecycle processes, and apply least privilege and just‑in‑time access.

Step 1: Meet the User Journey

Jordan’s Login Journey

Jordan, an employee working from home, opens a browser to access a company portal, which redirects to an identity provider login page.

High-Level Flow

Jordan enters username and password, completes MFA via a mobile app, receives a token, and the web app uses that token to decide what Jordan can access.

AAA in the Journey

Authentication: username, password, MFA. Authorization: roles and policies limiting Jordan to HR dashboards. Accounting: logs of logins and actions.

Exam Mindset

On Security+ questions, map every scenario to AAA: who is proving identity, how access is decided, and what is logged for later review.

Step 2: Authentication – Proving Identity

What Is Authentication?

Authentication answers the question: “Are you really this user?” It verifies identity but does not yet decide what you can do.

Factor Types

Common factors: something you know (password), have (token or phone), are (biometrics), somewhere you are (location), and something you do (behavior).

Single vs Multi-Factor

Single-factor uses one factor type, like a password only. Multi-factor combines two or more different factor types, such as password plus authenticator app.

Identification vs Authentication

Identification is claiming an identity (typing a username). Authentication is proving that claim (entering a valid password and MFA).

Step 3: Multi-Factor Authentication in Practice

What Makes MFA, MFA?

MFA requires two or more different factor types, such as something you know plus something you have, not just two passwords or two biometrics.

Good MFA Examples

Password + SMS code, PIN + fingerprint, smart card + PIN, or authenticator app push plus device biometric all qualify as multi-factor authentication.

Bad MFA Examples

Password + security question, fingerprint + facial recognition, or two separate passwords do not qualify as MFA because they use the same factor type.

Security+ Angle

For remote access, cloud admin portals, and privileged accounts, enabling MFA is a common correct answer to strengthen authentication.

Interactive: Classify the Authentication Setup

For each scenario, decide whether it is single-factor or multi-factor authentication, and which factor types are involved. Think it through before checking the explanations mentally.

  1. Scenario A: A user logs into a VPN using a username and password, then enters a 6-digit code from a mobile authenticator app.
  • Is this single-factor or multi-factor?
  • Which factor types are used?
  1. Scenario B: A user unlocks a corporate laptop using a smart card they insert into the laptop and a PIN.
  • Single-factor or multi-factor?
  • Factor types?
  1. Scenario C: A banking app requires a password and then asks for the user’s mother’s maiden name.
  • Single-factor or multi-factor?
  • Factor types?
  1. Scenario D: A user logs into a web app using a security key (FIDO2) they touch, which is unlocked by their fingerprint.
  • Single-factor or multi-factor?
  • Factor types?

Self-check answers (do not peek until you decide):

  1. A: MFA – something you know + something you have.
  2. B: MFA – something you have + something you know.
  3. C: Single-factor – both are something you know.
  4. D: Single-factor or MFA? On exams it is often treated as MFA (have + are), but some vendors bundle it as a single strong factor. For Security+, focus on recognizing the underlying factor types.

Step 4: Authorization – Deciding What You Can Do

What Is Authorization?

Authorization answers: “Given this is the user, what are they allowed to do?” It checks permissions, roles, and policies after authentication.

RBAC and ABAC

RBAC groups permissions into roles like HR Analyst. ABAC uses attributes (user, resource, environment) and evaluates policies based on those attributes.

Jordan’s Permissions

Jordan’s token contains claims like role=HR_Analyst. The app uses these to allow HR dashboards but deny system-wide admin features.

Least Privilege

Least privilege is enforced at authorization: users get only the minimum access they need, limiting damage if an account is compromised.

Step 5: Accounting – Logging and Monitoring

What Is Accounting?

Accounting answers: “What did this user do, when, and from where?” It relies on logs of authentication, authorization decisions, and activity.

IAM Logging

IAM accounting includes login logs, records of allow/deny decisions, and detailed audit trails of actions taken inside applications.

Why It Matters

Logs support anomaly detection, investigations, and compliance. They help prove who did what and when, supporting governance, risk, and compliance.

AAA Recap

Authentication proves identity, authorization decides access, and accounting records activity. Together they form the AAA model in IAM.

Step 6: Account Lifecycle – Provisioning to Deprovisioning

Account Lifecycle

IAM manages the full account lifecycle: provisioning new accounts, maintaining and changing access, and deprovisioning when users leave.

Provisioning

Provisioning creates accounts and assigns initial access, often triggered by HR onboarding and automated through IAM workflows.

Maintenance and Change

When roles change, IAM should update group memberships and roles, removing old access to avoid users accumulating excessive permissions.

Deprovisioning

Deprovisioning disables or removes accounts and access when users leave, preventing orphaned accounts that attackers can exploit.

Step 7: Access Reviews and Just-in-Time Access

Access Reviews

Access reviews are periodic checks where managers confirm that each user’s permissions are still needed, removing outdated or excessive access.

Just-in-Time Access

JIT access grants elevated permissions only when needed and for a short time, then automatically removes them to reduce attack surface.

Zero Trust Link

These processes support zero trust by limiting access to only what is needed and continuously validating that permissions remain appropriate.

Exam Hint

When scenarios show too many standing admin accounts, look for answers involving JIT access and periodic access reviews, not just stronger passwords.

Quiz 1: AAA and MFA Basics

Test your understanding of AAA and multi-factor authentication.

Which option best describes a true multi-factor authentication setup?

  1. Username + password + security question
  2. Password + fingerprint scan
  3. Fingerprint + facial recognition
  4. Two different complex passwords
Show Answer

Answer: B) Password + fingerprint scan

Password + fingerprint scan combines two different factor types: something you know (password) and something you are (biometric). The other options reuse the same factor type: knowledge-only or biometric-only, or just two passwords.

Step 8: IAM in a Hybrid Environment – A Worked Scenario

Hybrid Environment Scenario

A company uses on-prem AD, a cloud IdP, VPN, SaaS HR apps, and an OT network. Jordan, an HR analyst, works remotely and must access several systems.

VPN and SSO

Jordan authenticates to VPN with password plus push MFA, then uses SSO to reach the cloud HR app, receiving a token with HR_Analyst role claims.

Authorization and Logging

The HR app uses Jordan’s role to limit dashboards to HR data, while all activity is logged and sent to the SIEM for accounting and detection.

JIT Access to OT

Jordan occasionally gets time-limited, read-only access to an OT dashboard via JIT elevation, which automatically expires to enforce least privilege.

Quiz 2: Lifecycle and Least Privilege

Check your understanding of account lifecycle and access control concepts.

A contractor’s admin account remains active with full privileges six months after their project ended. Which IAM improvement best addresses this risk?

  1. Enable full-disk encryption on all admin workstations
  2. Require contractors to change their passwords every 30 days
  3. Implement automated deprovisioning tied to HR/contract end dates and regular access reviews
  4. Add a second firewall between the contractor network and the data center
Show Answer

Answer: C) Implement automated deprovisioning tied to HR/contract end dates and regular access reviews

The core issue is lingering, overprivileged accounts. Automated deprovisioning tied to contract end dates plus regular access reviews directly fixes the problem. The other controls may be useful but do not address orphaned admin accounts.

Key IAM and AAA Terms Review

Flip the cards to reinforce core IAM and AAA vocabulary before moving on.

AAA functions (list all 3 in order)
authentication, authorization, accounting
Authentication
The process of proving that a user or system is who or what it claims to be, typically using factors such as something you know, have, are, where you are, or something you do.
Authorization
The process of determining what an authenticated user or system is allowed to do, usually implemented via roles, attributes, and policies that enforce least privilege.
Accounting
The process of logging and tracking user and system activities, including logins, access decisions, and actions, to support auditing, monitoring, and investigations.
Multi-factor authentication (MFA)
An authentication method that requires two or more different factor types (e.g., something you know and something you have) to verify identity, greatly reducing the impact of stolen credentials.
Provisioning
The process of creating user accounts and assigning initial access rights and roles, often triggered by onboarding and automated through IAM workflows.
Deprovisioning
The process of disabling or removing user accounts and access rights when they are no longer needed, such as when an employee leaves or a contract ends.
Access review (recertification)
A periodic process where managers or data owners verify that each user’s access is still appropriate and remove or adjust permissions that are no longer needed.
Just-in-time (JIT) access
A method of granting elevated or sensitive permissions only when needed and only for a limited duration, after which the permissions are automatically revoked.
Zero trust
Zero trust is a security model that assumes no implicit trust and requires continuous verification of users and devices, limiting access to only what is needed.
Hybrid environment
A hybrid environment is an enterprise environment that includes a mix of cloud, mobile, Internet of Things (IoT), operational technology (OT), and on-premises resources that must be monitored and secured.

Step 9: Applying IAM Controls to Security+ Scenarios

Remote Access

For remote workers using VPNs, enforce MFA, centralize identity with an IdP, and log all connections for accounting and monitoring.

Cloud Admins

For cloud admin consoles, combine MFA with role-based least privilege and just-in-time elevation for sensitive administrative tasks.

Fixing Excess Access

Address orphaned or overprivileged accounts using automated deprovisioning, periodic access reviews, and well-designed roles.

Using Logs Wisely

When you see suspicious login patterns, rely on IAM logs, SIEM analysis, and conditional access policies to detect and respond.

Key Terms

AAA
A security framework consisting of authentication, authorization, and accounting, used to control and track access to systems and data.
SY0-701
SY0-701 is the exam series code for the latest version (V7) of the CompTIA Security+ certification exam.
accounting
The logging and tracking of user and system activities, including logins and actions, to support auditing, monitoring, and investigations.
zero trust
Zero trust is a security model that assumes no implicit trust and requires continuous verification of users and devices, limiting access to only what is needed.
provisioning
The process of creating user accounts and assigning initial access rights and roles when users join or change positions.
access review
A periodic process where managers or data owners verify that each user’s access remains appropriate and remove unnecessary permissions.
authorization
The process of determining what an authenticated user or system is allowed to do, usually enforced through roles, attributes, and access control policies.
authentication
The process of proving that a user or system is who or what it claims to be, typically using one or more authentication factors.
deprovisioning
The process of disabling or removing user accounts and access rights when they are no longer needed, such as when a user leaves the organization.
least privilege
A principle stating that users and systems should be granted the minimum level of access necessary to perform their tasks, and no more.
CompTIA Security+
CompTIA Security+ is a global certification that validates the baseline skills necessary to perform core security functions and pursue an IT security career.
hybrid environment
A hybrid environment is an enterprise environment that includes a mix of cloud, mobile, Internet of Things (IoT), operational technology (OT), and on-premises resources that must be monitored and secured.
just-in-time (JIT) access
A method of granting elevated or sensitive permissions only when needed and for a limited duration, after which permissions are revoked automatically.
role-based access control (RBAC)
An access control model where permissions are grouped into roles (such as HR Analyst or Database Admin) and users are assigned to roles instead of individual permissions.
multi-factor authentication (MFA)
An authentication method that uses two or more different factor types (e.g., something you know and something you have) to verify identity.
attribute-based access control (ABAC)
An access control model that uses attributes of users, resources, and the environment, along with policies, to decide whether access should be granted.

Finished reading?

Test your understanding with a custom practice exam on this chapter.

Test yourself