RecordFlux: Formal Message Specification and Generation of Verifiable Binary Parsers. Reiher, T., Senier, A., Castrillon, J., & Strufe, T. In Arbab, F. & Jongmans, S., editors, Formal Aspects of Component Software, of Lecture Notes in Computer Science, pages 170–190, Cham, 2020. Springer International Publishing.
doi  abstract   bibtex   
Various vulnerabilities have been found in message parsers of protocol implementations in the past. Even highly sensitive software components like TLS libraries are affected regularly. Resulting issues range from denial-of-service attacks to the extraction of sensitive information. The complexity of protocols and imprecise specifications in natural language are the core reasons for subtle bugs in implementations, which are hard to find. The lack of precise specifications impedes formal verification.In this paper, we propose a model and a corresponding domain-specific language to formally specify message formats of existing real-world binary protocols. A unique feature of the model is the capability to define invariants, which specify relations and dependencies between message fields. Furthermore, the model allows defining the relation of messages between different protocol layers and thus ensures correct interpretation of payload data. We present a technique to derive verifiable parsers based on the model, generate efficient code for their implementation, and automatically prove the absence of runtime errors. Examples of parser specifications for Ethernet and TLS demonstrate the applicability of our approach.
@inproceedings{reiher_recordflux_2020,
	address = {Cham},
	series = {Lecture {Notes} in {Computer} {Science}},
	title = {{RecordFlux}: {Formal} {Message} {Specification} and {Generation} of {Verifiable} {Binary} {Parsers}},
	isbn = {978-3-030-40914-2},
	shorttitle = {{RecordFlux}},
	doi = {10/ghv59t},
	abstract = {Various vulnerabilities have been found in message parsers of protocol implementations in the past. Even highly sensitive software components like TLS libraries are affected regularly. Resulting issues range from denial-of-service attacks to the extraction of sensitive information. The complexity of protocols and imprecise specifications in natural language are the core reasons for subtle bugs in implementations, which are hard to find. The lack of precise specifications impedes formal verification.In this paper, we propose a model and a corresponding domain-specific language to formally specify message formats of existing real-world binary protocols. A unique feature of the model is the capability to define invariants, which specify relations and dependencies between message fields. Furthermore, the model allows defining the relation of messages between different protocol layers and thus ensures correct interpretation of payload data. We present a technique to derive verifiable parsers based on the model, generate efficient code for their implementation, and automatically prove the absence of runtime errors. Examples of parser specifications for Ethernet and TLS demonstrate the applicability of our approach.},
	language = {English},
	booktitle = {Formal {Aspects} of {Component} {Software}},
	publisher = {Springer International Publishing},
	author = {Reiher, Tobias and Senier, Alexander and Castrillon, Jeronimo and Strufe, Thorsten},
	editor = {Arbab, Farhad and Jongmans, Sung-Shik},
	year = {2020},
	pages = {170--190},
}

Downloads: 0