Skip to content

2.01 Readings and Lecture Notes ​

January 18-24 · MLK Day is Monday, January 18 · Reading: 14 pages · About 2 hrs 30 min with the worked example

What to do this week, and when it is due, is on the Module 2 Overview.

Readings ​

SourceSectionsPrinted pagesLengthTime
CyBOK v1.1.0§1.4 Principles: especially §1.4.1 Saltzer and Schroeder9-135 pp35 min
CyBOK v1.1.0§1.5 Crosscutting Themes13-152 pp10 min
CyBOK v1.1.0§4.3 Human Error158-1613 pp20 min
CyBOK v1.1.0§4.4 Cybersecurity awareness and education161-1654 pp25 min
Saltzer & Schroeder (1975)Section I: the numbered principles onlynone~3 pp20 min

Saltzer & Schroeder: https://web.mit.edu/Saltzer/www/publications/protection/. Read the list and the paragraph explaining each principle; skip the rest of the paper. It is worth reading the original once: it is unusually clear, and it was written before most of the technology it describes existed.

The eight principles ​

PrincipleThe short versionThe question it asks
Economy of mechanismKeep the protection mechanism small and simple.Could somebody read all of it and be sure it is right?
Fail-safe defaultsDeny by default; grant by explicit permission.What happens before anybody configures anything?
Complete mediationCheck every access to every object, every time.Is the decision cached? For how long?
Open designDo not depend on the design being secret.If the source code leaked tomorrow, what would break?
Separation of privilegeRequire more than one condition to grant access.How many things must go wrong at once?
Least privilegeGive the minimum access needed to do the job.What could this account do that its job never requires?
Least common mechanismMinimize what is shared between users.What do two users share that could become a channel?
Psychological acceptabilityIf it is painful, people will route around it.What is the workaround, and how obvious is it?

The two that this course grades hardest are fail-safe defaults and complete mediation, because they are the two people most often think they have satisfied when they have not.

Worked example ​

Take a system almost everyone reading this uses: a campus building door with a card reader.

Fail-safe defaults. What happens when a new employee's card is issued? If the card works on every exterior door by default and access is removed later by exception, that is a fail-safe defaults violation, regardless of how good the access request system is. The default is grant, and the principle says the default must be deny.

Now the harder version. What happens when the network link to the access server fails? Many installations unlock the doors, because fire codes require people to be able to get out. That is a real conflict between safety and security, and the resolution (unlock) is defensible. But it is still a fail-safe defaults decision, and it should be made deliberately, documented, and defended, not stumbled into. "Fail-safe" does not automatically mean "locked"; it means the failure mode is chosen rather than accidental.

Complete mediation. You tap your card and the door opens. Do you tap again when you go through the next interior door? If the system checks once at the building entrance and then treats you as trusted everywhere inside, that is caching an authorization decision, the same failure as a session token that stays valid for ninety days after your account is disabled.

Note what complete mediation does not say: it does not say check often, it says check every time. A system that rechecks hourly is better than one that never rechecks, and it still is not complete mediation.

Psychological acceptability, and where the two meet. Suppose the building implements complete mediation properly: every interior door requires a tap. Staff carrying equipment now cannot get through doors with their hands full. Within a week somebody props a door open with a fire extinguisher.

The security team's instinct is to send an email about propped doors. Look at it through §4.3 instead: a person with a legitimate task was given a control that made the task impossible, and they solved their problem. The propped door is not a discipline failure. It is a design output: it is what this design produces when it meets a person carrying a box. The fix is a door that opens on approach for badged staff, or a hands-free reader, or accepting that this door does not get mediated.

That is the pattern to look for all semester: a control, a legitimate task it obstructs, and the predictable workaround. When you find it, the workaround is evidence about the control.

Key terms ​

TermShort form
Fail-safe defaultsThe default decision is denial; access is granted by explicit permission.
Complete mediationEvery access to every object is checked every time, with no cached decisions.
Least privilegeMinimum access required for the job. One condition, narrowly scoped.
Separation of privilegeMore than one condition must be satisfied. Two or more conditions.
Open designSecurity rests on the key, not on the secrecy of the design.
Psychological acceptabilityA control people cannot comply with will be worked around.
Human errorOrdinary people doing reasonable things under constraints, not misconduct.

Least privilege and separation of privilege get confused constantly. Least privilege is about how much access; separation of privilege is about how many conditions. Read-only backup access is least privilege. Two administrators to approve a deletion is separation of privilege.

Looking ahead ​

Week 3 moves from what you should do to what you are allowed to do: the legal, regulatory, and ethical setting for security work. It ends with the question of what you do when you find a vulnerability in somebody else's system.

Released under the MIT License.