基于大语言模型智能体的从FIPS到FPGA:测量后量子密码硬件中测试与审查的缺失项
From FIPS to FPGA with LLM Agents: Measuring What Tests and Reviews Miss in Post-Quantum Cryptographic Hardware
AI总结:
本研究针对后量子密码硬件测试与审查的不足,提出七阶段验证门控工作流,将ML-KEM-768/ML-DSA-65加速器移植到FPGA,验证了模块级审查与形式化检查对提升硬件可信度的关键作用。
摘要:
随着大语言模型(LLM)智能体越来越多地生成RTL以及验证RTL的测试和审查,自生成的证据是可信硬件的薄弱基础。我们提出了在一次后量子设计移植过程中演化出的七阶段验证门控工作流,其中仅当门控能在阴性对照和故障突变体上失效时才计数,且审查智能体在提交前对工作进行审计。随后我们使用工具选择的网表突变体、漏洞重放和形式化检查对该证据进行审计。该工作流将ML-KEM-768/ML-DSA-65加速器移植到了300 MHz的Zynq UltraScale+密钥托管卡上:板上所有六个操作均字节精确,且通过了全部85个适用于接口的NIST ACVP案例(共285个)和484个ML-DSA已知答案。然而,通过模块测试夸大了验证强度。在三个RTL模块中,现有模拟门仅杀死了工具选择的399个网表突变体中的76%;由存活突变体引导的规范衍生测试将新抽取的解封装杀死率从48%提升至74%。在针对已知答案测试不可见漏洞的预注册单模型重放中,无方向的全设计审查仅在3/6和1/6的会话中发现了两个验证器漏洞,而模块范围审查在全部54个会话中发现了每个已知漏洞。即使是范围审查也仅在3/20的会话中检测到植入的密钥托管漏洞,而形式化检查(为重放添加的一项)标记了所有漏洞。本研究表明,可信的智能体硬件需要作者独立的测试门突变体、用于LLM审查的模块级范围,以及用于托管不变量的形式化检查。
英文摘要:
As LLM agents increasingly generate RTL alongside the tests and reviews that validate it, self-generated evidence is a weak foundation for trustworthy hardware. We present our seven-stage verification-gated workflow, evolved during a post-quantum design port, in which a gate counts only if shown able to fail on negative controls and fault mutants, and reviewer agents audit work before commit. We then audit this evidence with tool-selected netlist mutants, flaw replays, and formal checks. The flow ported an ML-KEM-768/ML-DSA-65 accelerator to a 300 MHz Zynq UltraScale+ key-custody card: all six operations are byte-exact on the board, and it passes all 85 interface-applicable NIST ACVP cases (of 285) and 484 ML-DSA known answers. However, passing module tests overstate the verification strength. Across three RTL modules, existing simulation gates kill only 76% of 399 tool-selected netlist mutants; specification-derived tests guided by the survivors raise the fresh-draw decapsulation kill rate from 48% to 74%. In pre-registered single-model replays on flaws invisible to known-answer tests, undirected whole-design review catches two verifier flaws in only 3/6 and 1/6 sessions, whereas module-scoped review catches every known flaw in all 54 sessions. Even scoped review detects planted key-custody flaws in only 3/20 sessions, whereas formal checks (one added for the replay) flag every one. In this study, trustworthy agentic hardware needed author-independent mutants for test gates, module-level scoping for LLM review, and formal checks for custody invariants.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。