Who decides access: the owner or the system

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

Every system that holds information has to decide, for each person and each file, what that person may do with it. Behind that sits a prior question: who writes the rules? Either the owner of each file chooses, or a central authority sets rules that nobody else can change. No background is assumed. A security professional chooses between these two approaches and must know what each one cannot prevent.

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

  • Read an access control matrix by row and by column
  • Tell apart an access control list and a capability list
  • Explain why discretionary access control cannot stop a copy being shared
  • Decide from a label and a clearance whether mandatory access control allows a read
  • Choose discretionary or mandatory access control for a described organisation

A copy nobody approved

An illustrative example

A housing association keeps its tenancy files on a shared drive. Each team manager owns her team's folder and decides who may open it. Priya, who runs rent arrears, lets a temporary clerk read her folder for one week.

The clerk copies forty tenant files into a folder of his own and shares it with a friend at a debt-collection firm. When Priya removes his permission, the copies stay where they are. The drive's log shows that every step was allowed.

Every step was permitted. Who was trusted to make the rules, and what kind of system would have refused to let the copies be shared?

One table lies behind every access decision

needs an answer for every pairing of subject and object. Picture a large grid. Each row is a subject, such as a person or a program. Each column is an object, such as a file or a printer. The cell where a row meets a column holds the access rights that subject has over that object: read, write, run, delete, or none.

That grid is the access control matrix. It is a model for thinking about access rather than something a system keeps whole. Most cells are empty, because most people have no business with most files. A complete grid would waste space and be slow to search.

An access control matrix for a small surgery
SubjectAppointments diaryPatient notesPayroll file
ReceptionistRead, writeNoneNone
DoctorReadRead, writeNone
Practice managerReadNoneRead, write
Backup programReadReadRead

Systems store the same information in slices. The slice a system keeps decides which questions it can answer quickly.

Access control lists by column, capability lists by row

An access control list (ACL) is one column of the matrix, stored with the object. It names each subject that may use this object and what each may do. The patient notes' list reads: doctor, read and write; backup program, read. Operating systems in everyday use rely on ACLs or something close to them.

A capability list is one row, stored with the subject. It names each object the subject may use. A capability works like a ticket: holding it is what grants entry. The backup program's list reads: appointments diary, patient notes and payroll file, all read only.

Two ways of storing the matrix
PointAccess control listCapability list
Slice of the matrixA columnA row
Kept withThe objectThe subject
Quick to answerWho can use this file?What can this person use?
Slow to answerWhat can this person use?Who can use this file?
Withdrawing access to one fileEdit one listSearch every subject's list

Lists hang on doors, tickets sit in pockets. An ACL is attached to the object and is a column. A capability is carried by the subject and is a row.

Discretionary access control: the owner decides

In discretionary access control (DAC) each object has an owner, usually the person who created it. The owner decides who else may use it and how, at her own discretion. Shared drives, office computers and most cloud file services work this way. lists are the usual mechanism.

is flexible, and no administrator has to approve each change. The same freedom gives it two weaknesses that formal guidance names.

Copies escape the owner
Permission to read includes the ability to copy. A reader can copy the contents into a file he owns and share that copy with anyone. The original owner's list has no hold over the copy.
Programs act as their user
A program runs with the rights of the person who starts it. A Trojan horse is a program that does something useful on the surface and something harmful underneath. Run by the owner, it can read, change or send her files, and the log records the owner doing it.

Each owner also decides alone. Access across the organisation then follows many private judgements instead of one .

Common misconception

“Removing a person from a file's access list takes back what they were given.”

It stops further use of the original. Copies already made belong to whoever made them, and the original list does not reach them. DAC controls access to an object, not what happens to the information afterwards.

Mandatory access control: labels and clearances decide

Non-discretionary access control is any model in which ordinary users cannot change the rules. Only administrative action, on the organisation's behalf, can. Mandatory control is the best-known example. control also belongs to this family.

In mandatory access control (MAC) a central authority sets the rules and the system enforces them on everyone. Every object carries a security label: a , such as Confidential, Secret or Top Secret, and often one or more compartments. A compartment is a named grouping, such as one project, that needs its own approval on top of the level. Every subject holds a clearance written the same way.

Before each access the system compares the two. A subject's label dominates an object's when its level is at least as high and it includes every compartment the object has. A clearance of Secret with compartment Harbour dominates a file labelled Confidential, Harbour. It does not dominate Confidential, Airfield, because the compartment is missing. Compartments are how enforces .

Ordered by dominance, the labels form a lattice: an arrangement in which any two labels have one lowest label above both and one highest label below both. Labels that use levels alone make a hierarchical environment, like rungs of a ladder. Labels that use compartments alone make a compartmentalised environment, where no compartment ranks above another. Most real schemes are hybrid, combining a level with compartments.

Owners cannot relabel an object or pass access on. That is why MAC stops the copying that defeats DAC: a copy keeps its label.

Discretionary and mandatory control side by side

