Logic Locking for Secure Outsourced Chip Fabrication: A New Attack and Provably Secure Defense Mechanism

Mohamed El Massad, Jun Zhang, Siddharth Garg, Mahesh V. TripunitaraarXiv 2017

Executive Summary

This research exposes a critical vulnerability in current logic locking techniques, demonstrating that they can be compromised using only a locked netlist—without requiring a functional "golden" chip. To address this, the authors propose Meerkat, a defense mechanism utilizing Reduced Ordered Binary Decision Diagrams (ROBDDs) to establish the first provably secure logic locking scheme.

The Challenge of Secure Outsourced Fabrication

In the modern "fabless" semiconductor industry, design firms outsource chip manufacturing to external foundries. This outsourcing introduces significant security risks, as an untrusted foundry might reverse-engineer the gate-level netlist to steal Intellectual Property (IP).

Logic locking was introduced to mitigate this risk by inserting "key gates" (e.g., XORs) into the circuit. The chip only operates correctly when a secret key is loaded into an internal register. While previous research focused on attackers with access to activated chips (e.g., the SAT attack), this paper investigates a more fundamental question: Is logic locking secure if the attacker only possesses the locked netlist?

The logic locking flow from design to activation, highlighting the role of the untrusted foundry.

Methodology: Attack and Defense

The paper presents two primary contributions: a novel attack and a robust defense.

1. The Desynthesis Attack

The authors identify that logic synthesis tools are deterministic and leave identifiable "fingerprints" in the gate-level structure. The Desynthesis Attack exploits this by guessing key bits, "unlocking" the netlist, and re-synthesizing it. If the guessed key is correct, the resulting structure will closely resemble the original optimized netlist. Using a greedy search algorithm and a gate-type distribution metric ($\Delta$), the attack iteratively identifies the most probable key bits.

2. Meerkat: Provably Secure Defense

To counter desynthesis, the authors propose locking the design prior to gate-level synthesis. Meerkat utilizes ROBDDs, a canonical representation of Boolean functions. Because ROBDDs are canonical, any two identical functions result in the same graph structure. Meerkat randomly flips child nodes in the ROBDD based on key bits, ensuring the final locked netlist reveals no information about the original function. This makes the desynthesis attack—and any other netlist-only attack—mathematically impossible.

Experimental Evaluation

The authors evaluated their findings using the MCNC benchmark suite, which includes standard circuits like dk16, planet, and scf, representing typical industrial control logic.

Key Results

  • Attack Effectiveness: On 32-bit and 64-bit keys, the desynthesis attack successfully recovered a significant majority of bits. As shown in the results below, the attack consistently outperforms random guessing, often recovering nearly the entire key.
  • Provable Security: Meerkat is mathematically proven to provide zero information leakage regarding the key or functionality to a netlist-only attacker.
  • Overhead Trade-offs: Meerkat introduces higher overhead than previous methods, with an average area increase of approximately 43% on larger benchmarks. The authors posit this is a necessary cost for verifiable security.
Comparison of the Desynthesis attack versus random guessing for a 32-bit key.

Limitations and Future Outlook

While Meerkat provides a breakthrough in provable security, it faces scalability challenges. ROBDDs can grow exponentially in size for certain logic types, such as multipliers and encryption modules. Future research may explore partitioning large netlists into smaller, ROBDD-manageable blocks. Additionally, while Meerkat secures against netlist-only threats, defending against attackers with access to functional chips remains an ongoing challenge in the field.

Summary updated

BibTeX
@misc{massad2017logic,
  author = {Mohamed El Massad and Jun Zhang and Siddharth Garg and Mahesh V. Tripunitara},
  title = {{Logic Locking for Secure Outsourced Chip Fabrication: A New Attack and Provably Secure Defense Mechanism}},
  year = {2017},
  eprint = {1703.10187},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1703.10187},
}
Figure