Access decided by attributes, context and risk

8 min 5 sections 5 practice questions 7 sources citedISC2 objective 5.4

A job title alone often cannot say whether a request should be allowed. The answer may depend on whose record it is, which device is asking, where the person is, what time it is and how risky the request looks right now. No background is assumed. A security professional needs to know the models that weigh these facts and the separate parts of a system that make a decision and carry it out.

By the end of this unit you will be able to:

  • Explain content-dependent and context-dependent control and constrained interfaces
  • Write an attribute-based rule using subject, object, action and environment attributes
  • Explain how risk-based control uses signals and step-up authentication
  • Put the policy enforcement, decision, information and administration points in order
  • Name the model that a described access decision uses, from six

The right role, the wrong client

An illustrative example

A home-care agency gives its carers a phone app that shows clients' care notes. Every carer holds the role Carer, which can read care notes.

A well-known musician becomes a client in March. Within a week, thirty carers have opened her notes, though only four are on her rota. One opened them at two in the morning from a phone that was not the agency's. Each carer held the right role, so the app allowed every request.

The role was correct for all thirty. Which other facts about each request should the app have checked before showing the notes?

Access that depends on content, context and time

Content-dependent access control decides from what the information itself contains. A database view shows a user only certain records or fields. A clerk who handles surnames A to C sees only those records, though all the records sit in one table.

Context-dependent access control decides from the circumstances of the request: where it comes from, what has happened before, or the step a task has reached. A bank's phone system can open one customer's account to a clerk for the length of a call, then close it again.

A temporal restriction is context that is time: personnel files only in working hours, or a teller role only during banking hours.

A constrained interface limits what a user can even ask for. There are three kinds:

  • Menus and restricted shells offer only the commands the user may run. A shell is a program that accepts typed commands.
  • Database views show only permitted fields and records.
  • Physical limits, such as a cash machine with a few buttons and no keyboard.

Each of these looks beyond the person's identity or role to some fact about the request. Attribute-based control makes that idea general.

Attribute-based access control: decisions written in facts

An attribute is a named fact with a value, such as department = Nursing or device = agency-managed. In attribute-based access control (ABAC) a written in attributes is checked against four kinds of fact at the moment of the request.

Subject attributes
Facts about the requester: job, team, clearance, training completed.
Object attributes
Facts about the thing requested: owner, sensitivity, which client it concerns.
Action
The operation asked for: read, change, delete, approve.
Environment conditions
Facts about neither party: time, location, the device used, the current threat level.

One rule the care agency could write

Allow a carer to read care notes when the client is on that carer's rota this week. The device must be agency-managed, and the time must fall within the carer's shift.

No new role is needed when a client joins. The rota changes, and the decision follows.

can decide for people and objects that have never met, which suits large and shared systems. It avoids role explosion, because one rule replaces hundreds of narrow roles. Its cost is that every attribute must be accurate, current and defined the same way everywhere. A wrong rota entry is a wrong decision.

The Extensible Access Control Markup Language (XACML) is an OASIS standard for writing such policies. It is written in XML, a text format for structured data. A policy returns Permit, Deny, NotApplicable when no policy covers the request, or Indeterminate when evaluation fails.

Risk-based and risk-adaptive control

Risk-based access control weighs how risky this particular request is, now, before deciding. The same person asking for the same record may be allowed one day and challenged the next.

Typical signals are how strongly the user signed in and whether the device is managed and up to date. Others are the location, current and whether behaviour matches the person's history. A request that departs from the usual pattern can be met with step-up authentication: a demand for stronger proof, such as a passkey, before access continues. It can also be limited to reading, or refused.

Risk-adaptive access control (RAdAC), also called -adaptable, grants access from the user's identity, the operational need for the access, and the security risk between the user and the system. Its risk measures include how strong the authentication was, how well the connection is protected and where the user is. It differs from plain risk-based control by weighing the need for access, not only the danger of it.

Risk-based control is the working rule of zero trust, an approach in which no request is trusted because of where it comes from. Each access is judged on its own and can be re-checked during the session.

