01 / 20

AAA Framework
Authentication, Authorization, Accounting

Master the three pillars of access control that protect every network, system, and application in modern cybersecurity.

Cyber Security

What Is the AAA Framework?

AAA stands for Authentication, Authorization, and Accounting. It is a security architecture used to control who can access a network, what they can do once inside, and what they did while connected.

The Three Pillars at a Glance

Authentication
"Who are you?" Verifying the identity of a user, device, or system before granting access.
Authorization
"What can you do?" Determining the resources and actions a verified identity is permitted.
Accounting
"What did you do?" Tracking and logging all activities for auditing and forensics.

Why AAA Matters in Cybersecurity

1
Prevents unauthorized access: Only verified users enter the system, reducing breach risk.
2
Enforces least privilege: Users receive only the permissions they need, nothing more.
3
Enables accountability: Detailed logs support incident response, compliance, and forensic investigations.
4
Required by regulations: Standards like HIPAA, PCI-DSS, and SOX mandate AAA controls.

The AAA Process Flow

User / Device request Authentication "Who are you?" Password, MFA, Biometrics verified Authorization "What can you do?" ACLs, RBAC, Policies allowed Account- ing "What did you do?" Access Denied

Deep Dive: Authentication

Authentication answers the question: "Who are you?" It relies on one or more authentication factors to verify identity.

Something You Know
Passwords, PINs, security questions: knowledge-based credentials.
Something You Have
Smart cards, hardware tokens, mobile authenticator apps.
Something You Are
Fingerprints, facial recognition, retina scans: biometric identifiers.

Deep Dive: Authorization

Authorization answers: "What are you allowed to do?" After identity is confirmed, the system checks permissions and policies to determine access rights.

1
Role-Based Access Control (RBAC): Permissions assigned by role (e.g., "Admin", "Editor", "Viewer").
2
Access Control Lists (ACLs): Explicit lists defining which users can access which resources.
3
Attribute-Based Access Control (ABAC): Permissions based on attributes like time of day, location, or device type.

Deep Dive: Accounting

Accounting answers: "What did you do?" It tracks, records, and stores user activities for auditing, compliance, and incident response.

Session Logs
Login time, logout time, session duration, and source IP address.
Resource Access
Files opened, databases queried, and commands executed.
Bandwidth Usage
Data transferred, network traffic volume, and connection statistics.

Authentication vs. Authorization

Authentication Authorization
Question "Who are you?" "What can you do?"
Order Happens first Happens after authentication
Mechanism Credentials (password, MFA) Policies (RBAC, ACLs)
Can change? User can update password Admin controls permissions
Visible to user? Yes (login prompt) Partially (access denied errors)

Common AAA Protocols

RADIUS
Remote Authentication Dial-In User Service. Uses UDP. Encrypts only the password. Widely used for network access (Wi-Fi, VPN).
TACACS+
Terminal Access Controller Access-Control System Plus. Uses TCP. Encrypts the entire payload. Preferred for device administration.
RADIUS TACACS+
Transport UDP (1812/1813) TCP (49)
Encryption Password only Full packet
AAA Separation Combined AuthN/AuthZ Separate processes
Best For Network access Device administration

How to Apply AAA in Practice

1
Identify assets: Determine which systems, data, and networks need protection.
2
Choose authentication methods: Select factors (password, MFA, certificates) based on risk level.
3
Define authorization policies: Create roles and permissions using the principle of least privilege.
4
Configure accounting: Enable logging on all critical systems. Forward logs to a central SIEM.
5
Select a protocol: Deploy RADIUS for network access or TACACS+ for device management.
6
Test and audit: Regularly review logs, test access controls, and update policies.

Example: School Wi-Fi Access

Student Laptop RADIUS Server 1. AuthN: ID + PW 2. AuthZ: Student role School Network No admin access Accounting Log Session tracked

Example: Corporate VPN Login

1
Authentication: Employee enters username + password, then approves a push notification on their authenticator app (MFA).
2
Authorization: The TACACS+ server checks the employee's role. As a "Sales" team member, they can access the CRM and email but not the financial database.
3
Accounting: The system records the login time, IP address, VPN tunnel duration, and every internal resource accessed.

Example: Cloud App with RBAC

AAA Server OAuth 2.0 + RBAC Admin Full access Read + Write + Delete Editor Partial access Read + Write Viewer Read-only Read only Accounting / Audit Trail Every read, write, and delete is logged User ID, timestamp, resource, action, result

Common Mistakes with AAA

✕ Confusing Authentication with Authorization
Logging in (authentication) does not mean you have permission to do everything (authorization). These are separate processes.
✕ Ignoring Accounting
Many focus on AuthN and AuthZ but neglect logging. Without accounting, you cannot investigate breaches or prove compliance.
✕ Over-Privileging Users
Granting admin access "just in case" violates least privilege and massively expands the attack surface.

AAA Summary Table

Authentication Authorization Accounting
Purpose Verify identity Grant permissions Track activity
Key Question "Who are you?" "What can you do?" "What did you do?"
Methods Passwords, MFA, biometrics RBAC, ACLs, ABAC Syslog, SIEM, audit trails
Protocols RADIUS, TACACS+, Kerberos OAuth, SAML, XACML RADIUS acct, NetFlow, syslog
Failure Impact Unauthorized user enters User accesses forbidden data No evidence for forensics

Question 1 of 5

Which component of the AAA framework is responsible for verifying a user's identity?

Question 2 of 5

A company uses RBAC to control access. An employee with the "Sales" role tries to access the HR payroll database and is blocked. Which AAA component denied the request?

Question 3 of 5

Which AAA protocol encrypts the entire packet and uses TCP for reliable delivery?

Question 4 of 5

A user logs into a system with their fingerprint and a one-time code from an authenticator app. What type of authentication is this?

Question 5 of 5

After a security breach, investigators need to determine which files the attacker accessed and when. Which AAA component provides this information?