Design rules: least privilege, defense in depth and zero trust
Unit 3 of 5 in Security principles.
You will be able to apply least privilege, separation of duties, fail-safe defaults and layering to a small example.
Lesson
Rules written in 1975 that still hold
In 1975 Jerome Saltzer and Michael Schroeder listed eight design principles for protection mechanisms. Several are the vocabulary of modern security. Economy of mechanism says to keep the design as simple and small as possible, because errors that create unwanted access paths are not noticed during normal use. Fail-safe defaults says to base access decisions on permission rather than exclusion, so that the default situation is lack of access. Complete mediation says every access to every object must be checked for authority.
Open design says the design should not be secret: protection should depend on keys or passwords that are easier to protect, not on attackers' ignorance of the mechanism. Psychological acceptability says the human interface should be easy enough that people apply protections correctly.
Least privilege and separation
Least privilege says every program and every user should operate with the least set of privileges necessary to complete the job. Saltzer and Schroeder note that it limits the damage from accident or error. NIST's control AC-6 states it as allowing only authorized accesses that are necessary to accomplish assigned tasks, and applies it to processes as well as people.
Separation of privilege says a mechanism requiring two keys is more robust than one that opens for a single key. NIST's related control, separation of duties, addresses the potential for abuse of authorized privileges by dividing functions among different people or roles, and by making sure that those who administer access control do not also administer audit functions.
Defense in depth: more than one layer
No single control is perfect, so good designs layer them. NIST's engineering principles list developing layered protections, delineating physical and logical security boundaries and performing threat modeling among the examples. When one layer fails, the next one is still there.
Layering only works if layers fail independently. Two controls that depend on the same password or the same network segment are one layer wearing two names.
Zero trust: do not trust the network
Zero trust is a newer expression of the same ideas. NIST's definition describes concepts designed to minimize uncertainty in enforcing accurate, least-privilege, per-request access decisions in the face of a network viewed as compromised. It assumes no implicit trust is granted to assets or accounts based only on their location or ownership, and treats authentication and authorization as separate steps that happen before a session to a resource starts.
Put together: check every request, give each user and process only what it needs, default to no access, and keep several independent layers.
Key points
- Keep it simple, default to no access, check every access.
- Least privilege and separation of duties limit the damage of mistakes and abuse.
- Defense in depth needs layers that fail independently.
- Zero trust means no implicit trust from location; check each request.
Sources
- Saltzer and Schroeder, The Protection of Information in Computer Systems (1975), basic principles
- NIST SP 800-53 Rev. 5: AC-6 Least Privilege and AC-5 Separation of Duties (OSCAL catalog)
- NIST SP 800-53 Rev. 5: SA-8 Security and Privacy Engineering Principles (OSCAL catalog)
- NIST SP 800-207: Zero Trust Architecture
- Saltzer and Schroeder, The Protection of Information in Computer Systems: abstract and authors
Lecture
Defense in depth: A talk that draws defense in depth as rings and shows how layers fail together.
Practice in the labs
Turn the rules into settings you can see: a layered defence and a least-privilege policy.
- Defend against ransomware: the habits that actually work: You stack several small controls and see how each layer covers a gap in another.
- Write a least-privilege sudoers policy that grants one command, not the keys: You grant exactly two commands and refuse the rest, least privilege in a real configuration.
Knowledge check
- What does 'fail-safe defaults' mean? Answer: The default is no access, and the design names the conditions that allow it. Saltzer and Schroeder: base access decisions on permission rather than exclusion, so the default situation is lack of access.
- Two controls both rely on the same single password. How many layers do you really have? Answer: Effectively one, because one failure defeats both. Layers help only if they fail independently; a shared dependency means one failure breaks both, so they count as a single layer.
- What does zero trust assume about network location? Answer: No implicit trust is granted based only on physical or network location. SP 800-207 says zero trust assumes no implicit trust is granted to assets or accounts based solely on their network location or ownership.
Back to the syllabus or see all classes.