PasswordGeeks
Cybersecurity Fundamentals · Lesson 8

Authentication, Authorization and Accounting (AAA)

Learn the three security questions every protected system needs to answer: Who are you? What are you allowed to do? and What did you do? AAA is the foundation of identity and access control across cybersecurity.

Lesson 8 of 9 Module 1 · Introduction to Cybersecurity Includes Quiz
01 · Start Here

What is AAA?

AAA stands for Authentication, Authorization and Accounting — a fundamental security framework used to control access to systems and resources and to keep a record of activity.

AAA is not a single product. It is a way of thinking about access control. A secure system needs to establish a user's identity, determine the permissions associated with that identity, and maintain useful records of what happened.

The easiest way to remember AAA:
Authentication = Who are you?
Authorization = What are you allowed to do?
Accounting = What did you do?
02 · Core Model

The three parts of AAA

A

Authentication

Verifies that a user, device or system is really who or what it claims to be.

A

Authorization

Determines which resources and actions an authenticated identity is permitted to access.

A

Accounting

Records activity such as logins, sessions, commands, resource usage and other security-relevant events.

These functions are closely related but they are not interchangeable. A person can successfully authenticate and still be denied access to a resource because they do not have the required authorization.

03 · Identity

1. Authentication — Who are you?

Authentication is the process of verifying identity. Before a system can decide what someone is allowed to access, it needs confidence about who is making the request.

Common authentication methods include passwords, PINs, hardware security keys, authenticator applications, smart cards, certificates and biometrics.

Example: logging into a company laptop

You enter your username and password. The operating system checks the supplied credentials against an identity system. If they are valid, the system has authenticated you.

Important: Authentication does not mean the user can automatically access everything. It only establishes the identity that the system will use when making authorization decisions.

Authentication is used everywhere

  • Logging into Windows or Linux
  • Signing into an email account
  • Accessing a VPN
  • Connecting to a corporate Wi-Fi network
  • Accessing cloud applications
  • Connecting to network devices such as routers and switches
  • Signing into a banking or shopping application
04 · Evidence

Authentication factors

Authentication becomes stronger when systems use different categories of evidence rather than relying on one secret.

Factor Meaning Examples
Something you knowA secret stored in your memoryPassword, PIN, passphrase
Something you haveA physical or digital object you possessSecurity key, smart card, authenticator app, token
Something you areA biometric characteristicFingerprint, face, iris
Somewhere you areA location-based conditionApproved geographic location or network
Something you doA behavioral characteristicTyping or interaction patterns

Not every system uses every factor. The appropriate combination depends on risk, usability, cost and the sensitivity of the resource being protected.

05 · Stronger Auth

Multi-Factor Authentication (MFA)

MFA requires two or more authentication factors from different categories. The goal is to reduce the damage caused when one authentication factor, such as a password, is compromised.

For example, a user may provide a password and then approve a sign-in with an authenticator application or use a hardware security key.

1

Enter your username

The application identifies the account being used.

2

Provide the first factor

For example, a password or passphrase.

3

Provide another factor

For example, a security key, authenticator approval or biometric factor.

4

Authentication succeeds

The system can now create an authenticated session and apply authorization policies.

See also the PasswordGeeks guide to password managers for a broader look at password security and credential management.

06 · Permissions

2. Authorization — What are you allowed to do?

Authorization happens after identity has been established. It determines which resources an authenticated user, device or application can access and which actions it can perform.

Authorization decisions can be based on roles, groups, resource ownership, security policies, device status, location and other contextual information.

A simple example

Imagine three employees have authenticated into a company's file server:

  • Employee: Can read files in their department's shared folder.
  • Manager: Can read and modify department files.
  • Administrator: Can manage accounts, permissions and system configuration.

All three users may successfully authenticate. Their different permissions are an authorization decision.

Remember: Authentication answers "Who are you?". Authorization answers "What can you do?".
07 · Access Models

Common authorization and access-control models

Role-Based Access Control (RBAC)

Permissions are assigned to roles, and users receive those roles. For example, a help-desk role might be allowed to reset passwords but not modify firewall policies.

Attribute-Based Access Control (ABAC)

Access decisions can use attributes such as the user's department, device security state, resource classification, time or location.

Discretionary Access Control (DAC)

The owner of a resource can generally determine who can access it. File permissions on many operating systems provide familiar examples.

