top of page

What is ABAC (Attribute Based Access Control)?

Oct 26
9 min read

Updated: Oct 28

What is ABAC (Attribute Based Access Control)?

 

ABAC, or attribute based access control, is a way to decide whether an access request should be allowed by evaluating attributes against a policy. Those attributes describe the requester, the resource, the requested action and, where relevant, the surrounding conditions.

 

For example, a policy might allow an engineer to read a project document only when their assigned project matches the document's project and the request comes from a managed device. The policy must use trustworthy information, and a system must enforce the result. Adding a label to a file does not protect it by itself.

 

ABAC is an approach to access control, rather than a single product or protocol. Its value is the ability to express access rules using relevant properties of the request, without necessarily creating a separate role for every combination of circumstances.

 

How attribute based access control works

 

NIST SP 800-162, published in 2014 with updates in 2019, describes evaluating subject, object and operation attributes, and sometimes environmental conditions, against policy. The model is broader than matching two tags: policies can express relationships and conditions involving several attributes.

 

An attribute is a property with a value. A subject might have a department or project membership; a document might have an owner, project or classification. The operation could be read, edit or delete. Context could include the current time or a verified device condition. The attributes available and how reliably they are obtained depend on the implementation.

 

The illustration shows attributes being evaluated by a policy, followed by an allow or deny decision and enforcement at the resource. These are conceptual stages, not a guarantee that every product uses the same architecture.

 

ABAC infographic showing subject, resource, action and context attributes evaluated against policy, followed by a decision and enforcement

 

  1. Receive a request for an action on a particular resource.

  2. Collect the attributes required by the applicable policy.

  3. Evaluate those attributes, their relationships and any relevant conditions.

  4. Return a decision and enforce the permitted outcome.

  5. Record useful decision information and review the policy and attributes over time.

 

A policy engine can make the correct decision and still fail to protect data if an application does not enforce it. Equally, an enforcement point cannot make a reliable decision from a fabricated project membership or an out-of-date device status. The whole path matters.

 

The four main inputs

 

Input

What it describes

Illustrative attributes

Subject

Person, device or service requesting access

Department, project membership, identity assurance

Resource

Object or service being accessed

Project, owner, sensitivity, tenant

Action

Operation being requested

Read, modify, approve, delete

Environment

Relevant surrounding conditions

Time, network context, current threat state

 

The categories help explain a policy, but products organise inputs differently. A device property might be associated with the requester or supplied as contextual information. The important questions are what the value means, where it comes from, how fresh it is and whether it is trusted.

 

An IP address can be an input, but it does not establish the identity of a person. Location inferred from an address is also imperfect. A rule that treats a familiar network as sufficient proof of trust can leave access broader than intended.

 

Policy decisions and enforcement

 

A common conceptual architecture separates policy administration, attribute retrieval, decision making and enforcement. A policy decision point evaluates the request; a policy enforcement point controls the actual operation. Attribute information may come from a directory, resource metadata service, device management system or another authoritative source.

 

These functions may be built into one application or distributed across services. A separate policy service can improve consistency, but it introduces dependencies: the application needs a defined response when attributes cannot be retrieved, the service times out or the decision is ambiguous.

 

Design those failure cases explicitly. For sensitive operations, unavailable or untrusted information should normally prevent access unless a controlled exception is justified. A missing attribute should not accidentally satisfy a broad rule. The precise outcomes and policy-combining behaviour depend on the engine and configuration.

 

ABAC compared with RBAC

 

Role based access control groups permissions into roles and assigns identities to those roles. ABAC evaluates attributes against policy. A role can itself be an attribute used by a broader decision, so the approaches can work together.

 

Design question

RBAC approach

ABAC approach

Who may read a project file?

Assign a project-reader role at the required scope

Compare authorised project membership with the file's project

How are temporary conditions handled?

Use supported activation, expiry or additional controls

Evaluate supported time or context attributes

What needs maintaining?

Role definitions, assignments and scope

Policies, attributes, sources and enforcement

 

