# Session Messenger

Since **v1.2.0** the box ships the [Session Messenger](https://getsession.org): no phone number, messages via onion
routing. Inside the box it additionally runs **forcibly over Tor** — Session itself has no proxy option.
Start: box menu (`🧅 ☰`) → **💬 Session (onionpod build)**.

> Unofficial build: from the official source code, but with our changes (below). onionpod is not affiliated with the
> Session Technology Foundation; “Session” is its trademark. Please report problems with this build to onionpod, not
> to the Session team.

**Optional:** the installer asks whether Session should be included (default: no — the one-time build takes
~15–20 min and ~470 MB). Switch later: `onionpod config --set session on` or `off`. Switching off keeps your Session
data in the box; after switching back on your account is still there.

## ⚠️ First: set an app password

**Mandatory.** Without an app password the key of Session's database lies next to it in plain text (`config.json`) —
whoever has the file can read all messages. With an app password the database is **re-encrypted with the password**,
the old key no longer opens it; Session then asks for it on every start.

In Session: **Settings → Privacy → (at the bottom) Passwords → Set Password → Set** (its own password, not the lock or vault password).

## What we change — and what we don't

Session is **built from source** on install, in a **pinned version**, with our hardening as small patches. No fork, no
auto-updates: a new Session version only comes with an onionpod update whose patches are adapted and tested — so the
installation doesn't rain errors.

| onionpod | Session |
|---|---|
| 1.2.0 | v1.18.1 (commit `1937a3cb…`) |

| Hardening | Why |
|---|---|
| **Guard test with a throwaway ID** | Session checks entry nodes with a direct request — containing your own Session ID. IP and account would be linkable. |
| **Auto-update off** | Updates only via onionpod (checked version + patches). |
| **Spell check off** | Electron otherwise downloads dictionaries from Google. |

**Remains (honestly):**
- **No forward secrecy** in 1:1 chats, **communities not end-to-end** — that's the protocol; no box can change it.
- Identity with 128 bits of randomness (256 bits would mean a new account that no longer works with the phone app).
- Electron is weakly isolated (`nodeIntegration`, no `contextIsolation`) and runs with **`--no-sandbox`**: Chromium's own
  sandbox needs rights the workspace deliberately doesn't have. The box does the isolation — a break-in ends up in the
  box, not on your computer.

## Data

`~/.config/Session` in the box = its own volume (`onionpod-session`): kept, not reachable from outside, but like all box
data stored **unencrypted** on disk (root can see it) — hence the app password.
Files from Session to the outside: via the [vault “Transit”](./transit.md).
