Rule-based access control is the access control model in which an administrator writes one rule for everyone, and the rule reads a condition, never a name. A firewall that blocks a port for all traffic, or a system that refuses every sign-in overnight, is rule-based control at work. The system checks the condition in the rule, such as the time of day, and applies the same outcome to whoever is asking.
A rule is simple to write and applies to every subject alike. But a rule that never reads who is asking cannot tell a payroll analyst from a contractor, so rule-based control is usually one layer inside a larger scheme. It also shares its abbreviation, RBAC, with role-based access control, and the two are easy to confuse.
Rule-based access control is one of the authorization mechanisms the ISC2 exam outline lists for CISSP Domain 5, Identity and Access Management, under objective 5.4, “Implement and manage authorization mechanisms”. This guide follows one request through a rule-based decision, shows what the rule reads and what it ignores, and compares rule-based control with its nearest neighbour, role-based access control. For a short definition, see the glossary entry for rule-based access control.
What is rule-based access control?
Every access control model answers the same question once a person has signed in: authentication has proved who they are, so now, what may they do? The person or program asking is the subject, what they want to do is the action, and the thing they want is the object, such as a file, a record or a system.
Under rule-based access control, an administrator sets rules that apply to every subject alike. A rule is a condition and an outcome, written once: if the condition holds, the outcome follows, whoever is asking. The condition can be the time of day, a port, a protocol or a source address, never the identity of the person.
The ISC2 exam outline names rule-based access control but does not define it. Its meaning rests on the common CISSP study guides, which describe a set of rules applied to all subjects regardless of identity, with a firewall rule set and time-of-day restrictions as the usual examples. Two properties follow:
- One rule for everyone. It applies to every matching request. No user can override it, and no owner can grant an exception.
- It reads a condition, never a name. The rule looks at a property of the request, such as the clock, so a person’s name never appears in it.
A useful way to hold every access control model in your head is to ask two questions: who sets the rule, and what does the system read when it decides? For rule-based control the answers are an administrator, and the condition.
One request under rule-based access control
Take one request in a sample company, Harbourline Insurance (a fictitious organisation, used throughout this series). Asha Mehta, a payroll analyst, asks to read the payroll report, payroll-Q3.xlsx, at 10:15 on a Tuesday, from a managed laptop, in the office. The administrator has written one rule for the Finance files:
No access to Finance files between 20:00 and 07:00.
When Asha asks, the system reads two things: the file, to see whether the rule covers it, and the clock. The payroll report is a Finance file and 10:15 is outside the window, so the rule allows her.
What the system does not read matters just as much. Asha’s identity, the action, her device and her place are all part of the request, and the rule looks at none of them.
The same person, a different hour
Two days later Asha asks at 02:40, from an unmanaged device, in a country she has never signed in from. The rule ignores the device and the country, because neither is in it. What decides is the clock: 02:40 is inside the window, so the rule denies her. Had she asked at 07:01, the rule would have allowed her, unmanaged device and all. Models that weigh the device and the place, such as risk-based access control, exist partly for that reason.
A different person, the same answer
Now another colleague, Daniel Smith, an IT support contractor, asks for the payroll report at 11:05, from a managed laptop, in the office. The person has changed, but the rule never reads a name. 11:05 is outside the window, so the rule allows Daniel’s request too.
The rule does not block Daniel, which is not the same as Daniel being permitted to see payroll. Nothing in a time-of-day rule decides whether an IT contractor should read payroll data at all; some other layer has to answer that.
| Request | Person | Time | Device and place | Rule-based answer |
|---|---|---|---|---|
| 1 | Asha Mehta | 10:15, Tuesday | Managed laptop, office | Allowed: 10:15 is outside 20:00 to 07:00 |
| 2 | Asha Mehta | 02:40, two days later | Unmanaged device, new country | Denied: 02:40 is inside the window |
| 3 | Daniel Smith | 11:05 | Managed laptop, office | Allowed: the rule does not block him |
How a rule is built
Every rule has a condition, which describes the requests it applies to, and an outcome, usually allow or block. The system evaluates the condition against each request without consulting any list of names. A firewall, a device that allows or blocks network traffic by rule, shows this most clearly: each of its rules names conditions such as the source address, the destination port and the protocol. One rule might allow traffic to the web server on port 443, and a final rule block everything else: the principle of implicit deny. A time-of-day restriction works the same way: “no sign-in between 22:00 and 06:00” has a condition (the clock) and an outcome (refuse), and it applies to every account alike.
Where rule-based access control is used
- Firewall rule sets, which allow or block traffic by address, port and protocol, whoever sent it. A packet-filtering firewall works at exactly this level.
- Network access control lists on network devices, which filter traffic by the same conditions.
- Time-of-day restrictions, such as sign-in windows or a system that closes to all users overnight.
The weaknesses of rule-based access control
Not identity-aware, and coarse on its own
A rule-based control cannot say “Asha may, Daniel may not”, because no name can appear in the rule. One rule for everyone means one answer for everyone, so if two teams need different windows the administrator needs more rules, each still blind to who is asking. It suits broad boundaries, such as which ports are open, far better than decisions about individual people.
One layer, not the whole scheme
So rule-based control tends to work as a building block: a firewall in front of systems whose own access is decided by role, or a time-of-day limit on an application that already checks who is asking. Most organisations run a blend of models, in line with defence in depth, and rule-based control is usually one layer rather than the one that decides who may see a file.
The trap in the abbreviation
Rule-based and role-based access control are both shortened to RBAC. On its own, RBAC is far more likely to mean role-based, and a rule-based option is likely to sit beside it as a distractor. Read the stem for a role, or for a condition that applies to everyone.
Is it a form of MAC?
Some study guides treat rule-based control as a form of mandatory access control, or place it under non-discretionary access control, because the rules are set centrally and no user can override them; other sources use “non-discretionary” mainly for role-based control. The ISC2 exam outline lists rule-based access control as its own member, separate from MAC. The overlap is limited: rule-based control shares MAC’s central, non-overridable quality, but it does not compare a label on the file with a clearance held by the person.
Rule-based vs role-based access control
Rule-based control’s nearest neighbour is role-based access control. Both are set by an administrator, so the difference that separates them is what the decision reads.
| Rule-based access control | Role-based access control | |
|---|---|---|
| Who sets the rule | An administrator, one rule for everyone | A central administrator, who defines roles and puts people in them |
| What the decision reads | A condition of the request, such as the time or the port | The role the person has been put in, and whether its permissions include this action on this file |
| Does the person matter? | Never: no name or role appears in the rule | Yes, through the role the person holds |
| What changes the answer | The condition in the request, or an edit to the rule | Moving the person to another role, or changing the role’s permissions |
| Typical setting | Firewalls, network filters, time-of-day limits | Enterprise applications, staff organised by job |
| Main weakness | Not identity-aware, and coarse on its own | Role explosion when access depends on many conditions |
In the NIST RBAC model (Ferraiolo and Kuhn, 1992) and ANSI INCITS 359-2004, permissions are assigned to roles and people to roles. Run the requests under it. Asha holds Payroll Analyst, which carries read on the payroll report, so she is allowed at 10:15, and also at 02:40, because the role does not read the time. Daniel holds IT Support, which carries no permission on the payroll report, so he is refused.
The two models give opposite answers on requests 2 and 3: the rule stopped Asha at 02:40 and let Daniel through, and the role did the reverse. Each reads what the other ignores, which is why organisations combine them.
Rule-based vs ABAC
The clock is also an environment attribute in attribute-based access control (ABAC). The difference is what the condition can see. A rule reads one condition for everyone; an ABAC policy, as NIST SP 800-162 (2014) describes it, combines attributes of the subject, the object, the action and the environment, so it can answer different people differently. A policy that admits only Finance staff, cleared to the file’s label, on a managed device between 07:00 and 20:00 refuses Daniel at 11:05 on his department and clearance, and Asha at 02:40 on her device and the time. The rule alone catches only the second.
How a CISSP scenario may test rule-based access control
Questions on access control models tend to hide the answer in a phrase about what the system checks:
- A control applies to all users regardless of who they are. That points towards rule-based access control.
- A firewall allows or blocks traffic by address, port or protocol, or nobody can sign in outside certain hours. Both are the usual examples of rule-based control.
- The option says RBAC. On its own it is far more likely to mean role-based; check the stem for a role or for a condition that applies to everyone.
- Access follows a job title or department. That is role-based, however many rules are mentioned.
- A contractor passes a rule and reaches data he should not see. A scenario like this is likely to be testing the identity-blind limit, and the better answer usually adds a layer that reads who is asking.
If the two questions return an administrator and a condition that applies to everyone, the model is rule-based.
Conclusion
Rule-based access control applies one rule to every subject alike. An administrator writes a condition and an outcome, and the system reads the condition, never the name of the person asking. That makes it simple and predictable, with one limit to remember: a rule that does not block someone has not permitted them, so rule-based control is usually one layer of a larger scheme.
Ready to test that under exam conditions? Our LSM CISSP practice tests are built around scenario questions like these: telling rule-based from role-based control when both are written as RBAC, and choosing the control that fits the organisation, with full explanations for every answer.
Quick reference for the CISSP exam
Rule-based access control applies one rule, set by an administrator, to every subject alike, and reads a condition, never a name.
Rule-based access control defined
- Who sets the rule: an administrator, one rule for everyone.
- What the decision reads: a condition, such as the time, the port, the protocol or the source address.
- What it does not read: the person’s name, role or department.
- Usual examples: firewall rule sets and time-of-day restrictions.
- Source of the meaning: named in the ISC2 exam outline (objective 5.4) but not defined there; the common CISSP study guides supply it.
The rule-based vs role-based discriminator
- Rule-based: reads a condition for everyone; the answer never depends on who the person is.
- Role-based: reads the role the person has been put in; the answer changes when the person changes role.
The traps
- Both are shortened to RBAC, and RBAC on its own is far more likely to mean role-based.
- A rule that does not block someone has not permitted them.
- Some study guides treat rule-based control as a form of MAC or of non-discretionary control; the ISC2 exam outline lists it as its own member.