Attribute-based access control




Attribute-based access control (ABAC), also known as Policy-based access control, defines an access control paradigm whereby access rights are granted to users through the use of policies which combine attributes together. The policies can use any type of attributes (user attributes, resource attributes, object, environment attributes etc.). This model supports Boolean logic, in which rules contain "IF, THEN" statements about who is making the request, the resource, and the action. For example: IF the requestor is a manager, THEN allow read/write access to sensitive data.


Unlike role-based access control (RBAC), which employs pre-defined roles that carry a specific set of privileges associated with them and to which subjects are assigned, the key difference with ABAC is the concept of policies that express a complex Boolean rule set that can evaluate many different attributes.[1] Attribute values can be set-valued or atomic-valued. Set-valued attributes contain more than one atomic value. Examples are role and project. Atomic-valued attributes contain only one atomic value. Examples are clearance and sensitivity. Attributes can be compared to static values or to one another, thus enabling relation-based access control.


Although the concept itself existed for many years, ABAC is considered[2] a "next generation" authorization model because it provides dynamic, context-aware and risk-intelligent access control to resources allowing access control policies that include specific attributes from many different information systems to be defined to resolve an authorization and achieve an efficient regulatory compliance, allowing enterprises flexibility in their implementations based on their existing infrastructures.


Attribute-based access control is sometimes referred to as policy-based access control (PBAC) or claims-based access control (CBAC),[3] which is a Microsoft-specific term.[4] The key standards that implement ABAC are XACML and ALFA (XACML).




Contents






  • 1 Dimensions of Attribute-based access control


  • 2 Components


    • 2.1 Architecture


    • 2.2 Attributes


    • 2.3 Policies




  • 3 Other models


  • 4 Implementations


  • 5 Applications


    • 5.1 API and micro services security


    • 5.2 Application security


    • 5.3 Database security


    • 5.4 Data security


    • 5.5 Big data security


    • 5.6 File server security




  • 6 See also


  • 7 References


  • 8 External links





Dimensions of Attribute-based access control


ABAC can be seen as:



  • Externalized Authorization Management[5]

  • Dynamic Authorization Management[6]

  • Policy Based Access Control

  • Fine-Grained Authorization



Components



Architecture


ABAC comes with a recommended architecture which is as follows:



  1. The PEP or Policy Enforcement Point: it is responsible for protecting the apps & data you want to apply ABAC to. The PEP inspects the request and generates an authorization request from it which it sends to the PDP.

  2. The PDP or Policy Decision Point is the brain of the architecture. This is the piece which evaluates incoming requests against policies it has been configured with. The PDP returns a Permit / Deny decision. The PDP may also use PIPs to retrieve missing metadata

  3. The PIP or Policy Information Point bridges the PDP to external sources of attributes e.g. LDAP or databases.



Attributes


Attributes can be about anything and anyone. They tend to fall into 4 different categories or functions (as in grammatical function)



  1. Subject attributes: attributes that describe the user attempting the access e.g. age, clearance, department, role, job title...

  2. Action attributes: attributes that describe the action being attempted e.g. read, delete, view, approve...

  3. Object attributes: attributes that describe the object (or resource) being accessed e.g. the object type (medical record, bank account...), the department, the classification or sensitivity, the location...

  4. Contextual (environment) attributes: attributes that deal with time, location or dynamic aspects of the access control scenario[7]



Policies


Policies are statements that bring together attributes to express what can happen and is not allowed. Policies in ABAC can be granting or denying policies. Policies can also be local or global and can be written in a way that they override other policies. Examples include:



  1. A user can view a document if the document is in the same department as the user

  2. A user can edit a document if they are the owner and if the document is in draft mode

  3. Deny access before 9am


With ABAC you can have as many policies as you like that cater to many different scenarios and technologies.[7]



Other models


Historically, access control models have included mandatory access control (MAC), discretionary access control (DAC), mandatory integrity control, and more recently role-based access control (RBAC). These access control models are user-centric and do not take into account additional parameters such as resource information, relationship between the user (the requesting entity) and the resource, and dynamic information e.g. time of the day or user IP.
ABAC tries to address this by defining access control based on attributes which describe the requesting entity (the user), the targeted object or resource, the desired action (view, edit, delete...), and environmental or contextual information. This is why access control is said to be attribute-based.



Implementations


One standard that implements attribute- and policy-based access control is XACML, the eXtensible Access Control Markup Language. XACML defines an architecture, a policy language, and a request / response scheme. It does not handle attribute management (user attribute assignment, object attribute assignment, environment attribute assignment) which is left to traditional IAM tools, databases, and directories.



Applications


The concept of ABAC can be applied at any level of the technology stack and an enterprise infrastructure. For example, ABAC can be used at the firewall, server, application, database, and data layer. The use of attributes bring additional context to evaluate the legitimacy of any request for access and inform the decision to grant or deny access.


An important consideration when evaluating ABAC solutions is to understand its potential overhead on performance and its impact on the user experience. It is expected that the more granular the controls, the higher the overhead.



API and micro services security


ABAC can be used to apply attribute-based, fine-grained authorization to the API methods or functions. For instance, a banking API may expose an approveTransaction(transId) method. ABAC can be used to secure the call. With ABAC, a policy author can write the following:




  • Policy: managers can approve transactions up to their approval limit


  • Attributes used: role, action ID, object type, amount, approval limit.


