Skip to main content
QUICK REVIEW

[Paper Review] Designing ML-Resilient Locking at Register-Transfer Level

Dominik Šišejković, Luca Collini|arXiv (Cornell University)|Mar 10, 2022
Physical Unclonable Functions (PUFs) and Hardware SecurityComputer Science6 citations
TL;DR

This paper proposes two ML-resilient RTL locking schemes—ERA (Exact ML-Resilient Algorithm) and HRA (Heuristic ML-Resilient Algorithm)—to counter machine learning-based attacks on register-transfer level designs. By enforcing balanced operation obfuscation, ERA achieves 47.92% key prediction accuracy on average, below random guess (50%), demonstrating strong ML resilience, while HRA offers a controlled trade-off with moderate resilience.

ABSTRACT

Various logic-locking schemes have been proposed to protect hardware from intellectual property piracy and malicious design modifications. Since traditional locking techniques are applied on the gate-level netlist after logic synthesis, they have no semantic knowledge of the design function. Data-driven, machine-learning (ML) attacks can uncover the design flaws within gate-level locking. Recent proposals on register-transfer level (RTL) locking have access to semantic hardware information. We investigate the resilience of ASSURE, a state-of-the-art RTL locking method, against ML attacks. We used the lessons learned to derive two ML-resilient RTL locking schemes built to reinforce ASSURE locking. We developed ML-driven security metrics to evaluate the schemes against an RTL adaptation of the state-of-the-art, ML-based SnapShot attack.

Motivation & Objective

  • To address the vulnerability of RTL logic locking to machine learning (ML)-driven attacks, particularly in the absence of an oracle.
  • To develop new security metrics for evaluating ML resilience in RTL locking, focusing on operation obfuscation.
  • To design and evaluate two novel locking algorithms—ERA and HRA—that enhance resistance to data-driven attacks.
  • To adapt the state-of-the-art SnapShot attack to the RTL level for realistic evaluation of ML resilience.
  • To demonstrate that balanced operation obfuscation is essential for effective ML resilience, as partial imbalance enables successful key recovery.

Proposed method

  • Adapted the oracle-less SnapShot attack to operate on RTL netlists by extracting key-controlled operation pairs and encoding them as numerical vectors.
  • Used the Pyverilog library to parse and extract RTL structures, and auto-sklearn for automated machine learning model selection and hyperparameter tuning.
  • Proposed ERA, an exact algorithm that enforces perfect balance in operation obfuscation across all design operations to eliminate ML-attacked patterns.
  • Proposed HRA, a heuristic algorithm that incrementally reduces operation imbalance within a given key budget to improve ML resilience.
  • Defined a security metric based on the distance between initial operation distribution and the optimal balanced distribution to guide heuristic locking.
  • Evaluated all schemes using a 10x key-relocking setup per benchmark for test data and 1,000 relockings per sample for training, simulating best-case attacker conditions.

Experimental results

Research questions

  • RQ1Can ML-based attacks successfully recover keys from RTL-locked designs when structural patterns are preserved?
  • RQ2To what extent does operation imbalance in RTL locking enable data-driven attacks to predict keys with accuracy above random guess?
  • RQ3Can exact balancing of operation obfuscation in RTL designs eliminate ML-based key recovery, even under optimal attacker conditions?
  • RQ4How do heuristic approaches to reducing imbalance compare in ML resilience to exact balancing, especially under key budget constraints?
  • RQ5What metrics can effectively quantify ML resilience in RTL locking schemes beyond traditional security measures?

Key findings

  • The original ASSURE RTL locking scheme achieved an average key prediction accuracy (KPA) of 74.78% under the adapted SnapShot attack, indicating significant vulnerability to ML-based key recovery.
  • The HRA heuristic algorithm achieved an average KPA of 74.26%, showing only marginal improvement over the original ASSURE, due to residual operation imbalance.
  • The ERA exact algorithm achieved an average KPA of 47.92%, which is below the 50% random guess threshold, proving effective ML resilience through perfect operation balancing.
  • The study demonstrates that even 25% of unobfuscated operations can enable ML attacks to achieve ~24 percentage points above random guess, highlighting the danger of partial imbalance.
  • The proposed security metric based on distribution distance from optimal balance successfully identifies designs vulnerable to ML attacks and guides the design of resilient locking schemes.
  • This work presents the first oracle-less, ML-based attack on RTL locking, adapting the SnapShot framework to the RTL abstraction level for the first time.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.