SecChisel: Language and Tool for Practical and Scalable Security Verification of Security-Aware Hardware Architectures

Shuwen Deng, Doguhan Gümüsoglu, Wenjie Xiong, Y. Serhan Gener, Onur Demir, Jakub SzeferIACR ePrint 2017

Introduction

In modern computing, hardware security has become a critical concern. Unlike software, where vulnerabilities can be addressed via patches, hardware bugs are immutable once a chip is fabricated. High-profile security-aware architectures like Intel SGX and ARM TrustZone aim to provide robust protection, yet many lack formal verification of their security properties. Historical data underscores this risk; for instance, the Intel Core 2 Duo family was found to contain 129 bugs, many with security implications.

Current formal verification tools often struggle with scalability, usability, or are restricted to legacy hardware description languages (HDLs) like Verilog. There is a pressing need for a framework that enables hardware engineers to reason about Information Flow Tracking (IFT)—ensuring sensitive data does not leak to public outputs—without requiring deep expertise in formal methods. SecChisel addresses this by integrating security verification directly into the hardware design flow, spanning multiple abstraction levels from ISA down to RTL.

Comparison of SecChisel's scope across hardware levels relative to other verification tools.

The SecChisel Framework

SecChisel is built upon Chisel 3, a contemporary HDL embedded in Scala. It introduces a multi-step pipeline designed to automate the detection of unauthorized information leaks during the design phase.

The SecChisel Framework workflow, illustrating the path from system representation to formal verification using Z3.

Methodology

The framework's workflow involves several key stages:

  1. Language Extension and Annotation: Designers annotate hardware components (wires, registers, ports) with security labels, such as "High" for confidential data and "Low" for public data.
  2. Lattice-Based Information Flow: These labels are governed by a mathematical lattice that defines permissible data flows. For example, data can move from "Low" to "High" (maintaining integrity), but "High" data cannot flow to a "Low" destination (maintaining confidentiality) without explicit declassification.
  3. FIRRTL Transformation: The design is lowered to FIRRTL (Flexible Intermediate Representation for RTL), preserving security metadata within the circuit's intermediate structure.
  4. SMT Mapping and Verification: The hardware logic and security constraints are translated into SMT (Satisfiability Modulo Theories) statements. The Z3 SMT solver then checks for policy violations. If a leak is detected, the framework provides actionable feedback to the designer.

A significant innovation in SecChisel is its support for Dynamic Labels. This allows a signal's security level to change based on its value, which is essential for verifying shared resources like data buses or caches where the security context depends on the specific memory address being accessed.

Evaluation and Key Insights

The authors evaluated SecChisel using various hardware modules, ranging from basic proof-of-concept designs like a FullAdder to complex nested modules and academic security architectures such as Aegis and XOM.

Key Results

  • Seamless Integration: The framework successfully demonstrates an end-to-end flow from high-level Chisel code to formal verification results.
  • Automated Label Propagation: The tool can infer security labels for intermediate wires, significantly reducing the manual annotation burden on designers.
  • Effective Violation Detection: SecChisel accurately identifies information flow violations, such as high-security register values influencing low-security output ports.
  • Handling Third-Party IP: To address "black box" modules, the authors introduced "Interference Tables" that describe input-output dependencies without revealing internal logic, maintaining the security chain across vendor boundaries.

Limitations and Future Work

While SecChisel represents a major step forward, several challenges remain. The current prototype primarily focuses on explicit data flows and does not yet fully account for implicit flows (control logic leaks) or timing side channels. Additionally, the computational cost of SMT solving poses scalability challenges for industry-scale designs. Future work will focus on graph-pruning optimizations to mitigate "state explosion" and developing methods to map disparate security lattices when integrating IP from multiple vendors.

Summary updated

BibTeX
@article{deng2017secchisel,
  author = {Shuwen Deng and Doguhan Gümüsoglu and Wenjie Xiong and Y. Serhan Gener and Onur Demir and Jakub Szefer},
  title = {{SecChisel: Language and Tool for Practical and Scalable Security Verification of Security-Aware Hardware Architectures}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2017},
}
Figure