← Latest papers
💻 computer science

LIB-TRAP: Standard Cell Library Hardware Trojan Risk Assessment and Prevention

This paper introduces LIB-TRAP, a novel threat model and framework demonstrating how untrusted standard cell libraries can be manipulated to hide malicious Hardware Trojans during fabrication, effectively bypassing existing detection methods across multiple benchmark circuits and technology nodes.

Original authors: Harish Kumar Dharavath, Md Muhtasim Alam Chowdhury, Rozhin Yasaei, Soheil Salehi

Published 2026-07-03
📖 5 min read🧠 Deep dive

Original authors: Harish Kumar Dharavath, Md Muhtasim Alam Chowdhury, Rozhin Yasaei, Soheil Salehi

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are building a house. In the modern world of electronics, most companies don't build the bricks themselves; they buy pre-made, high-quality bricks from a specialized factory (the "foundry"). These bricks are called Standard Cells. They are the tiny, fundamental building blocks (like buffers, logic gates, and switches) used to construct complex computer chips.

This paper, titled "LIB-TRAP," exposes a terrifying new way hackers could sabotage these chips by poisoning the brick factory itself.

Here is the story of the paper, broken down into simple concepts:

1. The Setup: The "Fabless" Problem

Most electronics companies are "fabless." They design the blueprint for a chip but outsource the actual manufacturing to a foundry in a different country.

  • The Trust Issue: The design company trusts the foundry to build the chip exactly as requested. They also trust the "Standard Cell Library" (the catalog of pre-made bricks) the foundry provides.
  • The Paper's Claim: The authors argue that this trust is dangerous. They propose a scenario where the foundry is the bad guy.

2. The Attack: The "Trojan Brick"

Instead of sneaking a hidden camera into the finished house, the bad foundry modifies the bricks before they are even sent to the construction site.

  • The Concept: The foundry takes a normal brick (a standard cell, like a buffer) and secretly adds a tiny, hidden mechanism inside it. Let's call this a "Trojan."
  • The Trick (The "Deactivated" State): Here is the genius part of the attack. The foundry sends the design company a library where these Trojan bricks look completely normal.
    • Imagine a brick that looks like a solid red block. Inside, it has a hidden switch.
    • In the library sent to the customer, the switch is glued shut (deactivated). The brick behaves exactly like a normal red block. It passes all tests. It looks perfect.
  • The Activation: Once the chips are manufactured, the foundry (or an accomplice) can flip a switch in the environment. Suddenly, the "glue" melts, and the hidden mechanism activates. The brick now does something malicious, like sending secret data or breaking the circuit.

3. The Stealth: Why It's Invisible

The paper explains why this is so hard to catch. Usually, adding a secret mechanism to a brick makes it slightly bigger, slower, or hotter. Security experts look for these changes.

  • The Paper's Solution: The authors engineered these Trojan bricks so they are identical to normal bricks in every measurable way:
    • Size: They take up the exact same space.
    • Speed: They work at the exact same speed.
    • Power: They use the exact same amount of electricity.
  • The "Noise" Cover: In the real world, no two bricks are perfectly identical due to tiny manufacturing errors (called "Process Variation"). The authors made their Trojan bricks so similar to normal ones that any tiny difference looks like just a random manufacturing glitch. It's like trying to find a specific grain of sand on a beach by looking at the sand; the Trojan is hidden in the "noise."

4. The Experiment: Testing the Trap

To prove this works, the researchers did the following:

  • They took two real-world brick catalogs (one from Synopsys 32nm and one open-source Sky130nm).
  • They created "Trojan" versions of these catalogs where the bricks had hidden switches.
  • They built three famous digital designs using these bricks:
    1. AES-128: A lockbox for encrypting data.
    2. Ethernet Controller: The part of a chip that handles internet traffic.
    3. WISHBONE DMA: A data mover for the chip.
  • They compared the "clean" designs against the "infected" designs.

5. The Result: The Security Blind Spot

The researchers tried to use Machine Learning (AI) to act as a security guard. They fed the AI data about the chips (how big they were, how much power they used, how fast they were) and asked the AI: "Is this chip infected with a Trojan?"

  • The Outcome: The AI failed miserably.
    • The detection accuracy was between 24% and 40%.
    • To put that in perspective, if you flip a coin to guess "Yes" or "No," you'd get 50% right. The AI was doing worse than a coin flip.
  • The Conclusion: Because the Trojan bricks were so perfectly disguised, the AI couldn't tell the difference between a safe chip and a dangerous one. The current security tools are blind to this specific type of attack.

6. The Solution: How to Fix It

The paper suggests that we can't just rely on checking the finished chip or using AI to guess. We need to check the source.

  • Check the Blueprint vs. the Brick: Compare the drawing of the brick (schematic) with the actual physical layout (GDSII) to see if there are hidden parts.
  • Re-Test the Bricks: Don't trust the foundry's data. Use your own trusted tools to test the bricks again to see if they behave differently than they claim.
  • Power Tracing: Look extremely closely at the power usage patterns, though the paper notes this is difficult because the Trojans are designed to hide even there.

Summary

The paper warns us that in the modern chip industry, the "bricks" we buy might be booby-trapped. The attackers can hide the bomb inside the brick so well that even advanced AI scanners can't find it. The only way to stay safe is to stop blindly trusting the brick factory and start verifying the bricks themselves before we build our houses.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →