[Paper Review] Software Variants for Hardware Trojan Detection and Resilience in COTS Processors
This paper proposes a software-only runtime defense against hardware Trojans in untrusted COTS processors by generating functionally equivalent program variants through compiler-based transformation. By executing multiple variants and comparing their outputs, the method detects transient corruption from Trojans without hardware changes, achieving resilience with measurable but manageable runtime and code size overhead in evaluated benchmarks.
The commercial off-the-shelf (COTS) component based ecosystem provides an attractive system design paradigm due to the drastic reduction in development time and cost compared to custom solutions. However, it brings in a growing concern of trustworthiness arising from the possibility of embedded malicious logic, or hardware Trojans in COTS components. Existing trust-verification approaches are typically not applicable to COTS hardware due to the absence of golden models and the lack of observability of internal signals. In this work, we propose a novel approach for runtime Trojan detection and resilience in untrusted COTS processors through judicious modifications in software. The proposed approach does not rely on any hardware redundancy or architectural modification and hence seamlessly integrates with the COTS-based system design process. Trojan resilience is achieved through the execution of multiple functionally equivalent software variants. We have developed and implemented a solution for compiler-based automatic generation of program variants, metric-guided selection of variants, and their integration in a single executable. To evaluate the proposed approach, we first analyzed the effectiveness of program variants in avoiding the activation of a random pool of Trojans. By implementing several Trojans in an OpenRISC 1000 processor, we analyzed the detectability and resilience during Trojan activation in both single and multiple variants. We also present delay and code size overhead for the automatically generated variants for several programs and discuss future research directions to reduce the overhead.
Motivation & Objective
- To address the critical challenge of detecting and mitigating hardware Trojans in untrusted COTS processors where traditional verification methods fail due to lack of golden models and design access.
- To develop a runtime defense mechanism that does not require hardware redundancy, architectural changes, or access to netlists, enabling seamless integration into existing COTS-based systems.
- To reduce the likelihood of simultaneous Trojan activation across multiple variants by maximizing functional and structural diversity in generated code variants.
- To evaluate the effectiveness of variant-based detection and resilience on real Trojans implemented in an OpenRISC 1000 processor, measuring overhead and detectability.
- To explore techniques for minimizing execution and code size overhead while maintaining strong Trojan detection and resilience guarantees.
Proposed method
- The approach transforms code segments (compare-blocks) into pairs of functionally equivalent software variants using compiler-based automatic generation, ensuring semantic equivalence but differing in opcode and operand sequences.
- Each compare-block is executed twice: the first variant's state is stored, and the second variant's state is compared against it; discrepancies indicate potential Trojan activation.
- A third variant is executed only if the first two disagree, and a majority vote among the three ensures correct output even if one is corrupted.
- The $VS$ metric is used to guide variant selection, measuring structural and behavioral diversity to minimize the chance of simultaneous Trojan activation.
- The framework integrates variants into a single executable using system() or execl() system calls, enabling sequential or parallel execution on multi-core systems to reduce runtime overhead.
- The solution is applied to real Trojans in an OpenRISC 1000 processor, with evaluation on programs like CRC32, susan, and Triple DES to measure overhead and detection capability.
Experimental results
Research questions
- RQ1Can functionally equivalent software variants generated via compiler transformation effectively detect transient hardware Trojan payloads in untrusted COTS processors?
- RQ2How does the diversity of opcode and operand sequences across variants affect the probability of simultaneous Trojan activation?
- RQ3What is the runtime and code size overhead of integrating multiple variants into a single executable for real-world applications?
- RQ4Can the approach be extended to detect more complex Trojan behaviors such as persistent corruption or information leakage?
- RQ5How can parallel execution of variants via system calls reduce runtime overhead in multi-core environments?
Key findings
- The proposed variant-based approach successfully detects transient hardware Trojan payloads in COTS processors by identifying inconsistent program states across functionally equivalent variants.
- The use of the $VS$ metric for variant selection significantly reduces the probability of simultaneous Trojan activation across multiple variants by maximizing code-level diversity.
- Runtime overhead varied across benchmarks: programs like susan and Triple DES had low overhead due to minimal code changes, while CRC32 showed higher overhead due to large variable comparisons after variant execution.
- Execution time overhead ranged from minimal to moderate, with average increases depending on the program and the number of protected variables, indicating feasibility for performance-sensitive applications with selective protection.
- The framework demonstrated resilience by correctly identifying and tolerating Trojan-induced corruption through majority voting when two variants disagreed.
- Future work should focus on optimizing compiler pass sequences to generate diverse variants with lower code and runtime overhead, especially for out-of-order and speculative execution processors.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.