STAMP and STPA (Leveson)
Best for Scale to Enterprise
Use it when
You are designing or changing a software-intensive system run by people, software and automation, and need the hazards that come from unsafe control interactions before it operates.
Skip it when
- An incident or near miss has happened and you need the failed defenses and hidden conditions behind it. Use Swiss cheese model (Reason).
- You want to see how everyday work succeeds and where the operation's capacity to adapt is thin. Use Resilience engineering and Safety-II (Hollnagel), which this analysis feeds.
- A process plant design must be checked line by line for deviations in flow, pressure, temperature or level. Use HAZOP (hazard and operability study).
- One undesired event must be traced to combinations of component faults, with a probability. Use Fault tree analysis.
- The concern is attackers threatening a software design, category by category. Use STRIDE threat modeling.
What to apply first and what to use instead are listed below.
Inputs
- Stakeholder valuesWho uses, runs, pays for or is affected by the system and what each values, such as life, equipment, the mission or sensitive data, from management, regulators and customers.
- System descriptionThe concept of operations, architecture and procedures for the current design, from design documents and operations staff.
- Controller listEvery person, team, software function and automated controller that issues commands, with the commands it issues and the feedback it receives, from engineering and operations.
- Operating contextsThe modes, phases and environmental conditions the system runs in, such as start-up, normal running, maintenance and bad weather, from operations.
- Existing analysesOptionalEarlier hazard analyses, incident reports and safety requirements for this or a similar system, from the safety team.
Steps
- Define the purpose by listing the losses stakeholders want to avoid, drawing the system boundary around what designers control, and writing system-level hazards. Each hazard names the system, an unsafe condition and its linked losses. Invert each hazard into a system-level constraint.
- Draw the hierarchical control structure, with controllers above the processes they control, control actions pointing down and feedback pointing up. Write each controller's responsibilities and add any control action or feedback a responsibility needs but lacks.
- Check every control action four ways (not provided, provided, provided too early, too late or out of order, and stopped too soon or applied too long). Write each unsafe control action with its controller, type, action, context and linked hazards.
- Invert each unsafe control action into a controller constraint, such as the controller must not provide the action in that context.
- Write loss scenarios of two kinds. One explains why each unsafe control action could happen, such as wrong, late or missing feedback or a flawed control algorithm. The other explains how a safe control action could be carried out wrongly or not at all.
- Turn each scenario into a requirement, design change, mitigation or test case with an owner, and keep the trace from loss to hazard, unsafe control action, scenario and requirement.
Output
An STPA record that traces every requirement back through scenarios, unsafe control actions and hazards to the losses it prevents, with the control structure diagram attached.
- Losses
- Hazards with linked losses, and system-level constraints
- Control structure with each controller's responsibilities
- Unsafe control actions by controller, type and context, with linked hazards
- Controller constraints
- Loss scenarios linked to each unsafe control action or control action
- Requirement, mitigation or test for each scenario, with owner
- Assumptions and exclusions
Done when
- Every hazard names the system, a condition to prevent and at least one loss, and none names a single component or cause.
- Every control action in the control structure is checked against all four types, and each type marked not applicable has a written reason.
- Every unsafe control action states the context that makes it unsafe and links to at least one hazard.
- Every unsafe control action has at least one loss scenario, and every control action has a scenario for wrong or missing execution.
- Every scenario leads to a requirement, mitigation, test or recorded decision with an owner.
Measure
Track the share of scenarios with a mitigation built and tested before the system goes live, then review incidents and near misses for the first 6 to 12 months of operation. For each event, check whether a scenario in the record covered it. It worked when fewer events fall outside the record than in your last comparable system, and each new gap is added back.
Hypothetical example
Larchmont Logistics was adding self-driving carts to a warehouse. The team listed two losses, injury to staff and damaged stock, and wrote the hazard that a cart comes too close to a person. The control structure showed the fleet software, each cart's controller, the floor supervisor and staff. Checking the cart's stop action, the team wrote an unsafe control action. The cart controller does not stop when a person enters its aisle during picking. One scenario traced this to shrink wrap hiding a person from the sensors. Another found the supervisor's resume command could be sent while someone was still in the aisle, because the supervisor's screen updated only every ten seconds. The team required live aisle status on the supervisor's screen and a second sensor type on each cart.
Common mistakes
- Writing hazards as component failures, such as brake failure. Write the system state to prevent and let the scenarios find the causes.
- Dropping an unsafe control action because a safeguard exists. Keep it, since the safeguard may fail too, and test the safeguard in the scenarios.
- Listing single causal factors such as sensor failure. Write each as a scenario that shows how the factors combine to cause the unsafe control action.
- Writing an unsafe control action with no context. Add the condition that makes it unsafe, using words such as when, while or during.
- Drawing a physical wiring or block diagram. Draw who commands whom and what feedback each controller gets, people and organizations included.
Sources
- STPA Handbook · Nancy G. Leveson and John P. Thomas, 2018
- Functional safety assessment of a generic automated lane centering system and related foundational vehicle systems (Report No. DOT HS 812 572) · J. Brewer, C. Becker, L. Yount and J. Pollard, 2018
By company stage
Apply first
Nothing. You can start here.
Use instead
- Swiss cheese model (Reason)
use the Swiss cheese model to explain failure through layered defences; use STAMP/STPA for complex, software-intensive systems where accidents come from unsafe control interactions rather than failed barriers.
- Resilience engineering and Safety-II (Hollnagel)
You want to see how everyday work succeeds and where the operation's capacity to adapt is thin. Use Resilience engineering and Safety-II (Hollnagel), which this analysis feeds.
- HAZOP (hazard and operability study)
A process plant design must be checked line by line for deviations in flow, pressure, temperature or level. Use HAZOP (hazard and operability study).
- Fault tree analysis
One undesired event must be traced to combinations of component faults, with a probability. Use Fault tree analysis.
- STRIDE threat modeling
The concern is attackers threatening a software design, category by category. Use STRIDE threat modeling.
Where it sits
Open the risk roadmapRecommended resources
No sponsored resources on this framework yet. Sponsored listings would be labelled here, never in search.
Progress is not saved until you have an account. Create a free account