Neither approach automatically provides least privilege. An RBAC role can be too broad; an ABAC rule can accept an inappropriate attribute or miss an important resource boundary. Choose according to the real access problem and the platform's capabilities, rather than treating one model as inherently more secure.

 

ABAC can help when access depends on many changing combinations, such as projects, classifications and customer boundaries. It can also become difficult to understand if rules multiply or attribute meanings are inconsistent. A small set of clear roles may be easier to operate where responsibilities are stable.

 

Authentication is still a separate concern

 

Authentication checks a claimed identity or credential. ABAC contributes to authorisation, which decides whether the requested action is permitted. A successful sign-in does not prove that every attribute supplied in the request is correct.

 

An application should obtain security-relevant attributes from trusted sources or validate the claims it accepts. A caller-controlled field stating department=finance should not be treated as authoritative simply because it appears in a request. Signed claims also need appropriate validation, including issuer, intended recipient and validity, rather than blind trust in their presence.

 

A practical example: a UK support portal

 

Imagine a UK technical support business with engineers assigned to different customer projects. This is a hypothetical policy design, not a tested configuration or a description of a specific provider.

 

The intended rule allows an engineer to read a diagnostic report when the engineer is authorised for the report's project, the action is read and the device satisfies the organisation's managed-device requirement. Editing the report needs a separate permission. A real system must define how project membership, report ownership and device condition are established.

 

Request

Relevant conditions

Intended result

Read an assigned project's report

Project matches; device satisfies policy

Allow if all other applicable controls permit

Read another project's report

Project does not match

Deny through this policy

Edit the assigned project's report

Action is not read

No permission from this read policy

Read when device status is missing

Required condition cannot be established

Deny under the proposed design

 

The wording matters. Failing one allow policy does not universally mean that every other policy denies access. If another assignment or route independently permits the request, the user may still succeed. The complete policy system needs to enforce the intended boundary.

 

Test the same conditions through the visible interface, direct API requests, downloads and any sharing links. A report that is correctly protected in the portal may still be exposed through an unprotected export or storage location.

 

Attributes are part of the security boundary

 

Who can change an attribute is as important as the policy that reads it. If a user can assign themselves to any project, a project-matching rule offers little protection. If a resource owner can remove a sensitivity label without oversight, classification-based restrictions may be weakened.

 

Define attribute names, allowed values, owners and update rules. Decide which source is authoritative when directories or services disagree. Protect attribute changes, log relevant administrative actions and remove or update values when people move teams or resources change purpose.

 

Freshness also matters. A device may become non-compliant after a token was issued, or an engineer may leave a project while a session is still active. ABAC does not inherently guarantee continuous re-evaluation or instant revocation. Check when the product obtains attributes, how long it caches decisions and whether ongoing sessions are revisited.

 

Use only the information required for the policy and protect it appropriately. Device, identity and location attributes can be sensitive. Detailed decision logs can also reveal resource names or organisational relationships, so their access and retention need deliberate management.

 

What AWS and Azure mean by ABAC

 

AWS's ABAC documentation describes using tags on principals and resources in IAM policy conditions. A policy can, for example, compare a principal's project tag with a resource's project tag. Support varies by service, resource and action, so confirm the applicable condition keys rather than assuming every operation supports the same checks.

 

AWS tag-based policies require control over who can set or change the relevant tags, including tags supplied when resources or sessions are created. Matching tags are only one part of the permission evaluation. Other applicable policies can restrict or grant access according to AWS's evaluation rules.

 

Microsoft's Azure ABAC implementation adds conditions to supported role assignments. Conditions narrow the permissions provided by that assignment, rather than replacing all Azure RBAC. Support is tied to particular actions, attribute types and services; do not assume it applies to every Azure resource.

 

A condition on one Azure role assignment is not a universal explicit deny. Another applicable assignment can independently grant the same action. When investigating unexpected access, inspect all relevant assignments, their scopes and alternative authorisation methods. These are implementation examples, not universal semantics for every ABAC engine.

 

How to design and test an ABAC policy

 

