Post-Quantum Hardware: LLM Verification Gaps Unlocked (2026)

post-quantum hardware - Post-Quantum Hardware: LLM Verification Gaps Unlocked (2026)

Unlocking Trustworthy Post-Quantum Hardware with LLM Agents

The rapid advancement of Large Language Models (LLMs) into hardware design, particularly for critical applications like post-quantum hardware, presents a new frontier. Researchers from Lucid Motors and EYL Inc. have published a groundbreaking study, “From FIPS to FPGA with LLM Agents: Measuring What Tests and Reviews Miss in Post-Quantum Cryptographic Hardware.” This work directly addresses the inherent risks of self-generated evidence in hardware verification, proposing a robust workflow to ensure the integrity and security of LLM-assisted designs.

The core challenge lies in the potential for LLM agents to generate not only the Register-Transfer Level (RTL) code but also the tests and reviews intended to validate it. This self-referential loop creates a weak foundation for trustworthy hardware. The study emphasizes that passing existing simulation tests does not guarantee security, especially against novel threats or subtle implementation flaws.

The Seven-Stage Verification-Gated Workflow

To combat these verification gaps, the researchers developed a seven-stage workflow. This process mandates that a gate in the design only counts if it can be proven to fail under specific conditions. These conditions include negative controls and fault mutants, ensuring the tests are not trivially passed.

Furthermore, reviewer agents are employed to audit the generated work before it is committed. This layered approach aims to introduce author-independent checks, a crucial step in building confidence in LLM-generated designs. The workflow was rigorously tested during the porting of a post-quantum cryptographic accelerator.

The target was an ML-KEM-768/ML-DSA-65 accelerator designed for a 300 MHz Zynq UltraScale+ key-custody card. The successful porting demonstrated byte-exact execution of all six core operations on the board. It also passed a significant portion of the NIST ACVP test cases applicable to interfaces (85 out of 285) and a substantial number of ML-DSA known answers (484).

Hardware/Software Architecture & Specifications

LLM Agents in RTL Generation and Testing

The study highlights the increasing capability of LLM agents to generate complex RTL code. However, the validation of this code remains a significant hurdle. The researchers found that existing simulation tests, even when derived from specifications, were insufficient to catch all potential flaws in the post-quantum hardware.

For instance, across three RTL modules, simulation tests could only eliminate 76% of 399 tool-selected netlist mutants. This indicates a substantial number of potential vulnerabilities or deviations from expected behavior that were not detected by standard testing procedures. This is a critical finding for anyone developing next-generation hardware, akin to how GPU-accelerated processing is unlocking new speeds in data analysis, as seen with GPU-Accelerated DuckDB.

The introduction of specification-derived tests, guided by the survivors of the initial mutant analysis, significantly improved the detection rate. Specifically, the fresh-draw decapsulation kill rate for mutants rose from a mere 48% to a more robust 74%. This demonstrates the power of targeted testing informed by a deeper understanding of potential failure modes.

Engineering Trade-offs & Limitations

The Weakness of Self-Generated Evidence

A central theme of the research is the inherent weakness of self-generated evidence in hardware verification. When LLM agents create both the design and the tests, the validation process can become circular and less effective. The study meticulously details how passing module tests can overstate the actual verification strength of the post-quantum hardware.

The effectiveness of LLM review processes was also scrutinized. In pre-registered single-model replays focusing on flaws invisible to known-answer tests, undirected whole-design review by agents caught only two verifier flaws in 3 out of 6 sessions and one flaw in 1 out of 6 sessions. This suggests that broad review alone is insufficient.

Module-scoped review, however, proved more effective, catching every known flaw in all 54 sessions. This emphasizes the importance of granularity and context in the review process. Even with this scoped approach, detecting planted key-custody flaws remained challenging, with only 3 out of 20 sessions successfully identifying them.

Field Readiness & Verdict

Formal Checks and Author-Independent Mutants for Trust

The study concludes that achieving trustworthy agentic hardware requires a multi-faceted approach. The use of author-independent mutants is essential for effective test gating. This ensures that tests are designed to actively seek out and identify weaknesses, rather than simply confirming expected behavior.

Module-level scoping for LLM review was identified as critical for improving the efficacy of agent-based audits. This focused approach allows reviewers to delve deeper into specific functional blocks, increasing the likelihood of uncovering subtle errors. The effectiveness of such focused efforts can be seen in specialized applications, like the Mars VR Experience, which requires precise rendering and interaction.

Most importantly, the research strongly advocates for the integration of formal checks, particularly for critical invariants like those related to key custody. In the study, formal checks, including one specifically added for the replay analysis, successfully flagged every planted key-custody flaw. This highlights their indispensable role in securing sensitive cryptographic hardware.

The Lucid and EYL study, published in November 2026, provides a vital roadmap for the future of secure hardware development in the post-quantum era. It underscores that while LLMs offer powerful design assistance, rigorous, author-independent verification methodologies, including formal methods, are paramount to ensuring the security and trustworthiness of the resulting post-quantum hardware.

Source: Semiconductor Engineering