Drawing the LINE: Cryptographic Analysis and Security Improvements for the LINE E2EE Protocol
Benjamin Dowling, Prosanta Gope, Mehr U Nisa, Bhagya Wimalasiri
TL;DR
This work delivers the first formal cryptographic analysis of LINEv2, revealing missing forward secrecy and post-compromise security in LINE's E2EE design, and demonstrates that bot conversations are not end-to-end encrypted. To address these gaps, the authors introduce LINEvDR, a double ratchet–based enhancement that preserves LINE’s architecture while delivering FS and PCS, along with replay protection and KCI resilience. They provide a formal security treatment within a tailored MSKE framework and validate the approach with a Rust-based reference implementation and benchmarks, showing that LINEvDR incurs modest performance overhead relative to LINEv2. The study highlights the value of rigorous cryptographic analysis for real-world systems and offers a practical, backward-compatible path toward stronger security for LINE users, with avenues for future privacy enhancements and post-quantum considerations.
Abstract
LINE has emerged as one of the most popular communication platforms in many East Asian countries, including Thailand and Japan, with millions of active users. Therefore, it is essential to understand its security guarantees. In this work, we present the first provable security analysis of the LINE version two (LINEv2) messaging protocol, focusing on its cryptographic guarantees in a real-world setting. We capture the architecture and security of the LINE messaging protocol by modifying the Multi-Stage Key Exchange (MSKE) model, a framework for analysing cryptographic protocols under adversarial conditions. While LINEv2 achieves basic security properties such as key indistinguishability and message authentication, we highlight the lack of forward secrecy (FS) and post-compromise security (PCS). To address this, we introduce a stronger version of the LINE protocol, introducing FS and PCS to LINE, analysing and benchmarking our results.
