TL;DR
This paper introduces a novel meta-framework for optimizing behavioral logic locking during High-Level Synthesis (HLS). By exploring the design space of locking techniques, it achieves better security metrics with significantly reduced hardware overhead compared to existing methods, making IP protection more efficient and effective.
What Problem Does This Paper Address?
The increasing complexity of System-on-Chip (SoC) designs, coupled with the trend of outsourcing IC fabrication to third-party foundries, raises significant concerns about intellectual property (IP) theft and reverse engineering. Logic locking is a promising solution to protect designs by making their functionality dependent on a secret key. However, current logic locking techniques, especially those applied at higher abstraction levels like HLS, often result in substantial hardware overhead without necessarily improving the security metric. Furthermore, selecting which parts of the design to lock is a complex, application-dependent problem, and existing methods lack a systematic way to optimize this selection for a given security metric and resource budget. This paper addresses the challenge of efficiently and effectively applying behavioral logic locking during HLS by optimizing the selection of locking points to maximize security while minimizing hardware overhead.
Methods
The core contribution is a meta-framework that integrates with existing HLS tools. This framework operates on the C-level specification of an IP core before HLS. Key components include:
- Source-to-Source Transformation: The framework modifies the input C code to incorporate locking, allowing it to leverage standard HLS tools for generating the locked RTL.
- Abstract Syntax Tree (AST) Analysis: The input C code is parsed into an AST to identify potential "locking points" – elements like constants, operations, and control branches that can be modified.
- Design Space Exploration (DSE): A crucial aspect is the exploration of various combinations of locking techniques applied to these points. The paper proposes using meta-heuristics, specifically a Genetic Algorithm (GA) with integer encoding, to search for the optimal locking configuration. Each solution in the GA represents a specific set of locking decisions.
- Security Metric Optimization: The framework optimizes for a chosen security metric, in this case, differential entropy. This metric quantifies how much the locked design's output corrupts when an incorrect key is applied, aiming to make wrong keys indistinguishable from correct ones.
- Resource Evaluation: After identifying promising solutions based on security, their hardware resource consumption (LUTs, FFs, DSPs, BRAMs) is evaluated to select the best trade-off between security and overhead.
Datasets
The paper evaluates its approach on eight benchmarks from established suites: Bambu, MiBench, and CHStone. These benchmarks are chosen because they are commonly used for HLS-based locking research and are supported by the HLS tool used in the experiments. No new benchmarks were introduced.
Key Insights and Ideas
- Full Locking is Not Always Optimal: The most surprising insight is that locking all possible points in a design does not necessarily yield the best security. Instead, a carefully selected subset of locking points can achieve near-optimal security with significantly less overhead.
- Application-Specific Optimization is Key: The effectiveness of locking techniques and the optimal locking strategy are highly dependent on the specific design's functionality and structure. A systematic exploration is therefore essential.
- Behavioral Locking at C-Level is Scalable: Applying locking at the C-level before HLS is a scalable approach that complements existing EDA flows and avoids the need for custom HLS tools or RTL-level modifications, which can be more complex and time-consuming.
- Differential Entropy as a Robust Security Metric: Using differential entropy as the security metric effectively captures the attacker's inability to distinguish correct outputs from incorrect ones when using wrong keys, providing a strong basis for optimization.
Key Results
- Improved Security Metric: The proposed DSE method consistently achieved higher normalized differential entropy (closer to the theoretical maximum of 1) compared to topological locking (TAO) and random locking across various benchmarks and key budgets. For instance, in the
arfbenchmark with the largest key budget (c4), DSE achieved a normalized differential entropy of 0.999, while TAO reached 0.926 and random locking 0.939. - Significant Overhead Reduction: The DSE approach drastically reduced the number of key bits required for locking, often by over 90%, leading to smaller tamper-proof memory requirements. For example, in the
shabenchmark, DSE used significantly fewer bits for constants, operations, and branches compared to TAO, especially at larger key budgets. - Better Resource Utilization: Despite achieving higher security, the DSE method often resulted in lower hardware overhead (LUTs, FFs) compared to TAO, demonstrating a more efficient use of resources. For example, in the
arfbenchmark withc4, DSE's overhead was substantially lower than TAO's. - Robustness: The exploration process was shown to be robust, converging in a reasonable number of generations (typically 20-30) and producing valid solutions even when topological locking failed or produced infeasible designs.
Limitations and Future Work
- Exploration Time: The DSE process, while effective, is computationally more expensive than single-run heuristics like TAO, requiring several hours to complete for complex benchmarks.
- Security Metric: The current framework focuses on differential entropy for an oracle-less attack scenario.
- Future Work: The authors suggest extending the framework to:
- Integrate new locking techniques by defining their parameters and modifying the analysis step.
- Explore alternative DSE heuristics beyond the implemented GA.
- Protect against oracle-based attacks by incorporating SAT attack resilience as a security metric.
- Apply the framework to new scenarios and security metrics.
Summary updated