Skip to main navigation Skip to search Skip to main content

Formally Verifying the State Machine of TLS 1.3 Handshake in OpenSSL

  • Jingjing Guan
  • , Hui Li
  • , Xiang Dong Li
  • , Xiao Lei Wang
  • , Binghan Wang
  • , Qiuye Wang
  • , Shengchao Qin
  • , Mengda He
  • , Md Armanuzzaman
  • , Ziming Zhao
  • Beijing University of Posts and Telecommunications
  • Zhejiang University
  • Xidian University
  • Teesside University
  • Northeastern University

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

1 Scopus citations

Abstract

The TLS handshake state machine manages the handshake messages exchanged in a session based on the parameters negotiated between the client and the server. Although the TLS 1.3 standard has undergone multiple rounds of analysis and revisions before official release to ensure its security, the process from natural language descriptions to implementations still relies on human expertise and is error-prone. In this paper, we propose a systematic method to conduct equivalence verification between the implementation of the TLS state machine and the standard. We also conduct formal verification of OpenSSL, the extensively utilized open-source TLS implementation for secure communications. Using Cryptol, we model the handshake state machine both from the standards and OpenSSL's implementation to perform its formal verification. Our automatic tool E-Verify performs equivalence verification by comparing the state transition sequences produced by the RFC model and OpenSSL model with all combinations of negotiation parameters. Guided by the verification results, we identify 640 mismatches out of a total of 1,536 scenarios and pinpoint the corresponding negotiation parameter combinations.

Original languageEnglish
Title of host publicationINFOCOM 2025 - IEEE Conference on Computer Communications
PublisherInstitute of Electrical and Electronics Engineers Inc.
ISBN (Electronic)9798331543051
DOIs
StatePublished - 2025
Event2025 IEEE Conference on Computer Communications, INFOCOM 2025 - London, United Kingdom
Duration: May 19 2025May 22 2025

Publication series

NameProceedings - IEEE INFOCOM
ISSN (Print)0743-166X

Conference

Conference2025 IEEE Conference on Computer Communications, INFOCOM 2025
Country/TerritoryUnited Kingdom
CityLondon
Period05/19/2505/22/25

Keywords

  • Cryptol
  • formal methods
  • handshake state machine
  • SAW
  • Transport Layer Security

Fingerprint

Dive into the research topics of 'Formally Verifying the State Machine of TLS 1.3 Handshake in OpenSSL'. Together they form a unique fingerprint.

Cite this