← Latest papers
💻 computer science

FoSAM: Forward Secret Messaging in Ad-Hoc Networks

This paper introduces FoSAM, the first protocol designed to provide proven anonymous and forward secret messaging in unreliable ad-hoc networks without requiring interactive handshakes, achieving high delivery success rates in simulations and through an Android prototype.

Original authors: Daniel Schadt, Christoph Coijanovic, Thorsten Strufe

Published 2026-03-16
📖 5 min read🧠 Deep dive

Original authors: Daniel Schadt, Christoph Coijanovic, Thorsten Strufe

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are at a massive protest. The government has cut off the internet, so you can't use WhatsApp, Signal, or email. To organize, you and your friends use a "mesh network"—your phones talk directly to each other via Bluetooth, passing messages like a game of "telephone" from person to person until they reach their destination.

Apps like Firechat and Bridgefy do this, but they have a fatal flaw: If the police catch you and seize your phone, they can read every single message you've ever sent or received. This puts not just you, but everyone you've ever talked to, in danger.

This paper introduces FoSAM (Forward Secret Messaging), a new system designed to fix this. Here is how it works, explained through simple analogies.

1. The Problem: The "One-Time" Key vs. The "Rotating" Key

Think of a standard encrypted chat app like a house with one master key. If a burglar (the police) breaks in and steals that key, they can open every door in the house, past and present.

Existing apps try to change the lock often (like the "Double Ratchet" used by Signal), but they rely on a perfect conversation. They need you to say "Hello," and the other person to say "Hi back," to agree on the next lock. In a chaotic protest, people move around, signals drop, and messages get lost. If the conversation breaks, the lock mechanism fails, and security is lost.

FoSAM's Solution: Instead of waiting for a conversation to change the locks, FoSAM changes the locks based on time.

2. The Core Idea: The "Hourly Lock"

Imagine every message is put inside a safe.

  • The Old Way: The safe has a lock that only opens if you and your friend agree on a secret handshake. If you lose contact, you can't make a new safe.
  • The FoSAM Way: The safe has a timer. Every 10 minutes (an "epoch"), the lock automatically changes.
    • If you send a message at 1:00 PM, it's locked with the "1:00 PM Key."
    • At 1:10 PM, the key changes. Even if the police steal your phone at 1:15 PM, they get the "1:15 PM Key."
    • Crucially: That new key cannot open the 1:00 PM safe. The old key has been destroyed.

This means that even if your phone is confiscated, the messages you sent before that moment are mathematically impossible to unlock. This is called Forward Secrecy.

3. The Challenge: Synchronizing the Clocks

For this to work, everyone's phone needs to agree on what time it is. If your phone thinks it's 1:00 PM but your friend's phone thinks it's 1:10 PM, they will be using different keys, and the message won't open.

In a normal city, phones sync with cell towers. In a protest, there are no towers.

  • The Analogy: Imagine a room full of people with different watches. No one knows the "real" time.
  • The FoSAM Fix: The phones play a game of "Three-Majority Vote." Every few seconds, your phone asks three random neighbors, "What time is it?" If two of them say "1:00 PM," your phone adopts that time. If they disagree, it picks a new random time to try again.
  • The Result: Within minutes, the whole crowd's phones sync up, even without the internet.

4. The "Ghost" Delivery (Anonymity)

In a normal chat, your phone says, "Hey, I'm sending this to Bob." The police can see that and know you are talking to Bob.

FoSAM uses Implicit Addressing.

  • The Analogy: Imagine you are in a crowded room and you shout a message into a megaphone, but you don't say a name. Instead, you say, "This message is for whoever holds the 'Blue Hat' key."
  • Everyone in the room hears it.
  • If you don't have a Blue Hat key, you ignore it.
  • If you do have the key, you open it and read it.
  • The Magic: The police hear the message, but they have no idea who is holding the Blue Hat key. They can't tell who the message was for, even if they are standing right next to the receiver.

5. No "Handshakes" Required

Usually, to start a secret chat, you need to meet someone, scan a QR code, and exchange keys. This takes time and requires a stable connection.

FoSAM is like a Public Bulletin Board.

  • You just need the person's public "key" (like a username). You can get this from a poster, a flyer, or a QR code on a wall.
  • You don't need to talk to them first. You just start sending messages to that "username."
  • Because the system is based on time and public keys, you can add new contacts instantly, even in the middle of a chaotic event.

6. Does it Actually Work?

The authors built a prototype app for Android and ran massive computer simulations with thousands of "virtual protesters" moving around.

  • Speed: The encryption is fast enough for a smartphone.
  • Reliability: Even in messy, crowded scenarios with people moving in and out of range, 92% to 99% of messages got through.
  • Security: Even if 10% of the network was "bad actors" (police or spies) trying to mess with the time or steal keys, the system still worked and kept the past messages safe.

Summary

FoSAM is a messaging system designed for the "internet blackout" scenario. It treats time as a security feature. By automatically changing encryption keys every few minutes and synchronizing clocks through the crowd itself, it ensures that:

  1. Past messages are safe even if your phone is seized today.
  2. No one knows who you are talking to, even if they are listening.
  3. You don't need the internet to set up new contacts.

It turns a chaotic, unreliable crowd into a secure, self-healing communication network.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →