Bookmarks

ABAC — attribute-based access control

An access control model in which the decision to grant access is made from the attributes of the subject, object, action and environment rather than from a fixed role.

Also: ABAC, attribute-based access, attribute-based access model

checked 9 Nov

All terms

Instead of a list of “this role has these permissions”, ABAC describes access with rules over attributes: who the requester is, what resource is involved, which action and under which conditions. A rule about the department, the document’s classification and working hours is a typical case: all four parts of the decision are attributes. The model’s reference document is NIST SP 800-162, January 2014.

What the decision consists of

NIST describes the model through four sets of attributes:

CategoryExamples
Subjectdepartment, position, clearance, completed training
Objectdocument classification, owner, data type, project
Actionread, write, sign, delete
Environmenttime, location, threat level

A policy is a logical expression over these attributes: the engine evaluates it at request time. Attribute values may change between requests, and the decision changes with them — without rewriting the rules themselves.

ABAC and RBAC

NIST notes that ACL and RBAC are special cases of ABAC: ACL works with the “identity” attribute, RBAC with the “role” attribute, while an ABAC policy can tie many attributes together. An example from SP 800-162: in a hospital, a rule lets a nurse practitioner from the cardiology department view the records of cardiology patients — by the employee’s department and the type of record, not by the generic “clinician” role. In such a situation RBAC either grants access too broadly or spawns a role for every combination.

XACML and who makes the decision

The standard for describing ABAC policies is XACML from OASIS: it divides attributes into the same categories (subject, resource, action, environment), and its architecture separates the policy decision point (PDP), which computes the answer, from the policy enforcement point (PEP), which enforces it. The rule from the example above looks like this (namespaces shortened):

xmlAn XACML rule: the subject’s department and the object’s record set match — access is permitted
<Rule Effect="Permit">  <Target>    <AllOf>      <Match MatchId="string-equal">        <AttributeValue>cardiology</AttributeValue>        <AttributeDesignator Category="subject" AttributeId="department"/>      </Match>      <Match MatchId="string-equal">        <AttributeValue>heart-patients</AttributeValue>        <AttributeDesignator Category="resource" AttributeId="record-set"/>      </Match>    </AllOf>  </Target></Rule>

Where it is used

  • Cloud IAM policies: conditions on resource tags, IP address, time and device type in AWS, Google Cloud and Azure.
  • Zero trust: the decision for each request is built from attributes — identity, device, network state.
  • Government agencies and healthcare, where access depends on the classification level, the department and the record type.

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • RBACrole-based access control

    RBAC grants permissions to roles, while ABAC decides by the attributes of the subject, object, action and environment; NIST treats RBAC as a special case of ABAC.

In depth in the references

where the topic is covered in detail