Skip to main content
← Blog

Compared · CISSP · Security+

DAC vs MAC vs RBAC vs ABAC

Four access control models, one question that separates them: who, or what, decides whether this subject may touch this object?

Published

The short answer: in DAC (discretionary access control) the owner of an object decides who gets access, and can pass it on. In MAC (mandatory access control) the system decides by comparing a subject's clearance with an object's classification label, and users can't change it. In RBAC (role-based access control) permissions belong to job roles, and users get access by being assigned a role. In ABAC (attribute-based access control) a policy evaluates attributes of the subject, the object and the environment (department, classification, time, device) on each request. Exam scenarios almost always contain a single clue word: "owner decides", "labels and clearances", "job function", or "department, time and device".

Side by side

DACMACRBACABAC
Who decidesThe object's ownerA central authority, enforced by the systemAdministrators, by defining rolesAdministrators, by writing policies
Decision based onIdentity on an access listClearance vs classification labelThe user's role(s)Subject, object and environment attributes
Can users pass access on?YesNoNo, only via role assignmentNo, only via attributes and policy
GranularityPer object, per userCoarse: levels and compartmentsPer roleVery fine, context-aware
Typical exampleFile share or file system permissions set by the creatorMilitary classified systems, SELinuxEnterprise apps, cloud IAM roles"Clinicians in this ward, on shift, from a managed device"
Main weaknessTrojan horses and over-sharingRigid, costly to administerRole explosionComplex policies and attribute management

DAC: the owner decides

NIST's glossary describes DAC as leaving access control "to the discretion of the object's owner": the owner "can determine who should have access rights to an object and what those rights should be." The SP 800-53 definition adds the part that matters for security: a subject that has been granted access can pass the information on, grant its privileges to others, and change security attributes.

That flexibility is DAC's weakness. Any program a user runs acts with that user's rights, so a Trojan horse can copy the owner's confidential file somewhere an attacker can read it, and DAC sees nothing wrong. Ordinary file-system permissions on Windows and Linux, and a shared drive where whoever creates a folder chooses who can edit it, are DAC.

MAC: the system decides, using labels

In MAC, "access control policy decisions are made by a central authority, not by the individual owner of an object", and users can't change access rights. Subjects carry clearances, objects carry classification labels, and the system compares them. Labels usually include both a level (Secret, Top Secret) and compartments; to read an object you need a high enough level and membership in every compartment on its label, which is how need to know is enforced.

NIST notes that MAC constrains exactly what DAC permits: a subject can't pass information to unauthorized subjects, grant its privileges, or change security attributes. Confidentiality models such as Bell-LaPadula are formal versions of MAC. On ordinary servers, SELinux is the familiar example: policy confines a process whatever the file ownership says. MAC is a kind of nondiscretionary access control, a term exam options sometimes use instead.

RBAC: permissions follow the job

RBAC attaches permitted actions to roles and assigns users to roles. Move someone from accounts payable to payroll and you change one role assignment instead of dozens of object permissions. Roles can form hierarchies, so a senior role inherits a junior one's permissions, and separation of duties is enforced in the role design: if one person must never both create and approve a payment, those permissions go in roles that can't be held together. Cloud IAM systems, such as Azure RBAC and Google Cloud IAM roles, are RBAC at heart.

RBAC's classic failure is role explosion. When every combination of job, location and customer region becomes its own role, the organization ends up with thousands of near-identical roles that nobody can review.

ABAC: a policy over attributes

NIST SP 800-162, the federal guide to ABAC, defines it as a method where requests "are granted or denied based on assigned attributes of the subject, assigned attributes of the object, environment conditions, and a set of policies that are specified in terms of those attributes and conditions." A single rule can say: a nurse may open a patient record if the nurse's ward matches the patient's ward, the nurse is on shift, and the request comes from a managed workstation.

ABAC is usually built with a policy decision point that evaluates the rules and a policy enforcement point, such as an API gateway, that intercepts each request and enforces the answer. It is the natural fit for zero trust, where every request is evaluated in context. It is also the cure for role explosion: keep a small set of job roles and express the location or region differences as attribute rules.

Don't forget rule-based access control

The abbreviation RBAC is sometimes used for rule-based access control too, and exam writers exploit that. Rule-based control applies global rules to every subject regardless of identity or role, such as a firewall rule or "no access to the payroll server outside 07:00–19:00". If the scenario says the rule applies to everyone whatever their job, it is rule-based, not role-based.

When each model fits

  • Small team, users manage their own documents: DAC.
  • Classified information with clearances and labels, or a confined server process: MAC.
  • A large organization where access tracks job functions: RBAC.
  • Decisions that depend on context: time, location, device health, matching departments: ABAC.
  • RBAC with thousands of roles differing only by location: keep coarse roles, add ABAC rules.

Exam traps

  • "The owner decides" is always DAC. Even if the scenario mentions an administrator elsewhere, the person who creates the object choosing who can use it is discretionary.
  • Labels without clearances. Data classification labels used to choose handling rules aren't MAC on their own. MAC needs the system to enforce access by comparing labels with clearances.
  • Clearance isn't enough. A Top Secret clearance doesn't open a Top Secret object in a compartment you aren't briefed for.
  • Role-based vs rule-based. Job function points to role-based; global conditions applied to everyone point to rule-based.
  • ABAC vs risk-based authentication. Prompting for an extra factor when a sign-in looks risky is adaptive authentication. ABAC is about authorizing access to an object.
  • Why DAC fails against malware. Programs inherit the user's discretion. That is the textbook reason MAC exists.

