| 1 |
EL3 SPMC Threat Model |
| 2 |
********************* |
| 3 |
|
| 4 |
************ |
| 5 |
Introduction |
| 6 |
************ |
| 7 |
This document provides a threat model for the TF-A :ref:`EL3 Secure Partition Manager` |
| 8 |
(EL3 SPM) implementation. The EL3 SPM implementation is based on the |
| 9 |
`Arm Firmware Framework for Arm A-profile`_ specification. |
| 10 |
|
| 11 |
******************** |
| 12 |
Target of Evaluation |
| 13 |
******************** |
| 14 |
In this threat model, the target of evaluation is the ``Secure Partition Manager Core`` |
| 15 |
component (SPMC) within the EL3 firmware. |
| 16 |
The monitor and SPMD at EL3 are covered by the :ref:`Generic TF-A threat model |
| 17 |
<threat_analysis>`. |
| 18 |
|
| 19 |
The scope for this threat model is: |
| 20 |
|
| 21 |
- The TF-A implementation for the EL3 SPMC |
| 22 |
- The implementation complies with the FF-A v1.1 specification. |
| 23 |
- Secure partition is statically provisioned at boot time. |
| 24 |
- Focus on the run-time part of the life-cycle (no specific emphasis on boot |
| 25 |
time, factory firmware provisioning, firmware udpate etc.) |
| 26 |
- Not covering advanced or invasive physical attacks such as decapsulation, |
| 27 |
FIB etc. |
| 28 |
|
| 29 |
Data Flow Diagram |
| 30 |
================= |
| 31 |
Figure 1 shows a high-level data flow diagram for the SPM split into an SPMD |
| 32 |
and SPMC component at EL3. The SPMD mostly acts as a relayer/pass-through between |
| 33 |
the normal world and the secure world. It is assumed to expose small attack surface. |
| 34 |
|
| 35 |
A description of each diagram element is given in Table 1. In the diagram, the |
| 36 |
red broken lines indicate trust boundaries. |
| 37 |
|
| 38 |
Components outside of the broken lines are considered untrusted. |
| 39 |
|
| 40 |
.. uml:: ../../resources/diagrams/plantuml/el3_spm_dfd.puml |
| 41 |
:caption: Figure 1: EL3 SPMC Data Flow Diagram |
| 42 |
|
| 43 |
.. table:: Table 1: EL3 SPMC Data Flow Diagram Description |
| 44 |
|
| 45 |
+---------------------+--------------------------------------------------------+ |
| 46 |
| Diagram Element | Description | |
| 47 |
+=====================+========================================================+ |
| 48 |
| DF1 | SP to SPMC communication. FF-A function invocation or | |
| 49 |
| | implementation-defined Hypervisor call. | |
| 50 |
| | | |
| 51 |
| | Note:- To communicate with LSP, SP1 performs a direct | |
| 52 |
| | message request to SPMC targeting LSP as destination. | |
| 53 |
+---------------------+--------------------------------------------------------+ |
| 54 |
| DF2 | SPMC to SPMD communication. | |
| 55 |
+---------------------+--------------------------------------------------------+ |
| 56 |
| DF3 | SPMD to NS forwarding. | |
| 57 |
+---------------------+--------------------------------------------------------+ |
| 58 |
| DF4 | SPMC to LSP communication. | |
| 59 |
| | NWd to LSP communication happens through SPMC. | |
| 60 |
| | LSP can send direct response SP1 or NWd through SPMC. | |
| 61 |
+---------------------+--------------------------------------------------------+ |
| 62 |
| DF5 | HW control. | |
| 63 |
+---------------------+--------------------------------------------------------+ |
| 64 |
| DF6 | Bootloader image loading. | |
| 65 |
+---------------------+--------------------------------------------------------+ |
| 66 |
| DF7 | External memory access. | |
| 67 |
+---------------------+--------------------------------------------------------+ |
| 68 |
|
| 69 |
|
| 70 |
*************** |
| 71 |
Threat Analysis |
| 72 |
*************** |
| 73 |
|
| 74 |
This threat model follows a similar methodology to the :ref:`Generic TF-A threat model |
| 75 |
<threat_analysis>`. The following sections define: |
| 76 |
|
| 77 |
- Trust boundaries |
| 78 |
- Assets |
| 79 |
- Theat agents |
| 80 |
- Threat types |
| 81 |
|
| 82 |
Trust boundaries |
| 83 |
================ |
| 84 |
|
| 85 |
- Normal world is untrusted. |
| 86 |
- Secure world and normal world are separate trust boundaries. |
| 87 |
- EL3 monitor, SPMD and SPMC are trusted. |
| 88 |
- Bootloaders (in particular BL1/BL2 if using TF-A) and run-time BL31 are |
| 89 |
implicitely trusted by the usage of trusted boot. |
| 90 |
- EL3 monitor, SPMD, SPMC do not trust SPs. |
| 91 |
|
| 92 |
Assets |
| 93 |
====== |
| 94 |
|
| 95 |
The following assets are identified: |
| 96 |
|
| 97 |
- SPMC state. |
| 98 |
- SP state. |
| 99 |
- Information exchange between endpoints (partition messages). |
| 100 |
- SPMC secrets (e.g. pointer authentication key when enabled) |
| 101 |
- SP secrets (e.g. application keys). |
| 102 |
- Scheduling cycles. |
| 103 |
- Shared memory. |
| 104 |
|
| 105 |
Threat Agents |
| 106 |
============= |
| 107 |
|
| 108 |
The following threat agents are identified: |
| 109 |
|
| 110 |
- Non-secure endpoint (referred NS-Endpoint later): normal world client at |
| 111 |
NS-EL2 (Hypervisor) or NS-EL1 (VM or OS kernel). |
| 112 |
- Secure endpoint (referred as S-Endpoint later): typically a secure partition. |
| 113 |
- Hardware attacks (non-invasive) requiring a physical access to the device, |
| 114 |
such as bus probing or DRAM stress. |
| 115 |
|
| 116 |
Threat types |
| 117 |
============ |
| 118 |
|
| 119 |
The following threat categories as exposed in the :ref:`Generic TF-A threat model |
| 120 |
<threat_analysis>` |
| 121 |
are re-used: |
| 122 |
|
| 123 |
- Spoofing |
| 124 |
- Tampering |
| 125 |
- Repudiation |
| 126 |
- Information disclosure |
| 127 |
- Denial of service |
| 128 |
- Elevation of privileges |
| 129 |
|
| 130 |
Similarly this threat model re-uses the same threat risk ratings. The risk |
| 131 |
analysis is evaluated based on the environment being ``Server`` or ``Mobile``. |
| 132 |
IOT is not evaluated as the EL3 SPMC is primarily meant for use in Client. |
| 133 |
|
| 134 |
Threat Assessment |
| 135 |
================= |
| 136 |
|
| 137 |
The following threats are identified by applying STRIDE analysis on each diagram |
| 138 |
element of the data flow diagram. |
| 139 |
|
| 140 |
+------------------------+----------------------------------------------------+ |
| 141 |
| ID | 01 | |
| 142 |
+========================+====================================================+ |
| 143 |
| Threat | **An endpoint impersonates the sender | |
| 144 |
| | FF-A ID in a direct request/response invocation.** | |
| 145 |
+------------------------+----------------------------------------------------+ |
| 146 |
| Diagram Elements | DF1, DF2, DF3, DF4 | |
| 147 |
+------------------------+----------------------------------------------------+ |
| 148 |
| Affected TF-A | SPMD, SPMC | |
| 149 |
| Components | | |
| 150 |
+------------------------+----------------------------------------------------+ |
| 151 |
| Assets | SP state | |
| 152 |
+------------------------+----------------------------------------------------+ |
| 153 |
| Threat Agent | NS-Endpoint, S-Endpoint | |
| 154 |
+------------------------+----------------------------------------------------+ |
| 155 |
| Threat Type | Spoofing | |
| 156 |
+------------------------+--------------------------+-------------------------+ |
| 157 |
| Application | Server | Mobile | |
| 158 |
+------------------------+--------------------------++------------------------+ |
| 159 |
| Impact | Critical(5) | Critical(5) | |
| 160 |
+------------------------+--------------------------++------------------------+ |
| 161 |
| Likelihood | Critical(5) | Critical(5) | |
| 162 |
+------------------------+--------------------------++------------------------+ |
| 163 |
| Total Risk Rating | Critical(25) | Critical(25) | |
| 164 |
+------------------------+--------------------------+-------------------------+ |
| 165 |
| Mitigations | SPMC must be able to correctly identify an | |
| 166 |
| | endpoint and enforce checks to disallow spoofing. | |
| 167 |
+------------------------+----------------------------------------------------+ |
| 168 |
| Mitigations | Yes. | |
| 169 |
| implemented? | The SPMC enforces checks in the direct message | |
| 170 |
| | request/response interfaces such an endpoint cannot| |
| 171 |
| | spoof the origin and destination worlds (e.g. a NWd| |
| 172 |
| | originated message directed to the SWd cannot use a| |
| 173 |
| | SWd ID as the sender ID). | |
| 174 |
| | Also enforces check for direct response being sent | |
| 175 |
| | only to originator of request. | |
| 176 |
+------------------------+----------------------------------------------------+ |
| 177 |
|
| 178 |
+------------------------+----------------------------------------------------+ |
| 179 |
| ID | 02 | |
| 180 |
+========================+====================================================+ |
| 181 |
| Threat | **An endpoint impersonates the receiver | |
| 182 |
| | FF-A ID in a direct request/response invocation.** | |
| 183 |
+------------------------+----------------------------------------------------+ |
| 184 |
| Diagram Elements | DF1, DF2, DF3, DF4 | |
| 185 |
+------------------------+----------------------------------------------------+ |
| 186 |
| Affected TF-A | SPMD, SPMC | |
| 187 |
| Components | | |
| 188 |
+------------------------+----------------------------------------------------+ |
| 189 |
| Assets | SP state | |
| 190 |
+------------------------+----------------------------------------------------+ |
| 191 |
| Threat Agent | NS-Endpoint, S-Endpoint | |
| 192 |
+------------------------+----------------------------------------------------+ |
| 193 |
| Threat Type | Spoofing, Denial of Service | |
| 194 |
+------------------------+--------------------------+-------------------------+ |
| 195 |
| Application | Server | Mobile | |
| 196 |
+------------------------+--------------------------++------------------------+ |
| 197 |
| Impact | Critical(5) | Critical(5) | |
| 198 |
+------------------------+--------------------------++------------------------+ |
| 199 |
| Likelihood | Critical(5) | Critical(5) | |
| 200 |
+------------------------+--------------------------++------------------------+ |
| 201 |
| Total Risk Rating | Critical(25) | Critical(25) | |
| 202 |
+------------------------+--------------------------+-------------------------+ |
| 203 |
| Mitigations | Validate if endpoind has permission to send | |
| 204 |
| | request to other endpoint by implementation | |
| 205 |
| | defined means. | |
| 206 |
+------------------------+----------------------------------------------------+ |
| 207 |
| Mitigations | Platform specific. | |
| 208 |
| implemented? | | |
| 209 |
| | The guidance below is left for a system integrator | |
| 210 |
| | to implement as necessary. | |
| 211 |
| | | |
| 212 |
| | Additionally a software component residing in the | |
| 213 |
| | SPMC can be added for the purpose of direct | |
| 214 |
| | request/response filtering. | |
| 215 |
| | | |
| 216 |
| | It can be configured with the list of known IDs | |
| 217 |
| | and about which interaction can occur between one | |
| 218 |
| | and another endpoint (e.g. which NWd endpoint ID | |
| 219 |
| | sends a direct request to which SWd endpoint ID). | |
| 220 |
| | | |
| 221 |
| | This component checks the sender/receiver fields | |
| 222 |
| | for a legitimate communication between endpoints. | |
| 223 |
| | | |
| 224 |
| | A similar component can exist in the OS kernel | |
| 225 |
| | driver, or Hypervisor although it remains untrusted| |
| 226 |
| | by the SPMD/SPMC. | |
| 227 |
+------------------------+----------------------------------------------------+ |
| 228 |
|
| 229 |
+------------------------+----------------------------------------------------+ |
| 230 |
| ID | 03 | |
| 231 |
+========================+====================================================+ |
| 232 |
| Threat | **Tampering with memory shared between an endpoint | |
| 233 |
| | and the SPMC.** | |
| 234 |
| | | |
| 235 |
| | A malicious endpoint may attempt tampering with its| |
| 236 |
| | RX/TX buffer contents while the SPMC is processing | |
| 237 |
| | it (TOCTOU). | |
| 238 |
+------------------------+----------------------------------------------------+ |
| 239 |
| Diagram Elements | DF1, DF3, DF7 | |
| 240 |
+------------------------+----------------------------------------------------+ |
| 241 |
| Affected TF-A | SPMC | |
| 242 |
| Components | | |
| 243 |
+------------------------+----------------------------------------------------+ |
| 244 |
| Assets | Shared memory, Information exchange | |
| 245 |
+------------------------+----------------------------------------------------+ |
| 246 |
| Threat Agent | NS-Endpoint, S-Endpoint | |
| 247 |
+------------------------+----------------------------------------------------+ |
| 248 |
| Threat Type | Tampering | |
| 249 |
+------------------------+--------------------------+-------------------------+ |
| 250 |
| Application | Server | Mobile | |
| 251 |
+------------------------+--------------------------+-------------------------+ |
| 252 |
| Impact | High (4) | High (4) | |
| 253 |
+------------------------+--------------------------+-------------------------+ |
| 254 |
| Likelihood | High (4) | High (4) | |
| 255 |
+------------------------+--------------------------+-------------------------+ |
| 256 |
| Total Risk Rating | High (16) | High (16) | |
| 257 |
+------------------------+--------------------------+-------------------------+ |
| 258 |
| Mitigations | Validate all inputs, copy before use. | |
| 259 |
+------------------------+----------------------------------------------------+ |
| 260 |
| Mitigations | Yes. In context of FF-A v1.1 this is the case of | |
| 261 |
| implemented? | sharing the RX/TX buffer pair and usage in the | |
| 262 |
| | PARTITION_INFO_GET or memory sharing primitives. | |
| 263 |
| | | |
| 264 |
| | The SPMC copies the contents of the TX buffer | |
| 265 |
| | to an internal temporary buffer before processing | |
| 266 |
| | its contents. The SPMC implements hardened input | |
| 267 |
| | validation on data transmitted through the TX | |
| 268 |
| | buffer by an untrusted endpoint. | |
| 269 |
| | | |
| 270 |
| | The TF-A SPMC enforces | |
| 271 |
| | checks on data transmitted through RX/TX buffers. | |
| 272 |
+------------------------+----------------------------------------------------+ |
| 273 |
|
| 274 |
+------------------------+----------------------------------------------------+ |
| 275 |
| ID | 04 | |
| 276 |
+========================+====================================================+ |
| 277 |
| Threat | **An endpoint may tamper with its own state or the | |
| 278 |
| | state of another endpoint.** | |
| 279 |
| | | |
| 280 |
| | A malicious endpoint may attempt violating: | |
| 281 |
| | | |
| 282 |
| | - its own or another SP state by using an unusual | |
| 283 |
| | combination (or out-of-order) FF-A function | |
| 284 |
| | invocations. | |
| 285 |
| | This can also be an endpoint emitting FF-A | |
| 286 |
| | function invocations to another endpoint while | |
| 287 |
| | the latter in not in a state to receive it (e.g. | |
| 288 |
| | SP sends a direct request to the normal world | |
| 289 |
| | early while the normal world is not booted yet). | |
| 290 |
| | - the SPMC state itself by employing unexpected | |
| 291 |
| | transitions in FF-A memory sharing, direct | |
| 292 |
| | requests and responses, or handling of interrupts| |
| 293 |
| | This can be led by random stimuli injection or | |
| 294 |
| | fuzzing. | |
| 295 |
+------------------------+----------------------------------------------------+ |
| 296 |
| Diagram Elements | DF1, DF2, DF3 | |
| 297 |
+------------------------+----------------------------------------------------+ |
| 298 |
| Affected TF-A | SPMD, SPMC | |
| 299 |
| Components | | |
| 300 |
+------------------------+----------------------------------------------------+ |
| 301 |
| Assets | SP state, SPMC state | |
| 302 |
+------------------------+----------------------------------------------------+ |
| 303 |
| Threat Agent | NS-Endpoint, S-Endpoint | |
| 304 |
+------------------------+----------------------------------------------------+ |
| 305 |
| Threat Type | Tampering | |
| 306 |
+------------------------+--------------------------+-------------------------+ |
| 307 |
| Application | Server | Mobile | |
| 308 |
+------------------------+--------------------------+-------------------------+ |
| 309 |
| Impact | High (4) | High (4) | |
| 310 |
+------------------------+--------------------------+-------------------------+ |
| 311 |
| Likelihood | Medium (3) | Medium (3) | |
| 312 |
+------------------------+--------------------------+-------------------------+ |
| 313 |
| Total Risk Rating | High (12) | High (12) | |
| 314 |
+------------------------+------------------+-----------------+---------------+ |
| 315 |
| Mitigations | Follow guidelines in FF-A v1.1 specification on | |
| 316 |
| | state transitions (run-time model). | |
| 317 |
+------------------------+----------------------------------------------------+ |
| 318 |
| Mitigations | Yes. The TF-A SPMC is hardened to follow this | |
| 319 |
| implemented? | guidance. | |
| 320 |
+------------------------+----------------------------------------------------+ |
| 321 |
|
| 322 |
+------------------------+----------------------------------------------------+ |
| 323 |
| ID | 05 | |
| 324 |
+========================+====================================================+ |
| 325 |
| Threat | **Replay fragments of past communication between | |
| 326 |
| | endpoints.** | |
| 327 |
| | | |
| 328 |
| | A malicious endpoint may replay a message exchange | |
| 329 |
| | that occurred between two legitimate endpoints as | |
| 330 |
| | a matter of triggering a malfunction or extracting | |
| 331 |
| | secrets from the receiving endpoint. In particular | |
| 332 |
| | the memory sharing operation with fragmented | |
| 333 |
| | messages between an endpoint and the SPMC may be | |
| 334 |
| | replayed by a malicious agent as a matter of | |
| 335 |
| | getting access or gaining permissions to a memory | |
| 336 |
| | region which does not belong to this agent. | |
| 337 |
+------------------------+----------------------------------------------------+ |
| 338 |
| Diagram Elements | DF2, DF3 | |
| 339 |
+------------------------+----------------------------------------------------+ |
| 340 |
| Affected TF-A | SPMC | |
| 341 |
| Components | | |
| 342 |
+------------------------+----------------------------------------------------+ |
| 343 |
| Assets | Information exchange | |
| 344 |
+------------------------+----------------------------------------------------+ |
| 345 |
| Threat Agent | NS-Endpoint, S-Endpoint | |
| 346 |
+------------------------+----------------------------------------------------+ |
| 347 |
| Threat Type | Repudiation | |
| 348 |
+------------------------+--------------------------+-------------------------+ |
| 349 |
| Application | Server | Mobile | |
| 350 |
+------------------------+--------------------------+-------------------------+ |
| 351 |
| Impact | Medium (3) | Medium (3) | |
| 352 |
+------------------------+--------------------------+-------------------------+ |
| 353 |
| Likelihood | High (4) | High (4) | |
| 354 |
+------------------------+--------------------------+-------------------------+ |
| 355 |
| Total Risk Rating | High (12) | High (12) | |
| 356 |
+------------------------+--------------------------+-------------------------+ |
| 357 |
| Mitigations | Strict input validation and state tracking. | |
| 358 |
+------------------------+----------------------------------------------------+ |
| 359 |
| Mitigations | Platform specific. | |
| 360 |
| implemented? | | |
| 361 |
+------------------------+----------------------------------------------------+ |
| 362 |
|
| 363 |
+------------------------+----------------------------------------------------+ |
| 364 |
| ID | 06 | |
| 365 |
+========================+====================================================+ |
| 366 |
| Threat | **A malicious endpoint may attempt to extract data | |
| 367 |
| | or state information by the use of invalid or | |
| 368 |
| | incorrect input arguments.** | |
| 369 |
| | | |
| 370 |
| | Lack of input parameter validation or side effects | |
| 371 |
| | of maliciously forged input parameters might affect| |
| 372 |
| | the SPMC. | |
| 373 |
+------------------------+----------------------------------------------------+ |
| 374 |
| Diagram Elements | DF1, DF2, DF3 | |
| 375 |
+------------------------+----------------------------------------------------+ |
| 376 |
| Affected TF-A | SPMD, SPMC | |
| 377 |
| Components | | |
| 378 |
+------------------------+----------------------------------------------------+ |
| 379 |
| Assets | SP secrets, SPMC secrets, SP state, SPMC state | |
| 380 |
+------------------------+----------------------------------------------------+ |
| 381 |
| Threat Agent | NS-Endpoint, S-Endpoint | |
| 382 |
+------------------------+----------------------------------------------------+ |
| 383 |
| Threat Type | Information discolure | |
| 384 |
+------------------------+--------------------------+-------------------------+ |
| 385 |
| Application | Server | Mobile | |
| 386 |
+------------------------+--------------------------+-------------------------+ |
| 387 |
| Impact | High (4) | High (4) | |
| 388 |
+------------------------+--------------------------+-------------------------+ |
| 389 |
| Likelihood | Medium (3) | Medium (3) | |
| 390 |
+------------------------+--------------------------+-------------------------+ |
| 391 |
| Total Risk Rating | High (12) | High (12) | |
| 392 |
+------------------------+--------------------------+-------------------------+ |
| 393 |
| Mitigations | SPMC must be prepared to receive incorrect input | |
| 394 |
| | data from secure partitions and reject them | |
| 395 |
| | appropriately. | |
| 396 |
| | The use of software (canaries) or hardware | |
| 397 |
| | hardening techniques (XN, WXN, pointer | |
| 398 |
| | authentication) helps detecting and stopping | |
| 399 |
| | an exploitation early. | |
| 400 |
+------------------------+----------------------------------------------------+ |
| 401 |
| Mitigations | Yes. The TF-A SPMC mitigates this threat by | |
| 402 |
| implemented? | implementing stack protector, pointer | |
| 403 |
| | authentication, XN, WXN, security hardening | |
| 404 |
| | techniques. | |
| 405 |
+------------------------+----------------------------------------------------+ |
| 406 |
|
| 407 |
+------------------------+----------------------------------------------------+ |
| 408 |
| ID | 07 | |
| 409 |
+========================+====================================================+ |
| 410 |
| Threat | **A malicious endpoint may forge a direct message | |
| 411 |
| | request such that it reveals the internal state of | |
| 412 |
| | another endpoint through the direct message | |
| 413 |
| | response.** | |
| 414 |
| | | |
| 415 |
| | The secure partition or SPMC replies to a partition| |
| 416 |
| | message by a direct message response with | |
| 417 |
| | information which may reveal its internal state | |
| 418 |
| | (e.g. partition message response outside of | |
| 419 |
| | allowed bounds). | |
| 420 |
+------------------------+----------------------------------------------------+ |
| 421 |
| Diagram Elements | DF1, DF2, DF3 | |
| 422 |
+------------------------+----------------------------------------------------+ |
| 423 |
| Affected TF-A | SPMC | |
| 424 |
| Components | | |
| 425 |
+------------------------+----------------------------------------------------+ |
| 426 |
| Assets | SPMC or SP state | |
| 427 |
+------------------------+----------------------------------------------------+ |
| 428 |
| Threat Agent | NS-Endpoint, S-Endpoint | |
| 429 |
+------------------------+----------------------------------------------------+ |
| 430 |
| Threat Type | Information discolure | |
| 431 |
+------------------------+--------------------------+-------------------------+ |
| 432 |
| Application | Server | Mobile | |
| 433 |
+------------------------+--------------------------+-------------------------+ |
| 434 |
| Impact | Medium (3) | Medium (3) | |
| 435 |
+------------------------+--------------------------+-------------------------+ |
| 436 |
| Likelihood | Low (2) | Low (2) | |
| 437 |
+------------------------+--------------------------+-------------------------+ |
| 438 |
| Total Risk Rating | Medium (6) | Medium (6) | |
| 439 |
+------------------------+--------------------------+-------------------------+ |
| 440 |
| Mitigations | Follow FF-A specification about state transitions, | |
| 441 |
| | run time model, do input validation. | |
| 442 |
+------------------------+----------------------------------------------------+ |
| 443 |
| Mitigations | Yes. For the specific case of direct requests | |
| 444 |
| implemented? | targeting the SPMC, the latter is hardened to | |
| 445 |
| | prevent its internal state or the state of an SP | |
| 446 |
| | to be revealed through a direct message response. | |
| 447 |
| | Further FF-A v1.1 guidance about run time models | |
| 448 |
| | and partition states is followed. | |
| 449 |
+------------------------+----------------------------------------------------+ |
| 450 |
|
| 451 |
+------------------------+----------------------------------------------------+ |
| 452 |
| ID | 08 | |
| 453 |
+========================+====================================================+ |
| 454 |
| Threat | **Probing the FF-A communication between | |
| 455 |
| | endpoints.** | |
| 456 |
| | | |
| 457 |
| | SPMC and SPs are typically loaded to external | |
| 458 |
| | memory (protected by a TrustZone memory | |
| 459 |
| | controller). A malicious agent may use non invasive| |
| 460 |
| | methods to probe the external memory bus and | |
| 461 |
| | extract the traffic between an SP and the SPMC or | |
| 462 |
| | among SPs when shared buffers are held in external | |
| 463 |
| | memory. | |
| 464 |
+------------------------+----------------------------------------------------+ |
| 465 |
| Diagram Elements | DF7 | |
| 466 |
+------------------------+----------------------------------------------------+ |
| 467 |
| Affected TF-A | SPMC | |
| 468 |
| Components | | |
| 469 |
+------------------------+----------------------------------------------------+ |
| 470 |
| Assets | SP/SPMC state, SP/SPMC secrets | |
| 471 |
+------------------------+----------------------------------------------------+ |
| 472 |
| Threat Agent | Hardware attack | |
| 473 |
+------------------------+----------------------------------------------------+ |
| 474 |
| Threat Type | Information disclosure | |
| 475 |
+------------------------+--------------------------+-------------------------+ |
| 476 |
| Application | Server | Mobile | |
| 477 |
+------------------------+--------------------------+-------------------------+ |
| 478 |
| Impact | Medium (3) | Medium (3) | |
| 479 |
+------------------------+--------------------------+-------------------------+ |
| 480 |
| Likelihood | Low (2) | Medium (3) | |
| 481 |
+------------------------+--------------------------+-------------------------+ |
| 482 |
| Total Risk Rating | Medium (6) | Medium (9) | |
| 483 |
+------------------------+--------------------------+-------------------------+ |
| 484 |
| Mitigations | Implement DRAM protection techniques using | |
| 485 |
| | hardware countermeasures at platform or chip level.| |
| 486 |
+------------------------+--------------------------+-------------------------+ |
| 487 |
| Mitigations | Platform specific. | |
| 488 |
| implemented? | | |
| 489 |
+------------------------+----------------------------------------------------+ |
| 490 |
|
| 491 |
+------------------------+----------------------------------------------------+ |
| 492 |
| ID | 09 | |
| 493 |
+========================+====================================================+ |
| 494 |
| Threat | **A malicious agent may attempt revealing the SPMC | |
| 495 |
| | state or secrets by the use of software-based cache| |
| 496 |
| | side-channel attack techniques.** | |
| 497 |
+------------------------+----------------------------------------------------+ |
| 498 |
| Diagram Elements | DF7 | |
| 499 |
+------------------------+----------------------------------------------------+ |
| 500 |
| Affected TF-A | SPMC | |
| 501 |
| Components | | |
| 502 |
+------------------------+----------------------------------------------------+ |
| 503 |
| Assets | SP or SPMC state | |
| 504 |
+------------------------+----------------------------------------------------+ |
| 505 |
| Threat Agent | NS-Endpoint, S-Endpoint | |
| 506 |
+------------------------+----------------------------------------------------+ |
| 507 |
| Threat Type | Information disclosure | |
| 508 |
+------------------------+--------------------------+-------------------------+ |
| 509 |
| Application | Server | Mobile | |
| 510 |
+------------------------+--------------------------+-------------------------+ |
| 511 |
| Impact | Medium (3) | Medium (3) | |
| 512 |
+------------------------+--------------------------+-------------------------+ |
| 513 |
| Likelihood | Low (2) | Low (2) | |
| 514 |
+------------------------+--------------------------+-------------------------+ |
| 515 |
| Total Risk Rating | Medium (6) | Medium (6) | |
| 516 |
+------------------------+--------------------------+-------------------------+ |
| 517 |
| Mitigations | The SPMC may be hardened further with SW | |
| 518 |
| | mitigations (e.g. speculation barriers) for the | |
| 519 |
| | cases not covered in HW. Usage of hardened | |
| 520 |
| | compilers and appropriate options, code inspection | |
| 521 |
| | are recommended ways to mitigate Spectre types of | |
| 522 |
| | attacks. | |
| 523 |
+------------------------+----------------------------------------------------+ |
| 524 |
| Mitigations | No. | |
| 525 |
| implemented? | | |
| 526 |
+------------------------+----------------------------------------------------+ |
| 527 |
|
| 528 |
|
| 529 |
+------------------------+----------------------------------------------------+ |
| 530 |
| ID | 10 | |
| 531 |
+========================+====================================================+ |
| 532 |
| Threat | **A malicious endpoint may attempt flooding the | |
| 533 |
| | SPMC with requests targeting a service within an | |
| 534 |
| | endpoint such that it denies another endpoint to | |
| 535 |
| | access this service.** | |
| 536 |
| | | |
| 537 |
| | Similarly, the malicious endpoint may target a | |
| 538 |
| | a service within an endpoint such that the latter | |
| 539 |
| | is unable to request services from another | |
| 540 |
| | endpoint. | |
| 541 |
+------------------------+----------------------------------------------------+ |
| 542 |
| Diagram Elements | DF1, DF2, DF3 | |
| 543 |
+------------------------+----------------------------------------------------+ |
| 544 |
| Affected TF-A | SPMC | |
| 545 |
| Components | | |
| 546 |
+------------------------+----------------------------------------------------+ |
| 547 |
| Assets | SPMC state, Scheduling cycles | |
| 548 |
+------------------------+----------------------------------------------------+ |
| 549 |
| Threat Agent | NS-Endpoint, S-Endpoint | |
| 550 |
+------------------------+----------------------------------------------------+ |
| 551 |
| Threat Type | Denial of service | |
| 552 |
+------------------------+--------------------------+-------------------------+ |
| 553 |
| Application | Server | Mobile | |
| 554 |
+------------------------+--------------------------+-------------------------+ |
| 555 |
| Impact | Medium (3) | Medium (3) | |
| 556 |
+------------------------+--------------------------+-------------------------+ |
| 557 |
| Likelihood | Medium (3) | Medium (3) | |
| 558 |
+------------------------+--------------------------+-------------------------+ |
| 559 |
| Total Risk Rating | Medium (9) | Medium (9) | |
| 560 |
+------------------------+--------------------------+-------------------------+ |
| 561 |
| Mitigations | Bounding the time for operations to complete can | |
| 562 |
| | be achieved by the usage of a trusted watchdog. | |
| 563 |
| | Other quality of service monitoring can be achieved| |
| 564 |
| | in the SPMC such as counting a number of operations| |
| 565 |
| | in a limited timeframe. | |
| 566 |
+------------------------+----------------------------------------------------+ |
| 567 |
| Mitigations | Platform specific. | |
| 568 |
| implemented? | | |
| 569 |
+------------------------+----------------------------------------------------+ |
| 570 |
|
| 571 |
+------------------------+----------------------------------------------------+ |
| 572 |
| ID | 11 | |
| 573 |
+========================+====================================================+ |
| 574 |
| Threat | **Denying a lender endpoint to make progress if | |
| 575 |
| | borrower endpoint encountered a fatal exception. | |
| 576 |
| | Denying a new sender endpoint to make progress | |
| 577 |
| | if receiver encountered a fatal exception.** | |
| 578 |
+------------------------+----------------------------------------------------+ |
| 579 |
| Diagram Elements | DF1, DF2, DF3 | |
| 580 |
+------------------------+----------------------------------------------------+ |
| 581 |
| Affected TF-A | SPMC | |
| 582 |
| Components | | |
| 583 |
+------------------------+----------------------------------------------------+ |
| 584 |
| Assets | Shared resources, Scheduling cycles. | |
| 585 |
+------------------------+----------------------------------------------------+ |
| 586 |
| Threat Agent | NS-Endpoint, S-Endpoint | |
| 587 |
+------------------------+----------------------------------------------------+ |
| 588 |
| Threat Type | Denial of service | |
| 589 |
+------------------------+--------------------------+-------------------------+ |
| 590 |
| Application | Server | Mobile | |
| 591 |
+------------------------+--------------------------+-------------------------+ |
| 592 |
| Impact | Medium (3) | Medium (3) | |
| 593 |
+------------------------+--------------------------+-------------------------+ |
| 594 |
| Likelihood | Medium (3) | Medium (3) | |
| 595 |
+------------------------+--------------------------+-------------------------+ |
| 596 |
| Total Risk Rating | Medium (9) | Medium (9) | |
| 597 |
+------------------------+--------------------------+-------------------------+ |
| 598 |
| Mitigations | SPMC must be able to detect fatal error in SP and | |
| 599 |
| | take ownership of shared resources. It should | |
| 600 |
| | be able to relinquish the access to shared memory | |
| 601 |
| | regions to allow lender to proceed. | |
| 602 |
| | SPMC must return ABORTED if new direct requests are| |
| 603 |
| | targeted to SP which has had a fatal error. | |
| 604 |
+------------------------+----------------------------------------------------+ |
| 605 |
| Mitigations | Platform specific. | |
| 606 |
| implemented? | | |
| 607 |
+------------------------+----------------------------------------------------+ |
| 608 |
|
| 609 |
+------------------------+----------------------------------------------------+ |
| 610 |
| ID | 12 | |
| 611 |
+========================+====================================================+ |
| 612 |
| Threat | **A malicious endpoint may attempt to donate, | |
| 613 |
| | share, lend, relinquish or reclaim unauthorized | |
| 614 |
| | memory region.** | |
| 615 |
+------------------------+----------------------------------------------------+ |
| 616 |
| Diagram Elements | DF1, DF2, DF3 | |
| 617 |
+------------------------+----------------------------------------------------+ |
| 618 |
| Affected TF-A | SPMC | |
| 619 |
| Components | | |
| 620 |
+------------------------+----------------------------------------------------+ |
| 621 |
| Assets | SP secrets, SPMC secrets, SP state, SPMC state | |
| 622 |
+------------------------+----------------------------------------------------+ |
| 623 |
| Threat Agent | NS-Endpoint, S-Endpoint | |
| 624 |
+------------------------+----------------------------------------------------+ |
| 625 |
| Threat Type | Elevation of Privilege | |
| 626 |
+------------------------+--------------------------+-------------------------+ |
| 627 |
| Application | Server | Mobile | |
| 628 |
+------------------------+--------------------------+-------------------------+ |
| 629 |
| Impact | High (4) | High (4) | |
| 630 |
+------------------------+--------------------------+-------------------------+ |
| 631 |
| Likelihood | High (4) | High (4) | |
| 632 |
+------------------------+--------------------------+-------------------------+ |
| 633 |
| Total Risk Rating | High (16) | High (16) | |
| 634 |
+------------------------+--------------------------+-------------------------+ |
| 635 |
| Mitigations | Follow FF-A specification guidelines | |
| 636 |
| | on Memory management transactions. | |
| 637 |
+------------------------+----------------------------------------------------+ |
| 638 |
| Mitigations | Yes. The SPMC tracks ownership and access state | |
| 639 |
| implemented? | for memory transactions appropriately, and | |
| 640 |
| | validating the same for all operations. | |
| 641 |
| | SPMC follows FF-A v1.1 | |
| 642 |
| | guidance for memory transaction lifecycle. | |
| 643 |
+------------------------+----------------------------------------------------+ |
| 644 |
|
| 645 |
--------------- |
| 646 |
|
| 647 |
*Copyright (c) 2022-2024, Arm Limited. All rights reserved.* |
| 648 |
|
| 649 |
.. _Arm Firmware Framework for Arm A-profile: https://developer.arm.com/docs/den0077/latest |
| 650 |
.. _FF-A ACS: https://github.com/ARM-software/ff-a-acs/releases |