Writing precise protocol format specifications by hand is tedious and error-prone. SPAR leverages LLMs with adversarial refinement to generate verified specifications automatically from RFC documents.
Automatically produces precise packet format specifications from natural-language RFC documents.
Two heterogeneous LLM tasks rarely make the same mistake — an adversarial loop exposes their inconsistencies and corrects errors until no changes remain.
Built on EverParse and Z3 — every generated specification passes formal syntax verification before acceptance.
Demonstrated across 8 protocols: BGPv4, NTP, IGMP, BFD, BABEL, SCTP, DNS, and HTTP/2.
From RFC document parsing to verified specification output, the entire pipeline runs automatically with minimal human intervention.