HarmChip: Evaluating Hardware Security Centric LLM Safety via Jailbreak Benchmarking

Zeng Wang, Minghao Shao, Weimin Fu, Prithwish Basu Roy, Xiaolong Guo, Ramesh Karri, Muhammad Shafique, Johann Knechtel, Ozgur SinanogluarXiv 2026 · arXiv

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:

  1. 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.
  2. 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.
  3. 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.
Fig. 2: Three-stage pipeline for HarmChip construction.

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.
Fig. 1: HarmChip threat taxonomy: 16 domains grouped under 7 lifecycle-stage categories.

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.
Fig. 3: Aggregated ASR across Easy and Hard benchmarks, showing bimodal safety polarization among 16 LLMs.

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

Abstract

The integration of large language models (LLMs) into electronic design automation (EDA) workflows has introduced powerful capabilities for RTL generation, verification, and design optimization, but also raises critical security concerns. Malicious LLM outputs in this domain pose hardware-level threats, including hardware Trojan insertion, side-channel leakage, and intellectual property theft, that are irreversible once fabricated into silicon. Such requests often exploit semantic disguise, embedding adversarial intent within legitimate engineering language that existing safety mechanisms, trained on general-purpose hazards, fail to detect. No benchmark exists to evaluate LLM vulnerability to such domain-specific threats. We present the HarmChip benchmark to assess jailbreak susceptibility in hardware security, spanning 16 hardware security domains, 120 threats, and 360 prompts at two difficulty levels. Evaluation of state-of-the-art LLMs reveals an alignment paradox: They refuse legitimate security queries while complying with semantically disguised attacks, exposing blind spots in safety guardrails and underscoring the need for domain-aware safety alignment.
BibTeX
@misc{wang2026harmchip,
  author = {Zeng Wang and Minghao Shao and Weimin Fu and Prithwish Basu Roy and Xiaolong Guo and Ramesh Karri and Muhammad Shafique and Johann Knechtel and Ozgur Sinanoglu},
  title = {{HarmChip: Evaluating Hardware Security Centric LLM Safety via Jailbreak Benchmarking}},
  year = {2026},
  eprint = {2604.17093},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.17093},
}

Loading related content...

Figure