← Lab /Security & privacy

LINEv2 does not provide forward secrecy or post-compromise security

LINE version two lacks forward secrecy and post-compromise security

Security & privacy arXiv 20 Feb 2026 Measurement Theory

Published as “Drawing the LINE: Cryptographic Analysis and Security Improvements for the LINE E2EE Protocol”

Why it matters

Adding forward secrecy and post-compromise security to LINE could protect millions of users from long-term key compromise without major performance penalties.

Summary

LINEv2 does not provide forward secrecy or post-compromise security, but the authors' LINEvDR variant adds a double-ratchet to achieve both properties. They formally prove LINEvDR’s security in an adapted MSKE model and show it adds only modest overhead: the init stage takes 370.65 μs versus 130.65 μs for LINEv2’s first message. The paper also uncovers that bot communications are not end-to-end encrypted. Evidence is based on a small benchmark (100 runs) and a live-network testbed.

What they found 3

  1. LINEv2 lacks forward secrecy and post-compromise security

    “LINE achieves key-indistinguishability, end-to-end encryption, and message authentication. However, it lacks post-compromise security (PCS) and forward secrecy (FS) because it relies on a static-static Diffie-Hellman key exchange.”

  2. LINEvDR provides FS and PCS with reasonable performance overhead

    “Our empirical evaluations further demonstrated that LINEvDR provides substantially improved security guarantees with reasonable performance overhead compared to the baseline LINEv2 protocol.”

  3. Bot communications are not end-to-end encrypted in LINEv2

    “Our analysis confirms that bot communications lack the E2EE applied to standard messages, a finding consistent with the concurrent work of Chou et al. [CLW+24].”

Caveats 4

  • LINEvDR Init stage takes 370.65 μs (±30.76) versus LINEv2 first message 130.65 μs (±16.10), a ~2.8× increase in latency
  • LINEvDR introduces a 32-byte public key and an additional sending_counter in the message header, adding overhead to each message
  • LINE achieves key-indistinguishability, end-to-end encryption, and message authentication. However, it lacks post-compromise security (PCS) and forward secrecy (FS) because it relies on a static-static Diffie-Hellman key exchange. Due to its stateless design, LINEv2 lacks robust replay protection, enabling an active adversary or malicious server to replay ciphertexts that may be accepted by the recipient.
  • we note that this reference implementation is not a production-ready secure messaging system, but rather a prototype designed to capture the core functionality of the LINEvDR protocol for demonstration and analysis purposes.

What’s new here 4

  • Introduces a double-ratchet based enhancement (LINEvDR) to the existing LINEv2 protocol
  • Provides the first formal provable-security analysis of LINEv2 using a tailored MSKE model
  • Demonstrates forward secrecy and post-compromise security for LINE without requiring a full Signal migration
  • Shows empirical network-level flaw: bot messages lack E2EE