Project-aware agents find and test root-of-trust bugs
Mjolnir: Finding and Reproducing Vulnerabilities in Root-of-Trust Firmware and RTL with Project-Grounded Agents · arXiv:2611.27567

In plain words
A root of trust is firmware or hardware that a system relies on for security tasks such as secure startup. Bugs there can break security without causing a crash, and deliberate safety checks can look like mistakes to an agent that lacks project context.
Mjolnir gives a team of software agents each project’s security rules, has them check one another’s findings, then tries to reproduce surviving bugs in the project’s own test tools.
On Caliptra runtime firmware, maintainers judged all 24 labeled open findings from one model’s runs to be true bugs; this does not show how many bugs were missed.
The research
A root-of-trust review must distinguish violations of a project’s security rules from deliberate defenses, and a crash-based check can miss flaws that do not crash.
Mjolnir’s Caliptra runtime results suggest project context can help separate true reports from false alarms in that setting, while tests in a project’s own tools give maintainers evidence they can inspect.
Mjolnir grounds bug-finding and review in each root-of-trust project’s security rules, then tries to reproduce surviving findings in its own test tools.
On Caliptra runtime firmware, three maintainers labeled open findings from Mjolnir and four single-agent configurations using Gemini 3.8 Flash. Precision, the fraction of labeled open findings judged true, was 100% for Mjolnir (24 of 24) and 66.7%–78.6% for the single-agent configurations.
A separate test checked 34 known bugs in Caliptra core firmware. Mjolnir found more than the best same-model single-agent configuration with both Gemini 3.8 Flash and Gemini 4 Argon, supporting the view that its project-grounded pipeline can find security bugs beyond those measured by runtime precision.
The reproducer tests ran in host-side mocks or a hardware model, and RTL simulations covered individual modules rather than the full chip.
The study labeled open reports and checked 34 known Caliptra core bugs, so it could not count missed unknown bugs or measure how many real runtime bugs review closed.
What the evidence shows
- Why project context matters
Mjolnir is a multi-stage agent pipeline that finds and reviews security bugs in root-of-trust firmware and hardware designs, then attempts tests in each project’s own tools. A flaw can violate a project’s security rules without causing a crash, and an intentional defense can resemble a mistake. Mjolnir supplies project context to its agents before they judge reports.
- The runtime comparison
On Caliptra runtime firmware, Mjolnir was compared with four single-agent configurations, all using Gemini 3.8 Flash. The same model and firmware were used in both setups, so the comparison suggests Mjolnir’s pipeline produced a larger share of open reports that maintainers judged to be real bugs in this evaluation. Precision counts only labeled open reports, so it does not show how many bugs the systems missed.
- Context and false positives
On Caliptra runtime firmware, removing the project threat model reduced Mjolnir’s precision from 100% to 76.2%; removing the Project Expert agent reduced it to 80%. These component-removal tests show that both components contributed to precision in this evaluation.
They do not explain the full difference from single-agent checks, which also used different prompts and pipeline stages.
- Known bugs and review
In the one-run known-bug tests, Mjolnir found more previously fixed bugs than the best single-agent check using the same model. Review also closed some bugs found at discovery in the Flash run, showing that filtering could discard known bugs in this test.
- Evidence beyond runtime firmware
Five additional targets received one scan each with Gemini 3.8 Flash; maintainers confirmed 27 previously unknown findings across them. These targets covered other Caliptra and OpenTitan firmware, OpenTitan hardware design, and OpenPRoT firmware.
The result shows confirmed findings across these specific targets, while the host-side tests and module simulations do not exercise every hardware-dependent behavior.
Deep
- Original paper authors
- Collin MacDonald, Carl Lundin, Stephen Herwig, Miguel Osorio, Timothy Trippel
- Submitted to arXiv
- License
- CC BY 4.0