Beyond Code Reasoning: Specification-Anchored Auditing of Multi-Implementation Distributed Protocols
Masato Kamba, Hirotake Murakami, Akiyoshi Sannai

TL;DR
SPECA is an LLM-driven framework that extracts and compares explicit security specifications across distributed protocol implementations, improving detection of specification-divergence bugs.
Contribution
It introduces SPECA, a novel tool that derives and reuses security properties from natural language specifications for cross-implementation auditing.
Findings
Recovered all vulnerabilities in the Sherlock Ethereum contest
Achieved 88.9% precision at 100% recall on RepoAudit benchmark
Surfaces additional bugs and false positives with traceable causes
Abstract
Code-driven auditing fails when correctness depends on what the specification requires rather than how the code is written. Production blockchain networks expose this directly: byzantine consensus runs many independent clients of a shared specification, so a specification-divergence defect in one client can fork the network or halt finality. Existing tools reason one repository at a time, with no shared baseline held constant across implementations. We present SPECA, an LLM-driven audit framework that derives explicit, categorized security properties (invariants, pre/postconditions, trust assumptions) from natural-language specifications and reuses them across implementations. SPECA enables controlled cross-implementation comparison, detections grounded in specification invariants no code pattern encodes, and false positives traceable to a specific pipeline phase rather than opaque…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
