Gary Morrison | d4d951a | 2021-11-10 14:40:15 -0600 | [diff] [blame] | 1 | Generic Threat Model |
Olivier Deprez | 86d1ffd | 2021-06-01 15:37:16 +0200 | [diff] [blame] | 2 | ******************** |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 3 | |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 4 | ************ |
Olivier Deprez | 86d1ffd | 2021-06-01 15:37:16 +0200 | [diff] [blame] | 5 | Introduction |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 6 | ************ |
| 7 | |
Olivier Deprez | 86d1ffd | 2021-06-01 15:37:16 +0200 | [diff] [blame] | 8 | This document provides a generic threat model for TF-A firmware. |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 9 | |
Zelalem Aweke | 023b1a4 | 2021-10-21 13:59:45 -0500 | [diff] [blame] | 10 | .. note:: |
| 11 | |
| 12 | This threat model doesn't consider Root and Realm worlds introduced by |
| 13 | :ref:`Realm Management Extension (RME)`. |
| 14 | |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 15 | ******************** |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 16 | Target of Evaluation |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 17 | ******************** |
| 18 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 19 | In this threat model, the target of evaluation is the Trusted |
| 20 | Firmware for A-class Processors (TF-A). This includes the boot ROM (BL1), |
| 21 | the trusted boot firmware (BL2) and the runtime EL3 firmware (BL31) as |
| 22 | shown on Figure 1. Everything else on Figure 1 is outside of the scope of |
| 23 | the evaluation. |
| 24 | |
| 25 | TF-A can be configured in various ways. In this threat model we consider |
| 26 | only the most basic configuration. To that end we make the following |
| 27 | assumptions: |
| 28 | |
| 29 | - All TF-A images are run from either ROM or on-chip trusted SRAM. This means |
| 30 | TF-A is not vulnerable to an attacker that can probe or tamper with off-chip |
| 31 | memory. |
Zelalem Aweke | 023b1a4 | 2021-10-21 13:59:45 -0500 | [diff] [blame] | 32 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 33 | - Trusted boot is enabled. This means an attacker can't boot arbitrary images |
| 34 | that are not approved by platform providers. |
Zelalem Aweke | 023b1a4 | 2021-10-21 13:59:45 -0500 | [diff] [blame] | 35 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 36 | - There is no Secure-EL2. We don't consider threats that may come with |
| 37 | Secure-EL2 software. |
| 38 | |
Sandrine Bailleux | 78cdfdd | 2022-05-12 14:57:26 +0200 | [diff] [blame] | 39 | - No experimental features are enabled. We do not consider threats that may come |
| 40 | from them. |
| 41 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 42 | Data Flow Diagram |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 43 | ================= |
| 44 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 45 | Figure 1 shows a high-level data flow diagram for TF-A. The diagram |
| 46 | shows a model of the different components of a TF-A-based system and |
| 47 | their interactions with TF-A. A description of each diagram element |
| 48 | is given on Table 1. On the diagram, the red broken lines indicate |
| 49 | trust boundaries. Components outside of the broken lines |
| 50 | are considered untrusted by TF-A. |
| 51 | |
| 52 | .. uml:: ../resources/diagrams/plantuml/tfa_dfd.puml |
| 53 | :caption: Figure 1: TF-A Data Flow Diagram |
| 54 | |
| 55 | .. table:: Table 1: TF-A Data Flow Diagram Description |
| 56 | |
| 57 | +-----------------+--------------------------------------------------------+ |
| 58 | | Diagram Element | Description | |
| 59 | +=================+========================================================+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 60 | | DF1 | | At boot time, images are loaded from non-volatile | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 61 | | | memory and verified by TF-A boot firmware. These | |
| 62 | | | images include TF-A BL2 and BL31 images, as well as | |
| 63 | | | other secure and non-secure images. | |
| 64 | +-----------------+--------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 65 | | DF2 | | TF-A log system framework outputs debug messages | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 66 | | | over a UART interface. | |
| 67 | +-----------------+--------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 68 | | DF3 | | Debug and trace IP on a platform can allow access | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 69 | | | to registers and memory of TF-A. | |
| 70 | +-----------------+--------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 71 | | DF4 | | Secure world software (e.g. trusted OS) interact | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 72 | | | with TF-A through SMC call interface and/or shared | |
| 73 | | | memory. | |
| 74 | +-----------------+--------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 75 | | DF5 | | Non-secure world software (e.g. rich OS) interact | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 76 | | | with TF-A through SMC call interface and/or shared | |
| 77 | | | memory. | |
| 78 | +-----------------+--------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 79 | | DF6 | | This path represents the interaction between TF-A and| |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 80 | | | various hardware IPs such as TrustZone controller | |
| 81 | | | and GIC. At boot time TF-A configures/initializes the| |
| 82 | | | IPs and interacts with them at runtime through | |
| 83 | | | interrupts and registers. | |
| 84 | +-----------------+--------------------------------------------------------+ |
| 85 | |
| 86 | |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 87 | *************** |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 88 | Threat Analysis |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 89 | *************** |
| 90 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 91 | In this section we identify and provide assessment of potential threats to TF-A |
| 92 | firmware. The threats are identified for each diagram element on the |
| 93 | data flow diagram above. |
| 94 | |
| 95 | For each threat, we identify the *asset* that is under threat, the |
| 96 | *threat agent* and the *threat type*. Each threat is given a *risk rating* |
| 97 | that represents the impact and likelihood of that threat. We also discuss |
| 98 | potential mitigations. |
| 99 | |
| 100 | Assets |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 101 | ====== |
| 102 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 103 | We have identified the following assets for TF-A: |
| 104 | |
| 105 | .. table:: Table 2: TF-A Assets |
| 106 | |
| 107 | +--------------------+---------------------------------------------------+ |
| 108 | | Asset | Description | |
| 109 | +====================+===================================================+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 110 | | Sensitive Data | | These include sensitive data that an attacker | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 111 | | | must not be able to tamper with (e.g. the Root | |
| 112 | | | of Trust Public Key) or see (e.g. secure logs, | |
| 113 | | | debugging information such as crash reports). | |
| 114 | +--------------------+---------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 115 | | Code Execution | | This represents the requirement that the | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 116 | | | platform should run only TF-A code approved by | |
| 117 | | | the platform provider. | |
| 118 | +--------------------+---------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 119 | | Availability | | This represents the requirement that TF-A | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 120 | | | services should always be available for use. | |
| 121 | +--------------------+---------------------------------------------------+ |
| 122 | |
| 123 | Threat Agents |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 124 | ============= |
| 125 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 126 | To understand the attack surface, it is important to identify potential |
| 127 | attackers, i.e. attack entry points. The following threat agents are |
| 128 | in scope of this threat model. |
| 129 | |
| 130 | .. table:: Table 3: Threat Agents |
| 131 | |
| 132 | +-------------------+-------------------------------------------------------+ |
| 133 | | Threat Agent | Description | |
| 134 | +===================+=======================================================+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 135 | | NSCode | | Malicious or faulty code running in the Non-secure | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 136 | | | world, including NS-EL0 NS-EL1 and NS-EL2 levels | |
| 137 | +-------------------+-------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 138 | | SecCode | | Malicious or faulty code running in the secure | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 139 | | | world, including S-EL0 and S-EL1 levels | |
| 140 | +-------------------+-------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 141 | | AppDebug | | Physical attacker using debug signals to access | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 142 | | | TF-A resources | |
| 143 | +-------------------+-------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 144 | | PhysicalAccess | | Physical attacker having access to external device | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 145 | | | communication bus and to external flash | |
| 146 | | | communication bus using common hardware | |
| 147 | +-------------------+-------------------------------------------------------+ |
| 148 | |
| 149 | .. note:: |
| 150 | |
| 151 | In this threat model an advanced physical attacker that has the capability |
| 152 | to tamper with a hardware (e.g. "rewiring" a chip using a focused |
| 153 | ion beam (FIB) workstation or decapsulate the chip using chemicals) is |
| 154 | considered out-of-scope. |
| 155 | |
| 156 | Threat Types |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 157 | ============ |
| 158 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 159 | In this threat model we categorize threats using the `STRIDE threat |
| 160 | analysis technique`_. In this technique a threat is categorized as one |
| 161 | or more of these types: ``Spoofing``, ``Tampering``, ``Repudiation``, |
| 162 | ``Information disclosure``, ``Denial of service`` or |
| 163 | ``Elevation of privilege``. |
| 164 | |
| 165 | Threat Risk Ratings |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 166 | =================== |
| 167 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 168 | For each threat identified, a risk rating that ranges |
| 169 | from *informational* to *critical* is given based on the likelihood of the |
| 170 | threat occuring if a mitigation is not in place, and the impact of the |
| 171 | threat (i.e. how severe the consequences could be). Table 4 explains each |
| 172 | rating in terms of score, impact and likelihood. |
| 173 | |
| 174 | .. table:: Table 4: Rating and score as applied to impact and likelihood |
| 175 | |
| 176 | +-----------------------+-------------------------+---------------------------+ |
| 177 | | **Rating (Score)** | **Impact** | **Likelihood** | |
| 178 | +=======================+=========================+===========================+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 179 | | Critical (5) | | Extreme impact to | | Threat is almost | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 180 | | | entire organization | certain to be exploited.| |
| 181 | | | if exploited. | | |
| 182 | | | | | Knowledge of the threat | |
| 183 | | | | and how to exploit it | |
| 184 | | | | are in the public | |
| 185 | | | | domain. | |
| 186 | +-----------------------+-------------------------+---------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 187 | | High (4) | | Major impact to entire| | Threat is relatively | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 188 | | | organization or single| easy to detect and | |
| 189 | | | line of business if | exploit by an attacker | |
| 190 | | | exploited | with little skill. | |
| 191 | +-----------------------+-------------------------+---------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 192 | | Medium (3) | | Noticeable impact to | | A knowledgeable insider | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 193 | | | line of business if | or expert attacker could| |
| 194 | | | exploited. | exploit the threat | |
| 195 | | | | without much difficulty.| |
| 196 | +-----------------------+-------------------------+---------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 197 | | Low (2) | | Minor damage if | | Exploiting the threat | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 198 | | | exploited or could | would require | |
| 199 | | | be used in conjunction| considerable expertise | |
| 200 | | | with other | and resources | |
| 201 | | | vulnerabilities to | | |
| 202 | | | perform a more serious| | |
| 203 | | | attack | | |
| 204 | +-----------------------+-------------------------+---------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 205 | | Informational (1) | | Poor programming | | Threat is not likely | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 206 | | | practice or poor | to be exploited on its | |
| 207 | | | design decision that | own, but may be used to | |
| 208 | | | may not represent an | gain information for | |
| 209 | | | immediate risk on its | launching another | |
| 210 | | | own, but may have | attack | |
| 211 | | | security implications | | |
| 212 | | | if multiplied and/or | | |
| 213 | | | combined with other | | |
| 214 | | | threats. | | |
| 215 | +-----------------------+-------------------------+---------------------------+ |
| 216 | |
| 217 | Aggregate risk scores are assigned to identified threats; |
| 218 | specifically, the impact score multiplied by the likelihood score. |
| 219 | For example, a threat with high likelihood and low impact would have an |
| 220 | aggregate risk score of eight (8); that is, four (4) for high likelihood |
| 221 | multiplied by two (2) for low impact. The aggregate risk score determines |
| 222 | the finding's overall risk level, as shown in the following table. |
| 223 | |
| 224 | .. table:: Table 5: Overall risk levels and corresponding aggregate scores |
| 225 | |
| 226 | +---------------------+-----------------------------------+ |
| 227 | | Overall Risk Level | Aggregate Risk Score | |
| 228 | | | (Impact multiplied by Likelihood) | |
| 229 | +=====================+===================================+ |
| 230 | | Critical | 20–25 | |
| 231 | +---------------------+-----------------------------------+ |
| 232 | | High | 12–19 | |
| 233 | +---------------------+-----------------------------------+ |
| 234 | | Medium | 6–11 | |
| 235 | +---------------------+-----------------------------------+ |
| 236 | | Low | 2–5 | |
| 237 | +---------------------+-----------------------------------+ |
| 238 | | Informational | 1 | |
| 239 | +---------------------+-----------------------------------+ |
| 240 | |
| 241 | The likelihood and impact of a threat depends on the |
| 242 | target environment in which TF-A is running. For example, attacks |
| 243 | that require physical access are unlikely in server environments while |
| 244 | they are more common in Internet of Things(IoT) environments. |
| 245 | In this threat model we consider three target environments: |
| 246 | ``Internet of Things(IoT)``, ``Mobile`` and ``Server``. |
| 247 | |
| 248 | Threat Assessment |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 249 | ================= |
| 250 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 251 | The following threats were identified by applying STRIDE analysis on |
| 252 | each diagram element of the data flow diagram. |
| 253 | |
| 254 | +------------------------+----------------------------------------------------+ |
| 255 | | ID | 01 | |
| 256 | +========================+====================================================+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 257 | | Threat | | **An attacker can mangle firmware images to | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 258 | | | execute arbitrary code** | |
| 259 | | | | |
| 260 | | | | Some TF-A images are loaded from external | |
| 261 | | | storage. It is possible for an attacker to access| |
| 262 | | | the external flash memory and change its contents| |
| 263 | | | physically, through the Rich OS, or using the | |
| 264 | | | updating mechanism to modify the non-volatile | |
| 265 | | | images to execute arbitrary code. | |
| 266 | +------------------------+----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 267 | | Diagram Elements | DF1, DF4, DF5 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 268 | +------------------------+----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 269 | | Affected TF-A | BL2, BL31 | |
| 270 | | Components | | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 271 | +------------------------+----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 272 | | Assets | Code Execution | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 273 | +------------------------+----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 274 | | Threat Agent | PhysicalAccess, NSCode, SecCode | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 275 | +------------------------+----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 276 | | Threat Type | Tampering, Elevation of Privilege | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 277 | +------------------------+------------------+-----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 278 | | Application | Server | IoT | Mobile | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 279 | +------------------------+------------------+-----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 280 | | Impact | Critical (5) | Critical (5) | Critical (5) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 281 | +------------------------+------------------+-----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 282 | | Likelihood | Critical (5) | Critical (5) | Critical (5) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 283 | +------------------------+------------------+-----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 284 | | Total Risk Rating | Critical (25) | Critical (25) | Critical (25) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 285 | +------------------------+------------------+-----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 286 | | Mitigations | | TF-A implements the `Trusted Board Boot (TBB)`_ | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 287 | | | feature which prevents malicious firmware from | |
| 288 | | | running on the platform by authenticating all | |
| 289 | | | firmware images. In addition to this, the TF-A | |
| 290 | | | boot firmware performs extra checks on | |
| 291 | | | unauthenticated data, such as FIP metadata, prior| |
| 292 | | | to use. | |
| 293 | +------------------------+----------------------------------------------------+ |
| 294 | |
| 295 | +------------------------+----------------------------------------------------+ |
| 296 | | ID | 02 | |
| 297 | +========================+====================================================+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 298 | | Threat | | **An attacker may attempt to boot outdated, | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 299 | | | potentially vulnerable firmware image** | |
| 300 | | | | |
| 301 | | | | When updating firmware, an attacker may attempt | |
| 302 | | | to rollback to an older version that has unfixed | |
| 303 | | | vulnerabilities. | |
| 304 | +------------------------+----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 305 | | Diagram Elements | DF1, DF4, DF5 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 306 | +------------------------+----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 307 | | Affected TF-A | BL2, BL31 | |
| 308 | | Components | | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 309 | +------------------------+----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 310 | | Assets | Code Execution | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 311 | +------------------------+----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 312 | | Threat Agent | PhysicalAccess, NSCode, SecCode | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 313 | +------------------------+----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 314 | | Threat Type | Tampering | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 315 | +------------------------+------------------+-----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 316 | | Application | Server | IoT | Mobile | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 317 | +------------------------+------------------+-----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 318 | | Impact | Critical (5) | Critical (5) | Critical (5) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 319 | +------------------------+------------------+-----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 320 | | Likelihood | Critical (5) | Critical (5) | Critical (5) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 321 | +------------------------+------------------+-----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 322 | | Total Risk Rating | Critical (25) | Critical (25) | Critical (25) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 323 | +------------------------+------------------+-----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 324 | | Mitigations | | TF-A supports anti-rollback protection using | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 325 | | | non-volatile counters (NV counters) as required | |
| 326 | | | by `TBBR-Client specification`_. After a firmware| |
| 327 | | | image is validated, the image revision number | |
| 328 | | | taken from a certificate extension field is | |
| 329 | | | compared with the corresponding NV counter stored| |
| 330 | | | in hardware to make sure the new counter value is| |
| 331 | | | larger or equal to the current counter value. | |
| 332 | | | Platforms must implement this protection using | |
| 333 | | | platform specific hardware NV counters. | |
| 334 | +------------------------+----------------------------------------------------+ |
| 335 | |
| 336 | +------------------------+-------------------------------------------------------+ |
| 337 | | ID | 03 | |
| 338 | +========================+=======================================================+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 339 | | Threat | | **An attacker can use Time-of-Check-Time-of-Use | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 340 | | | (TOCTOU) attack to bypass image authentication | |
| 341 | | | during the boot process** | |
| 342 | | | | |
| 343 | | | | Time-of-Check-Time-of-Use (TOCTOU) threats occur | |
| 344 | | | when the security check is produced before the time | |
| 345 | | | the resource is accessed. If an attacker is sitting | |
| 346 | | | in the middle of the off-chip images, they could | |
| 347 | | | change the binary containing executable code right | |
| 348 | | | after the integrity and authentication check has | |
| 349 | | | been performed. | |
| 350 | +------------------------+-------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 351 | | Diagram Elements | DF1 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 352 | +------------------------+-------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 353 | | Affected TF-A | BL1, BL2 | |
| 354 | | Components | | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 355 | +------------------------+-------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 356 | | Assets | Code Execution, Sensitive Data | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 357 | +------------------------+-------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 358 | | Threat Agent | PhysicalAccess | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 359 | +------------------------+-------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 360 | | Threat Type | Elevation of Privilege | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 361 | +------------------------+---------------------+-----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 362 | | Application | Server | IoT | Mobile | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 363 | +------------------------+---------------------+-----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 364 | | Impact | N/A | Critical (5) | Critical (5) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 365 | +------------------------+---------------------+-----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 366 | | Likelihood | N/A | Medium (3) | Medium (3) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 367 | +------------------------+---------------------+-----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 368 | | Total Risk Rating | N/A | High (15) | High (15) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 369 | +------------------------+---------------------+-----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 370 | | Mitigations | | TF-A boot firmware copies image to on-chip | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 371 | | | memory before authenticating an image. | |
| 372 | +------------------------+-------------------------------------------------------+ |
| 373 | |
| 374 | +------------------------+-------------------------------------------------------+ |
| 375 | | ID | 04 | |
| 376 | +========================+=======================================================+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 377 | | Threat | | **An attacker with physical access can execute | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 378 | | | arbitrary image by bypassing the signature | |
| 379 | | | verification stage using glitching techniques** | |
| 380 | | | | |
| 381 | | | | Glitching (Fault injection) attacks attempt to put | |
| 382 | | | a hardware into a undefined state by manipulating an| |
| 383 | | | environmental variable such as power supply. | |
| 384 | | | | |
| 385 | | | | TF-A relies on a chain of trust that starts with the| |
| 386 | | | ROTPK, which is the key stored inside the chip and | |
| 387 | | | the root of all validation processes. If an attacker| |
| 388 | | | can break this chain of trust, they could execute | |
| 389 | | | arbitrary code on the device. This could be | |
| 390 | | | achieved with physical access to the device by | |
| 391 | | | attacking the normal execution flow of the | |
| 392 | | | process using glitching techniques that target | |
| 393 | | | points where the image is validated against the | |
| 394 | | | signature. | |
| 395 | +------------------------+-------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 396 | | Diagram Elements | DF1 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 397 | +------------------------+-------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 398 | | Affected TF-A | BL1, BL2 | |
| 399 | | Components | | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 400 | +------------------------+-------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 401 | | Assets | Code Execution | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 402 | +------------------------+-------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 403 | | Threat Agent | PhysicalAccess | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 404 | +------------------------+-------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 405 | | Threat Type | Tampering, Elevation of Privilege | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 406 | +------------------------+---------------------+-----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 407 | | Application | Server | IoT | Mobile | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 408 | +------------------------+---------------------+-----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 409 | | Impact | N/A | Critical (5) | Critical (5) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 410 | +------------------------+---------------------+-----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 411 | | Likelihood | N/A | Medium (3) | Medium (3) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 412 | +------------------------+---------------------+-----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 413 | | Total Risk Rating | N/A | High (15) | High (15) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 414 | +------------------------+---------------------+-----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 415 | | Mitigations | | The most effective mitigation is adding glitching | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 416 | | | detection and mitigation circuit at the hardware | |
| 417 | | | level. However, software techniques, | |
| 418 | | | such as adding redundant checks when performing | |
| 419 | | | conditional branches that are security sensitive, | |
| 420 | | | can be used to harden TF-A against such attacks. | |
| 421 | | | **At the moment TF-A doesn't implement such | |
| 422 | | | mitigations.** | |
| 423 | +------------------------+-------------------------------------------------------+ |
| 424 | |
| 425 | +------------------------+---------------------------------------------------+ |
| 426 | | ID | 05 | |
| 427 | +========================+===================================================+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 428 | | Threat | | **Information leak via UART logs such as | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 429 | | | crashes** | |
| 430 | | | | |
| 431 | | | | During the development stages of software it is | |
| 432 | | | common to include crash reports with detailed | |
| 433 | | | information of the CPU state including current | |
| 434 | | | values of the registers, privilege level and | |
| 435 | | | stack dumps. This information is useful when | |
| 436 | | | debugging problems before releasing the | |
| 437 | | | production version, but it could be used by an | |
| 438 | | | attacker to develop a working exploit if left | |
| 439 | | | in the production version. | |
| 440 | +------------------------+---------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 441 | | Diagram Elements | DF2 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 442 | +------------------------+---------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 443 | | Affected TF-A | BL1, BL2, BL31 | |
| 444 | | Components | | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 445 | +------------------------+---------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 446 | | Assets | Sensitive Data | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 447 | +------------------------+---------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 448 | | Threat Agent | AppDebug | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 449 | +------------------------+---------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 450 | | Threat Type | Information Disclosure | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 451 | +------------------------+------------------+----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 452 | | Application | Server | IoT | Mobile | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 453 | +------------------------+------------------+----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 454 | | Impact | N/A | Low (2) | Low (2) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 455 | +------------------------+------------------+----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 456 | | Likelihood | N/A | High (4) | High (4) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 457 | +------------------------+------------------+----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 458 | | Total Risk Rating | N/A | Medium (8) | Medium (8) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 459 | +------------------------+------------------+----------------+---------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 460 | | Mitigations | | In TF-A, crash reporting is only enabled for | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 461 | | | debug builds by default. Alternatively, the log | |
| 462 | | | level can be tuned at build time (from verbose | |
| 463 | | | to no output at all), independently of the | |
| 464 | | | build type. | |
| 465 | +------------------------+---------------------------------------------------+ |
| 466 | |
| 467 | +------------------------+----------------------------------------------------+ |
| 468 | | ID | 06 | |
| 469 | +========================+====================================================+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 470 | | Threat | | **An attacker can read sensitive data and | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 471 | | | execute arbitrary code through the external | |
| 472 | | | debug and trace interface** | |
| 473 | | | | |
| 474 | | | | Arm processors include hardware-assisted debug | |
| 475 | | | and trace features that can be controlled without| |
| 476 | | | the need for software operating on the platform. | |
| 477 | | | If left enabled without authentication, this | |
| 478 | | | feature can be used by an attacker to inspect and| |
| 479 | | | modify TF-A registers and memory allowing the | |
| 480 | | | attacker to read sensitive data and execute | |
| 481 | | | arbitrary code. | |
| 482 | +------------------------+----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 483 | | Diagram Elements | DF3 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 484 | +------------------------+----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 485 | | Affected TF-A | BL1, BL2, BL31 | |
| 486 | | Components | | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 487 | +------------------------+----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 488 | | Assets | Code Execution, Sensitive Data | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 489 | +------------------------+----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 490 | | Threat Agent | AppDebug | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 491 | +------------------------+----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 492 | | Threat Type | Tampering, Information Disclosure, | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 493 | | | Elevation of privilege | |
| 494 | +------------------------+------------------+---------------+-----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 495 | | Application | Server | IoT | Mobile | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 496 | +------------------------+------------------+---------------+-----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 497 | | Impact | N/A | High (4) | High (4) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 498 | +------------------------+------------------+---------------+-----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 499 | | Likelihood | N/A | Critical (5) | Critical (5) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 500 | +------------------------+------------------+---------------+-----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 501 | | Total Risk Rating | N/A | Critical (20) | Critical (20) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 502 | +------------------------+------------------+---------------+-----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 503 | | Mitigations | | Configuration of debug and trace capabilities is | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 504 | | | platform specific. Therefore, platforms must | |
| 505 | | | disable the debug and trace capability for | |
| 506 | | | production releases or enable proper debug | |
| 507 | | | authentication as recommended by [`DEN0034`_]. | |
| 508 | +------------------------+----------------------------------------------------+ |
| 509 | |
| 510 | +------------------------+------------------------------------------------------+ |
| 511 | | ID | 07 | |
| 512 | +========================+======================================================+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 513 | | Threat | | **An attacker can perform a denial-of-service | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 514 | | | attack by using a broken SMC call that causes the | |
| 515 | | | system to reboot or enter into unknown state.** | |
| 516 | | | | |
| 517 | | | | Secure and non-secure clients access TF-A services | |
| 518 | | | through SMC calls. Malicious code can attempt to | |
| 519 | | | place the TF-A runtime into an inconsistent state | |
| 520 | | | by calling unimplemented SMC call or by passing | |
| 521 | | | invalid arguments. | |
| 522 | +------------------------+------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 523 | | Diagram Elements | DF4, DF5 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 524 | +------------------------+------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 525 | | Affected TF-A | BL31 | |
| 526 | | Components | | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 527 | +------------------------+------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 528 | | Assets | Availability | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 529 | +------------------------+------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 530 | | Threat Agent | NSCode, SecCode | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 531 | +------------------------+------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 532 | | Threat Type | Denial of Service | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 533 | +------------------------+-------------------+----------------+-----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 534 | | Application | Server | IoT | Mobile | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 535 | +------------------------+-------------------+----------------+-----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 536 | | Impact | Medium (3) | Medium (3) | Medium (3) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 537 | +------------------------+-------------------+----------------+-----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 538 | | Likelihood | High (4) | High (4) | High (4) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 539 | +------------------------+-------------------+----------------+-----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 540 | | Total Risk Rating | High (12) | High (12) | High (12) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 541 | +------------------------+-------------------+----------------+-----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 542 | | Mitigations | | The generic TF-A code validates SMC function ids | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 543 | | | and arguments before using them. | |
| 544 | | | Platforms that implement SiP services must also | |
| 545 | | | validate SMC call arguments. | |
| 546 | +------------------------+------------------------------------------------------+ |
| 547 | |
| 548 | +------------------------+------------------------------------------------------+ |
| 549 | | ID | 08 | |
| 550 | +========================+======================================================+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 551 | | Threat | | **Memory corruption due to memory overflows and | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 552 | | | lack of boundary checking when accessing resources | |
| 553 | | | could allow an attacker to execute arbitrary code, | |
| 554 | | | modify some state variable to change the normal | |
| 555 | | | flow of the program, or leak sensitive | |
| 556 | | | information** | |
| 557 | | | | |
Sandrine Bailleux | 0b816db | 2022-05-13 12:40:22 +0200 | [diff] [blame] | 558 | | | | Like in other software, TF-A has multiple points | |
| 559 | | | where memory corruption security errors can arise. | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 560 | | | | |
| 561 | | | | Some of the errors include integer overflow, | |
| 562 | | | buffer overflow, incorrect array boundary checks, | |
| 563 | | | and incorrect error management. | |
| 564 | | | Improper use of asserts instead of proper input | |
| 565 | | | validations might also result in these kinds of | |
| 566 | | | errors in release builds. | |
| 567 | +------------------------+------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 568 | | Diagram Elements | DF4, DF5 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 569 | +------------------------+------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 570 | | Affected TF-A | BL1, BL2, BL31 | |
| 571 | | Components | | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 572 | +------------------------+------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 573 | | Assets | Code Execution, Sensitive Data | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 574 | +------------------------+------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 575 | | Threat Agent | NSCode, SecCode | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 576 | +------------------------+------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 577 | | Threat Type | Tampering, Information Disclosure, | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 578 | | | Elevation of Privilege | |
| 579 | +------------------------+-------------------+-----------------+----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 580 | | Application | Server | IoT | Mobile | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 581 | +------------------------+-------------------+-----------------+----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 582 | | Impact | Critical (5) | Critical (5) | Critical (5) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 583 | +------------------------+-------------------+-----------------+----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 584 | | Likelihood | Medium (3 | Medium (3) | Medium (3) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 585 | +------------------------+-------------------+-----------------+----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 586 | | Total Risk Rating | High (15) | High (15) | High (15) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 587 | +------------------------+-------------------+-----------------+----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 588 | | Mitigations | | TF-A uses a combination of manual code reviews and | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 589 | | | automated program analysis and testing to detect | |
| 590 | | | and fix memory corruption bugs. All TF-A code | |
| 591 | | | including platform code go through manual code | |
| 592 | | | reviews. Additionally, static code analysis is | |
| 593 | | | performed using Coverity Scan on all TF-A code. | |
| 594 | | | The code is also tested with | |
| 595 | | | `Trusted Firmware-A Tests`_ on Juno and FVP | |
| 596 | | | platforms. | |
| 597 | | | | |
| 598 | | | | Data received from normal world, such as addresses | |
| 599 | | | and sizes identifying memory regions, are | |
| 600 | | | sanitized before being used. These security checks | |
| 601 | | | make sure that the normal world software does not | |
| 602 | | | access memory beyond its limit. | |
| 603 | | | | |
| 604 | | | | By default *asserts* are only used to check for | |
| 605 | | | programming errors in debug builds. Other types of | |
| 606 | | | errors are handled through condition checks that | |
| 607 | | | remain enabled in release builds. See | |
| 608 | | | `TF-A error handling policy`_. TF-A provides an | |
| 609 | | | option to use *asserts* in release builds, however | |
| 610 | | | we recommend using proper runtime checks instead | |
| 611 | | | of relying on asserts in release builds. | |
| 612 | +------------------------+------------------------------------------------------+ |
| 613 | |
| 614 | +------------------------+------------------------------------------------------+ |
| 615 | | ID | 09 | |
| 616 | +========================+======================================================+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 617 | | Threat | | **Improperly handled SMC calls can leak register | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 618 | | | contents** | |
| 619 | | | | |
| 620 | | | | When switching between secure and non-secure | |
| 621 | | | states, register contents of Secure world or | |
| 622 | | | register contents of other normal world clients | |
| 623 | | | can be leaked. | |
| 624 | +------------------------+------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 625 | | Diagram Elements | DF5 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 626 | +------------------------+------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 627 | | Affected TF-A | BL31 | |
| 628 | | Components | | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 629 | +------------------------+------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 630 | | Assets | Sensitive Data | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 631 | +------------------------+------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 632 | | Threat Agent | NSCode | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 633 | +------------------------+------------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 634 | | Threat Type | Information Disclosure | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 635 | +------------------------+-------------------+----------------+-----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 636 | | Application | Server | IoT | Mobile | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 637 | +------------------------+-------------------+----------------+-----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 638 | | Impact | Medium (3) | Medium (3) | Medium (3) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 639 | +------------------------+-------------------+----------------+-----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 640 | | Likelihood | High (4) | High (4) | High (4) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 641 | +------------------------+-------------------+----------------+-----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 642 | | Total Risk Rating | High (12) | High (12) | High (12) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 643 | +------------------------+-------------------+----------------+-----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 644 | | Mitigations | | TF-A saves and restores registers | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 645 | | | by default when switching contexts. Build options | |
| 646 | | | are also provided to save/restore additional | |
| 647 | | | registers such as floating-point registers. | |
| 648 | +------------------------+------------------------------------------------------+ |
| 649 | |
| 650 | +------------------------+-----------------------------------------------------+ |
| 651 | | ID | 10 | |
| 652 | +========================+=====================================================+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 653 | | Threat | | **SMC calls can leak sensitive information from | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 654 | | | TF-A memory via microarchitectural side channels**| |
| 655 | | | | |
| 656 | | | | Microarchitectural side-channel attacks such as | |
| 657 | | | `Spectre`_ can be used to leak data across | |
| 658 | | | security boundaries. An attacker might attempt to | |
| 659 | | | use this kind of attack to leak sensitive | |
| 660 | | | data from TF-A memory. | |
| 661 | +------------------------+-----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 662 | | Diagram Elements | DF4, DF5 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 663 | +------------------------+-----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 664 | | Affected TF-A | BL31 | |
| 665 | | Components | | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 666 | +------------------------+-----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 667 | | Assets | Sensitive Data | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 668 | +------------------------+-----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 669 | | Threat Agent | SecCode, NSCode | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 670 | +------------------------+-----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 671 | | Threat Type | Information Disclosure | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 672 | +------------------------+-------------------+----------------+----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 673 | | Application | Server | IoT | Mobile | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 674 | +------------------------+-------------------+----------------+----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 675 | | Impact | Medium (3) | Medium (3) | Medium (3) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 676 | +------------------------+-------------------+----------------+----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 677 | | Likelihood | Medium (3) | Medium (3) | Medium (3) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 678 | +------------------------+-------------------+----------------+----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 679 | | Total Risk Rating | Medium (9) | Medium (9) | Medium (9) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 680 | +------------------------+-------------------+----------------+----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 681 | | Mitigations | | TF-A implements software mitigations for Spectre | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 682 | | | type attacks as recommended by `Cache Speculation | |
| 683 | | | Side-channels`_ for the generic code. SiPs should | |
| 684 | | | implement similar mitigations for code that is | |
| 685 | | | deemed to be vulnerable to such attacks. | |
| 686 | +------------------------+-----------------------------------------------------+ |
| 687 | |
| 688 | +------------------------+----------------------------------------------------+ |
| 689 | | ID | 11 | |
| 690 | +========================+====================================================+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 691 | | Threat | | **Misconfiguration of the Memory Management Unit | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 692 | | | (MMU) may allow a normal world software to | |
| 693 | | | access sensitive data or execute arbitrary | |
| 694 | | | code** | |
| 695 | | | | |
| 696 | | | | A misconfiguration of the MMU could | |
| 697 | | | lead to an open door for software running in the | |
| 698 | | | normal world to access sensitive data or even | |
| 699 | | | execute code if the proper security mechanisms | |
| 700 | | | are not in place. | |
| 701 | +------------------------+----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 702 | | Diagram Elements | DF5, DF6 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 703 | +------------------------+----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 704 | | Affected TF-A | BL1, BL2, BL31 | |
| 705 | | Components | | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 706 | +------------------------+----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 707 | | Assets | Sensitive Data, Code execution | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 708 | +------------------------+----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 709 | | Threat Agent | NSCode | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 710 | +------------------------+----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 711 | | Threat Type | Information Disclosure, Elevation of Privilege | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 712 | +------------------------+-----------------+-----------------+----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 713 | | Application | Server | IoT | Mobile | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 714 | +------------------------+-----------------+-----------------+----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 715 | | Impact | Critical (5) | Critical (5) | Critical (5) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 716 | +------------------------+-----------------+-----------------+----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 717 | | Likelihood | High (4) | High (4) | High (4) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 718 | +------------------------+-----------------+-----------------+----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 719 | | Total Risk Rating | Critical (20) | Critical (20) | Critical (20) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 720 | +------------------------+-----------------+-----------------+----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 721 | | Mitigations | | In TF-A, configuration of the MMU is done | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 722 | | | through a translation tables library. The | |
| 723 | | | library provides APIs to define memory regions | |
| 724 | | | and assign attributes including memory types and | |
| 725 | | | access permissions. Memory configurations are | |
| 726 | | | platform specific, therefore platforms need make | |
| 727 | | | sure the correct attributes are assigned to | |
| 728 | | | memory regions. When assigning access | |
| 729 | | | permissions, principle of least privilege ought | |
| 730 | | | to be enforced, i.e. we should not grant more | |
| 731 | | | privileges than strictly needed, e.g. code | |
| 732 | | | should be read-only executable, RO data should | |
| 733 | | | be read-only XN, and so on. | |
| 734 | +------------------------+----------------------------------------------------+ |
| 735 | |
| 736 | +------------------------+-----------------------------------------------------+ |
| 737 | | ID | 12 | |
| 738 | +========================+=====================================================+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 739 | | Threat | | **Incorrect configuration of Performance Monitor | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 740 | | | Unit (PMU) counters can allow an attacker to | |
| 741 | | | mount side-channel attacks using information | |
| 742 | | | exposed by the counters** | |
| 743 | | | | |
| 744 | | | | Non-secure software can configure PMU registers | |
| 745 | | | to count events at any exception level and in | |
| 746 | | | both Secure and Non-secure states. This allows | |
| 747 | | | a Non-secure software (or a lower-level Secure | |
| 748 | | | software) to potentially carry out | |
| 749 | | | side-channel timing attacks against TF-A. | |
| 750 | +------------------------+-----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 751 | | Diagram Elements | DF5, DF6 | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 752 | +------------------------+-----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 753 | | Affected TF-A | BL31 | |
| 754 | | Components | | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 755 | +------------------------+-----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 756 | | Assets | Sensitive Data | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 757 | +------------------------+-----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 758 | | Threat Agent | NSCode | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 759 | +------------------------+-----------------------------------------------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 760 | | Threat Type | Information Disclosure | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 761 | +------------------------+-------------------+----------------+----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 762 | | Impact | Medium (3) | Medium (3) | Medium (3) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 763 | +------------------------+-------------------+----------------+----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 764 | | Likelihood | Low (2) | Low (2) | Low (2) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 765 | +------------------------+-------------------+----------------+----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 766 | | Total Risk Rating | Medium (6) | Medium (6) | Medium (6) | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 767 | +------------------------+-------------------+----------------+----------------+ |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 768 | | Mitigations | | TF-A follows mitigation strategies as described | |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 769 | | | in `Secure Development Guidelines`_. General | |
| 770 | | | events and cycle counting in the Secure world is | |
| 771 | | | prohibited by default when applicable. However, | |
| 772 | | | on some implementations (e.g. PMUv3) Secure world | |
| 773 | | | event counting depends on external debug interface| |
| 774 | | | signals, i.e. Secure world event counting is | |
| 775 | | | enabled if external debug is enabled. | |
| 776 | | | Configuration of debug signals is platform | |
| 777 | | | specific, therefore platforms need to make sure | |
| 778 | | | that external debug is disabled in production or | |
| 779 | | | proper debug authentication is in place. | |
| 780 | +------------------------+-----------------------------------------------------+ |
| 781 | |
| 782 | -------------- |
| 783 | |
Sandrine Bailleux | 6e5c218 | 2022-05-10 14:55:01 +0200 | [diff] [blame] | 784 | *Copyright (c) 2021-2022, Arm Limited. All rights reserved.* |
Zelalem | 05fed52 | 2021-02-24 19:20:09 -0600 | [diff] [blame] | 785 | |
| 786 | |
| 787 | .. _STRIDE threat analysis technique: https://docs.microsoft.com/en-us/azure/security/develop/threat-modeling-tool-threats#stride-model |
| 788 | .. _DEN0034: https://developer.arm.com/documentation/den0034/latest |
| 789 | .. _Cache Speculation Side-channels: https://developer.arm.com/support/arm-security-updates/speculative-processor-vulnerability |
| 790 | .. _Spectre: https://developer.arm.com/support/arm-security-updates/speculative-processor-vulnerability |
| 791 | .. _TBBR-Client specification: https://developer.arm.com/documentation/den0006/d/ |
| 792 | .. _Trusted Board Boot (TBB): https://trustedfirmware-a.readthedocs.io/en/latest/design/trusted-board-boot.html |
| 793 | .. _TF-A error handling policy: https://trustedfirmware-a.readthedocs.io/en/latest/process/coding-guidelines.html#error-handling-and-robustness |
| 794 | .. _Secure Development Guidelines: https://trustedfirmware-a.readthedocs.io/en/latest/process/security-hardening.html#secure-development-guidelines |
Olivier Deprez | 86d1ffd | 2021-06-01 15:37:16 +0200 | [diff] [blame] | 795 | .. _Trusted Firmware-A Tests: https://git.trustedfirmware.org/TF-A/tf-a-tests.git/about/ |