SpecMon: Modular Black-Box Runtime Monitoring of Security Protocols

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Morio, Kevin, Künnemann, Robert
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866912014772731904
author Morio, Kevin
Künnemann, Robert
author_facet Morio, Kevin
Künnemann, Robert
contents There exists a verification gap between formal protocol specifications and their actual implementations, which this work aims to bridge via monitoring for compliance to the formal specification. We instrument the networking and cryptographic library the application uses to obtain a stream of events. This is possible even without source code access. We then use an efficient algorithm to match these observations to traces that are valid in the specification model. In contrast to prior work, our algorithm can handle non-determinism and thus, multiple sessions. It also achieves a low overhead, which we demonstrate on the WireGuard reference implementation and a case study from prior work. We find that the reference Tamarin model for WireGuard can be used with little change: We only need to specify wire formats and correct some small inaccuracies that we discovered while conducting the case study. We also provide a soundness result for our algorithm that ensures it accepts only event streams that are valid according to the specification model.
format Preprint
id arxiv_https___arxiv_org_abs_2409_02918
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle SpecMon: Modular Black-Box Runtime Monitoring of Security Protocols
Morio, Kevin
Künnemann, Robert
Cryptography and Security
There exists a verification gap between formal protocol specifications and their actual implementations, which this work aims to bridge via monitoring for compliance to the formal specification. We instrument the networking and cryptographic library the application uses to obtain a stream of events. This is possible even without source code access. We then use an efficient algorithm to match these observations to traces that are valid in the specification model. In contrast to prior work, our algorithm can handle non-determinism and thus, multiple sessions. It also achieves a low overhead, which we demonstrate on the WireGuard reference implementation and a case study from prior work. We find that the reference Tamarin model for WireGuard can be used with little change: We only need to specify wire formats and correct some small inaccuracies that we discovered while conducting the case study. We also provide a soundness result for our algorithm that ensures it accepts only event streams that are valid according to the specification model.
title SpecMon: Modular Black-Box Runtime Monitoring of Security Protocols
topic Cryptography and Security
url https://arxiv.org/abs/2409.02918