Security

What is protected, how, and what you should do yourself.

In short

How a session is protected

  1. The two computers exchange a short greeting that says which version and sign-in methods they support.
  2. With a password: they run SPAKE2, a password-authenticated key exchange, on a key derived from the password with Argon2id. Both sides prove they know the password without revealing it. Someone listening learns nothing to test guesses against later; someone in the middle gets one guess per password per connection attempt.
  3. With server access: the server issues an Ed25519-signed ticket naming the user, the device, the session, the access level, whether the user may copy files, and the controller's key, valid for two minutes. The device checks the signature against the server key it stored when it enrolled, that the ticket is for itself and this session, and that it was issued to the key the controller uses in this connection. The controller in turn checks that the device's key is the one registered with the server.
  4. They then run the Noise protocol (Noise_XX, or Noise_XXpsk3 keyed from the SPAKE2 result when a password is used, with X25519, ChaCha20-Poly1305 and BLAKE2s) to agree on session keys. The greeting from step 1 is bound into this step, so it cannot be altered in transit.

Each time an enrolled device connects to its server, the two prove who they are to each other with Ed25519 signatures: a device does not take a server with a different key for its own.

Hover over the lock in the session toolbar to see the remote computer's key fingerprint. The same fingerprint is shown on that computer under Settings → This device.

Passwords and guessing

ItemProtection
One-time password9 random characters (shown in three groups, like j74 fwk hz3), replaced after each session that used it, and on demand with the refresh button.
Permanent passwordAt least 8 characters. Stored only as an Argon2id key derived from it.
Direct connectionsAfter 5 wrong passwords from one address within a minute, that address is refused until a minute has passed without a wrong one.
Connections through a serverAfter 5 wrong passwords within a minute, the computer refuses password sessions through the server in the same way.
Dashboard sign-inNew passwords are at least 12 characters, with an uppercase and a lowercase letter, a number and a symbol. Passwords are stored as Argon2id hashes. After 5 failed attempts for a user from one address, sign-in is blocked for 5 minutes. Two-factor codes, required in new organizations.
Sign-in sessionsLast 7 days. The server stores only a hash of each session token.
API keysShown once when created; the server stores only a hash. They last 1 to 3650 days, or until deleted.

What the server can and cannot do

Because the server authorises access, whoever controls an administrator account or the server's data folder can grant themselves access to enrolled devices. Protect the server accordingly.

What you should do

On the computer itself

Reporting a problem

If you find a security problem, report it privately to Humble Viewer support rather than in public.