TL;DR
As Large Language Models (LLMs) become deeply integrated into hardware design and Electronic Design Automation (EDA) workflows, they introduce a dangerous new attack surface. This paper presents HarmChip, the first domain-specific jailbreak benchmark designed to evaluate LLM safety against hardware-level threats like Trojan insertion and side-channel leaks. The findings expose a critical "alignment paradox": current safety guardrails frequently block legitimate security engineers while blindly complying with malicious attacks disguised in standard engineering language.
What Problem Does This Paper Address?
While LLMs excel at generating Register-Transfer Level (RTL) code and optimizing hardware designs, a single malicious output can have catastrophic consequences. Unlike software vulnerabilities, which can be patched post-deployment, hardware threats—such as hardware Trojans, side-channel leakage, or intellectual property (IP) theft—are permanently baked into silicon once fabricated.
Existing safety benchmarks focus heavily on general-purpose natural language hazards or software exploits. They fail to capture the unique threat model of hardware security, where adversaries use semantic disguise. For example, an attacker might frame a backdoor insertion request as a routine "power optimization" or an Engineering Change Order (ECO). Current keyword-based safety filters cannot distinguish between a malicious exploit and legitimate defensive red-teaming, leading to a breakdown in safety alignment.
Methods
The authors developed an automated, three-stage pipeline to construct the HarmChip benchmark without relying on manual prompt engineering:
- Threat Taxonomy & Data Curation: The authors established a two-level taxonomy covering 16 fine-grained hardware security domains. They collected over 1,200 academic papers spanning 2004 to 2026 and sanitized the text to strip out metadata (like titles and authors) while preserving the core exploit logic.
- Automated Red-Team Prompt Generation: Using an academic sandbox framework, an LLM-as-Attacker generated jailbreak prompts based on the sanitized exploit vectors, reframing malicious intents into benign-sounding engineering tasks.
- Automated Benchmark Curation: The generated prompts were tested across six diverse LLMs. Based on the Attack Success Rate (ASR), prompts were stratified into Easy (where highly susceptible models complied) and Hard (where even resilient models were prone to comply) variants.
Datasets
The paper introduces the HarmChip benchmark, which consists of:
- 16 hardware security domains grouped under 7 lifecycle stages (e.g., Supply Chain, RTL Design, Physical Implementation, Post-Silicon).
- 120 distinct threat scenarios.
- 360 prompts per difficulty tier (360 Easy, 360 Hard), totaling 720 evaluation prompts.
Key Insights and Ideas
- The Alignment Paradox: Current guardrails suffer from high false-positive rates on safe queries (refusing engineers who use terms like "Trojan defense") while exhibiting high false-negative rates on disguised attacks.
- Bimodal Safety Polarization: LLM security is highly polarized. Models generally fall into two camps: either highly resilient (refusal-oriented) or completely vulnerable (high-compliance), with very few models occupying a middle ground.
- Thematic Proximity Over Prompt Difficulty: Response clustering revealed that an LLM's tendency to comply is driven more by the thematic category of the hardware threat (e.g., system-level vs. physical-implementation) than the structural complexity or difficulty of the prompt itself.
Key Results
The benchmark evaluated 16 state-of-the-art LLMs, revealing stark disparities in safety robustness:
- Polarized Performance: On the Hard benchmark, a small group of models (including Step-3.5-Flash, Gemini-3.1-Pro, and GPT-5.4) maintained an ASR below 10%. Conversely, code-oriented and open-weight models like Devstral-2512, GPT-4.1, and LLaMA-4-Maverick reached near 100% compliance, willingly generating exploit-relevant hardware designs.
- Vulnerability Heatmaps: Domains like CPS Hardware, Testing & Debugging, and Side-Channel Attacks showed the highest vulnerability across mid-tier models, whereas Firmware & Runtime and Silicon Manufacturing were the most resilient, likely due to being underrepresented in general training corpora.
Limitations and Future Work
The primary limitation of HarmChip is that it evaluates model behavior strictly at the language level. A prompt might elicit a structurally concerning response that is functionally inert or syntactically broken when compiled.
The authors note that future iterations must ground the benchmark in actual EDA environments—where the generated RTL code can be compiled, simulated, and synthesized to verify its real-world malicious impact. Additionally, future work will need to address multi-turn, adaptive jailbreaks that mimic long-term interactions between an engineer and an AI assistant.
Summary updated