STAMP Primer SeriesSTPA PrimerModule 3 of 3Finding Problems EarlyLesson 5 of 5Finding Problems Early, With SecurityLesson 5 of 6The Whole SeriesLesson 9 of 10

STPA Primer

Why STPA doesn’t rank its findings by probability, and how STPA compared with HAZOP, FTA, and FMEA on a real design flaw.

Section 3.1 · Putting STPA to Use

Choosing Solutions Without Probabilities

Builds on: Section 2.4, Step 4: A Loss Scenario

STPA doesn’t rely on probabilities or probabilistic assumptions. STPA offers another approach, which teams can use when the probabilities are unknown or can’t be known.

In engineering, many fixes don’t need a probability. Suppose a scenario shows that a requirement is missing such that, as designed, the car could command a shift into Park while it’s moving. Once the flaw and scenario are found, the fix is easy to see. Fixes from STPA tend not to add redundancy, which is costly. More often, they swap one function for another, cut back a function that turns out to be more trouble than it’s worth, or make feedback that already exists available to another controller. Making a fix like that is often much quicker than trying to debate whether the causes are random or not, collecting accurate probabilities for all the causes, building a probabilistic model of each component, and formally evaluating the risk. That’s especially true for a new system, which doesn’t have a long history or much data to draw on.

Probabilistic methods work best for random component failures, such as a part that may run for thousands of hours before it fails in a known way. STPA is designed to capture problems beyond failures, such as requirements errors, missing functions, and functions that each work as designed but together interact in unsafe ways. Probabilistic approaches are harder to apply to flaws like these. These flaws would exist in every product built perfectly according to the design from the first day. They can lead to losses in a more predictable, non-random way, though the losses might look random at first if they are unexpected. Being unexpected doesn’t mean the flaws are random or that they cannot be found in advance with the right approach.

System safety standards are designed to handle more than failures. Each loss scenario, whether it comes from STPA or another method, leads to a loss whose severity can be evaluated. For non-random scenarios, teams following these standards evaluate the measures in place to prevent the scenario or keep it from leading to a loss, and how strong those measures are. When there’s a choice between multiple solutions, the standards provide a way to rank the solutions by how well they work. The following shows the order in MIL-STD-882E, the U.S. Department of Defense’s standard practice for system safety.

  1. aEliminate the hazard
  2. bReduce the risk by changing the designThe new shifter
  3. cAdd engineered features or devicesAuto Park
  4. dProvide warning devicesThe door chime
  5. eSigns, procedures, training, and protective equipmentThe owner card
MIL-STD-882E’s order for solutions, from most to least effective, with the solutions from the STPA worked example tagged.

Most effective: fix the system that people operate in.

Least effective: fix the people who operate in the system.

Section 3.2 · Putting STPA to Use

Blind Tests: Can You Prove STPA Works?

It’s easy to assume a safety analysis method works because it’s familiar, required, or widely used. The only way to know for sure is to formally test the method: does it find real flaws that matter in real systems?

A good test compares the results from several methods, each done by competent teams having years of experience mastering their method of choice. The application should be complex enough to have hidden flaws that are not immediately obvious, that the teams do not know about, and have not already seen before. The types of flaws should be realistic, matching the types of flaws on real systems that have led to losses. Each team should have access to the same general information about the system concept or design as they try to uncover the flaws. The results from each method are then compared.

EPRI (the Electric Power Research Institute) ran exactly this kind of test. One application was the emergency cooling system of a nuclear power plant, where a hidden design flaw had shut it down during a start, costing the company more than $10 million. The system description and some general design information was provided to multiple teams at other companies, all of whom had no knowledge of the flaw or the event it caused. Several methods were applied, including FTA, FMEA, HAZOP, and STPA. The only team that discovered the hidden flaw was the STPA team.

The study was repeated across 4 different companies and 8 different teams, and with 7 different systems each with different flaws. In all cases, real losses had been caused by hidden flaws, and teams with no knowledge of the flaws were asked to find them. Every STPA team was able to discover the real flaws in less than a week. None of the actual flaws were discovered using the other methods, which were repeated by new teams to ensure it wasn’t a fluke. The other methods did produce insights, such as failure cut sets and reliability figures. They just didn’t catch the digital and software flaws that were leading to real losses for the companies. Every team consisted of real engineers with many years of experience working with similar systems.

The STPA teams were given different levels of STPA training to evaluate its effect on the results. It was found that teams with as little as one day of STPA instruction were able to consistently identify the flaws as long as they had access to an STPA facilitator who could answer their questions about STPA during the project. Teams with more STPA training (up to 5 days of training) could consistently identify the flaws and develop the necessary UCAs and scenarios with few if any questions for the facilitator.

What the Teams Found

Every method found most of the component failures.

Only STPA found the flaws in the digital control design and its assumptions, including the real flaws that caused millions of dollars in losses. The STPA teams also caught previously unknown flaws that were waiting to cause substantial new losses, along with practical solutions for them.

Based on these results, STPA was chosen for EPRI’s new guidance on engineering digital instrumentation and control in nuclear plants.

Strengths and Limits of Each Method

Methods built on different views of a system each bring their own perspective, so we can expect a method with a different model to uncover things the others missed. STPA’s strengths are software, autonomy, and human behavior, where complex interactions are easy to overlook, even by experts and in design reviews. STPA can start in the concept phase, and teams often use STPA throughout development and operations.

STPA has limits too. STPA doesn’t model physical proximity, such as parts close enough to damage each other, and because STPA looks at more than failures, a probability doesn’t apply to most STPA results. FMEA and FTA are the other way around: they model failures of known functions and components, and assign probabilities to those failures.

Results in Other Industries

Teams in aviation, space, defense, automotive, maritime, and healthcare have compared STPA with the methods they already used. A few of the results:

  • Missile defense: the system had been analyzed with failure-based methods, and STPA was tried only near the end, with no one expecting it to find much. In three months, STPA found so many flaws that engineers spent six months going back to revisit and fix earlier design decisions. Looking back, the common reaction among the engineers was that they should have tried STPA much earlier.
  • Aircraft engine controls: STPA found 30 scenarios that the standard methods missed, and later in service, flaws turned up that exactly matched what STPA had found years before.
  • Spacecraft (JAXA): STPA found the failures in the existing fault tree analysis, plus catastrophic causes the fault tree had missed.
  • FMECA comparison: of 137 causes STPA found, 53 weren’t covered by the FMECA.

See all of the comparisons on Why Use STPA?

Where to Go Next

Keep Learning

The introductions to the methods, the evidence for using them, and the industry pages are all free.

STAMP Resources

Take a Class

Learn at your own pace as you watch the instructor walk through each step on real systems and go over the mistakes students make most often. Certification is available.

See the classes

Get Help on a Project

We work alongside teams applying STPA or CAST to their own systems.

About project support

Questions? Email [email protected].