STAMP Primer SeriesSTPA-Sec PrimerLesson 1 of 1Finding Problems Early, With SecurityLesson 6 of 6The Whole SeriesLesson 10 of 10
STPA-Sec Primer
STPA-Sec starts from the losses an organization can’t accept and looks for the weak points in a system’s design that an attacker could use to cause them.
Page Overview
About 27 minutes in all
How STPA-Sec Differs (7 min)
- 1Losses First, Threats Later
How STPA-Sec’s starting point differs from threat-first security.
- 2What STPA-Sec Adds to Each Step
STPA’s four steps with security added to each one, and where an adversary can act on a control loop.
A Worked Example (16 min)
- 3Steps 1–4: A Worked Example
A fictional town water plant, analyzed step by step: a remote-access feature dropped in Step 1, unsafe control actions with an attacker as the source, and scenarios caused by an accident, a live attack, and an earlier one, and the four formal scenario classes.
- 4Wargaming the Fixes
A red team tries to defeat the fixes, and finds a way through the people who run the plant.
STPA-Sec and Security Practice (4 min)
- 5The Six Threat Categories
How STPA-Sec covers spoofing, tampering, and the other four, starting from the control loop.
- 6Safety, Security, and the Mission Together
Why one analysis can serve all three, where control catalogs come in, and what STPA-Sec leaves to others.
- 7Sources and Further Reading
The public papers and workshop talks behind this page.
Part 1 of 7
Losses First, Threats Later
Builds on: The four steps of STPA, on STPA Primer
Most security analysis begins with the threat: who might attack, what they can do, and which paths they could take. Defenses are then built against those attacks. NIST’s security standards also start by analyzing the threat.
STPA-Sec, introduced by William Young at MIT in 2013, starts from the losses the organization can’t accept, and from the states of the system that could lead to them. Over a system’s life, attackers and their methods change in ways that defenders can’t fully predict. The vulnerabilities are in the system being built, where engineers can analyze them and change the design. STPA-Sec focuses on vulnerabilities because they are likely far fewer than threats, and controlling one can prevent losses from many threats, including unknown ones.
Threat-First Security
- Who might attack, and with what skills and tools
- Which weak points those attackers could use
- Defenses against those attacks, often at the system’s edge
STPA-Sec
- What the system is for, and which losses the organization can’t accept
- Which states of the system could lead to those losses
- The control structure, and the control actions that could cause those states
- How each could happen, by accident or by attack, and then a wargame, in which a red team tests the fixes
Attackers still come into STPA-Sec, near the end, once the team understands the situation an attack would have to work in.
Teams applying STPA-Sec put the effort into the design of the whole system, so that an intruder who gets in still can’t cause the losses that matter. Traditional security tends to focus at the edge: firewalls, encryption, passwords, and keeping intruders out. Those defenses are still worth having. STPA-Sec treats the goal of security as keeping the system’s critical functions and services going in the face of disruptions, which is broader than guarding the network.
Sources: Young and Leveson, 2013 and 2014 (Part 7).
Part 2 of 7
What STPA-Sec Adds to Each Step
STPA-Sec follows STPA’s four steps, with security added to each one, such as framing the problem before naming the losses, security guidewords for the loss scenarios, and wargaming at the end of Step 4. An STPA done for safety already holds most of the work a security analysis needs. The losses, hazards, control structure, and unsafe control actions carry over, and many of the scenarios are the same, with security causes added.
-
1
STPA
Define the Purpose of the Analysis
Losses, hazards, and system-level constraints.
STPA-Sec adds
- Problem framing: what the system is for, how it does it, why, and within what limits
- Questioning each function against that need
- Security losses, such as protected information exposed
- A security approach for each hazard: what is needed to identify, protect, detect, respond, and recover
-
2
STPA
Model the Control Structure
Controllers, control actions, and feedback.
STPA-Sec adds
- Policies, permissions, and procedures as control actions from above
- Suppliers and maintainers who can change a controller’s software or settings
- A security model: the security policy written as constraints that controllers enforce
- Reference monitors: controllers that enforce the security policy
-
3
STPA
Identify Unsafe Control Actions
The contexts in which each control action is unsafe.
STPA-Sec adds
- For each unsafe control action, the team asks how an attacker could cause it: by providing, preventing, or delaying the control action
-
4
STPA
Identify Loss Scenarios
How each unsafe control action could happen.
STPA-Sec adds
- Security guidewords: malformed, partial, delayed, or false feedback and commands, and controllers that shouldn’t be there
- Attacks that are live, or left behind by an earlier attack
- Wargaming: a red team tries to defeat the fixes
Sources: Young’s 2016 and 2020 workshop tutorials; Thomas and Young’s 2024 leadership talk (reference monitors); Young’s 2021 security policy talk (Part 7).
Where an Adversary Can Act on a Control Loop
Each of these additions works on the control loop STPA already uses, and asks one more question about each part of it: what could an adversary do here? Pick a part of the loop to see what an adversary can do there.
Where Can an Adversary Act?
Pick a part of the loop:
Policy and oversight: the controller above. Depending on the system, it may be a higher level of automation, a human operator, or managers, executives, or commanders. It directs the controller below with control actions and watches it through feedback, and an adversary can act on both.
Control actions from above: policies, procedures, permissions, commands, and updates to the controller’s software or settings are control actions too. An adversary posing as policy and oversight can send false ones, for example by reprogramming the controller. A policy can also create a weakness of its own: a password rule with no tools to manage passwords can lead people to write their passwords down.
Feedback to above: policy and oversight relies on reports, logs, and status from below. An adversary can fake, block, or delay them, so a change below goes unnoticed, such as a controller that has been reprogrammed.
Process model: an attacker can shape a controller’s beliefs, including a person’s, through various means. Whether a wrong belief comes from an attacker or a poor system design, the controller acts on it the same way and it results in the same losses. In STPA, one analysis covers both.
Control actions: an adversary can tamper with the controller’s commands, block them, or delay them. An adversary at the controller’s level can also send the process commands of its own. Either way, the process doesn’t get the commands the controller sent, or gets commands the controller never sent.
Controlled process: an adversary can act on the process directly, without going through the controller: tampering with equipment, changing a setting by hand, or creating a disturbance the controller wasn’t designed to handle. The controller learns about it only through its feedback, if at all.
Feedback: an adversary can send the controller false feedback, or block or delay the real feedback. The controller keeps acting on a picture of the system that is no longer true.
Where Can Information Leak?
The figure above covers how an attack can affect the system, such as blocking or delaying commands and feedback. A loss can also come from information getting out. The control actions a controller sends, the feedback it collects, and the data it keeps may each be read or copied by someone who shouldn’t have them. In STPA-Sec that can also be a hazard, such as “<system> exposes sensitive information to an unauthorized party.” The same loop can be used to identify the most critical places where it could happen.
Where Can Information Leak?
Pick a part of the loop:
Policy and oversight: plans, policies, and credentials such as passwords and access keys. In the wrong hands, they show an outsider how the system is run and who can change it.
Control actions from above: permissions, passwords, and new settings sent down to the controller can be copied on the way, or sent to the wrong recipient. A copied password or permission lets an outsider issue control actions of their own.
Feedback to above: reports, logs, and status sent up can reveal how the system works and where it is weak. Sent to the wrong place, such as an outside email address or an open shared folder, they can be read by people who shouldn’t see them.
Controller’s stored data: the controller keeps information too, such as its settings, its logs, and data it handles, like customers’ personal data. The controller can send that information to the wrong place itself, for example in a backup or a diagnostics upload to an outside server.
Control actions: commands sent to the process can be read on the way. They show what the system is doing and when, which can tell an attacker when to act.
Controlled process: the process itself can show an outsider how the system runs: when equipment starts, how much power or material it uses, and what it puts out. Someone watching from outside the plant may learn when it is most vulnerable.
Feedback: measurements and status from the process can be read on the way, or copied by a device that also sends them somewhere else. They show an outsider the state of the process, including when it is most vulnerable.
Part 3 of 7
Steps 1–4: A Worked Example
Consider a fictional water treatment plant that serves a small town and treats water from a river. The plant adds chlorine to kill germs, then pumps the water to a storage tank that supplies the town. Too little chlorine lets germs through. Too much goes over the drinking-water limit.
The plant has a small staff and is unstaffed overnight. The town’s managers plan to buy a new control system that would let the operator on call change the plant’s settings from home.
Step 1: Frame the Problem, Then Losses and Hazards
Before listing losses, the team writes one sentence saying what the system is for. The managers, operators, and the security lead write it together. Security staff can advise on what the plant needs, but the town’s leaders decide.
The Problem, Framed
- What
- A system to supply the town with drinking water,
- How
- by means of filtering and disinfecting river water and pumping it to the town’s storage tank,
- Why
- in order to protect public health and keep daily life in town running,
- While
- meeting drinking-water limits, with a staff that isn’t at the plant overnight.
Questions the Framing Raised
- What comes first when the goals conflict? The managers said that water within the limits comes first. If the water isn’t within the limits, they would rather stop pumping for a few hours and let the town draw on its storage tank.
- What is remote access for? The managers want the operator on call to hear about problems at night, and to keep water that’s outside the limits from reaching the town. Changing the chlorine dose from home serves neither need.
So the team proposed a smaller feature: remote viewing and alarms, plus one remote command, to stop pumping to the town. Dose changes stay at the plant. With dose changes kept at the plant, an attacker who someday breaks into the remote connection still can’t change the dose. Removing features can be the most effective action for decreasing complexity and increasing security.
Losses
- L-1People in town made ill by their water
- L-2The town runs out of water
Hazards
- H-1The plant does not supply sufficient water to the town [L-2]
- H-2The plant supplies water with too little or too much chlorine [L-1]
What you get
System-Level Constraints
- SC-1The plant must supply sufficient water to the town [H-1]
- SC-2The plant must not supply water with too little or too much chlorine [H-2]
A safety analysis of the plant would use the same losses and hazards because the water is just as unsafe whether an accident or an attacker causes it. Some applications could include losses that are specific to security, such as an analysis of the utility’s billing system that could expose customers’ personal data.
Step 2: The Control Structure
A control structure models the hierarchy of control in a system. At the plant, it starts with the water treatment and pumping at the bottom and goes up through the control system, the operator, and the vendor to the utility’s managers at the top.
The Controllers and Their Roles
- The plant control system, a computer, keeps the chlorine level in its target range as water flows through the plant.
- The operator runs the plant day to day, at the plant by day and on call at night.
- The equipment vendor looks after the control system’s software and settings under a service contract.
- Utility managers are responsible for the plant as a whole, and answer to the town for safe, steady water.
The managers’ log-in permissions and access approvals are drawn as control actions because the managers use them to decide who can act on the plant and its control system. The vendor is drawn as a controller because its software updates and settings change how the control system behaves.
The Water Plant’s Control Structure (Simplified)
Pick a controller:
Control actions go down and feedback comes up. The chlorine analyzer is part of the feedback from the water to the control system.
Utility managers set the plant’s procedures, decide who can log in, and approve the vendor’s remote access. They learn how the plant is doing from the operator’s shift reports and the vendor’s service reports.
The operator sets the chlorine dose at the plant and decides whether water goes to the town. If the water isn’t safe, the operator stops pumping to the town, from the plant or from home at night, and the town draws on its storage until the problem is fixed. When the vendor needs to work on the control system, the operator opens a remote session for it. The operator decides from the chlorine reading, the storage level, and the alarms the control system shows, following the managers’ procedures.
The equipment vendor connects to the control system through a remote session the operator opens, under access the managers approve, to update its software and settings, and reads its diagnostics to find problems.
The plant control system raises or lowers the chlorine feed to hold the operator’s dose, using the chlorine reading and the water flow. It passes the chlorine reading, the storage level, and alarms on to the operator, and takes software updates and settings from the vendor.
What you get
Constraints on the Control Structure (Examples)
- CS-1The operator must be able to tell how long the water in the town’s storage will last. [SC-1]
- CS-2Whether at the plant or at home, the operator must be able to tell the chlorine level of the water leaving the plant. [SC-2]
- CS-3The managers must approve each connection that can change the control system’s software or settings, and must be able to tell who made each change. [SC-1, SC-2]
Step 3: Hazardous Control Actions for the System and Attacker
STPA UCAs are sometimes called Hazardous Control Actions (HCAs) to highlight the broader implications beyond safety, but the concept is the same.
The control system keeps the water within SC-2 by increasing or decreasing the chlorine feed, so the team analyzes those control actions first. A safety analysis would build the same HCAs. The team can easily re-frame each one to consider an attacker causing the HCA, by providing, preventing, or delaying the control action. An attacker has a control problem of their own to solve, and it has all of the same ingredients as a regular unsafe control action in STPA: who acts, what action, and in what context.
| Type | Hazardous Control Action | With an Attacker as the Source |
|---|---|---|
| Not providing | HCA-1Control system doesn’t increase the chlorine feed when the chlorine level is too low to kill germs [H-2] | Attacker prevents the control system from increasing the chlorine feed when the chlorine level is too low to kill germs |
| Providing | HCA-2Control system increases the chlorine feed when the chlorine level is already at the upper limit [H-2] | Attacker triggers the control system to increase the chlorine feed when the chlorine level is already at the upper limit |
| Too late | HCA-3Control system increases the chlorine feed too late, after the chlorine level has dropped too low to kill germs [H-2] | Attacker delays the control system’s increase in the chlorine feed until after the chlorine level has dropped too low |
| Applied too long | HCA-4Control system keeps increasing the chlorine feed too long, after the chlorine level reaches the upper limit [H-2] | Attacker keeps commanding the increased chlorine feed after the chlorine level reaches the upper limit |
| Stopped too soon | HCA-5Operator stops providing the pump to town command too soon before the town’s storage has refilled to the minimum level, when the water is within the limits [H-1] | Attacker triggers the operator to stop providing the pump to town command too soon before the town’s storage has refilled to the minimum level, when the water is within the limits |
HCA-5 is about the remote command kept in Step 1, which lets the operator stop pumping from home if the water isn’t safe. An attacker could use the same command to cut off the town’s water. The constraints below have to hold whoever sends the command.
What you get
Controller Constraints
- C-1The control system must increase the chlorine feed when the chlorine level is too low to kill germs. [HCA-1]
- C-2The control system must not increase the chlorine feed when the chlorine level is already at the upper limit. [HCA-2]
- C-3The control system must increase the chlorine feed within a set time after the chlorine level drops too low to kill germs. [HCA-3]
- C-4The control system must stop increasing the chlorine feed when the chlorine level reaches the upper limit. [HCA-4]
- C-5The operator must not stop providing the pump to town command before the town’s storage has refilled to the minimum level, when the water is within the limits. [HCA-5]
Each constraint holds whatever causes the hazardous control action: a worn sensor, a software bug, or an attacker.
Step 4: Loss Scenarios, in Order
The team identifies loss scenarios, just as in a safety analysis. Flaws that would cause the loss, even without an attacker, can be fixed here. With STPA-Sec, the same scenarios are considered with an attacker, using only the design or conceptual details that are available.
- 1
Typical STPA Scenario for Safety
Take HCA-2: the control system raises the chlorine feed while the level is already at the upper limit. Why would it? The control system believes the level is too low. That belief comes from the analyzer, which could read low because its sample line is partly blocked, meaning it’s checking water that has sat in the line and lost some of its chlorine.
- 2
Fix the Design Flaws First
The control system keeps raising the feed for as long as the reading stays low, without any ceiling, and it doesn’t compare the feed with how much water is flowing. A wrong reading could push the dose as high as the pump can go, even without an attacker. So the first fix is in the design: a limit built into the pump or related components could keep it from feeding more chlorine than the water flowing through the plant could possibly need, regardless of what the control system commands.
These fixes often address multiple causes from both safety and security. For example, the same limit can prevent hazards due to a blocked sample line, a software bug, or an attacker who takes over the control system.
- 3
Then Add the Attacker
The limit caps an overdose, but leaves HCA-1 (too little chlorine) open. The scenario below shows how four different causes can lead to the same hazardous control action, the same belief, and the same outcome.
Scenario for HCA-1: Four Causes, One Wrong Belief
Pick a cause:
Accident: the analyzer has drifted high since its last calibration, so it reads the level in the target range when the level is too low.
Live attack: an attacker on the plant’s network injects false readings in the target range, replacing the analyzer’s real readings as they travel to the control system.
Earlier attack: weeks before, during a remote maintenance session, an attacker changed the analyzer’s stored calibration so that it reads high. The change stays hidden until heavy rain changes the river water and the plant needs more chlorine than usual.
Tampered software: months before, an attacker changed the control system’s software so that it treats a low chlorine reading as in range, and shows the operator an in-range value too. The analyzer reads the low level correctly, but the control system still believes the level is in range.
The Loss Scenario, Step by Step
- Control action
- The control system does not increase the chlorine feed while the chlorine level is too low to kill germs (HCA-1).
- Process model (beliefs)
- The control system believes the chlorine level is in the target range.
- Decision making
- “If the level is in range, hold the feed steady.”
- Feedback
- In the first three versions, the analyzer reading shows the level in the target range. Why? One of the causes above. With tampered software, the reading is correct and the control system misreads it.
- Operator
- The operator sees the same reading, so the operator believes the level is fine too. Both controllers’ beliefs rest on one analyzer. In other words, these scenarios show a shared vulnerability that defeats both checks done by the control system and the human operator.
- 4
Follow the Attacker’s Access, People Included
How did the attacker get into the maintenance session? A caller posing as the vendor’s support desk asked the operator on night call to open a remote session for an urgent update. The phone call alone doesn’t give the caller access to the plant, and the remote connection needs the operator to open it. Together they give the attacker the analyzer’s settings. In the control structure, the operator is a controller whose beliefs an attacker can shape through what the operator hears, so this step belongs in the same scenario.
The Operator’s Loop: One Call, Two Callers
Pick a caller:
Real vendor call: the vendor’s support desk calls at night with an urgent update. The operator believes the caller is the vendor and opens a remote session, and the vendor sends its updates and settings through it.
Impostor’s call: an attacker calls, posing as the vendor’s support desk. The operator holds the same belief, follows the same rule, and opens the same session. This time the session lets the attacker in, to change the analyzer’s calibration: the earlier attack in card 3.
What you get
Requirements and Other Solutions (Examples)
Add a second chlorine analyzer, from another maker, where the water enters the storage tank, with its own alarm to the operator. The operator then has a reading that doesn’t pass through the control system, so one bad reading or one tampered program can’t hide the problem from both controllers.
The analyzer’s calibration must be changed only at the plant, and the control system must record who made each change and show it to the operator.
Open a vendor session only during staffed hours, and only after calling the vendor back on the number on file.
Track how far the analyzer’s readings drift from a daily hand test of the water. A growing gap can show drift or tampering before the chlorine level becomes unsafe.
Formal Scenarios for HCA-2
STPA’s formal scenario process builds the scenarios from the hazardous control action itself. It takes the HCA’s controller, control action, and context, and writes them into four classes of scenario, each in a set form. The classes and the formal scenarios are exactly the same for safety and for security. Security comes in when the team refines each class into causes: attacker causes, live or left behind by an earlier attack, go beside the accidental ones.
Learn how STPA builds loss scenarios, on STPA Primer
HCA-2Control system increases the chlorine feed when the chlorine level is already at the upper limit
Underlined words come from HCA-2: its controller, control action, and context.
| Scenario Class | Generated From HCA-2 | Accident Causes | Attacker Causes |
|---|---|---|---|
| 1. Unsafe controller behavior | The control system increases the chlorine feed when the level is at the upper limit. The analyzer reading it receives correctly shows the level at the upper limit. | The operator entered a dose setpoint that’s too high for the water flowing through the plant. | Live: an attacker on the plant’s network sends a high dose setpoint that appears to come from the operator’s screen. Earlier: the control system’s stored dosing logic was changed during a vendor session. |
| 2. Unsafe feedback | The analyzer reading the control system receives doesn’t show the level at the upper limit. The level is at the upper limit. | The analyzer’s sample line is partly blocked, as in the safety scenario above. | Live: an attacker replaces the readings with low values on the network. Earlier: the analyzer’s calibration was changed so it reads low. |
| 3. Unsafe control path | The control system doesn’t command an increase in the chlorine feed. The chlorine pump receives a command to increase the feed anyway, while the level is at the upper limit. | A fault in the pump’s drive or its wiring speeds the pump up. | Live: an attacker on the plant’s network sends speed commands straight to the pump’s drive. |
| 4. Unsafe process behavior | The chlorine pump doesn’t receive a command to increase the feed. More chlorine gets into the water anyway, while the level is at the upper limit. | When the water stops flowing, chlorine siphons through the stopped pump into the pipe. | Live: an intruder at the plant opens the manual bypass valve on the chlorine line. |
The limit in the pump’s wiring, from the design fix above, handles the first three classes: whatever the command, the pump can’t feed more chlorine than the water flowing through the plant could need. Unsafe process behavior gets past it because the chlorine gets into the water without going through the pump. Writing out that class led the team to look for the gap, which is open to an accident and to an attacker alike.
What you get
Requirements and Other Solutions From the Formal Scenarios
- Add an anti-siphon valve to the chlorine line, so chlorine can’t flow through a stopped pump.
- Add a valve that closes the chlorine line whenever the water stops flowing.
- Put a lock and an alarm on the manual bypass valve, and record each use for the managers.
- Use the second analyzer at the storage tank to catch too much chlorine, whatever route it took.
Part 4 of 7
Wargaming the Fixes
At the end of Step 4, STPA-Sec adds wargaming to test the fixes against a thinking adversary. A Blue team picks how to enforce a constraint and what that costs. A Red team picks a general kind of attack that could defeat it, and what the attack would achieve. Wargaming pen-tests the security concept, and it can start before anything is built. A wargame can follow the U.S. Department of Defense’s Cyber Table Top process. In STPA-Sec, four rules apply:
Rules for an STPA-Sec Wargame
- The control structure is the playing field.
- Stay at the current level of detail.
- State every assumption.
- Red’s attack has to fit the context of the hazardous control action.
-
Blue’s Move
Enforce SC-2 with the second analyzer and its own alarm, from Step 4. Cost: a second analyzer, and a daily check of both.
-
Red’s Move
To cause HCA-1 now, Red would have to make two separate readings look normal while the real level is low. Red looks for a cheaper route instead. The storage tank sits in a fenced yard that staff visit once a week. Red loosens the new analyzer’s sample line there, so its alarm goes off at night while the water is fine.
-
Operations’ Answer
The operators on the team say that after a few false alarms at 3 a.m., they would ask the vendor to turn the alarm off. That would remove the check Blue paid for, and leave Red free to try again.
-
Response: Mitigate
A tank alarm can be cleared only after a hand test of the water, which also shows whether the alarm was real. The managers see every cleared alarm in their weekly report. The finding is logged as a poor assumption: that operators would keep trusting an alarm that keeps going off.
The response could also have been to eliminate, transfer, or accept the risk. Wargaming can catch well-meant workarounds that people need to get the job done but that create a hazard. Here the workaround was found before the alarm was installed.
The context rule matters too. Red’s attack causes harm only when the real chlorine level is low, so Red needs a way to know when that is, or to make it happen. That question points to which information about the plant needs protecting, which Part 5 comes back to.
Sources: Young’s 2017 and 2020 workshop tutorials; Walsh, Schulker, and Cunningham, 2026, on wargaming STPA-Sec for systems that use AI (Part 7).
Part 5 of 7
The Six Threat Categories
Security teams sort attacks into six standard categories: spoofing (pretending to be someone or something else), tampering (changing something without permission), repudiation (denying an action, or acting without leaving a record), information disclosure (exposing information to people not allowed to see it), denial of service (keeping a system from doing its job), and elevation of privilege (doing more than one is allowed to do).
A threat-first analysis often steps through the six categories for each part of the system. An STPA-Sec analysis covers all six, starting from another place. The analysis starts from a control action and the context that makes it unsafe, and only then asks about the feedback and beliefs that context depends on. In the water plant, HCA-1 depends on what the control system believes about the chlorine level, so the chlorine reading and its path got close attention. The plant’s other gauges, such as the one for how cloudy the water is, feed other beliefs and other control actions, so they came up only where those were analyzed.
Spoofing
False chlorine readings sent to the control system; a caller posing as the vendor.
Found through: the feedback behind HCA-1, and the operator’s beliefs
Tampering
The analyzer’s stored calibration, changed during a maintenance session.
Found through: what made the feedback wrong in the earlier attack
Repudiation
A calibration change that doesn’t record who made it.
Found through: the managers’ loop: they grant access, so they need feedback on who used it (CS-3)
Information Disclosure
Live readings that tell an attacker when the chlorine level is low.
Found through: the context of HCA-1, which Red’s attack had to fit
Denial of Service
Blocked or delayed feed commands; the operator’s remote view going dark at night.
Found through: HCA-1 (not provided) and HCA-3 (too late)
Elevation of Privilege
A vendor account that can change calibration when it only needs to read diagnostics.
Found through: the vendor’s control actions in Step 2
What Starting From the Control Loop Adds
- A shorter search. The team asks about the feedback and settings that an hazardous control action depends on, before the rest.
- Broader causes. The same questions about a loop turn up causes from an attacker, an accident, or nature, so one fix can answer all three.
- Findings outside the six categories. An alarm that teaches operators to ignore it, a remote command the town didn’t need, and one reading that two controllers depend on.
STPA-Sec uses the six categories after the scenarios are written: to classify the attacks a scenario implies, and to pass the results to the security specialists who design the defenses. The categories also fit safety scenarios. In the Warsaw landing accident, where the thrust reversers deployed too late, each part of the scenario can be labeled with one or more of the six, so the safety analysis already describes the outcomes of successful attacks.
Sources: Young’s 2016 and 2020 workshop tutorials; Thomas and Young’s 2024 leadership talk (Part 7).
Part 6 of 7
Safety, Security, and the Mission Together
In the water plant, the safety analysis and the security analysis shared the losses, the hazards, the control structure, and the hazardous control actions. The scenarios differed only in what made the feedback wrong, and one fix, the limit in the pump’s wiring, answered both a blocked sample line and an attacker. A combined analysis works best when safety and security experts write the scenarios together. STPA-Sec includes safety. An analysis can be limited to security losses, just as any STPA can be scoped to the losses the analysts choose, and teams often include safety because a safety STPA already does most of the work.
Security Features Are Controllers Too
- The tank alarm in Part 4 could have defeated its own purpose once operators learned to ignore it.
- In one example, longer passwords and lockouts on the tablet that holds a flight crew’s charts and manuals could lock the crew out of it during an in-flight emergency.
- A password rule without tools to manage passwords can lead people to write their passwords down, which defeats the rule.
STPA-Sec treats each of these as a controller whose control actions can be unsafe in some context, and looks for the scenarios in which it causes a mission, safety, or security loss.
Where Control Catalogs Come In
Security teams often pick controls from a catalog such as NIST SP 800-53 before anyone has framed what the system is for. Chosen that way, controls can go in late, after the design is mostly fixed, and in places the mission doesn’t need. The catalog’s controls are often worth having. STPA-Sec comes before the catalog: the analysis defines the requirements, which then guide which NIST controls to select and how to deconflict them. STPA-Sec lines up more closely with NIST SP 800-160, which is about engineering security into a system. Volume 2 of SP 800-160 names loss scenarios from STPA as one basis for attack scenarios.
What STPA-Sec Leaves to Others
- STPA-Sec shows which scenarios deserve the security effort. Choosing the specific countermeasures stays with security specialists.
- It “does not prevent the use of insecure coding methods or vulnerable software,” so it goes with good development practice (U.S. Department of Defense guidebook from the GBSD program, 2021).
- STPA-Sec works alongside good security practices, and can improve them by giving them a clearer focus.
See what organizations using STPA-Sec have found, on Why Use STPA-Sec?
Part 7 of 7
Sources and Further Reading
Papers and Workshop Talks (13)
Papers
- Young, William, and Nancy Leveson. “Systems Thinking for Safety and Security.” Proceedings of the 29th Annual Computer Security Applications Conference (ACSAC), 2013. MIT DSpace
- Young, William, and Nancy Leveson. “An Integrated Approach to Safety and Security Based on Systems Theory.” Communications of the ACM 57, no. 2 (2014). PDF
- U.S. Department of Defense. Cybersecurity for DoD Acquisition Program Execution: Best Practices for the Major Capability Acquisition Pathway, Insights from the Ground Based Strategic Deterrence (GBSD) Program, November 2021. PDF
- NIST SP 800-160 Vol. 1 Rev. 1, Engineering Trustworthy Secure Systems, 2022; Vol. 2 Rev. 1, Developing Cyber-Resilient Systems, 2021.
STAMP Workshop Talks
- Young, William. “Tutorial: Security,” 2016. Workshop slides
- Young, William. “Understanding STPA-Sec Through a Simple Roller Coaster Example,” 2016. Workshop slides
- Young, William. “Tutorial: Cyber-Security and STPA,” 2017. Workshop slides
- Young, William. “Tutorial: STPA-Sec,” 2019. Workshop slides
- Young, William. “Tutorial: STPA for Security (Aerial Refueling),” 2020. Workshop slides
- Young, William. “Security Policy,” 2021. Workshop slides
- Thomas, John, and William Young. “How to Introduce STPA to Leadership,” 2024. Workshop slides
- Thomas, John. “Developing STPA Scenarios,” 2025. Workshop slides
- Walsh, Matthew, David Schulker, and James Cunningham. “Operationalizing Wargaming for STPA-Sec of AI-Enabled Capabilities,” 2026. Workshop slides