| Literature DB >> 36236456 |
Abstract
The TrustZone technology is incorporated in a majority of recent ARM Cortex A and Cortex M processors widely deployed in the IoT world. Security critical code execution inside a so-called secure world is isolated from the rest of the application execution within a normal world. It provides hardware-isolated area called a trusted execution environment (TEE) in the processor for sensitive data and code. This paper demonstrates a vulnerability in the secure world in the form of a cross-world, secure world to normal world, covert channel. Performance counters or Performance Monitoring Unit (PMU) events are used to convey the information from the secure world to the normal world. An encoding program generates appropriate PMU event footprint given a secret S. A corresponding decoding program reads the PMU footprint and infers S using machine learning (ML). The machine learning model can be trained entirely from the data collected from the PMU in user space. Lack of synchronization between PMU start and PMU read adds noise to the encoding/decoding ML models. In order to account for this noise, this study proposes three different synchronization capabilities between the client and trusted applications in the covert channel. These are synchronous, semi-synchronous, and asynchronous. Previously proposed PMU based covert channels deploy L1 and LLC cache PMU events. The latency of these events tends to be 100-1000 cycles limiting the bandwidth of these covert channels. We propose to use microarchitecture level events with latency of 10-100 cycles captured through PMU for covert channel encoding leading to a potential 100× higher bandwidth. This study conducts a series of experiments to evaluate the proposed covert channels under various synchronization models on a TrustZone supported Cortex-A processor using OP-TEE framework. As stated earlier, switch from signaling based on PMU cache events to PMU microarchitectural events leads to approximately 15× higher covert channel bandwidth. This proposed finer-grained microarchitecture event encoding covert channel can achieve throughput of the order of 11 Kbits/s as opposed to previous work's throughput of the order of 760 bits/s.Entities:
Keywords: IoT; OP-TEE; PMU; TrustZone; covert channel attack
Mesh:
Year: 2022 PMID: 36236456 PMCID: PMC9571368 DOI: 10.3390/s22197354
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.847
Figure 1Three attacks: synchronous access attack, semi-asynchronous access attack, and asynchronous access attack.
Figure 2The code used in the synchronous attack model.
Figure 3The code applied to the training stage.
Figure 4The code used in the semi-synchronous attack model.
Figure 5The code used in the asynchronous attack model.
The accuracy of different machine learning models with asynchronous attack model with bits: linear regression, SVM, and PCA + SVM, where range is the input parameter of the random noise function called before encryption.
| Range | Linear Regression | SVM | PCA + SVM |
|---|---|---|---|
|
| 94.30% | 95.14% | 95.14% |
|
| 84.96% | 88.07% | 88.07% |
|
| 83.91% | 85.53% | 85.53% |
The results of synchronous and semi-synchronous attack models, where BW stands for bandwidth (KB/s).
| Bits | Test Acc. | BW Max | BW Min | BW Ave. |
|---|---|---|---|---|
| Synchronous attack model | ||||
| 7 | 98.53% | 8.199 | 4.613 | 6.649 |
| 8 | 99.18% | 9.339 | 4.696 | 7.238 |
| 9 | 99.04% | 9.295 | 3.960 | 7.235 |
| 10 | 99.29% | 11.701 | 3.535 | 6.556 |
| Semi-Synchronous attack model | ||||
| 7 | 94.52% | 8.140 | 5.037 | 6.603 |
The results of asynchronous attack, where BW stands for bandwidth (KB/s), and range is the input parameter of the random function called before encryption.
| Bits | Range | Test Acc. | BW Max | BW Min | BW Ave. |
|---|---|---|---|---|---|
| 7 | [0, 5] | 95.14% | 8.204 | 4.617 | 6.593 |
| 7 | [0, 10] | 84.96% | 8.186 | 4.592 | 6.494 |
| 7 | [0, 50] | 83.91% | 8.212 | 4.193 | 6.619 |