The flow would be as follows:



  1. The user, Alice, calls the API method approveTransaction(123)

  2. The API receives the call and authenticates the user.

  3. An interceptor in the API calls out to the authorization engine (typically called a Policy Decision Point or PDP) and asks: Can Alice approve transaction 123?

  4. The PDP retrieves the ABAC policy and necessary attributes.

  5. The PDP reaches a decision e.g. Permit or Deny and returns it to the API interceptor

  6. If the decision is Permit, the underlying API business logic is called. Otherwise the API returns an error or access denied.



Application security


One of the key benefits to ABAC is that the authorization policies and attributes can be defined in a technology neutral way. This means policies defined for APIs or databases can be reused in the application space. Common applications that can benefit from ABAC are:



  1. content management systems

  2. ERPs

  3. home-grown applications

  4. web applications


The same process and flow as the one described in the API section applies here too.



Database security


Security for databases has long been specific to the database vendors: Oracle VPD, IBM FGAC, and Microsoft RLS are all means to achieve fine-grained ABAC-like security.


Using ABAC, it is possible to define policies that apply across multiple databases. This is called dynamic data masking.


An example would be:



  • Policy: managers can view transactions in their region

  • Reworked policy in a data-centric way: users with role == manager can do the action == SELECT on table == TRANSACTIONS if user.region == transaction.region



Data security


Data security typically goes one step further than database security and applies control directly to the data element. This is often referred to as Data-Centric Security. On traditional relational databases, ABAC policies can control access to data at the table, column, field, cell and sub-cell using logical controls with filtering conditions and masking based on attributes. Attributes can be data, user, session or tools based to deliver the greatest level of flexibility in dynamically granting/denying access to a specific data element. On big data, and distributed file systems such as Hadoop, ABAC applied at the data layer control access to folder, sub-folder, file, sub-file and other granular.



Big data security


Attribute-based access control can also be applied to Big Data systems like Hadoop. Policies similar to those used previously can be applied when retrieving data from data lakes.[8][9]



File server security


As of Windows Server 2012, Microsoft has implemented an ABAC approach to controlling access to files and folders. This achieved through dynamic access control lists (DACL) and Security Descriptor Definition Language (SDDL). SDDL can be seen as an ABAC language as it uses metadata of the user (claims) and of the file / folder to control access.



See also




  • Access control list


  • Context-based access control (CBAC)

  • Data-centric security


  • Discretionary access control (DAC)


  • Graph-based access control (GBAC)


  • Lattice-based access control (LBAC)


  • Mandatory access control (MAC)


  • Organisation-based access control (OrBAC)


  • Role-based access control (RBAC)

  • Rule-set-based access control (RSBAC)

  • Capability-based security

  • Location-based authentication

  • Risk-based authentication

  • Classified information

  • Federated identity

  • grsecurity

  • Identity driven networking

  • Identity management

  • Identity management system

  • Lightweight Directory Access Protocol

  • OAuth

  • PERMIS

  • Security Assertion Markup Language

  • Security token service

  • Single sign-on

  • User provisioning software

  • XACML




References





  1. ^ "SP 800-162, Guide to Attribute Based Access Control (ABAC) Definition and Considerations" (PDF). NIST. 2014. Retrieved 2015-12-08..mw-parser-output cite.citation{font-style:inherit}.mw-parser-output .citation q{quotes:"""""""'""'"}.mw-parser-output .citation .cs1-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/6/65/Lock-green.svg/9px-Lock-green.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-limited a,.mw-parser-output .citation .cs1-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lock-gray-alt-2.svg/9px-Lock-gray-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Lock-red-alt-2.svg/9px-Lock-red-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration{color:#555}.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration span{border-bottom:1px dotted;cursor:help}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/12px-Wikisource-logo.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output code.cs1-code{color:inherit;background:inherit;border:inherit;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;font-size:100%}.mw-parser-output .cs1-visible-error{font-size:100%}.mw-parser-output .cs1-maint{display:none;color:#33aa33;margin-left:0.3em}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-right{padding-right:0.2em}


  2. ^ "Attribute Based Access Control (ABAC), axiomatics.com". Retrieved 2016-07-05.


  3. ^ RBAC first – ABAC next, or what?, 2015, Horst Walther, GenericIAM Blog. Retrieved on 2016-08-30.


  4. ^ Karp, Alan, Harry Haury, and Michael Davis. "From ABAC to ZBAC: the evolution of access control models." International Conference on Information Warfare and Security. Academic Conferences International Limited, 2010. Retrieved on 2016-08-30.


  5. ^ "Technology Overview for Externalized Authorization Management". www.gartner.com. Retrieved 2017-05-31.


  6. ^ "Leadership Compass: Dynamic Authorization Management - 70966". KuppingerCole. Retrieved 2017-05-31.


  7. ^ ab "Alternatives for Roles/Claims Access Control Systems". stackoverflow.com.


  8. ^ "Dynamic, Fine-Grained Authorization Secures Big Data".


  9. ^ "First Fine-grained Data Access Control On Hadoop".



Gartner - improving-runtime-authorization-maturity



External links



  • What is attribute-based access control?

  • ATTRIBUTE BASED ACCESS CONTROL (ABAC) - OVERVIEW

  • Unified Attribute Based Access Control Model (ABAC) covering DAC, MAC and RBAC

  • Attribute Based Access Control Models (ABAC) and Implementation in Cloud Infrastructure as a Service

  • ABAC not RBAC: Welcome to the (IoT) World of Contextual Security, 2015, Lori MacVittie




Popular posts from this blog

Italian cuisine

Bulgarian cuisine

Carrot