STPAWhen Security Controls Exceed the FTTI — Filling the Gap Between HARA and TARA with STPA
01Summary
02The scene: braking that must finish within 50 ms, verification added to every message
The front camera and radar see a stopped vehicle. The AEB controller in the ADAS domain judges a collision risk and sends an emergency braking request over the vehicle bus. The request message carries a SecOC authentication tag (CMAC) and a freshness counter. The brake-by-wire brake ECU recalculates the tag and only applies brake pressure after confirming the request really came from the AEB controller.
The Electronics Weekly article uses exactly this process as its example. The FTTI for brake- and steer-by-wire is typically 10 to 50 ms, and any delay turns directly into braking distance. If the brake ECU verifies AES-128 in software at 2 ms per message and the CAN bus is saturated, the accumulated delay eats deep into the FTTI margin. The article's conclusion is clear: if a braking message exceeds the FTTI because of the security design, that is a functional safety failure in ISO 26262 terms.
No one would argue with that conclusion. But in a real project, where is that sentence written down?
03The HARA and TARA tables have no column for time
| What it asks | What it does not ask | |
|---|---|---|
| HARA (ISO 26262-3) | Severity (S), exposure (E) and controllability (C) of hazardous events, ASIL, safety goals | How much time is left once a security control sits on the path that protects the safety goal |
| TARA (ISO/SAE 21434) | Assets, damage scenarios and impact (safety, financial, operational, privacy), attack paths and feasibility | How much of the safety function's time budget the control (authentication, encryption) consumes |
| FTTI and safety mechanisms (ISO 26262-4, -5) | Fault detection and reaction time, FTTI | The fact that security controls share the same time budget |
Even if both analyses are done in the same workshop, with columns like these the conflict ends up as a single line in the minutes. The safety team issues "FTTI 50 ms" as a requirement, the security team issues "do not execute before successful authentication" as a requirement, and the fact that both collide inside the same 50 ms only surfaces in integration testing.
One point needs correcting. The article recommends deriving TARA impact ratings "directly from the HARA's ASIL". In ISO/SAE 21434, however, the safety impact rating of a damage scenario is based on the severity (S) of ISO 26262-3. ASIL mixes in exposure and controllability, so taking it over as is misses the fact that an attack can change exposure or controllability. What to take over is S, not ASIL.
04STPA asks about time through UCAs
For every control action a controller issues, STPA asks whether it can become unsafe in four ways: not provided, provided when unsafe, provided too early, too late or out of order, and stopped too soon or applied too long. The third question is exactly where the FTTI belongs.
And in an STPA control structure, authentication and the bus sit directly on the control and feedback paths. Authentication verification lives in the brake ECU's control algorithm, bus delay in the control path, and freshness counter synchronization in the brake ECU's process model. Because the security control becomes part of the control loop rather than "another document outside the safety analysis", it naturally gets caught when you write loss scenarios.
05Example: the AEB emergency braking request path
This is a fictional system for education (not the design of any particular vehicle or manufacturer). The FTTI is set to an illustrative 50 ms. There are two losses, injury or loss of life and property damage, and two hazards: "safe distance is not maintained" (H-1) and "hard braking when it is not needed" (H-2). The system constraint reads:
This constraint ties into one sentence what the HARA safety goal and the TARA cybersecurity goal used to state separately.
4 UCAs
| ID | Control action | Unsafe control action | Hazard |
|---|---|---|---|
| UCA-T-1 | Emergency braking request | There is a forward collision risk, but the AEB controller sends the request late, so the time at which the brake ECU finishes authentication verification exceeds the FTTI budget | H-1 |
| UCA-T-2 | Apply brake pressure | The request has arrived, but the brake ECU waits for authentication verification and starts applying brake pressure after the FTTI | H-1 |
| UCA-N-3 | Apply brake pressure | A request arrives, but the brake ECU discards it due to authentication failure and does not apply brake pressure | H-1 |
| UCA-P-4 | Apply brake pressure | There is no collision risk, but the brake ECU accepts a forged or replayed request and applies brake pressure | H-2 |
UCA-P-4 is what a TARA would have written as a threat scenario. In STPA it sits in the same table, right next to UCA-T-2. Loosen authentication and T-2 shrinks while P-4 grows; tighten it and the reverse happens. Seeing that balance on one screen is the point of this article.
5 loss scenarios
| ID | UCA | Scenario in brief | What it reveals |
|---|---|---|---|
| LS-1 | T-2 | Authentication is verified in software at about 2 ms per message; bus saturation adds queuing and retransmission, and the accumulated delay exceeds the FTTI. Verification time was measured only under normal load | The article's case exactly. Countermeasures: worst-case measurement and an HSM |
| LS-2 | T-2 | The brake ECU algorithm defines only "no braking before authentication" and does not define what to do when verification does not finish within the FTTI. The two requirements live separately in the HARA and TARA documents, so the conflict never surfaces | The missing column itself |
| LS-3 | T-1 | Camera and radar data also arrive authenticated on the same bus, and bus overload delays both the object data and the braking request | Common cause; the same structure as the combined archetypes in our previous article |
| LS-4 | N-3 | After a brake ECU reset the freshness counter is out of sync, so a legitimate request is judged a replay attack and discarded. With no "authentication failed" feedback, the AEB controller believes braking has been applied | Concealment created by the security control |
| LS-5 | P-4 | The infotainment domain is compromised and the gateway does not filter the braking request ID. The freshness counter acceptance window was widened to cut delay, so a replayed request gets through | A setting meant to save time becomes a security hole |
Put the five side by side and you find scenarios pointing in opposite directions. LS-1 and LS-2 arise because the security control is too slow, LS-5 because of an attempt to make it faster. LS-4 is the security control blocking a legitimate request and hiding that fact. If safety and security are analyzed separately, the first three are likely to end up in the safety team's documents, LS-5 in the security team's, and LS-4 in neither.
6 countermeasures
| ID | Countermeasure | Linked scenarios |
|---|---|---|
| CM-1 | Move authentication verification to the HSM crypto accelerator; measure verification time under worst-case conditions including bus saturation and record it in the latency budget | LS-1 |
| CM-2 | Allocate a latency upper bound to each stage (detect → decide → generate authentication → transmit → verify → actuate) within the FTTI and state them as requirements | LS-1, LS-3 |
| CM-3 | Define in the safety concept what happens when verification does not finish within budget or authentication fails (e.g. driver warning, degraded mode). Decide which behavior is the safe side by looking at the HARA and TARA results together | LS-2, LS-4 |
| CM-4 | Feed the "authentication failed, request discarded" status back to the AEB controller and define a freshness counter resynchronization procedure | LS-4 |
| CM-5 | Secure bus priority and bandwidth (CAN FD, automotive Ethernet) for safety-critical messages; run jitter simulation | LS-3 |
| CM-6 | Inter-domain filtering at the gateway, HSM keys separated from the application core, and the freshness acceptance window decided together with the latency budget | LS-5 |
CM-3 needs care. Choosing "brake anyway if verification is late" prevents LS-1 but reopens LS-5. Neither the safety team nor the security team can make this decision alone, which is why both analyses need to sit on the same model.
06A latency budget: turning SC-2 into numbers
System constraint SC-2 can only be verified once it becomes a table like the one below. The numbers are illustrative.
| Stage | Example upper bound | Owner | Evidence |
|---|---|---|---|
| Object detection and recognition | 15 ms | ADAS | Measured sensor cycle and processing time |
| Collision decision and request generation | 10 ms | ADAS | Algorithm worst-case execution time |
| Authentication tag generation | 1 ms | Security | HSM measurement |
| Bus transmission (worst case) | 5 ms | Architecture | Bus load and priority analysis, jitter simulation |
| Authentication verification | 1 ms (HSM) / 2 ms or more (software) | Security | Worst-case measurement |
| Brake pressure build-up | 15 ms | Chassis | Actuator response test |
| Total | 47 ms ≤ FTTI 50 ms | Safety | Budget approval |
Each cell in this table corresponds to an element on the STPA control and feedback paths. Loss scenarios ask "which cell can overflow?", and countermeasures decide "who proves the upper bound of that cell?".
07What to check tomorrow
Functional safety
- Does the FTTI budget for the safety goal include the security controls (authentication generation and verification) as separate lines?
- Was authentication verification time measured under worst-case conditions, not under normal load?
Cybersecurity
- Is the safety impact rating of TARA damage scenarios taken from severity (S), not from the HARA's ASIL?
- Were the freshness counter acceptance window and the behavior on authentication failure decided together with the safety team?
Architects
- Is the "authentication failed, request discarded" status fed back to the controller that sent the request?
- Has jitter simulation confirmed that safety-critical messages are not pushed back by encrypted, lower-priority traffic?
08Closing
VisualPro can perform HARA, TARA and STPA within a single project. The STPA example in this article was built in VisualPro STPA.
09Frequently Asked Questions
Q1Isn't it enough to do HARA and TARA together? Why do we also need STPA?
Q2Doesn't an HSM solve the problem?
Q3If authentication verification is late, why not just brake?
Q4What is the correct way to take TARA impact ratings from HARA?
Q5We have never used STPA. Where should we start?
· Electronics Weekly, "Linking functional safety with cybersecurity in the automotive industry", October 13, 2026 (Diego de Azcuénaga) — article
· ISO 26262-1:2018 definition of FTTI; ISO 26262-3:2018 HARA
· ISO/SAE 21434:2021 — impact rating of damage scenarios (safety impact based on ISO 26262-3 severity)
· AUTOSAR Specification of Secure Onboard Communication (SecOC)
· Nancy G. Leveson, John P. Thomas, STPA Handbook, MIT, 2018 — STPA Handbook (PDF) / MIT PSASS STAMP Tools