Mandatory Access Control (MAC)

Access is governed by centrally defined security labels and policies. Users cannot simply override the rules because they own the resource.

Least privilege

Regardless of the access-control model, a key security principle is least privilege: give an identity only the access required to perform its legitimate task.

08 · Visibility

3. Accounting — What did you do?

Accounting is the process of recording and tracking activity. In many modern security environments, this function overlaps with auditing and security logging.

Accounting data can help organizations understand who accessed a system, when a session occurred, what resources were used and what actions were performed.

Examples of accounting information

  • Login and logout timestamps
  • Source IP address
  • Session duration
  • Commands executed
  • Resources accessed
  • Files transferred
  • Network or service usage
  • Authentication failures
  • Administrative changes
AAA accounting security audit logs diagram

Audit Trail Example
File: images/aaa-accounting-audit-logs.png

Why accounting matters

Imagine an administrator account makes a major configuration change at 2:15 AM. Without useful logs, an investigator may have no reliable way to determine who made the change or what happened immediately before it.

With good accounting and centralized logging, analysts can correlate events and reconstruct a timeline. This is especially important for security monitoring and incident response.

09 · Full Flow

How AAA works together

AAA is easiest to understand when you follow a complete access request from beginning to end.

1

A user requests access

The user attempts to access an application, server, VPN, wireless network or network device.

2

Authentication occurs

The system verifies the user's identity using one or more authentication factors.

3

Authorization is evaluated

The system checks roles, permissions and security policies to determine what the authenticated identity may do.

4

Access is allowed or denied

The requested action is permitted only when the applicable authorization policy allows it.

5

Activity is recorded

Relevant events are logged so they can support monitoring, auditing, troubleshooting and investigations.

AAA authentication authorization accounting access control flow

Access Control Flow
File: images/aaa-access-control-flow.png

10 · Network AAA

AAA in network security

AAA is particularly important in network environments where many users and administrators need controlled access to routers, switches, VPNs, wireless networks and other infrastructure.

Instead of storing a separate local username and password on every network device, an organization can use a centralized AAA service. Network devices communicate with that service when users attempt to authenticate.

Example: administrator access to a router

  1. An administrator connects to the router.
  2. The router asks for authentication credentials.
  3. The credentials are checked against a centralized AAA service.
  4. The administrator is assigned an appropriate authorization level.
  5. The session and administrative activity can be recorded.

This centralized approach makes access control easier to manage and can provide better visibility than relying entirely on local accounts.

11 · Protocols

RADIUS vs TACACS+

Two important protocols you will encounter when learning network AAA are RADIUS and TACACS+.

Feature RADIUS TACACS+
Common useNetwork access, VPN and wireless authenticationNetwork device administration and centralized access control
TransportUDPTCP
AuthorizationSupported through attributes and policyStrong separation of authentication, authorization and accounting
Command authorizationLess granular for device administrationCan support granular control over administrative commands
Typical environmentEnterprise Wi-Fi, VPN and network accessAdministrative access to routers, switches and other network devices

These protocols are not interchangeable in every deployment. The appropriate choice depends on the type of access being controlled and the organization's architecture.

12 · Threat Landscape

Common attacks against AAA systems

Because AAA protects access to valuable systems, attackers frequently target authentication and authorization mechanisms.

Password attacks

Brute force, password spraying, credential stuffing and phishing can compromise authentication secrets.

Session attacks

Attackers may attempt to steal or abuse authenticated sessions instead of directly obtaining a password.

Privilege escalation

An attacker who gains a low-privilege account may attempt to obtain permissions intended for administrators.

Account takeover

Compromised credentials can allow an attacker to operate as a legitimate user.

Broken authorization

A software flaw may allow a user to access resources or functions they were never authorized to use.

Insider abuse

A legitimate user may misuse authorized access to steal information or alter systems.

For a broader introduction to these threats, continue with the PasswordGeeks guide to Types of Cybersecurity Attacks.

13 · Defensive Playbook

AAA security best practices

  • Use strong, unique passwords and passphrases.
  • Enable MFA for important accounts whenever possible.
  • Apply least privilege and avoid unnecessary administrator access.
  • Use role-based permissions where appropriate.
  • Remove or disable unused accounts.
  • Review privileged accounts regularly.
  • Centralize authentication and authorization where practical.
  • Protect administrative interfaces with strong authentication.
  • Collect and protect authentication and administrative logs.
  • Monitor failed logins, unusual access and privilege changes.
  • Synchronize system clocks so security events have reliable timestamps.
  • Keep AAA servers and related infrastructure patched and securely configured.
