Role-based access control explained

In computer systems security, role-based access control (RBAC)[1] [2] or role-based security[3] is an approach to restricting system access to authorized users, and to implementing mandatory access control (MAC) or discretionary access control (DAC).

Role-based access control is a policy-neutral access control mechanism defined around roles and privileges. The components of RBAC such as role-permissions, user-role and role-role relationships make it simple to perform user assignments. A study by NIST has demonstrated that RBAC addresses many needs of commercial and government organizations.[4] RBAC can be used to facilitate administration of security in large organizations with hundreds of users and thousands of permissions. Although RBAC is different from MAC and DAC access control frameworks, it can enforce these policies without any complication.

Design

Within an organization, roles are created for various job functions. The permissions to perform certain operations are assigned to specific roles. Since users are not assigned permissions directly, but only acquire them through their role (or roles), management of individual user rights becomes a matter of simply assigning appropriate roles to the user's account; this simplifies common operations, such as adding a user, or changing a user's department.

Three primary rules are defined for RBAC:

  1. Role assignment: A subject can exercise a permission only if the subject has selected or been assigned a role.
  2. Role authorization: A subject's active role must be authorized for the subject. With rule 1 above, this rule ensures that users can take on only roles for which they are authorized.
  3. Permission authorization: A subject can exercise a permission only if the permission is authorized for the subject's active role. With rules 1 and 2, this rule ensures that users can exercise only permissions for which they are authorized.

Additional constraints may be applied as well, and roles can be combined in a hierarchy where higher-level roles subsume permissions owned by sub-roles.

With the concepts of role hierarchy and constraints, one can control RBAC to create or simulate lattice-based access control (LBAC). Thus RBAC can be considered to be a superset of LBAC.

When defining an RBAC model, the following conventions are useful:

A constraint places a restrictive rule on the potential inheritance of permissions from opposing roles. Thus it can be used to achieve appropriate separation of duties. For example, the same person should not be allowed to both create a login account and to authorize the account creation.

Thus, using set theory notation:

PA\subseteqP x R

and is a many to many permission to role assignment relation.

SA\subseteqS x R

and is a many to many subject to role assignment relation.

RH\subseteqR x R

A subject may have multiple simultaneous sessions with/in different roles.

Standardized levels

See also: NIST RBAC model. The NIST/ANSI/INCITS RBAC standard (2004) recognizes three levels of RBAC:[5]

  1. core RBAC
  2. hierarchical RBAC, which adds support for inheritance between roles
  3. constrained RBAC, which adds separation of duties

Relation to other models

RBAC is a flexible access control technology whose flexibility allows it to implement DAC[6] or MAC.[7] DAC with groups (e.g., as implemented in POSIX file systems) can emulate RBAC.[8] MAC can simulate RBAC if the role graph is restricted to a tree rather than a partially ordered set.[9]

