Lesson 2 of 2 Access Control Models

Role-Based, Rule-Based and Attribute-Based Access Control

Most organisations manage access through roles, apply global rules and increasingly use attributes and context. This lesson explains role-based access control and privileged access management, rule-based access control and attribute-based access control.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain role-based access control and its benefits.
  • Describe privileged access management controls.
  • Explain rule-based access control.
  • Explain attribute-based access control and choose an appropriate model.

Role-based access control

In role-based access control (RBAC), permissions are assigned to roles that correspond to job functions, such as Accounts Payable Clerk or Help Desk Technician, and users are assigned to roles. A user's access is the combination of the permissions of their roles. When someone joins, they receive the role for their job; when they move, they change role and their access changes with it.

RBAC simplifies administration in organisations where many people share job functions, makes access consistent and auditable, and supports least privilege. It also supports separation of duties: the system can prevent one user from holding two conflicting roles, such as creating and approving payments. Its challenges are role explosion, when too many narrow roles are created, and keeping role definitions current. Access can be analysed from the subject side (what can this user reach?) or the object side (who can reach this resource?); both views are useful in reviews.

Privileged access management

Administrative roles carry the highest risk, so they receive extra controls through privileged access management (PAM). Privileged credentials, such as domain administrator and root passwords, are stored in a vault and checked out when needed, with automatic rotation afterwards. Just-in-time elevation grants privileges only for an approved period instead of permanently. Session management brokers administrative connections so that users never see the password, and records sessions for review. Break-glass emergency accounts are tightly controlled and their use alerts the security team.

Administrators also use separate accounts for privileged work and for everyday tasks such as email and browsing, so that a phishing attack on their everyday account does not yield administrative rights.

Match the pairs

PAM features

Exam skills 2.4.3

Match each privileged access management feature with what it provides.

Log in to try this activity Interactive activities are free with an account.

Rule-based access control

Rule-based access control applies rules set by administrators to every subject, regardless of identity or role. Firewall and router ACLs are the classic example: "deny all inbound traffic except TCP 443 to the web server" applies to everyone. Other examples are time-of-day restrictions (no logins between 22:00 and 06:00), location rules and limits on the number of concurrent sessions.

Rule-based control is often layered on other models: RBAC decides what a user may do, and rules decide when or from where. Note that the abbreviation RBAC can mean either role-based or rule-based, so read exam questions carefully.

Attribute-based access control

Attribute-based access control (ABAC) evaluates a policy using attributes of four things: the subject (department, job title, clearance, training completed), the object (classification, owner, data type), the action (read, edit, approve) and the environment (time, location, device health, threat level). A policy might state: allow a clinician to read a patient record if the patient is assigned to the clinician's ward, during the clinician's shift, from a managed device.

ABAC is very fine-grained and adapts to context, which suits zero trust and cloud environments, where cloud IAM policies with conditions are a form of ABAC. Its drawbacks are complexity: policies can be hard to design, test and audit, and attributes must be accurate. NIST SP 800-162 describes ABAC. The following comparison summarises the three models in this lesson.

Role-based
Decision based onThe user's roles
ExamplePayroll clerks can edit payroll records
StrengthSimple administration; SoD
WeaknessRole explosion
Rule-based
Decision based onGlobal rules for all subjects
ExampleNo access outside 07:00 to 19:00
StrengthConsistent, easy to understand
WeaknessNot identity-aware
Attribute-based
Decision based onAttributes of subject, object, action and environment
ExampleClinicians may read records of patients on their ward during their shift
StrengthFine-grained, context-aware
WeaknessComplex to design and audit

The following diagram shows the attributes on which a bank's access rule for client files depends.

Why the bank's rule needs attribute-based access control. Whether a relationship manager may view a client file depends on the subject's assignments, the object's assigned manager and staff flag, and the environment's network or device. RBAC alone would let every relationship manager see every client file.
The scenario is illustrative.
Sort into groups

Which model?

Exam skills 2.4.3 · 2.4.4 · 2.4.5

Classify each access rule by the model it uses.

Log in to try this activity Interactive activities are free with an account.
Worked example

Choosing a model

A bank wants to allow relationship managers to view client files only for clients assigned to them, only from the office network or a managed laptop, and never for clients flagged as staff members. Which model fits best?

Attribute-based access control. The decision depends on attributes of the subject (the manager's assignments), the object (the client's assignment and staff flag) and the environment (network or device). RBAC alone would give every relationship manager access to all client files.

Worked example

Permanent domain administrators

Twelve IT staff are permanent members of the Domain Admins group and use those accounts for everyday work, including email. What improvements should be made?

Apply privileged access management: give each administrator a separate privileged account used only for administration, reduce permanent membership of Domain Admins to a minimum or none, grant just-in-time elevation with approval for specific tasks, vault and rotate privileged credentials, require phishing-resistant MFA, and record and review privileged sessions.

Check yourself

Which access control model is a firewall rule set, and why?

Show answer

Rule-based access control: the rules apply to all traffic and subjects regardless of identity or role.

Exam Tips

Remember for the exam

  • Job functions: RBAC. Global conditions: rule-based. Context and attributes: ABAC.
  • PAM: vaulting, just-in-time elevation, session recording, separate admin accounts.
  • RBAC can enforce separation of duties by blocking conflicting roles.