AAA Framework
Authentication, Authorization, Accounting
Master the three pillars of access control that protect every network, system, and application in modern cybersecurity.
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
Why AAA Matters in Cybersecurity
The AAA Process Flow
Deep Dive: Authentication
Authentication answers the question: "Who are you?" It relies on one or more authentication factors to verify identity.
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.
Deep Dive: Accounting
Accounting answers: "What did you do?" It tracks, records, and stores user activities for auditing, compliance, and incident response.
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 | 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
Example: School Wi-Fi Access
Example: Corporate VPN Login
Example: Cloud App with RBAC
Common Mistakes with AAA
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?