Topics in this domain

Access Models: DAC, MAC, RBAC

Access control · 3 min read

Who decides who gets in?

Think about the doors in your life. You decide who gets a copy of your house key. A military base admits you only if your clearance matches the area’s classification. A hospital lets every nurse see patient charts. A shopping centre closes to everyone at 10pm. A smart office lets managers in, on company laptops, during office hours.

Every access model answers one question: who or what decides? Find the decider in the exam scenario and you’ve found the model.

DAC, MAC, RBAC, rule-based and ABAC, with who decides and an everyday example.
ModelHow access is decidedStrengthsWeaknesses
Discretionary (DAC)The resource’s owner grants access at their discretion, usually through access control listsFlexible, simpleInconsistent; owners over-share; malware running as the user inherits their rights
Mandatory (MAC)The system compares the user’s clearance with the object’s labelStrong, central; nobody can overrideRigid, complex to run
Role-based (RBAC)Permissions go to roles; users get roles based on their jobConsistent; easier to administer; supports SoDRole design effort; role explosion; toxic combinations inside roles
Rule-basedGlobal rules apply to everyone, such as “no access outside business hours”Simple, consistentCoarse
Attribute-based (ABAC)Policies weigh attributes of the user, resource, action and environmentFine-grained, dynamicComplex policies; harder to audit

A file whose creator sets its permissions is DAC. MAC is called non-discretionary: neither users nor data owners can change the rules. It’s associated with formal models such as Bell-LaPadula (confidentiality: no read up, no write down) and Biba (integrity: no read down, no write up).

Principles for every model

Least privilege, need-to-know, default deny and segregation of duties.
  • Least privilege: users and processes get only the rights they need for their tasks.
  • Need-to-know: access to information is limited to what the job requires. (Least privilege covers all rights; need-to-know is about information.)
  • Default deny: anything not explicitly allowed is blocked.
  • Segregation of duties: incompatible permissions aren’t given to one person.

RBAC in practice

RBAC is the most common model in organisations. Good practice:

  • build roles from job functions, with business owners approving what each role contains
  • check each role for internal SoD conflicts before using it
  • assign users to roles, not directly to permissions
  • review roles and role membership regularly
  • avoid role explosion: hundreds of narrow, overlapping roles become unmanageable

RBAC doesn’t guarantee segregation of duties by itself. A badly designed role can contain a toxic combination.

Example. An ERP role called “Accounts Payable Clerk” includes both “create vendor” and “release payment”. Every user with that role has a segregation of duties conflict, even though each was given only one role. The fix is in the role design, not the user assignments.

How the exam asks about it

If the question asks…The answer is usually…
Model where the owner decides accessDAC
Model enforced by labels, users can’t changeMAC
Model assigning permissions based on job functionRBAC
Time-of-day restrictions applied to all usersRule-based
Model using user, resource and context attributesABAC
Principle of granting only rights neededLeast privilege

In short

  • Discretionary access control (DAC): the owner of a resource decides who can access it.
  • Mandatory access control (MAC): the system enforces access based on security labels and clearances; users can't change it.
  • Role-based access control (RBAC): permissions are assigned to roles, and users get access through their roles.
  • Rule-based access control applies system-wide rules, such as time-of-day restrictions or firewall rules.
  • Attribute-based access control (ABAC) evaluates attributes of the user, resource and context.
  • Least privilege and need-to-know apply whatever the model.
  • RBAC simplifies administration and supports segregation of duties when roles are designed carefully.

Exam traps

  • MAC is non-discretionary: even the data owner can't override the labels.
  • File permissions set by the file's creator = DAC.
  • Roles can contain toxic combinations; RBAC doesn't guarantee segregation of duties by itself.
  • Role explosion (too many narrow roles) undermines RBAC's benefits.
  • Need-to-know limits information access; least privilege limits all rights.

Slides

Click the slide and use the arrow keys. F toggles full screen.

CISA · Domain 5 · Access control

Access Models: DAC, MAC, RBAC

The different ways systems decide who gets access (by the owner, by labels, by job role, by rules or by attributes), the principles that apply to all of them, and how to spot each one in a scenario.

1 / 8