journal article·2025-06-20Open access

Formal Analysis of Ratchet Protocols Based on Logic of Events

Meihua Xiao, Hongbin Wan, Hongming Fan, Huaibin Shao, Zehuan Li, Ke Yang

Applied Sciences· Volume 15· Issue 13

Abstract

Ratchet protocols are a class of secure protocols based on ratcheting encryption mechanisms, widely employed in instant messaging. Against the backdrop of frequent incidents of communication privacy breaches, ratchet protocols have become a vital technology for ensuring secure end-to-end communication. This paper presents a formal analysis framework for ratchet protocols grounded in Logic of Events theory (LoET). We further extend LoET by introducing dedicated Diffie–Hellman (DH) and ratchet event classes, along with tailored axioms and inference rules, to support precise modeling of ratcheted encryption. Using the Signal protocol as a case study, we construct a bidirectional authentication model and rigorously prove that both its symmetric and asymmetric ratchet phases satisfy strong authentication properties. Compared with existing formal approaches, our method enables more expressive modeling of key update sequences and supports structured reasoning over causality and authentication flows. The proposed framework lays a theoretical foundation for analyzing the security of modern ratcheted protocols and holds potential for future automated verification.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Cryptographic Implementations and Security · Advanced Authentication Protocols Security · User Authentication and Security Systems

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Information and Software Engineering, East China Jiaotong University, Nanchang 330013, China

School of Software Engineering, Jiangxi University of Software Professional Technology, Nanchang 330041, China

Funding

National Natural Science Foundation of China · Double Thousand Talent Plan of Jiangxi Province · Natural Science Foundation of Jiangxi Province · Jiangxi Province Early Career Youth Science and Technology Talent Training Special Project

References (31)