Common misconception

“Risk-based control means the system decides freely, with no fixed policy.”

The organisation still writes the policy. It sets which signals count, how much each weighs and what happens at each level of risk. The system applies that policy to the facts of each request.

Where the decision is made and where it is enforced

Larger systems split one access check into separate parts. Think of a busy venue. Door staff stop each guest and radio the manager. The manager checks the guest list and the house rules, then says yes or no. The owner wrote the rules, and the list came from the booking office.

  1. The policy enforcement point (PEP) sits in the path of the request and stops it, like the door staff. It must be impossible to go round.
  2. The asks the policy decision point (PDP), which evaluates the policies and returns a decision.
  3. The gathers the attributes it needs from the policy information point (PIP), such as a directory of staff or a device register.
  4. The policies themselves are written, tested and stored through the policy administration point (PAP).
  5. The PEP carries out the decision: it lets the request through or blocks it.

One request passes four policy points

One request passes four policy pointsA subject's request meets the enforcement point on its way to the object. The enforcement point asks the decision point, which takes attribute values from the information point and policies from the administration point.Where the decision is madeInformationpoint (PIP)attribute valuesDecisionpoint (PDP)returns allow or denyAdministrationpoint (PAP)writes the policiesSubjecta nurseEnforcementpoint (PEP)cannot be bypassedObjectthe patient recordrequestallow or deny?if allowedOne request passes four policy pointsA subject's request meets the enforcement point on its way to the object. The enforcement point asks the decision point, which takes attribute values from the information point and policies from the administration point.Where the decision is madeInformationpoint (PIP)attribute valuesDecisionpoint (PDP)returns allow or denyAdministrationpoint (PAP)writes the policiesSubjecta nurseEnforcementpoint (PEP)cannot be bypassedObjectthe patient recordrequestallow or deny?if allowed
Read this figure as text

Larger systems split one access check into four parts. The part in the request's path enforces a decision, and the decision itself is made elsewhere from facts and rules.

  1. A subject, for example a nurse, asks to read a patient record. The policy enforcement point (PEP) sits in the path of every request, cannot be bypassed, and stops it.
  2. The PEP asks the policy decision point (PDP), which evaluates the applicable policies against the facts of the request and returns allow or deny.
  3. The policy information point (PIP) supplies the attribute values the decision needs, such as the staff directory, the rota or the device register.
  4. The policy administration point (PAP) is where policies are written, tested and stored before the PDP uses them.
  5. The PEP carries out the decision. Only an allowed request continues to the object, the protected resource. In NIST's zero trust architecture the decision point is split in two: the policy engine decides and logs, and the policy administrator tells the enforcement point to open or close the connection.

NIST's divides the decision point in two. The policy engine makes and logs the decision. The policy administrator carries it out by telling the enforcement point to open or close the connection.

Enforce, decide, inform, administer: the PEP stops, the PDP judges, the PIP supplies facts, the PAP writes the rules.

Six models, one question each

Who or what decides in each access control model
ModelDecided byBasis of the decisionClue in a question
Discretionary (DAC)The object's ownerThe owner's choice, through an access listThe owner shares a file
Mandatory (MAC)A central authorityLabels against clearancesClassified, Secret, compartments
Role-based (RBAC)AdministratorsThe user's job roleJob title, team, function
Rule-based (RuBAC)AdministratorsRules applied to every request rules, office hours
Attribute-based (ABAC)A policy over attributesSubject, object, action, environmentSeveral conditions at once
Risk-based or RAdACA policy weighing riskSignals now, and operational needUnusual location, step-up

Only the first leaves the decision with users. The other five are non-discretionary. A question that names who decides points to or . One that lists conditions points to rules or attributes, and one that weighs the moment points to risk.

A question, worked through

A hospital trust lets nurses read patient records. A review finds nurses opening records of patients on other wards. The trust wants nurses to read only records of patients on their own ward, only during their shift and only from trust-managed devices. It does not want the access team to maintain a new permission every time a nurse changes shift.

