Choosing an Access-Control Model
Subjects, objects, and operations; role-based, rule-based, discretionary, and mandatory access control; Bell-LaPadula; and least privilege.
1Subjects, objects, operations
Access control enforces which users or applications (subjects) can access, modify, add, or remove (operations) which files or applications (objects). An access control model is the method for deciding which subjects get which operations on which objects. Four models differ in who makes that decision and what it is based on.
2Role-based access control (RBAC)
RBAC assigns every subject to a role and defines which roles have which access to which objects. Permissions attach to the role, not the person. If “accountant” is a role and the payroll software is an object, only subjects assigned to “accountant” can use the payroll software. When someone changes jobs, an administrator changes their role and every permission follows.
3Rule-based access control (RuBAC)
RuBAC checks a set of rules to decide what access a subject has to an object, and allows or denies based on those rules. It is usually layered on top of another model. For example, a rule can block everyone, even people who normally have access, from a database outside local working hours.
| User | Role | Object | Time | Decision |
|---|---|---|---|---|
| mrivera | accountant | payroll app | 10:00 | allowed |
| tbanks | sales | payroll app | 10:00 | denied (role) |
| jcho | accountant | payroll app | 23:00 | denied (rule: outside 08:00 to 18:00) |
The role check (RBAC) runs first; the time rule (RuBAC) then applies even to people the role allows. jcho is an accountant, but at 23:00 the rule denies access.
4Discretionary access control (DAC)
DAC lets each subject set the access that others have to the objects they own. Bob creates a file and decides that Alice may edit it, Frank may only view it, and everyone else gets no access. Some subjects are administrators (super users) who can override what owners set. Sharing a document from your own cloud drive is DAC: you are the one choosing.
5Mandatory access control (MAC) and Bell-LaPadula
MAC follows strict rules about what access each subject level has to objects above, at, or below that level. Levels for both subjects and objects are assigned by an outside administrator; owners cannot change them.
The Bell-LaPadula model is a MAC model used by governments and the military to protect confidentiality. It has two properties:
- Simple Security Property: subjects may not read objects above their level (no read up).
- * (Star) Security Property: subjects may not write to objects below their level (no write down).
Together these are summarized as “write up, read down” (WURD).
| Object level | Secret subject reads it? | Secret subject writes to it? |
|---|---|---|
| Top Secret | denied | allowed |
| Secret | allowed | allowed |
| Confidential | allowed | denied |
| Unclassified | allowed | denied |
6Least privilege
The principle of least privilege says every entity should get as much access as it needs to do its job, and no more. It applies under every model: roles should carry only the permissions the job needs, owners should share narrowly, and a stolen account then reaches as little as possible.
7Choosing a model
| Model | Who decides access | Based on | Fits best when |
|---|---|---|---|
| RBAC | Administrators define roles | The subject's job role | Many people share the same jobs (a company, a hospital, a school) |
| RuBAC | Administrators write rules | Conditions such as time, location, or device | Extra limits are needed on top of another model |
| DAC | The owner of each object | The owner's choice | People need to share their own files flexibly |
| MAC | An outside administrator assigns levels | Fixed levels for subjects and objects | Confidentiality is critical and must not depend on users (government, military) |
RBAC grants access by role, RuBAC adds conditions like time, DAC lets owners decide, and MAC enforces fixed levels set by an administrator. Bell-LaPadula is the MAC model that reads down and writes up. Under any model, give the least privilege needed.
8Worked examples
The hospital
A 400-bed hospital has nurses, doctors, pharmacists, and billing staff, and people move between departments often. Which model fits best for its patient-record system?
- 1Many people share a small number of jobs, and each job needs the same access.
- 2When staff move departments, changing their role updates every permission at once.
The analyst's report
An analyst cleared at Confidential wants to (a) read a Secret briefing, (b) read an Unclassified news summary, (c) write notes into a Top Secret file, (d) write notes into an Unclassified file. Which are allowed?
- 1(a) Secret is above Confidential: no read up. Denied.
- 2(b) Unclassified is below: reading down is allowed.
- 3(c) Top Secret is above: writing up is allowed.
- 4(d) Unclassified is below: no write down. Denied.
Name it
Name the model: (a) a student shares a slideshow and sets one classmate to edit and another to view; (b) no one can log in to the payroll system from outside the country; (c) document labels are set by a security office and users cannot change them.
- 1(a) The owner chooses who gets which access: DAC.
- 2(b) A condition (location) decides access: RuBAC.
- 3(c) Fixed levels set by an outside administrator: MAC.
The summer intern
A summer intern needs to update the company blog. IT gives the intern the same role as the marketing manager, which includes access to the customer list and the ad budget. Evaluate.
- 1The intern's job needs blog editing only.
- 2The manager's role carries far more access than that.
- 3If the intern's account is phished, the attacker reaches customer data and the budget.
9Common mistakes
Role-based asks “what is your job?” Rule-based asks “does this request meet the conditions?” RuBAC is usually added on top of another model.
It is read down and write up. Both directions stop information from flowing to a lower level.
Owners decide, but administrators can still override their settings.
“Role-based access control fits the school because staff fall into a few roles, such as teacher, counselor, and office staff, that each need the same access. A rule that blocks the grade system outside school hours can be layered on top with rule-based access control, and each role should get only the access its job requires.”
Name the model, connect it to how the organization is structured, and apply least privilege.