Discretionary against mandatory access control
PointDiscretionary (DAC)Mandatory (MAC)
Who decidesThe owner of each objectA central authority, through labels
Can a user pass access on?Yes, at the owner's choiceNo
Basis of the decisionWho the subject is, or its groupObject's label against subject's clearance
Usual mechanismAccess control listsLabels compared by the system
Typical settingOffices and shared file servicesMilitary and government classified systems
Main weaknessCopies and Trojan horses escape the ownerRigid, and every object needs a label

Two formal models write down mandatory rules. Bell-LaPadula protects : a subject may not read above its level or write below it, so secrets cannot leak downwards. Biba protects with the reverse rules, so that less trustworthy data cannot flow up into more trustworthy data.

One system can run both kinds at once. Mandatory rules set the outer limit, and inside that limit owners may still choose whom to share with. Access then needs both to agree, and the mandatory rule always wins.

Common misconception

“Under mandatory access control the data owner decides who may see a file.”

An owner may be asked which label a file should carry. Once it is labelled, the owner cannot change the label or grant access outside it. The system decides by comparing labels and clearances.

A question, worked through

A defence supplier keeps design files for two government projects on one system. Engineers on one project must never see the other project's files. The contract also forbids engineers from sharing any file with people not cleared for its project. Last month an engineer gave a colleague from the other project access to a folder, meaning to help.

Which access control approach BEST meets the contract?

  1. Discretionary control, with owners trained to share with care
  2. Mandatory control, with each project a compartment on the label
  3. Discretionary control, with each file's list reviewed monthly
  4. Mandatory control, with one Secret level for both projects
Decide on your answer, then open the reasoning
  1. The contract says engineers must not be able to share outside the cleared group. The question is who holds the power to grant access.
  2. Rule out a: training leaves the decision with each owner. The incident was a well-meant share, which training would not reliably stop.
  3. Rule out c: a monthly review finds a wrong share after it has happened. Under discretionary control the owner can still make it.
  4. Between b and d: both take the decision away from owners. With one level and no compartments, every engineer cleared to Secret dominates every file, so each project could read the other's work.
  5. A compartment adds need to know to the label. An engineer cleared for one project's compartment cannot read the other's files and cannot pass access on. Option b is the best answer.

Answer: B. Mandatory control, with each project a compartment on the label

Choosing between good answers

A question asks who decides access
the owner of the object means discretionary control. A central authority using labels and clearances means mandatory control.
A scenario says users must not be able to pass access to others
choose mandatory access control. Under discretionary control an owner, or a reader holding a copy, can always share.
An answer describes a list attached to a file
it is an access control list, a column of the matrix. A list held for each user is a capability list, a row.
A subject's level is high enough and access is still refused
look for a compartment the subject lacks. The level and the compartments must both dominate.

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

On a shared drive, each folder carries a list naming the people who may open it and what each of them may do: read, change or delete.

What is this list called?

What to remember

  • The access control matrix sets subjects against objects. An access control list is a column kept with the object; a capability list is a row kept with the subject.
  • In discretionary access control the owner decides who may use each object, usually through access control lists.
  • Discretionary control cannot stop a reader copying and sharing information, and a Trojan horse acts with its user's rights.
  • In mandatory access control the system compares the object's label with the subject's clearance, and users cannot change either.
  • A label dominates another when its level is at least as high and it includes all the other's compartments. Compartments carry need to know.
  • Non-discretionary access control is every model in which users cannot change the rules. Mandatory control is its best-known example.

Say it from memory

  1. How does mandatory access control decide access, and what do labels, compartments, dominance and the lattice mean?

    A central authority sets rules the system enforces. Objects carry labels of a level plus compartments; subjects hold clearances in the same form. Access needs the subject's label to dominate: a level at least as high and every compartment included. Users cannot relabel or pass access on. Ordered by dominance, labels form a lattice. Levels alone make a hierarchical environment, compartments alone a compartmentalised one, both a hybrid.

    Read this part again

  2. How does discretionary access control work, and what are its weaknesses?

    Each object has an owner who decides, at her discretion, who may use it and how, usually through an access control list. It is flexible but weak in two ways: a reader can copy information and share the copy, and a Trojan horse run by the owner acts with the owner's rights. Access across the organisation also follows each owner's judgement instead of one policy.

    Read this part again

  3. What is an access control matrix, and why does no system keep it whole?

    A grid with a row for each subject and a column for each object, each cell holding that subject's access rights over that object. It is a model for thinking about access. Most cells are empty, so a complete grid would waste space and be slow to search; systems store it in slices.

    Read this part again

  4. How does an access control list differ from a capability list?

    An access control list is one column of the matrix, kept with the object; it quickly answers who can use this file. A capability list is one row, kept with the subject; it quickly answers what this person can use. Withdrawing access to one file means editing one ACL, but searching every subject's capability list.

    Read this part again

  5. What do the Bell-LaPadula and Biba models each protect, and with what rules?

    Bell-LaPadula protects confidentiality: a subject may not read above its level or write below it, so secrets cannot leak downwards. Biba protects integrity with the reverse rules, so less trustworthy data cannot flow up into more trustworthy data.

    Read this part again

Sources