Certified Information Systems Security Professional (CISSP)
Secure design principles: least privilege, defense in depth
NIST SP 800-160 Vol. 1 Rev. 1 Appendix E lists trustworthy secure design principles. Least privilege gives each system element only the privileges its specified functions need. Least functionality gives it only the capability its required functions need. Defense in depth prevents or minimizes loss through multiple coordinated mechanisms, so loss control never rests on one barrier.
Least privilege, least functionality or least persistence?
Least privilege: each system element is allocated the privileges necessary to accomplish its specified functions and no more. SP 800-160 names two effects. The impact of a failure, corruption or misuse of the element is minimized, and the analysis of the element is simplified.
Least functionality: each system element has the capability to accomplish its required functions and no more. The strictest reading prohibits functions that are not required. Where that is not practical, as with commercial off-the-shelf components that ship with extra functions, the unneeded functions are disabled or restricted.
Least persistence: system elements and resources are available, accessible and able to fulfil their design intent only for the time they are needed. The broadest reading is not to install, instantiate or power an element until it is needed, and to remove it when it is no longer required.
Defense in depth, redundancy and protective failure
Defense in depth prevents or minimizes loss by employing multiple coordinated mechanisms. Its point is that loss control does not depend on a single defensive element.
Redundancy delivers the required capability by replicating system functions or elements. It uses multiples of the same element to avoid single points of failure, with a strategy such as load-balancing, fail-over or voting. Redundant elements can fail together from a single event, called common mode failure, and SP 800-160 names diversity as the way to address that.
Protective failure means a failure of a system element neither results in unacceptable loss nor invokes another loss scenario. SP 800-160 calls it a generalization of fail secure and fail safe. Two aspects must both hold: avoid single points of failure, and avoid propagating new failures.
Principles about trust and separation
Domain separation: domains with distinctly different protection needs are physically or logically separated, with control over information flow between them. Hierarchical protection: a system element need not be protected from more trustworthy elements. An operating system kernel must protect itself from applications, but the applications need not protect themselves from the kernel.
Minimal trusted elements: a system has as few trusted elements as practicable, because trusted elements cost more to build and need more analysis. Distributed privilege: multiple authorized entities must act in a coordinated manner before an operation can occur, so defeating it requires collusion.
Where the exam catches people
- Believing least privilege and least functionality are the same: one limits what an element is permitted to do, and the other limits what it is capable of doing.
- Believing disabling unused features of a COTS component is least privilege: SP 800-160 gives that as its least functionality example.
- Believing redundancy alone protects against every failure: identical copies share common mode failure, which diversity addresses.
- Believing defense in depth means several copies of one control: redundancy replicates the same element, and defense in depth coordinates multiple mechanisms so no single one carries loss control.
- Believing environments that exist only while a job runs show least privilege: limiting how long resources exist is least persistence.