HOACS: Homomorphic Obfuscation Assisted Concealing of Secrets to Thwart Trojan Attacks in COTS Processor
Tanvir Hossain, Matthew Showers, Mahmudul Hasan, Tamzidul Hoque
TL;DR
HOACS tackles the zero-trust risk of hardware Trojans in COTS processors by introducing a software-oriented countermeasure based on Residue Number Coding (RNC). By encoding secret assets and performing computations on encoded data, HOACS preserves confidentiality without requiring trusted supply-chain entities or design modifications, demonstrated through an AES case study and an LLVM IR automation pipeline (HOACS-IR). The results indicate that RNC-based operations yield substantial performance advantages over traditional fully homomorphic encryption while maintaining robust leakage protection even in untrusted hardware, with a practical security posture against unknown-moduli attacks. This approach enables practical, secure execution on COTS hardware and offers a pathway to extend to other algorithms and privacy-preserving applications, albeit with remaining work on encoding-time attacks and optimization of runtime overhead.
Abstract
Commercial-off-the-shelf (COTS) components are often preferred over custom Integrated Circuits (ICs) to achieve reduced system development time and cost, easy adoption of new technologies, and replaceability. Unfortunately, the integration of COTS components introduces serious security concerns. None of the entities in the COTS IC supply chain are trusted from a consumer's perspective, leading to a ''zero trust'' threat model. Any of these entities could introduce hidden malicious circuits or hardware Trojans within the component, allowing an attacker in the field to extract secret information (e.g., cryptographic keys) or cause a functional failure. Existing solutions to counter hardware Trojans are inapplicable in such a zero-trust scenario as they assume either the design house or the foundry to be trusted and consider the design to be available for either analysis or modification. In this work, we have proposed a software-oriented countermeasure to ensure the confidentiality of secret assets against hardware Trojans that can be seamlessly integrated in existing COTS microprocessors. The proposed solution does not require any supply chain entity to be trusted and does not require analysis or modification of the IC design. To protect secret assets in an untrusted microprocessor, the proposed method leverages the concept of residue number coding (RNC) to transform the software functions operating on the asset to be fully homomorphic. We have implemented the proposed solution to protect the secret key within the Advanced Encryption Standard (AES) program and presented a detailed security analysis. We also have developed a plugin for the LLVM compiler toolchain that automatically integrates the solution in AES. Finally, we compare the execution time overhead of the operations in the RNC-based technique with comparable homomorphic solutions and demonstrate significant improvement.
