← Lab /Security & privacy

Runtime monitoring shows Signal and WhatsApp executions match formal models

Observed executions of WhatsApp Web and Signal Desktop conform to the authors' multiset-rewrite models and reveal undocumented library differences

Security & privacy arXiv 10 Sep 2026 Measurement Prototype evidence Threat model

Published as “From Specs to Apps: Verifying and Monitoring Models of Signal and WhatsApp”

Why it matters

The work provides a practical path for vendors and researchers to continuously validate that messaging implementations faithfully follow verified protocol specifications.

Summary

The authors applied the SpecMon runtime monitor to Signal Desktop and WhatsApp Web, creating the first formal model of WhatsApp's Signal-protocol variant and the most detailed model of Signal to date, and verified authentication and initial-root-key secrecy. Monitoring showed that observed executions conform to these models with low overhead: the instrumentation adds only 0.30 ms latency on top of a 2.76 ms baseline and uses modest memory. Fault-injection experiments demonstrate that SpecMon detects all injected protocol-level faults, but it cannot detect secrets that are encoded as ordinary message payloads. The paper does not include a dedicated limitations section, so detailed caveats are drawn from the discussion and conclusion.

What they found 3

  1. SpecMon detects all injected protocol-level faults, but not payload-encoded secret leakage.

    “SpecMon detects all injected protocol-level faults; only payload-encoded leakage is outside the model’s reach.”

  2. Instrumentation adds only 0.30 ms overhead compared to the uninstrumented baseline of 2.76 ms.

    “For m= 50, the average instrumentation overhead is 0.30 ms over the uninstrumented average of 2.76 ms.”

  3. The monitoring models processed the generated traces without any failure.

    “Our models handled these traces without failure.”

Caveats 3

  • Secrets encoded as ordinary message payloads remain outside this detection capability (Section 9).
  • We do not attempt to cover group messages (not covered by our models) or linked devices for Signal (from Model Validation).
  • Model refinement still requires manual analysis; reducing that effort would make monitorable, verified models easier to maintain as messaging implementations evolve.

What’s new here 4

  • First runtime monitoring of production-scale Signal-based messaging apps with measured low overhead.
  • Derivation of the first formal model of WhatsApp Web's implementation of the Signal protocol.
  • Creation of the most detailed Signal model to date, incorporating PQXDH and Sealed Sender.
  • Demonstration that monitoring can detect a range of injected protocol faults in real applications.

Threat model stated by the source

Adversarynetwork attacker with Dolev-Yao capabilities
AssumesDolev-Yao model; attacker knowledge is introduced via explicit Tamarin rules