A hospital defines Ward nurse as a named set of permissions: read and update patient charts, and record medicines given. Anyone assigned to Ward nurse receives those permissions.
Roles, rules and least privilege
Large organisations cannot decide access one person and one file at a time. They bundle permissions into roles that match jobs, or write rules that apply to everyone at once, such as no access outside office hours. No background is assumed. A security professional designs roles and rules so that each person has only what the job needs and no one person can complete a sensitive task alone.
By the end of this unit you will be able to:
- Tell apart a group and a role with an example of each
- Explain core, hierarchical and constrained role-based access control
- Recognise rule-based access control and the implicit deny at the end of a rule set
- Tell apart least privilege, need to know and separation of duties
- Choose between static and dynamic separation of duties for a described team
Make her the same as Dev
An illustrative example
A secondary school hires Grace as assistant to the bursar. Her manager emails the IT technician: give Grace the same access as Dev, who did the job before he moved to the exams office.
The technician copies Dev's account settings. Dev had worked at the school for nine years and picked up access along the way. He could reach payroll, the exam entries system, the head teacher's shared folder and the door-entry console. On her first day Grace can see every teacher's salary.
The technician did exactly what was asked. What should the school have had in place so that a new starter gets the access of the job and not the history of the last person?
Groups collect people, roles collect permissions
A group is a named set of user accounts. Systems use groups to treat many people alike: send them one email, give them one shared folder, let them use one printer. A group says who belongs together. It says nothing, by itself, about what they may do.
A role is a named set of permissions that matches a job function, such as accounts payable clerk or ward nurse. People are assigned to the role and receive its permissions. When the job changes, the role changes once and everyone in it follows.
One office, one group, two roles
Everyone on the second floor of a council building is in the group Floor 2, which gets the floor's printers and its newsletter.
Within that floor, the role Benefits assessor allows reading and updating claims. The role Benefits team leader includes everything the assessor has plus approving payments. A move from one role to the other changes a person's rights in one step.
Many systems build roles out of groups, so the words blur in practice. The difference that matters is this: when permissions are attached directly to individual accounts as well as to groups, rights leak in ways nobody planned. A design attaches permissions only to roles.
Role-based access control and its three forms
In role-based access control (RBAC) access decisions rest on the roles a user holds. Administrators decide what each role may do and who holds it. Users cannot pass their access on, so RBAC is non-discretionary. A standard model from NIST describes it in layers.
- Core RBAC
- Users, roles, permissions and the two assignments between them. A user acts through the roles active in a session, the period between signing in and signing out.
- Hierarchical RBAC
- Adds a role hierarchy: a senior role inherits the permissions of the roles beneath it. The team leader role contains the assessor role, so the shared permissions are defined once.
- Constrained RBAC
- Adds between roles, either when roles are assigned or when they are used in a session.
Roles make reviews easier: a manager can confirm that a person still does the job a role describes. They also stop the drift in the story, because a newcomer receives a role, not a copy of someone's account.
Roles have a limit. Real decisions often depend on more than job title: the patient's ward, the time of day, the training a person has completed. Expressing every such case as a separate role produces hundreds of narrow roles with one or two members. That is role explosion, and it is a sign that attributes, not roles, should carry the decision.
Task-based access control works the other way round. Permission is granted at one step in a piece of work, such as an approval in a workflow, and ends when that step is done.
Rule-based access control: the same rules for everyone
In rule-based access control (RuBAC) an administrator writes rules that apply to every request, whoever makes it. Each request is compared with the rules, and the first rule that matches decides. Users cannot change the rules.
- A or router allows or blocks traffic by its source address, destination and type of service.
- A records system refuses personnel files before 8 a.m., after 6 p.m. and at weekends.
- A shop's account system refuses new orders from customers with overdue balances.
A well-made rule set ends with an implicit deny, also called deny by default: anything no rule expressly allows is refused. A firewall that permits what it has not been told to block is the dangerous opposite.
is a kind of control, since one system-wide rule compares labels with clearances. Rules also combine with roles: a rule can say that the teller role works only during banking hours.
Common misconception
“RBAC can mean either roles or rules, so the two models are the same.”
Both are sometimes shortened to RBAC, which is why RuBAC is used for rules. Role-based control asks what the person's job allows. Rule-based control applies the same conditions to every request, whatever the person's job.
Least privilege, need to know and separation of duties
Roles and rules are tools. Three principles say what the tools should achieve.
- Least privilege
- Each user, program and process gets only the access it needs to do its work, and no more. It covers actions and system functions: a clerk who enters invoices does not need to install software.
- Need to know
- Access to a particular piece of information is allowed only when the person's duties require that information. Two cleared analysts may have the same rights, yet each sees only the cases assigned to them.
- Separation of duties
- A sensitive task is divided so that no one person can complete it alone. The person who requests a payment does not approve it. Fraud then needs two people to collude, and an honest mistake meets a second pair of eyes.
Separation of duties is enforced in two ways. Static separation of duties stops one person from ever being assigned two conflicting roles. Dynamic separation of duties lets a person hold both roles but prevents using them together, for example approving an order that the same person raised. Two-person control, also called dual control, is different: two people must act together for one action, such as two keys turned at once to open a vault. Separation of duties splits a task into parts done by different people.
limits how much any one account can do. Separation of duties limits what any one person can finish. A team can meet the first and fail the second.
Role-based and rule-based control told apart
| Point | Role-based (RBAC) | Rule-based (RuBAC) |
|---|---|---|
| Decision rests on | The job role the user holds | Conditions in a rule set |
| Applies to | Members of each role | Every request, whoever makes it |
| Who sets it | Administrators, from job design | Administrators, from |
| Typical place | Business applications and directories | Firewalls, routers, time and location limits |
| Everyday example | Ward nurses can update charts | No one enters the building at night |
| Main risk | Role explosion; roles that drift | Missing implicit deny; rules in the wrong order |
Both are non-discretionary, and both are often used together. A question that turns on a person's job points to roles. A question that turns on a condition true for everyone, such as time, address or account status, points to rules.
A question, worked through
A builders' merchant uses roles in its finance system. Raising a purchase order and approving it are separate roles. The team is small, so each of its four members holds both roles and can cover holidays. An auditor notes that one person could raise and approve the same order. The finance director wants the gap closed without losing holiday cover.
Which change BEST meets the finance director's aim?
Decide on your answer, then open the reasoning
- The director wants two things: no person completing an order alone, and cover when someone is away.
- Rule out d: merging the roles removes the separation the auditor asked for. It makes the gap permanent.
- Rule out c: a monthly review detects self-approval after the money has gone. It prevents nothing.
- Between a and b: option a is static separation. It closes the gap but leaves one approver, so holidays stop approvals.
- Option b is dynamic separation of duties. Everyone keeps both roles for cover, and the system refuses only the conflicting pair of actions on one order. Option b is the best answer.
Answer: B. Block anyone from approving an order that they raised
Choosing between good answers
- Access depends on a person's job
- the model is role-based. When the same condition applies to everyone, such as time of day or source address, it is rule-based.
- A team needs every member able to do both halves of a sensitive task
- choose dynamic separation of duties. Static separation fits when the team is large enough to keep the roles apart.
- A question asks what a firewall does with traffic that no rule mentions
- the answer is implicit deny. Anything not expressly allowed is refused.
- Two people have the same rights but should see different cases
- the principle is need to know. Least privilege is about how much access, need to know about which information.
- Roles multiply until many have one or two members
- this is role explosion. Attribute-based control is the usual remedy.
Try it
One person can both add a supplier and pay it. Test four responses and see which keeps separation of duties.
Loading the preview.
Check your understanding
5 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.
These questions are drafts that no named reviewer has approved yet.
Question 1 of 5
What to remember
- A group collects people. A role collects the permissions of a job and gives them to whoever holds it.
- Role-based access control has a core, a hierarchical form in which senior roles inherit junior ones, and a constrained form with separation of duties.
- Rule-based access control applies administrator-written rules to every request, as firewalls and time-of-day limits do, and ends in an implicit deny.
- Least privilege limits how much access each subject has. Need to know limits which information it may see.
- Separation of duties stops one person finishing a sensitive task: statically by keeping roles apart, dynamically by blocking their use together.
Say it from memory
What is the difference between a group and a role?
A group is a named set of user accounts, used to treat many people alike, such as sharing a printer. A role is a named set of permissions matching a job function, given to whoever is assigned to it. Roles can be arranged in a hierarchy in which senior roles inherit junior ones. Permissions should be attached to roles, not directly to individual accounts.
How does role-based access control work, and what are its forms and its main weakness?
Administrators give each role a set of permissions and assign users to roles; users cannot pass access on. Core RBAC has users, roles, permissions and sessions. Hierarchical RBAC lets senior roles inherit junior ones. Constrained RBAC adds static or dynamic separation of duties. Its weakness is role explosion: many narrow roles created to express conditions roles cannot carry.
What is rule-based access control, where is it used, and what is implicit deny?
An administrator writes rules that apply to every request, whoever makes it, and users cannot change them. Firewalls and routers filtering by address and service, time-of-day limits and account-status checks are typical. The first matching rule decides. Implicit deny means anything no rule allows is refused. Mandatory access control is a kind of rule-based control.
How do static and dynamic separation of duties differ, and how does two-person control differ from both?
Static separation stops one person ever being assigned two conflicting roles. Dynamic separation lets a person hold both roles but prevents using them together. Two-person control needs two people to act together for one action, such as two keys turned at once; separation of duties splits a task into parts done by different people.
When does a question point to role-based control, and when to rule-based control?
A question that turns on a person's job points to roles. A question that turns on a condition true for everyone, such as time, address or account status, points to rules. Both are non-discretionary and are often used together.
Sources
- NIST IR 7316: Assessment of Access Control Systems, NISTRoles as collections of permissions for a job function; core, hierarchical, static constrained and dynamic constrained RBAC; RBAC as non-discretionary; rule-based control applying administrator rules to every request, with router and overdue-balance examples and rules combined with roles; static and dynamic separation of duty; teller roles limited to banking hours.
- 2010 Economic Analysis of Role-Based Access Control: Final Report, RTI International for NISTGroups as sets of users that can approximate basic RBAC, with permissions attached directly to users leaking privileges in unintended ways.
- NIST SP 800-162: Guide to Attribute Based Access Control, NISTRole explosion: many ad hoc roles with few members created to express decisions that depend on attributes such as location or training.
- Task-based Authorization Controls (TBAC): A Family of Models for Active and Enterprise-oriented Authorization Management, R. K. Thomas and R. S. Sandhu, IFIP WG11.3Task-based authorisation, in which permissions are granted at steps during the completion of a task.
- NIST SP 800-12: An Introduction to Computer Security: The NIST Handbook (October 1995, withdrawn), NISTTime-of-day restrictions on personnel files and the separation of requesting and authorising a payment.
- NIST SP 800-41 Rev. 1: Guidelines on Firewalls and Firewall Policy, NISTDeny by default: firewalls should block all traffic not expressly permitted, and some firewalls check rules in sequence until a match.
- RFC 4949: Internet Security Glossary, Version 2, IETFLeast privilege as the minimum resources and authorisations an entity needs, need to know as access required for official duties, and rule-based security policy as global rules imposed on all users.
- SP 800-53 Rev. 5, Security and Privacy Controls for Information Systems and Organizations, NISTSeparation of duties as dividing functions among individuals to reduce the risk of abuse without collusion, and least privilege applied to users and processes.