Prior to the development of RBAC, the Bell-LaPadula (BLP) model was synonymous with MAC and file system permissions were synonymous with DAC. These were considered to be the only known models for access control: if a model was not BLP, it was considered to be a DAC model, and vice versa. Research in the late 1990s demonstrated that RBAC falls in neither category.[10] [11] Unlike context-based access control (CBAC), RBAC does not look at the message context (such as a connection's source). RBAC has also been criticized for leading to role explosion,[12] a problem in large enterprise systems which require access control of finer granularity than what RBAC can provide as roles are inherently assigned to operations and data types. In resemblance to CBAC, an Entity-Relationship Based Access Control (ERBAC, although the same acronym is also used for modified RBAC systems,[13] such as Extended Role-Based Access Control[14]) system is able to secure instances of data by considering their association to the executing subject.[15]

Comparing to ACL

Access control lists (ACLs) are used in traditional discretionary access-control (DAC) systems to affect low-level data-objects. RBAC differs from ACL in assigning permissions to operations which change the direct-relations between several entities (see: ACLg below). For example, an ACL could be used for granting or denying write access to a particular system file, but it wouldn't dictate how that file could be changed. In an RBAC-based system, an operation might be to 'create a credit account' transaction in a financial application or to 'populate a blood sugar level test' record in a medical application. A Role is thus a sequence of operations within a larger activity. RBAC has been shown to be particularly well suited to separation of duties (SoD) requirements, which ensure that two or more people must be involved in authorizing critical operations. Necessary and sufficient conditions for safety of SoD in RBAC have been analyzed. An underlying principle of SoD is that no individual should be able to effect a breach of security through dual privilege. By extension, no person may hold a role that exercises audit, control or review authority over another, concurrently held role.[16] [17]

Then again, a "minimal RBAC Model", RBACm, can be compared with an ACL mechanism, ACLg, where only groups are permitted as entries in the ACL. Barkley (1997)[18] showed that RBACm and ACLg are equivalent.

In modern SQL implementations, like ACL of the CakePHP framework, ACLs also manage groups and inheritance in a hierarchy of groups. Under this aspect, specific "modern ACL" implementations can be compared with specific "modern RBAC" implementations, better than "old (file system) implementations".

For data interchange, and for "high level comparisons", ACL data can be translated to XACML.

Attribute-based access control

Attribute-based access control or ABAC is a model which evolves from RBAC to consider additional attributes in addition to roles and groups. In ABAC, it is possible to use attributes of:

ABAC is policy-based in the sense that it uses policies rather than static permissions to define what is allowed or what is not allowed.

Relationship-based access control

Relationship-based access control or ReBAC is a model which evolves from RBAC. In ReBAC, a subject's permission to access a resource is defined by the presence of relationships between those subjects and resources.

The advantage of this model is that allows for fine-grained permissions; for example, in a social network where users can share posts with other specific users. [19]

Use and availability

The use of RBAC to manage user privileges (computer permissions) within a single system or application is widely accepted as a best practice. A 2010 report prepared for NIST by the Research Triangle Institute analyzed the economic value of RBAC for enterprises, and estimated benefits per employee from reduced employee downtime, more efficient provisioning, and more efficient access control policy administration.[20]

In an organization with a heterogeneous IT infrastructure and requirements that span dozens or hundreds of systems and applications, using RBAC to manage sufficient roles and assign adequate role memberships becomes extremely complex without hierarchical creation of roles and privilege assignments.[21] Newer systems extend the older NIST RBAC model[22] to address the limitations of RBAC for enterprise-wide deployments. The NIST model was adopted as a standard by INCITS as ANSI/INCITS 359-2004. A discussion of some of the design choices for the NIST model has also been published.[23]

Potential Vulnerabilities

Role based access control interference is a relatively new issue in security applications, where multiple user accounts with dynamic access levels may lead to encryption key instability, allowing an outside user to exploit the weakness for unauthorized access. Key sharing applications within dynamic virtualized environments have shown some success in addressing this problem.[24]

Further reading

External links

Notes and References

  1. Ferraiolo, D.F. . Kuhn, D.R. . amp . Role-Based Access Control . 15th National Computer Security Conference . October 1992 . 554–563 .
  2. Sandhu, R., Coyne, E.J., Feinstein, H.L. and Youman, C.E. . Role-Based Access Control Models . IEEE Computer . 29 . 2 . August 1996 . 38–47 . 10.1109/2.485845. 10.1.1.50.7649 . 1958270 .
  3. Book: ABREU, VILMAR . Santin, Altair O. . VIEGAS, EDUARDO K. . STIHLER, MAICON . 2017 IEEE International Conference on Communications (ICC) . A multi-domain role activation model . 1–6. 2017 . IEEE Press . 10.1109/ICC.2017.7997247. 978-1-4673-8999-0. 6185138 .
  4. Book: An examination of federal and commercial access control policy needs . DIANE Publishing . National Computer Security Conference, 1993 (16th) Proceedings: Information Systems Security: User Choices . Gilbert MD, Lynch N, Ferraiolo FD . 107 . 1995 . 9780788119248 . https://books.google.com/books?id=vQEHUD51YNEC&q=An+examination+of+federal+and+commercial+access+control+policy+needs&pg=PA107.
  5. Book: Alberto Belussi. Barbara Catania. Eliseo Clementini. Elena Ferrari. Spatial Data on the Web: Modeling and Management. 2007. Springer. 978-3-540-69878-4. 194.
  6. Ravi Sandhu . Qamar Munawer . How to do discretionary access control using roles . 3rd ACM Workshop on Role-Based Access Control . October 1998 . 47–54 .
  7. Sylvia Osborn . Ravi Sandhu . Qamar Munawer . amp . Configuring role-based access control to enforce mandatory and discretionary access control policies . ACM Transactions on Information and System Security . 2000 . 85–106 .
  8. Achim D.. Brucker. Burkhart. Wolff. A Verification Approach for Applied System Security. International Journal on Software Tools for Technology Transfer. 7. 3. 233–247. 2005. 10.1007/s10009-004-0176-3. 20.500.11850/52625. 6427232. free.
  9. Book: D.R. Kuhn . Proceedings of the third ACM workshop on Role-based access control . Role based access control on MLS systems without kernel changes . 1998 . 25–32 . 10.1145/286884.286890 . 10.1.1.55.4755 . 978-1-58113-113-0 . 1711956 .
  10. Web site: Role Based Access Control – FAQs. Computer Security Research Center. 2016-11-21. csrc.nist.gov. 15 August 2018.
  11. Role-Based Access Controls. 554–563. David. Ferraiolo. Richard. Kuhn. 1992-10-13. csrc.nist.gov. 15 August 2018.
  12. A. A. Elliott . G. S. Knight . amp . Role Explosion: Acknowledging the Problem . Proceedings of the 2010 International Conference on Software Engineering Research & Practice . 2010 .
  13. Web site: ERBAC – Enterprise Role-Based Access Control (computing) – AcronymFinder. www.acronymfinder.com. 15 August 2018.
  14. Web site: Dr. Bhavani Thuraisingham and Srinivasan Iyer (PPT). 15 August 2018.
  15. Web site: tapestry-security-jpa. Kalle. Korhonen. www.tynamo.org. 15 August 2018.
  16. Book: D.R. Kuhn . Proceedings of the second ACM workshop on Role-based access control - RBAC '97 . Mutual exclusion of roles as a means of implementing separation of duty in role-based access control systems . 1997 . 23–30 . 10.1145/266741.266749 . 0897919858 . 482687 .
  17. Book: 2004 . 42–51 . PDF . Proceedings of the 11th ACM conference on Computer and communications security . 10.1145/1030083.1030091 . 10.1.1.159.2556 . 978-1581139617 . 798546 . On mutually-exclusive roles and separation of duty . Li . Ninghui . Bizri . Ziad . Tripunitara . Mahesh V. .
  18. J. Barkley (1997) "Comparing simple role based access control models and access control lists", In "Proceedings of the second ACM workshop on Role-based access control", pages 127-132.
  19. Gates . Carrie . 2007 . Access control requirements for web 2.0 security and privacy . IEEE Web . 2 . 12–15.
  20. Book: A.C. O'Connor . R.J. Loomis . amp . Economic Analysis of Role-Based Access Control . 145 . March 2002 . Research Triangle Institute .
  21. Web site: Beyond Roles: A Practical Approach to Enterprise IAM. Hitachi ID. Systems. www.idsynch.com. 15 August 2018.
  22. Book: Sandhu, R., Ferraiolo, D.F. and Kuhn, D.R. . Proceedings of the fifth ACM workshop on Role-based access control . The NIST model for role-based access control . July 2000 . 47–63 . 10.1145/344287.344301 . 158113259X . 14539795 . http://csrc.nist.gov/rbac/sandhu-ferraiolo-kuhn-00.pdf .
  23. Ferraiolo, D.F., Kuhn, D.R., and Sandhu, R. . RBAC Standard Rationale: comments on a Critique of the ANSI Standard on Role-Based Access Control . IEEE Security & Privacy . 5 . 6 . Nov–Dec 2007 . 51–53 . 10.1109/MSP.2007.173 . 28140142 . dead . https://web.archive.org/web/20080917093137/http://csrc.nist.gov/groups/SNS/rbac/documents/ferraiolo-kuhn-sandhu-07.pdf . 2008-09-17 .
  24. Marikkannu . P . Fault-tolerant adaptive mobile agent system using dynamic role based access control . International Journal of Computer Applications . 2011 . 20 . 2. 1–6 . 10.5120/2409-3208 . 2011IJCA...20b...1M . free .