Generating Optimised and Formally Checked Packet Parsing Code - Inria - Institut national de recherche en sciences et technologies du numérique Accéder directement au contenu
Communication Dans Un Congrès Année : 2011

Generating Optimised and Formally Checked Packet Parsing Code

Sebastien Mondet
  • Fonction : Auteur
  • PersonId : 1013403
Ion Alberdi
  • Fonction : Auteur
  • PersonId : 941303
Thomas Plagemann
  • Fonction : Auteur
  • PersonId : 1013405

Résumé

While implementing distributed applications, the parsing of binary packets is a very difficult and error-prone task the developer has to face. Moreover, these programming mistakes are often the source of distant vulnerabilities. In this paper we present a code-generation library, called Promiwag, for creating optimised and safe packet parsing code. Its input is concise human-readable descriptions of the protocols and the interests of the application in specific pieces of information. Promiwag follows a dependency-based algorithm, and uses high-level optimisation techniques to generate minimal parsing automatons. These automatons can be compiled into C or OCaml code for efficient execution, and to annotatedWhy code. This latter output is then used to automatically prove that for any possible input packet, the generated code cannot perform any illegal memory access, and that no infinite loop can be triggered. We have used our code generator to implement a pretty-printer for Internet protocols, and we provide experimental results on the performance of the generated code.
Fichier principal
Vignette du fichier
978-3-642-21424-0_14_Chapter.pdf (165.3 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-01567597 , version 1 (24-07-2017)

Licence

Paternité

Identifiants

Citer

Sebastien Mondet, Ion Alberdi, Thomas Plagemann. Generating Optimised and Formally Checked Packet Parsing Code. 26th International Information Security Conference (SEC), Jun 2011, Lucerne, Switzerland. pp.173-184, ⟨10.1007/978-3-642-21424-0_14⟩. ⟨hal-01567597⟩
87 Consultations
267 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More