Sneakernet’s security model is “enough cryptography to be prudent, but not enough trust with your life”. It’s not advisable to use sneakernet to organize direct action, for example, but otherwise it’s relatively secure and private.
Assuming you obtain your correspondents’ public keys securely, for example by exchanging them in person…
- All messages are authenticated as originating from the sender
- Private messages are only readable by the recipients they are addressed to
- Messages cannot be tampered with by an intermediary
These properties hold true regardless of who carries your message along to its final destination.
However!
- Sneakernet is not anonymous. The author of each message, public or private, is easily verifiable.
- It is straightforward to find out who is sending messages to whom.
- Sneakernet provides no forward secrecy. If your private key is disclosed, all of your messages, past, present, and future, can be decrypted.
Use sneakernet to have fun, not to get into trouble.
Technical details
Public messages
- Message header
- Message version
- Message type (private)
- TTL
- Nonce/message ID
- Sender public key
- Headers (cleartext)
- Payload (cleartext)
- Signature
A message hash is computed from SHA-256(nonce + headers + payload), which is used to uniquely identify the message.
The signature is ed25519(messge hash + nonce). It can be verified by anyone who receives the message (recipient or otherwise). One can also use the message ID, nonce, and signature together to verify the existence of a message with a given hash and nonce exists without actually having to download that message from a peer.
Private messages
Private messages are stored as follows:
- Message header
- Message version
- Message type (private)
- TTL
- Nonce/message ID
- Sender public key
- List of recipient public keys
- Payload (encrypted)
- Headers
- Payload data
- Key slots
- Signature
A message hash is computed from SHA-256(nonce + recipient public keys + encrypted payload), which is used to uniquely identify the message.
The signature is ed25519(messge hash + nonce). It can be verified by anyone who receives the message (recipient or otherwise). One can also use the message ID, nonce, and signature together to verify the existence of a message with a given hash and nonce exists without actually having to download that message from a peer.
The encryption uses XChaCha20 with a randomly generated session key. Each recipient key is converted into an x25519 public key, and a shared key for each recipient is derived with this x25519 key, then SHA-256(nonce + shared key + message hash) produces the obfuscation key. This key is XOR’d with the session key and the result is stored in the recipient’s key slot.