Which access control approach BEST meets the trust's requirements?

  1. Create a role for every combination of ward and shift
  2. Write one policy on nurse, patient, device and time
  3. Let each ward manager grant access to her ward's records
  4. Label each record by ward and clear nurses for their ward
Decide on your answer, then open the reasoning
  1. The requirement has three conditions, ward, shift and device, and the trust wants no new permission for every shift change.
  2. Rule out c: it hands the decision to owners, which is discretionary control. Nothing in it checks shift or device.
  3. Rule out a: roles can express ward and shift, but only by multiplying into hundreds of narrow roles. That is role explosion, and every rota change means new assignments.
  4. Between b and d: labels and clearances can carry the ward, but mandatory labels are fixed and say nothing about time or device.
  5. An attribute policy reads the nurse's ward and shift from the rota, the patient's ward from the record and the device from the register at each request. Option b is the best answer.

Answer: B. Write one policy on nurse, patient, device and time

Choosing between good answers

A decision needs several facts at once, such as role, location, device and time
choose attribute-based access control. Role-based control would need a role for every combination.
A request is allowed in one setting and challenged in another for the same user
the model is risk-based. Step-up authentication is the usual response to raised risk.
A question asks which component blocks or allows the request
the answer is the policy enforcement point. The decision point only judges.
A question asks where attribute values come from
the answer is the policy information point. Policies are written at the administration point.
Operational need is weighed against risk
the model is risk-adaptive access control (RAdAC).

Check your understanding

5 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.

These questions are drafts that no named reviewer has approved yet.

Question 1 of 5

Match each access control model to the basis on which it decides.

Choose the match for each entry. Every match has to be right.

What to remember

  • Content-dependent control decides from what the information contains; context-dependent control decides from the circumstances of the request, including time.
  • A constrained interface limits what a user can ask for, through menus, database views or physical controls.
  • Attribute-based control checks a policy against subject, object, action and environment attributes at each request. XACML is a standard language for such policies.
  • Risk-based control weighs the risk of each request now and can demand step-up authentication. RAdAC weighs operational need against that risk.
  • The PEP intercepts and enforces, the PDP decides, the PIP supplies attributes and the PAP manages the policies. In zero trust the PDP is split into a policy engine and a policy administrator.

Say it from memory

  1. How does attribute-based access control decide, and what are its strengths and weakness?

    A policy written in attributes is checked at each request against subject attributes, object attributes, the action and environment conditions such as time, location and device. It handles many conditions at once, works for parties that have never met and avoids role explosion. It depends on every attribute being accurate and consistently defined. XACML is a standard language for ABAC policies.

    Read this part again

  2. What is risk-based or risk-adaptive access control, and which signals does it use?

    It weighs the risk of each request at the moment it is made: authentication strength, device state, location, threat intelligence and whether behaviour matches the user's history. Raised risk can bring step-up authentication, limited access or refusal. Risk-adaptive access control (RAdAC) grants access from identity, operational need and security risk together. It underpins zero trust, where every access is judged on its own.

    Read this part again

  3. What do the policy enforcement, decision, information and administration points do?

    The policy enforcement point intercepts each request and carries out the decision. The policy decision point evaluates the policies and returns allow or deny. The policy information point supplies attribute values. The policy administration point is where policies are written, tested and stored. In NIST's zero trust model the decision point is split into a policy engine, which decides, and a policy administrator, which instructs the enforcement point.

    Read this part again

  4. How does content-dependent access control differ from context-dependent access control?

    Content-dependent control decides from what the information itself contains, for example through a database view that shows only certain records or fields. Context-dependent control decides from the circumstances of the request: where it comes from, what has happened before or the step a task has reached. A temporal restriction is context that is time.

    Read this part again

  5. Of the six access control models, which leaves the decision with users, and who decides in mandatory access control?

    Only discretionary access control (DAC) leaves the decision with users: the object's owner chooses, through an access list. In mandatory access control (MAC) a central authority decides by comparing labels against clearances. The other five models are all non-discretionary.

    Read this part again

Sources