Security
What is protected, how, and what you should do yourself.
In short
- Every session is encrypted between the two computers. A server or relay in the middle passes the data along but cannot read it or change it.
- A password is never sent over the network, and a wrong guess reveals nothing that helps the next guess.
- Your server decides who may connect to enrolled devices, and each device checks the server's signed decision itself.
How a session is protected
- The two computers exchange a short greeting that says which version and sign-in methods they support.
- 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.
- 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.
- They then run the Noise protocol (
Noise_XX, orNoise_XXpsk3keyed 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
| Item | Protection |
|---|---|
| One-time password | 9 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 password | At least 8 characters. Stored only as an Argon2id key derived from it. |
| Direct connections | After 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 server | After 5 wrong passwords within a minute, the computer refuses password sessions through the server in the same way. |
| Dashboard sign-in | New 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 sessions | Last 7 days. The server stores only a hash of each session token. |
| API keys | Shown 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
- It can see which devices exist, when they are online, their system information, who connected to what and when, and how much data each session through its relay carried (never what the data contains).
- It can authorise a user to connect to an enrolled device, at the level an administrator granted, and say whether they may copy files.
- It can tell an enrolled device to restart or shut down (for a user allowed to control it), and set what the device may do by itself: have a password of its own, leave the server, allow file transfer.
- It cannot see or alter the screen, keystrokes, files, clipboard or chat of a session.
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
- Serve the dashboard over HTTPS.
- Create the first administrator immediately after installing, and turn on two-factor sign-in for administrators.
- Back up
server.keywith the database and keep both private. - Give installers an expiry and a limit, and revoke them when you are done.
- Grant View or Control rather than Manage unless someone needs to manage devices.
- Turn off File transfer allowed on computers, and the File transfer permission for users, where files need not be copied.
- Give API keys an expiry, keep them private, and delete those you no longer use.
- Use a long permanent password for unattended access, or none at all if you use server access.
- Leave signing in from afar off unless you need to reach a computer before anyone signs in: with it on, those allowed to control the computer can also try passwords at its login screen.
- Expose the direct-connection port (21420) to the internet only if you need it. Inside a network or VPN it is fine.
On the computer itself
- Humble Viewer's local control port (21421, reachable only from the computer itself) shows the current one-time password, ends sessions and changes the settings of the background service. It answers only programs of the person at the computer: on Windows those in the same Windows session, on Linux those of the same user (or root). On macOS any program on the computer can use it. This is the same information the Humble Viewer window shows on screen.
- On Linux with Wayland, Humble Viewer creates virtual input devices. The installed rule allows this only for the user logged in at the machine.
- A session that may copy files can read and write any file the background service can. On Windows the service runs as the system account. Copying files needs a password or grant that allows control; on a server, also File transfer allowed on the computer and the File transfer permission for the user. A session for files only that used the one-time password asks the person at the computer first.
- The Linux login-screen service runs as root, but keeps a single capability, sees no home directories, and offers no files, clipboard or sound.
Reporting a problem
If you find a security problem, report it privately to Humble Viewer support rather than in public.