ABAC

Also known as: Attribute-based access control

On this page 7

ABAC, or attribute-based access control, is an authorization model that decides whether a subject may perform an action on a resource by evaluating policies against attributes of the subject, the resource, the requested action and the surrounding environment. In cybersecurity, and specifically in the field of identity & access, ABAC is the model of choice when permissions depend on many changing facts rather than on a fixed job title.

Where role-based models ask “which role does this person hold”, ABAC asks a richer question: does this combination of facts satisfy the policy right now. The model is formally described in NIST Special Publication 800-162, and its best-known policy language is XACML, although modern engines often use other policy languages.

How ABAC evaluates an access request

An ABAC system evaluates each request at decision time, combining attribute values with a set of rules written as Boolean conditions. A typical rule reads: allow the action “read” when the subject department equals the resource department, the resource classification is at most the subject clearance and the request comes from a managed device.

The reference architecture separates enforcement from decision. A policy enforcement point (PEP) intercepts the request, a policy decision point (PDP) evaluates the policies, and policy information points (PIPs) supply missing attributes from directories, databases or device management systems. A policy administration point (PAP) is where administrators author and version the policies.

The following table lists the components of this architecture and the role each one plays in a single decision.

ComponentFunctionTypical implementation
Policy enforcement pointIntercepts the request and applies the decisionAPI gateway, application middleware, service mesh sidecar
Policy decision pointEvaluates policies and returns permit or denyPolicy engine or authorization service
Policy information pointRetrieves attributes not present in the requestDirectory, HR system, device inventory
Policy administration pointStores, edits and versions policiesPolicy repository with review workflow
Components of the ABAC reference architecture

When several rules apply, a combining algorithm resolves conflicts. Common choices are deny-overrides, where any matching deny wins, and permit-overrides, where any matching permit wins. Security teams usually prefer deny-overrides together with a default deny when no rule matches.

The four attribute categories in ABAC

ABAC policies draw on four categories of attributes, and the expressive power of the model comes from combining them in one condition. Attributes can be static, such as an employee identifier, or dynamic, such as the current risk score of a session.

The table below summarizes each category with representative attributes and their usual sources.

CategoryExample attributesUsual source
SubjectDepartment, clearance, employment status, group membershipIdentity provider or HR system
ResourceOwner, classification, project, data residencyResource metadata or tags
ActionRead, write, delete, approve, exportThe request itself
EnvironmentTime of day, location, device posture, network zoneContext signals at request time
Attribute categories and examples

Attribute quality determines decision quality. A stale department value or an untagged resource produces wrong decisions just as reliably as a flawed rule, so mature deployments treat attributes as governed data with clear owners, freshness requirements and validation.

ABAC compared with RBAC and other models

ABAC is best understood as a generalization of RBAC: a role is simply one subject attribute among many. Role-based access control assigns permissions to roles and roles to users, which is simple to audit but leads to role explosion when permissions depend on location, project or data sensitivity.

The comparison below places ABAC next to the access control models it is most often weighed against.

ModelDecision basisStrengthMain weakness
ABACPolicies over many attributesFine-grained, context-aware decisionsHarder to audit and test
RBACAssigned rolesSimple reviews and certificationRole explosion for fine-grained needs
ACLPer-resource list of principalsDirect and intuitiveUnmanageable at large scale
ReBACRelationships in a graphNatural for sharing and hierarchiesRequires a relationship store
Comparison of access control models

In practice many organizations run a hybrid model: roles grant coarse entitlements, and ABAC conditions narrow them. Conditional access policies in identity providers are a familiar example of attribute-driven rules applied at sign-in, while ABAC applies the same idea to every authorization decision inside applications and data platforms.

Designing and deploying ABAC policies

Successful ABAC deployments start with a small attribute vocabulary and well-defined policies rather than a generic engine with hundreds of loosely named attributes. Each attribute needs an authoritative source, a data type and a documented meaning that policy authors and auditors share.

The decision table below maps common situations to a recommended approach.

SituationRecommended approachReason
Stable permissions tied to job functionsRBAC aloneRoles are easier to review
Access depends on data classification or residencyABAC on resource attributesAvoids one role per data category
Multi-tenant SaaS applicationABAC with tenant attribute checksPrevents cross-tenant data access
Access must reflect device or location riskABAC with environment attributesContext changes on every request
Sharing between individual usersReBAC or ABAC with owner attributesRelationships drive the decision
When to choose ABAC
  • Write policies as code, keep them in version control and require peer review for every change.
  • Test policies with fixed scenarios that cover expected permits, expected denies and edge cases.
  • Cache attributes carefully, balancing decision latency against the risk of stale values.
  • Log every decision with the attributes used, so that investigators can reconstruct why access was granted.

Limitations and common mistakes

The main trade-off of ABAC is expressiveness against auditability. Answering “who can access this record” requires evaluating policies against every possible subject, which is far harder than listing the members of a role, and regulators often expect exactly that answer.

The most frequent failure modes and their remedies are listed below.

MistakeConsequenceFix
Missing attribute treated as matchUnintended access when data is absentFail closed on missing attributes
Client-supplied attributes trustedUsers can forge their own clearanceResolve attributes from trusted sources
Overlapping, unreviewed rulesUnpredictable outcomesPolicy testing and combining algorithm review
Remote attribute lookups on every callHigh latency and outagesBounded caching with expiry
Common ABAC mistakes

ABAC also depends on attribute governance. When an employee changes department, the identity lifecycle, often automated through SCIM provisioning, must update the attribute promptly, or the policy will keep granting the old access.

The simple explanation

ABAC is a way of deciding who may do what by checking facts instead of titles. It does not say “managers can open this folder”. Instead, it checks a rule: finance staff on a company laptop may open finance files during working hours.

Think of a building guard who looks at more than a badge color. The guard also checks your floor, the time and your device. The rule stays the same while the facts change. Access therefore adjusts by itself, and nobody has to invent new badge types.

How it is used in practice

A regional hospital network stores patient records for twelve clinics in one electronic health record system. With roles alone, it would need separate roles for each combination of clinic, specialty and shift, which had grown to several hundred and could no longer be reviewed.

The security team introduced an ABAC policy: a clinician may read a record when the clinician is assigned to the patient’s clinic or listed on the care team, the request comes from a managed workstation, and sensitive psychiatric notes additionally require a matching specialty attribute. Emergency access is permitted with a mandatory reason and triggers review within 24 hours.

The role catalog shrank to about twenty broad roles, quarterly access reviews became feasible again, and the audit log now records which attributes justified each record view, which shortened privacy investigations considerably.