A hospital's door access system loses its link to the server that compiles access reports. The designers want every door to keep checking badges as normal while the reporting stops.
When a control fails: layers and safe failure
Every control fails at some point: a lock is picked, a filter crashes, the power goes off. Two design ideas deal with that. Defence in depth puts several different controls in the way, so that one failure is not the end. Failing securely decides in advance what state a broken part is left in. No technical background is assumed.
By the end of this unit you will be able to:
- Explain defence in depth and why its layers must differ in kind
- Sort a control by category and by function
- Tell apart fail-safe, fail-secure, fail-open, fail-closed and fail-soft
- Choose how a door, a firewall or a payment check should fail, and give the reason
- State the rule that people must always be able to leave
The night the power went off at the pharmacy
An illustrative example
A village pharmacy keeps controlled medicines in a steel cabinet in the back room. One night the power fails across the village. The alarm goes silent, the camera stops recording, and the electronic lock on the back door releases.
In the morning the medicines are still there, because the cabinet has its own key lock and nobody tried the door. The pharmacist rings the alarm company to ask why the back door opened. The engineer says it was set that way on purpose.
Why would anyone set a door to release when the power fails, and what stopped that from costing the pharmacy its stock?
One control is one point of failure
A castle has a moat, a wall, a gate and a keep. An attacker who crosses the moat still faces the wall. Defence in depth applies the same idea to information: several independent controls stand between a threat and an , so that the failure of one does not expose the asset. The practice is also called layering.
NIST describes it as people, technology and operations working together to put barriers across several layers of an organisation. The layers are usually pictured as rings round the data.
Independent layers of control surround the data
Read this figure as text
Defence in depth puts several independent controls between a threat and an asset, so that the failure of one does not expose the asset. The layers are usually pictured as rings round the data, and here they are in series: the threat must defeat each in turn.
- The threat stands outside every ring. It meets the administrative controls first: policy, staff vetting, training and sign-off, also called managerial controls.
- Next it meets the physical controls: a cabinet, a lock, a fence, a guard.
- Then the technical controls, also called logical controls: passwords, encryption and a firewall filtering traffic.
- Only past all three does it reach the data at the centre. Each ring adds time and a chance of being noticed.
- The rings protect because they are of different kinds and fail in different ways. Two locks of the same model open to the same trick.
Layers can be arranged in two ways. In series an intruder must defeat each control in turn: the fence, then the door, then the cabinet. Each extra layer adds time and a chance of being noticed. In parallel the controls sit side by side, such as two entrances to one building. An intruder needs to defeat only one, so the weaker control sets the strength of the whole.
Common misconception
“Defence in depth means buying more of the same control.”
Two locks of the same model open to the same trick. Layers protect only when they fail in different ways: a lock, an alarm and a person who checks the door are three different obstacles.
Layers of three categories and seven functions
Controls are sorted in two ways, and a sound design draws on every group. The first sorting is by what a control is made of.
- Administrative
- Rules and management decisions: a , staff vetting, training, a sign-off. Also called managerial.
- Technical
- Hardware and software: passwords, , a that filters network traffic. Also called logical.
- Physical
- Things that can be touched: a fence, a lock, a guard, a cabinet.
The second sorting is by what a control does.
| Function | What it does | Example |
|---|---|---|
| Preventive | Stops the event | The cabinet lock |
| Detective | Notices the event | The alarm and the camera |
| Corrective | Puts right the immediate damage | Changing the locks after a key is lost |
| Deterrent | Discourages the attempt | A sign saying the premises are monitored |
| Recovery | Returns the business to normal | Restoring records from a backup copy |
| Compensating | Stands in for a control that cannot be used | A nightly stock count where no camera can be fitted |
| Directive | Tells people what to do | A written rule that two staff close up together |
Diversity carries the same thought to suppliers. Two filters built by one maker tend to share one flaw, so a single discovery defeats both. Filters from different makers, or one filter and one human check, are unlikely to fail on the same day.
Five words for how a thing fails
To fail securely is to break without granting anything that would have been refused while working. Designers choose the failure state in advance, and five terms describe the choices.
| Term | State after the failure | A door on power loss | A network filter that crashes |
|---|---|---|---|
| Fail-safe | People and property are protected, at some cost to security | Unlocks | Lets traffic pass so a safety system keeps working |
| Fail-secure | The secure state is kept, at some cost to use | Stays locked against entry | Blocks all traffic |
| Fail-open | The control stops controlling | Unlocked | All traffic passes unchecked |
| Fail-closed | Everything is refused | Locked | No traffic passes |
| Fail-soft | The broken, non-essential part stops and the rest carries on | One reader is out of use and the other doors work | Reporting stops and filtering continues |
Fail-safe and fail-secure name what is being protected. and fail-closed name the position the device is left in. For a door, fail-safe and fail-open describe the same result, and so do fail-secure and fail-closed.
In this table safe has its physical sense: the device puts people first and opens. Saltzer and Schroeder's fail-safe defaults use the other sense, in which software refuses access unless a rule gives permission, which is the same result as failing closed.
For an information system the usual choice is to fail closed. A payment check that cannot reach its service refuses the order. A sign-in service that cannot confirm a password refuses the sign-in. The exception is a system where stopping is the greater harm, such as a link that carries a patient monitor's alarms.
Fail-soft is also called graceful degradation. The system gives up what it can spare and keeps the essential work running.
People must always be able to leave
Human life comes before any asset. The United States workplace safety rule is that an exit route door must open from the inside at all times without keys, tools or special knowledge. A device that restricts the exit must not do so when it fails.
That rule is about leaving, not about entering. It explains the pharmacy's back door, and it also shows a better design.
- Fail-safe door
- The lock is held shut by electricity, as a magnetic lock is. When power is lost it releases in both directions. People can leave, and anyone can enter.
- Fail-secure door
- The lock stays shut without power. A mechanical push bar on the inside still opens it. People can leave, and nobody can enter without a key.
A door with free exit from the inside suits a room that holds valuable assets, such as a server room or a medicine store. A fail-safe door suits a route that crowds must pass through in a fire. Where a fail-safe door protects something valuable, a second layer covers the gap: the pharmacy's locked cabinet did exactly that.
Common misconception
“A fail-secure door traps people inside when the power fails.”
Fail-secure describes entry. The door stays locked to someone outside. A properly fitted door still opens from the inside by a mechanical bar or handle, with no key and no power.
Safe protects people. Secure protects the asset. Open and closed describe the device. When life is at risk, safe wins and another layer protects the asset.
A question, worked through
A hospital is fitting an electronic lock to its pharmacy store. The store has one door, which opens onto a ward corridor. The pharmacy manager needs the store to stay secure during a power cut. The fire officer needs anyone working inside the store to be able to get out at once.
Which design BEST meets both needs?
Decide on your answer, then open the reasoning
- Two needs are stated: no entry during a power cut, and free exit for anyone inside. The best answer meets both without depending on a person arriving.
- Rule out d. A fail-safe lock releases, so the store stands open. The camera is detective: it records a theft and does not stop one.
- Rule out c. The lock keeps the store shut, but nothing in the option lets a person inside get out. A guard may take minutes to arrive, and the exit rule allows no delay.
- Between a and b: the fail-safe lock meets the fire officer's need and fails the manager's. The fail-secure lock with a push bar stays locked to entry and opens from inside with no key and no power.
- Option a protects life first and keeps the asset secure, so no trade between the two is needed.
Answer: A. A fail-secure lock with a mechanical push bar on the inside
Choosing between good answers
- A failure could trap or injure people
- choose the answer that lets them leave. Then look for the layer that protects the asset in the meantime.
- A security device fails and the question stresses secrecy or correctness of data
- choose fail closed. Choose fail open only where the question says stopping the service is the greater harm.
- An asset already has one control and the question asks what to add
- pick a control of a different category or function. A second copy of the same control fails with the first.
- A required control cannot be used
- look for a compensating control that gives similar protection another way, and expect the gap to be recorded and approved.
- An answer uses the word fail-safe
- check what kind of system it describes. For a door or safety system the device opens. For a software access decision it refuses unless permission is given.
Check your understanding
4 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 4
What to remember
- Defence in depth, or layering, puts several independent controls between a threat and an asset. The layers must fail in different ways.
- Controls are administrative, technical or physical. They are preventive, detective, corrective, deterrent, recovery, compensating or directive.
- Fail-safe protects people and property. Fail-secure keeps the secure state. Fail-open and fail-closed describe the position the device is left in.
- Fail-soft shuts down the failed, non-essential part and keeps the rest running.
- An exit door opens from the inside at all times without keys, tools or special knowledge. A fail-secure door meets that rule with a mechanical push bar.
Say it from memory
What is defence in depth, and what makes its layers worth having?
Several independent controls between a threat and an asset, so that one failure does not expose the asset. Also called layering. The layers must differ: across the administrative, technical and physical categories, across functions such as preventive and detective, and across suppliers. Layers in series must each be beaten; layers in parallel are as strong as the weakest.
What does it mean to fail securely, and how do fail-safe, fail-secure and fail-soft differ?
A component fails securely when breaking grants nothing it would have refused while working. Fail-safe protects people and property and may cost security: a door unlocks. Fail-secure keeps the secure state: a door stays locked to entry. Fail-soft stops the failed, non-essential part and keeps the rest running. People must always be able to leave.
Name the seven functions a control can serve, with what each one does.
Preventive stops the event. Detective notices it. Corrective puts right the immediate damage. Deterrent discourages the attempt. Recovery returns the business to normal. Compensating stands in for a control that cannot be used. Directive tells people what to do.
Fail-open and fail-closed: what do they describe, and which is the usual choice for an information system?
They name the position the device is left in: fail-open means the control stops controlling, fail-closed means everything is refused. An information system usually fails closed, so a sign-in service that cannot confirm a password refuses the sign-in. The exception is a system where stopping is the greater harm, such as a patient monitor's alarm link.
How does a fail-safe door differ from a fail-secure door on power loss, and which suits a server room?
A fail-safe lock is held shut by electricity and releases in both directions, so anyone can leave or enter. A fail-secure lock stays shut, while a mechanical push bar inside still lets people leave. A fail-secure door with free exit suits a server room or medicine store.
Sources
- NIST CSRC Glossary: defense in depth, NISTDefence in depth as people, technology and operations establishing barriers across multiple layers of an organisation, and as countermeasures applied in a layered manner.
- NIST CSRC Glossary: fail safe, NISTFail safe as a termination of functions that prevents damage to specified resources and entities, including life, though it might cause a security compromise.
- NIST CSRC Glossary: fail secure, NISTFail secure as a termination of functions that prevents loss of the secure state, though it might damage a resource.
- NIST CSRC Glossary: fail soft, NISTFail soft as selective termination of affected, non-essential functions when a failure occurs.
- 29 CFR 1910.36: Design and construction requirements for exit routes, U.S. Occupational Safety and Health AdministrationAn exit route door must open from the inside at all times without keys, tools or special knowledge, and a device must not restrict the exit if it fails.
- SP 800-53 Rev. 5, Security and Privacy Controls for Information Systems and Organizations, NISTControls grouped by what they do, and compensating controls used where a required control cannot be applied.