Security Architecture · Topic 8 of 12

Authorization and Privileged Access

Compare DAC, MAC, RBAC and ABAC, apply least privilege and separation of duties, and secure privileged accounts with PAM and just in time access.

  • 4 min
In a nutshell
  • DAC lets owners decide, MAC uses labels set by the system, RBAC uses roles, ABAC uses attributes.
  • ABAC supports context such as device, time and data sensitivity.
  • Least privilege, separation of duties and need to know limit damage and abuse.

What it is

Authorization decides what an authenticated identity may do. A sound design grants only what is needed, for only as long as needed, and proves later that it did so.

Privileged accounts, such as domain administrators and cloud root users, can change or disable every other control. They therefore get stronger protection and closer watching than ordinary accounts.

IdentityPolicy decisionmodel and rulesPermissionleast privilegeResourceAudit log

How it works

Access control models

ModelWho decidesHow access is decidedTypical use
Discretionary access control (DAC)The resource ownerOwner grants permissionsFile shares, common operating systems
Mandatory access control (MAC)The system, using labelsSubject clearance versus object labelHigh security and government settings
Role based access control (RBAC)AdministratorsPermissions attach to roles, users get rolesMost enterprise applications
Attribute based access control (ABAC)A policy engineRules over user, resource, action and environment attributesFine grained, dynamic decisions
Rule based access controlThe systemFixed rules, such as a time window or address rangeFirewall style rules

RBAC is easy to audit but can suffer role explosion when needs are very specific. ABAC handles context such as time, device health or data sensitivity, but policies are harder to write and test. A hybrid design uses roles for the base and attributes for exceptions.

Core principles

Least privilege gives only the minimum permissions for the task. Separation of duties splits a sensitive process among several people, such as one who requests a payment and another who approves it.

Need to know limits access to information to those whose work requires it. Together they limit insider abuse and the damage of a stolen account.

Account life cycle

The joiner, mover and leaver pattern describes changes in a person's relationship with the organization. Joiners get access for their role, movers must lose old access when they change role, and leavers must be removed at once. Movers are the classic gap, because accumulated permissions create privilege creep.

Access reviews, also called recertification or attestation, ask managers or owners to confirm periodically that each person's access is still needed. Identity governance tools automate the campaign and record the evidence.

Privileged access management

Privileged access management (PAM) controls, protects and records the use of powerful accounts.

  • Vaulting: admin passwords and keys sit in a vault, checked out for a session, then rotated.
  • Just in time (JIT) access: privileges are granted for a short window on request and then removed, so standing privilege is minimized.
  • Approval workflows: high risk access needs a second person.
  • Session recording and monitoring: commands and screens are logged for review.
  • Separate admin accounts: administrators use one everyday account and another for privileged tasks, from hardened workstations.
  • Break glass accounts: emergency accounts are kept sealed, used rarely, and alert when used.
Admin requestApprovalreason and timeVaultcredential checked outRecorded sessionRotate credential

Service accounts, workloads and secrets

Applications and scripts need identities as well. Service accounts should have narrow rights, no interactive login, and owned, rotated credentials. In cloud platforms, workload identities and short lived tokens are better than long lived keys.

A secrets manager stores passwords, keys and tokens, controls who can read them, rotates them, and logs access. Secrets in source code, chat messages or configuration files are a common cause of breaches.

Policy architecture

Large systems separate where policy is decided from where it is enforced. A policy decision point evaluates rules, and a policy enforcement point applies the result at the resource. This split supports consistent policy across many applications and is the basis of zero trust designs.

What to remember for the exam

  • DAC lets owners decide, MAC uses labels set by the system, RBAC uses roles, ABAC uses attributes.
  • ABAC supports context such as device, time and data sensitivity.
  • Least privilege, separation of duties and need to know limit damage and abuse.
  • Movers cause privilege creep unless old access is removed.
  • Access reviews confirm that access is still needed.
  • PAM uses vaulting, JIT access, approval and session recording.
  • Break glass accounts exist for emergencies and must alert on use.
  • Service accounts need narrow rights, rotation and no interactive login.
Exam tip

When a question mentions standing administrator rights that are rarely used, the best answer is just in time elevation with approval and recording.

Common mistakes

Confusing MAC with DAC. In MAC the system enforces labels and users cannot change them. In DAC owners share freely.

Fixing creep by adding roles. Creating a role per person recreates the problem. Review and remove access instead.

Sharing admin credentials. A shared account breaks accountability, so use named accounts and vaulted checkout.

Treating service accounts as exempt. They are often over privileged, never rotated and unowned.

Watch out

A break glass account that nobody monitors is a backdoor, so alert on every use and review it.

Check yourself

Work through these three questions.

  • Which access model makes decisions from user, resource and environment attributes?

    Attribute based access control (ABAC).

  • What problem does just in time access solve?

    It removes standing privilege by granting elevated rights only for a short, approved window.

  • What is privilege creep?

    The buildup of unneeded permissions as people change roles without losing old access.

Topic 8 of 12 in Security Architecture

Test yourself on Security Architecture

The full CompTIA SecurityX CAS-005 question bank has 654 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by CompTIA. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.