Show source-provided references
1. Real-World Security Protocols
2. Bellare, M., and Yee, B. (2003, January 13–17). Forward-Security in Private-Key Cryptography. Proceedings of the CT-RSA Conference, Heidelberg, Germany.10.1007/3-540-36563-X_1 ↗
3. Enabling (End-to-End) Encrypted Cloud Emails with Practical Forward Secrecy10.1109/TDSC.2021.3055495 ↗
4. An Energy-Efficient Double Ratchet Cryptographic Processor with Backward Secrecy for IoT Devices10.1109/JSSC.2022.3220838 ↗
5. Afzal, A., Hussain, M., Saleem, S., and Shahzad, M.K. (2021). Encrypted Network Traffic Analysis of Secure Instant Messaging Application: A Case Study of Signal Messenger App. Appl. Sci., 11.10.3390/app11177789 ↗
6. Ahmed, W., Shahzad, F., Javed, A.R., Iqbal, F., and Ali, L. (2021, January 19–21). WhatsApp Network Forensics: Discovering the IP Addresses of Suspects. Proceedings of the 2021 11th IFIP International Conference on New Technologies, Mobility and Security (NTMS), Paris, France.10.1109/NTMS49979.2021.9432677 ↗
7. Nabeel, M. (2017, January 25–30). The Many Faces of End-to-End Encryption and Their Security Analysis. Proceedings of the 2017 IEEE International Conference on Edge Computing (EDGE), Honolulu, HI, USA.10.1109/IEEE.EDGE.2017.47 ↗
8. Bhargavan, K., Jacomme, C., Kiefer, F., and Schmidt, R. (2024, January 14–16). Formal Verification of the PQXDH Post-Quantum Key Agreement Protocol for End-to-End Secure Messaging. Proceedings of the 33rd USENIX Security Symposium (USENIX Security 2024), Philadelphia, PA, USA.
9. Shacham, H., and Boldyreva, A. (2018). Towards Bidirectional Ratcheted Key Exchange. Advances in Cryptology—CRYPTO 2018: Proceedings of the 38th Annual International Cryptology Conference, Santa Barbara, CA, USA, 19–23 August 2018, Springer.10.1007/978-3-319-96878-0 ↗
10. Cohn-Gordon, K., Cremers, C., Dowling, L., Garratt, L., and Stebila, D. (2017, January 26–28). A Formal Security Analysis of the Signal Messaging Protocol. Proceedings of the 2017 IEEE European Symposium on Security and Privacy, Paris, France.10.1109/EuroSP.2017.27 ↗
11. Lv, C. (2022, January 24–26). The Dilemma and Countermeasures of Personal Privacy Protection in the Era of Big Data. Proceedings of the 2022 3rd International Conference on Electronic Communication and Artificial Intelligence (IWECAI), Zhuhai, China.10.1109/IWECAI55315.2022.00071 ↗
12. Perrin, T. (2025, April 28). The X3DH Key Agreement Protocol. Available online: https://whispersystems.org/docs/specifications/x3dh.
13. Perrin, T. (2025, April 28). The Double Ratchet Algorithm. Available online: https://whispersystems.org/docs/specifications/doubleratchet.
14. Borisov, N., Goldberg, L., and Brewer, E. (2004, January 28). Off-the-Record Communication, or, Why Not to Use PGP. Proceedings of the 2004 ACM Workshop on Privacy in the Electronic Society (WPES), Washington, DC, USA.10.1145/1029179.1029200 ↗
15. Bienstock, A., Paul, R., and Yi, T. (2023, January 26–30). Asmesh: Anonymous and Secure Messaging in Mesh Networks Using Stronger, Anonymous Double Ratchet. Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security (CCS), New York, NY, USA.10.1145/3576915.3616615 ↗
16. Bhati, A.S., Dufka, A., Andreeva, E., Roy, A., and Preneel, B. (2024, January 1–5). Skye: An Expanding PRF-Based Fast KDF and Its Applications. Proceedings of the 19th ACM Asia Conference on Computer and Communications Security (AsiaCCS 2024), New York, NY, USA.10.1145/3634737.3637673 ↗
17. Marlinspike, M. (2025, April 28). Advanced Cryptographic Ratcheting. Available online: https://signal.org/blog/advanced-ratcheting.
18. Frosch, T., Mainka, C., Bader, C., Bergsma, F., Schwenk, J., and Holz, T. (2016, January 21–23). How Secure is TextSecure?. Proceedings of the 2016 IEEE European Symposium on Security and Privacy (EuroS&P), Saarbrücken, Germany.10.1109/EuroSP.2016.41 ↗
19. Cohn-Gordon, K., Cremers, C., Garratt, L., Millican, J., and Milner, K. (2018, January 15–19). On Ends-to-Ends Encryption: Asynchronous Group Messaging with Strong Security Guarantees. Proceedings of the 2018 ACM SIGSAC Conference on Computer and Communications Security (CCS), New York, NY, USA.10.1145/3243734.3243747 ↗
20. Bellare, M., Singh, A.C., Jaeger, J., Nyayapati, M., and Stepanovs, I. (2017, January 20–24). Ratcheted Encryption and Key Exchange: The Security of Messaging. Proceedings of the 37th Annual International Cryptology Conference (CRYPTO 2017), Santa Barbara, CA, USA.10.1007/978-3-319-63697-9_21 ↗
21. Beguinet, H., Chevalier, C., Ricosset, T., and Senet, H. (2023, January 13–15). Formal Verification of a Post-Quantum Signal Protocol with Tamarin. Proceedings of the International Conference on Verification and Evaluation of Computer and Communication Systems (VECoS 2023), Marrakech, Morocco.10.1007/978-3-031-49737-7_8 ↗
22. Li, Z., Xiao, M., and Xu, R. (2024). Formal Analysis of Signal Protocol Based on Logic of Events Theory. Sci. Rep., 14.10.1038/s41598-024-71666-y ↗
23. Almuzaini, N.Z., and Ahmad, I. (2019, January 1–3). Formal Analysis of the Signal Protocol Using the Scyther Tool. Proceedings of the 2019 2nd International Conference on Computer Applications & Information Security (ICCAIS), Riyadh, Saudi Arabia.10.1109/CAIS.2019.8769532 ↗
24. Linker, F., Sasse, R., and Basin, D. (2025, April 28). A Formal Analysis of Apple’s iMessage PQ3 Protocol. Available online: https://eprint.iacr.org/2024/1395.
25. Xiao, M., and Bickford, M. (2009, January 7–8). Logic of Events for Proving Security Properties of Protocols. Proceedings of the 2009 International Conference on Web Information Systems and Mining (WISM), Shanghai, China.10.1109/WISM.2009.111 ↗
26. Bickford, M., and Constable, R. (2010, January 15). Automated Proof of Authentication Protocols in a Logic of Events. Proceedings of the 6th International Verification Workshop (VERIFY 2010), Washington, DC, USA.
27. Protocol Composition Logic (PCL)10.1016/j.entcs.2007.02.012 ↗
28. Kobeissi, N., Bhargavan, K., and Blanchet, B. (2017, January 26–28). Automated Verification for Secure Messaging Protocols and Their Implementations: A Symbolic and Computational Approach. Proceedings of the 2017 IEEE European Symposium on Security and Privacy (EuroS&P), Paris, France.10.1109/EuroSP.2017.38 ↗
29. Verifpal: Cryptographic Protocol Analysis for the Real World
30. OSM: Leveraging Model Checking for Observing Dynamic Behaviors in Aspect-Oriented Applications10.30935/ojcmt/13771 ↗
31. BlockASP: A Framework for AOP-Based Model Checking Blockchain System10.1109/ACCESS.2023.3325060 ↗