Practice questions from our bank

One Security+ question and two CISSP questions. Try each before opening the answer.

  1. Question 1 · SY0-701 · Security Operations

    On a shared drive, the person who creates a folder decides which colleagues can read or edit it. Which access control model is this?

    • ADiscretionary access control (DAC)
    • BMandatory access control (MAC)
    • CAttribute-based access control (ABAC)
    • DRole-based access control (RBAC)
    Show answer and explanation

    Answer: A) Discretionary access control (DAC)

    • ADAC lets resource owners grant or restrict access at their own discretion.
    • BMAC uses system-enforced labels that users can't change.
    • CABAC evaluates attributes in policy rules rather than owner choices.
    • DRBAC grants access through roles defined centrally.
  2. Question 2 · CISSP · Identity and Access Management (IAM)

    Under discretionary access control, a manager runs a seemingly harmless utility that, unknown to her, copies a confidential file she owns into a folder an attacker can read. Why does DAC fail to stop this, when mandatory access control would?

    • ADAC has no authentication, so the program runs anonymously, while MAC needs login
    • BDAC keeps rights in capability lists the program can rewrite, while MAC uses labels
    • CDAC checks need to know at login, while MAC checks it at each file access
    • DThe program runs with her rights and DAC lets her share, but MAC labels block it
    Show answer and explanation

    Answer: D) The program runs with her rights and DAC lets her share, but MAC labels block it

    DAC lets programs act with the user's discretion to share, so Trojan horses can leak data; MAC enforces labels the user and her programs cannot override.

    • ABoth models assume authenticated users. The problem is not anonymity but that the program acts with the manager's own authority, which DAC trusts.
    • BDAC is usually implemented with access control lists on objects. In any case, the program did not need to rewrite permissions; the owner's own rights allowed the copy.
    • CBoth models make decisions when objects are accessed. The difference is who controls the policy: the owner under DAC, the system under MAC.
    • DUnder DAC an owner may grant or copy access at will, and a program she runs inherits that discretion. Under MAC the system enforces labels, and rules such as Bell-LaPadula's star property (no write down) stop data moving to a lower-labeled location.
  3. Question 3 · CISSP · Identity and Access Management (IAM)

    A bank's RBAC model has grown to over 9,000 roles, many differing only by branch location or customer region, and role reviews have become unmanageable. What is the MOST effective design change?

    • AGrant permissions to each user directly so that roles are no longer needed
    • BMerge similar roles into broad roles that include every branch's access
    • CKeep coarse job roles and express location differences as attribute rules
    • DReview the roles less often so that the review workload becomes manageable
    Show answer and explanation

    Answer: C) Keep coarse job roles and express location differences as attribute rules

    Role explosion happens when contextual differences are encoded as separate roles; a hybrid model keeps coarse roles and uses attributes for context.

    • ADirect assignment removes roles but multiplies the administrative burden and audit difficulty, which is the problem RBAC was adopted to solve.
    • BBroad roles reduce the count but give users access to branches and regions they do not need, violating least privilege.
    • CA hybrid RBAC/ABAC model keeps a manageable set of job roles and uses attributes (branch, region) in policy rules for the contextual differences. This shrinks the role count while preserving least privilege.
    • DReviewing less often reduces effort by reducing assurance. It treats the symptom and leaves the flawed role design in place.

Where this comes up on the exams

CISSP covers access control models in Identity and Access Management, and expects you to reason about their weaknesses (Trojan horses, role explosion) and how to combine them. Security+ SY0-701 asks you to recognize each model from a short scenario, in security operations and in the general security concepts behind zero trust.

Related: the formal confidentiality and integrity models behind MAC are in Bell-LaPadula vs Biba.

Sources

Definitions checked against NIST on November 14, 2026.

Frequently asked questions

What is the difference between DAC and MAC?

In DAC the owner of an object decides who can access it and can pass access on. In MAC a central authority sets the policy and the system enforces it by comparing subject clearances with object labels; users can't change access rights.

What is the difference between RBAC and ABAC?

RBAC grants permissions through job roles assigned to users. ABAC evaluates a policy over attributes of the subject, the object and the environment, such as department, classification, time and device, on each request.

What is role explosion and how do you fix it?

Role explosion is when contextual differences such as location or region are encoded as separate roles, leaving thousands of near-identical roles. The usual fix is a hybrid: keep coarse job roles and express the differences as attribute-based rules.

Is rule-based access control the same as role-based access control?

No. Role-based control grants access by job role. Rule-based control applies global rules, such as time-of-day or firewall rules, to every subject regardless of role.

Why is DAC vulnerable to Trojan horses?

Programs a user runs act with that user's rights, and DAC lets the owner copy and share data freely, so a malicious program can leak data. MAC blocks this because labels are enforced by the system and can't be overridden by the user or her programs.