Chiosa
AI Security & Safety

A workflow tests AI-built cryptographic hardware with fault checks

From FIPS to FPGA with LLM Agents: Measuring What Tests and Reviews Miss in Post-Quantum Cryptographic Hardware · arXiv:2611.25339

3 min
Updated

In plain words

This paper introduces a seven-stage workflow for using AI programs to move a post-quantum cryptographic hardware design to a new board. The programs write and check pieces of the design, while separate reviewers and formal checks look for problems.

The workflow asks each automatic test to fail on deliberately changed code, not just pass on the intended design.

In three tested modules, the simulation tests caught 76% of tool-made code changes. That shows the tests could still miss faults, even after passing their own checks. The study covers one design family, so this finding is limited to the tested design and checks.

The research

Passing outputs from agent-written tests can look reassuring even when those tests share the design’s blind spots.

This result changes what counts as convincing evidence for this kind of hardware: checks need to be challenged by faults the design agents did not choose, while custody claims need formal checks.

A seven-stage workflow ports a post-quantum key-custody design between FPGA targets and tests its checks with tool-made faults, separate review, and formal verification.

The workflow’s gates were tested on tool-selected changes to three RTL modules, beyond faults chosen by the design-writing programs. They detected 303 of 399 changes, showing that passing gates did not mean they caught every tested fault.

In a separate whole-design replay with a plain request and no part named, reviewers found the missing verifier hint checks in 3 of 6 sessions and unchecked signature coefficients in 1 of 6. The lens prompt found each flaw in 6 of 6 sessions, but included design claims pointing to the flawed parts.

For planted custody flaws, scoped review found the flaw in only 3 of 20 sessions, while formal checks flagged every planted flaw. Together, these results support adding independent fault checks and formal custody properties.

The evaluation covers one design family and one model family, with one experienced operator and no human-only or open-model comparison. Board sessions ran once per board, and the fault and review replays cover selected modules and planted flaws.

What the evidence shows

  • Passing checks can share blind spots

    The seven-stage verification-gated workflow is a method for porting a post-quantum key-custody design between FPGA targets while collecting evidence at each step. The problem is that AI programs can generate a design, its tests, and its review reports in one process, so those checks may share blind spots.

    Passing tests on valid inputs also says little about malformed inputs or whether secrets stay inside the device.

  • Mutants reveal missed faults

    The measured gates caught many tool-made logic faults, but not all: the pooled 76% rate means passing the gates did not ensure they would detect every tested change.

    This check covered three RTL modules and excluded the custody modules, so it describes only those selected simulation gates and faults.

  • Specification tests catch more

    On the same fresh draw, adding specification-derived tests raised decapsulation mutant detection from 48% to 74%, showing that these tests caught faults the existing gates missed. Because the test writer knew the draw’s seed, this evidence is limited to that test setup.

  • Review scope shapes detection

    Review results depended on whether reviewers were directed to the flawed part. In a replay with the relevant part named, all sessions found every known flaw in that part.

    In a separate whole-design replay with a plain request, reviewers found the missing verifier hint checks in 3 of 6 sessions and unchecked signature coefficients in 1 of 6. The first replay tests directed review; it does not show how often whole-design review would locate flaws.

  • Formal checks test custody properties

    For planted custody flaws, scoped review identified the flaw in 3 of 20 sessions, while formal checks flagged every planted flaw; one check was added for the replay, and its denominator was not reported. Separately, formal tools proved that target B’s hash core never has two owners, and the proof failed when an exclusion term was removed. That supports the specific ownership check, not a broader claim that no secret can leak.

Deep

Next paperP2Patch finds bypasses and strengthens vulnerability repairs