Start with a plain-language rule that names the subject, action, resource and required conditions. Keep it narrow enough that a reviewer can explain both an allowed request and a denied request. Then map that rule to attributes the actual platform can obtain reliably.

 

  1. Identify the protected resources and the operations that need separate permissions.

  2. Define the attributes, their meaning, authoritative sources and who can change them.

  3. Specify behaviour for missing, stale, invalid and conflicting values.

  4. Implement the policy and verify enforcement on every relevant access path.

  5. Test allowed and denied combinations with authorised test accounts and non-sensitive data.

  6. Test updates, revocation, caches, service outages and overlapping policies.

  7. Record expected outcomes and repeat checks after policy or platform changes.

 

Include boundary cases. Test a correct project with the wrong action, a correct action with the wrong resource, missing device information and a user who has a second access grant. When time is part of the policy, define the time zone and test the start and end boundaries. Do not assume a device's local clock is an authoritative time source.

 

Do not silently turn an example into production configuration. Policy syntax, operators, case sensitivity, multi-valued attributes and error behaviour vary. Review the documentation for the selected product and version, then test the actual result.

 

Common problems and trade-offs

 

  • Untrusted attributes: a caller can supply or modify a value used to grant access.

  • Stale information: a cached claim or decision survives a change in responsibility.

  • Inconsistent labels: project names or classifications mean different things in different systems.

  • Missing-value errors: incomplete data unexpectedly grants access or blocks legitimate work.

  • Overlapping permissions: another policy or route provides access outside the intended condition.

  • Incomplete enforcement: the interface checks a policy but the API or export does not.

  • Excessive complexity: reviewers cannot explain why a request was permitted.

 

Retrieving attributes and evaluating policies can add processing and network dependencies. Caching can reduce that cost but lengthen the time before a change takes effect. There is no useful universal latency figure: measure the chosen implementation under representative conditions and include its failure behaviour.

 

Key takeaway

 

ABAC can express precise access rules, but the security comes from the complete chain: trustworthy attributes, understandable policies and consistent enforcement. Trace every input and access path, test failures as carefully as successful requests, and verify what happens when attributes change.

 

Frequently asked questions

 

What does ABAC stand for?

 

ABAC stands for attribute based access control. It decides whether a requested action is allowed by evaluating properties of the requester, the resource, the action and, where supported, the environment against a policy. For example, a policy could allow project members to read documents carrying the same project classification.

 

What is an attribute in ABAC?

 

An attribute is a property that a policy uses when deciding access. Examples include a user's department, a resource's project tag, the requested operation or a device's compliance status. Attribute values need an authoritative source and controlled updates: allowing users to change their own security classification can undermine the policy.

 

What is the difference between ABAC and RBAC?

 

RBAC assigns permissions through roles, such as reader or administrator. ABAC evaluates attributes against conditions, such as whether the requester and document belong to the same project. They can work together: Azure ABAC, for example, adds conditions to supported role assignments. Choose according to the permissions you need and the attributes you can maintain reliably.

 

Is ABAC just matching tags?

 

No. Matching a principal's project tag to a resource's project tag is one practical implementation, including in AWS IAM. The wider ABAC model can evaluate requester, resource, action and environmental attributes through more complex conditions. Supported attributes and operations vary by platform, so a tag-based example should not be treated as a universal configuration.

 

Does ABAC automatically revoke access immediately?

 

No. An attribute change affects access only when the relevant service evaluates it and enforces the new result. Existing sessions, cached decisions and attributes carried in previously issued tokens can delay the effect. Check the platform's evaluation and token rules, then test both a fresh request and an existing session after changing or removing an attribute.

 

Can ABAC use device information?

 

Yes, if the policy engine and enforcement service support suitable device attributes. A policy might require a managed or compliant device before allowing a sensitive operation. The status must come from a trusted, sufficiently current source; a value supplied freely by the requesting device is not reliable evidence. Define what happens when that information is missing or stale.

 

Does a failed ABAC condition always deny access?

 

No. Failing a condition may prevent one permission grant without overriding a separate grant. In Azure ABAC, role assignment conditions narrow that assignment's permissions and do not create a universal explicit deny. Review every applicable role, policy and access path, then test the effective permissions using an account that also has the overlapping grants.

 
 
UK Techie Broadband Providers
bottom of page