Security principle: A successful login should never be treated as proof that the user should have unlimited access. Authentication and authorization must remain separate decisions.
14 · Practice

Hands-on AAA practice

You can understand AAA much faster by seeing it in a controlled lab environment.

Lab 1 — Linux users and permissions

Create multiple test users and groups on a Linux virtual machine. Give each group different file permissions and observe the authorization differences.

Lab 2 — Investigate authentication logs

Generate successful and failed login attempts in a lab and inspect the relevant Linux or Windows logs. Identify usernames, timestamps, source information and results.

Lab 3 — Network device AAA

In a legal lab environment, explore centralized AAA concepts using a network simulator or virtual network infrastructure. Compare local authentication with centralized authentication.

Lab 4 — Connect AAA to SOC monitoring

Forward authentication and authorization events into a SIEM such as Splunk or Wazuh. Create a simple detection for repeated failed logins or an unusual privileged login.

Continue with the SOC module

See how AAA events feed into real SIEM detection, alert triage and incident investigations.

Explore SOC Module →
15 · Learning Path

Where AAA fits in your cybersecurity learning path

AAA should be learned early because identity and access control appear throughout cybersecurity.

1

Learn networking

Understand IP addresses, ports, protocols, routers, switches and network services.

2

Learn authentication

Understand credentials, authentication factors, MFA and identity verification.

3

Learn authorization

Study permissions, RBAC, least privilege and access-control models.

4

Learn accounting and logs

Understand how authentication and administrative activity becomes security evidence.

5

Apply it to security operations

Use AAA events in SIEM monitoring, alert triage and incident investigations.

If you are following the PasswordGeeks course, this lesson naturally connects the Networking for Cybersecurity fundamentals with later topics such as defensive security, SOC monitoring and incident response.

16 · Frequently Asked Questions

AAA FAQ

Is AAA a protocol?

No. AAA is a security framework or model describing three related functions. Protocols such as RADIUS and TACACS+ can be used to implement AAA services in network environments.

What is the difference between authentication and authorization?

Authentication verifies identity. Authorization determines what that authenticated identity is allowed to access or do.

Does authorization happen before authentication?

In the normal AAA access flow, authentication establishes the identity first and authorization then evaluates permissions for that identity. Some modern systems can perform additional policy checks throughout a session.

Is a password authentication?

A password is an authentication factor, specifically something you know. Authentication is the broader process of verifying identity using one or more factors.

Why is accounting important to cybersecurity?

Accounting creates useful records of activity. These records support monitoring, troubleshooting, compliance, auditing and incident investigations.

What are RADIUS and TACACS+ used for?

Both can support centralized AAA in network environments. RADIUS is widely used for network access such as wireless and VPN authentication, while TACACS+ is commonly associated with administrative access to network devices.

Does MFA replace authorization?

No. MFA strengthens authentication. Authorization is still required to determine which resources and actions the authenticated user can access.

17 · Knowledge Check

Test your understanding

Answer all 5 questions below. If you get one wrong, don't worry — you'll get another chance to pick the correct answer. This chapter is only marked complete when all 5 answers are correct.

Solved: 0 / 5 · Not yet complete
QUESTION 01 / 05

What does AAA stand for in cybersecurity?

QUESTION 02 / 05

What is the main purpose of authentication?

QUESTION 03 / 05

Which of these is an example of the "something you have" authentication factor?

QUESTION 04 / 05

Which AAA function determines what an authenticated user is allowed to do?

QUESTION 05 / 05

What is the main difference between RADIUS and TACACS+?

Chapter Complete

0 / 5
Correct Answers

All 5 questions solved. This chapter is now marked complete in Module 1.

Continue Learning

Related PasswordGeeks lessons

Core Security Principles

Learn the five foundational principles that underpin every secure system.

Explore Principles →

Networking for Cybersecurity

Build the networking foundation behind AAA and network security.

Explore Networking →

Types of Cybersecurity Attacks

Understand the attacks that target credentials, identities and systems.

Explore Attacks →

Defensive Security

Learn how security teams protect systems, monitor activity and respond to incidents.

Explore Defensive Security →