DITES: A Lightweight and Flexible Dual-Core Isolated Trusted Execution SoC Based on RISC-V

Yuehai Chen, Huarun Chen, Shaozhen Chen, Chao Han, Wujian Ye, Yijun Liu, Huihui ZhouSensors 2022 · OpenReview

TL;DR

This paper introduces DITES, a novel dual-core System-on-Chip (SoC) built on the RISC-V architecture, designed to provide a lightweight and flexible Trusted Execution Environment (TEE). DITES addresses the limitations of existing TEE solutions by employing a resource-efficient RISC-V core, a flexible cryptographic accelerator, and a secure inter-core communication mechanism, all while achieving significant performance gains.

What Problem Does This Paper Address?

As the Internet of Things (IoT) and 5G technologies rapidly advance, securing data processing and transmission on edge devices becomes increasingly critical. Trusted Execution Environments (TEEs) offer a solution by creating isolated secure zones within a processor. However, current TEE implementations often rely on complex processor cores (like Rocket), leading to high resource consumption, making them unsuitable for low-power IoT applications. Furthermore, existing TEEs often lack flexibility in their cryptographic units (e.g., fixed key lengths) and overlook secure communication strategies between multiple cores within an SoC. This paper aims to bridge this gap by proposing a TEE SoC that is lightweight, flexible, and secure, specifically tailored for resource-constrained environments.

Methods

The DITES SoC is built around two lightweight RISC-V E902 processor cores. A key innovation is its fully isolated multi-level bus architecture, which segregates the secure (TEE) and non-secure (REE) environments. This architecture employs a hierarchical bus design with three layers, ensuring strict isolation and controlled access.

For security, DITES incorporates:

  • Integrated Crypto Core: This hardware accelerator supports SHA1, AES, and RSA. Notably, the RSA implementation is highly flexible, supporting five different key lengths (192, 256, 512, 1024, and 2048 bits), a significant improvement over fixed-length implementations. It also includes side-channel attack resistance measures.
  • Secure Boot with Chain-of-Trust (CoT): A robust boot process is implemented to verify the integrity and authenticity of the code, starting from the BootRom and progressing through Zero Stage Boot Loader (ZSBL) and First Stage Boot Loader (FSBL). This involves SHA1 digest extraction and RSA signature verification.
  • Hierarchical Access Policy (IOPMP): Inspired by RISC-V's Physical Memory Protection (PMP), the Input/Output Physical Memory Protection (IOPMP) mechanism acts as a firewall, restricting access to critical IPs like the CPU and crypto core. It defines four Memory Domains (MDs) with multiple table entries for fine-grained access control.
  • Mailbox-based Inter-Core Communication: To facilitate secure data exchange between the TEE and REE CPUs, a mailbox mechanism using shared memory and inter-core interrupts is employed. This ensures data consistency and security.

Datasets

Not discussed in the paper. The evaluation relies on hardware implementation and performance testing on an FPGA and ASIC synthesis.

Key Insights and Ideas

  • Lightweight RISC-V for TEEs: Demonstrates that resource-efficient RISC-V cores can be effectively utilized for TEEs, challenging the notion that complex cores are always necessary.
  • Multi-level Bus for Strict Isolation: The hierarchical bus architecture is crucial for achieving true hardware-level isolation between the TEE and REE, a significant advantage over software-based isolation.
  • Flexible Cryptography is Key: The ability to configure RSA with multiple key lengths significantly enhances the system's adaptability and security for various applications.
  • Holistic Security Approach: DITES integrates secure boot, hardware crypto acceleration, and controlled inter-core communication into a cohesive secure SoC design.
  • FPGA/ASIC Validation: The use of both FPGA prototyping and ASIC synthesis provides strong evidence for the design's viability and performance.

Key Results

  • Performance Acceleration:
    • SHA1 hardware acceleration achieves an acceleration ratio of up to 75x compared to software execution on the E902 core.
  • RSA1024 decryption and encryption show acceleration ratios of 1331x and 1493x, respectively, compared to software.
  • Resource Utilization: The dual E902 cores and crypto core occupy approximately 45% of the FPGA resources, with the RSA component using only about 10% of the overall crypto core resources.
  • Power Consumption: The DITES SoC achieves a low power consumption of 0.297 W when synthesized using TSMC 90 nm technology.
  • Security Features: DITES implements secure boot, TEE isolation, isolated storage, and secure inter-processor communication (IPC).
  • Flexibility: The RSA implementation supports five key lengths, offering superior flexibility.

Limitations and Future Work

  • Dual-Core Bus Performance: The paper acknowledges that the shared bus architecture for dual-core operation can lead to some performance loss.
  • Future Work: The authors suggest two potential solutions: (1) using a higher-performance RISC-V processor, and (2) optimizing the storage domain architecture and physically isolating TEE and REE programs.
  • Storage Area: The current design utilizes on-chip SRAM for main memory, leading to a large storage area.
  • Future Work: The authors propose implementing main memory using off-chip memories like DDR and Flash to reduce chip area.
  • Cryptographic Unit Expansion: While DITES supports SHA1, AES, and RSA, the authors suggest extending the cryptographic capabilities.
  • Future Work: Future work includes adding more cryptographic units such as True Random Number Generation (TRNG), elliptic curve-based encryption/decryption (Ed25519), and SHA3.

Summary updated

Abstract

A Trusted Execution Environment (TEE) is an efficient way to secure information. To obtain higher efficiency, the building of a dual-core system-on-chip (SoC) with TEE security capabilities is the hottest topic. However, TEE SoCs currently commonly use complex processor cores such as Rocket, resulting in high resource usage. More importantly, the cryptographic unit lacks flexibility and ignores secure communication in dual cores. To address the above problems, we propose DITES, a dual-core TEE SoC based on a Reduced Instruction Set Computer-V (RISC-V). At first, we designed a fully isolated multi-level bus architecture based on a lightweight RISC-V processor with an integrated crypto core supporting Secure Hashing Algorithm-1 (SHA1), Advanced Encryption Standard (AES), and Rivest–Shamir–Adleman (RSA), among which RSA can be configured to five key lengths. Then, we designed a secure boot based on Chain-of-Trust (CoT). Furthermore, we propose a hierarchical access policy to improve the security of inter-core communication. Finally, DITES is deployed on a Kintex 7 Field-Programmable-Gate-Array (FPGA) with a power consumption of 0.297 W, synthesized using TSMC 90 nm. From the results, the acceleration ratios of SHA1 and RSA1024 decryption/encryption can reach 75 and 1331/1493, respectively. Compared to exiting TEE SoCs, DITES has lower resource consumption, higher flexibility, and better security.
BibTeX
@inproceedings{chen2022dites,
  author = {Yuehai Chen and Huarun Chen and Shaozhen Chen and Chao Han and Wujian Ye and Yijun Liu and Huihui Zhou},
  title = {{DITES: A Lightweight and Flexible Dual-Core Isolated Trusted Execution SoC Based on RISC-V}},
  booktitle = {Sensors},
  year = {2022},
  url = {https://openreview.net/forum?id=7QI1_WNcfd},
}
Figure