Security

How Mirall protects your files

What is protected, what isn't, and what each party along the way can see. Mirall's source code is public, so every statement on this page can be checked against it.

Who can see what

Mirall has no server that holds your files. They move directly between the computers of the people you share with, so what matters is what each party along the way can see.

The members of your spaces see the files you share with them, once they download them, and your profile: display name, avatar, the names of the folders you share, and whom you approved. They can't see the files in spaces they aren't in.

A relay, if a connection needs one, sees the addresses of both computers, when they talk, how much crosses, and the key each end presents to it. It can't see your files, their names, your spaces, or who either end is in Mirall.

The discovery network, public nodes Mirall doesn't run, sees your IP address and the identifiers your spaces are announced under. Nothing inside a space.

Mirall sees your IP address and a key that changes every launch, when your app connects to look for updates, and feedback, only when you send it. Never your files, your spaces or the people you share with. There is no account, no analytics and no crash reporting.

Your organization, on a computer it manages, sees the computer's name, its Mirall version and operating system, which managed settings are in effect, and whether its backup works. Never your files, your spaces or the people you share with.

On the way between computers

Every connection is encrypted end to end between the two computers, with the Noise protocol (the IK handshake, Ed25519 keys) and then XChaCha20-Poly1305. A relay forwards that encrypted stream without ever holding a key to it. Relays, and what they can see explains what that does and doesn't hide.

Before two computers exchange anything about a space, each proves who it is: messages about membership carry a signature by the person's identity key, bound to that one connection. Files are served only to approved members of a space that holds them, and a refusal looks the same as a file that isn't there.

Every chunk of a file is checked against its BLAKE2b-256 hash as it arrives, and the finished file against the hash its owner published. The Verified mark next to a file means exactly that: it matches what the person who shared it published.

Who gets into a space

A space is reached through an invite link. Anyone holding a live link can ask to join, so pass it on through a channel you trust. Asking is not getting in: a space's contents are encrypted with a key of its own, and that key is handed over, sealed to the newcomer's identity, only once an existing member approves them. A link stops working at the expiry its creator chose.

Auto-approve skips that review: with it switched on, anyone holding the link is let in. Any member of a space can approve a request. Membership & approval covers the model in full.

On your computer

Mirall encrypts its own records: your spaces and their members, your downloads, the folders you mirror, and the activity log, which never leaves your computer unless you export it. Your identity key is encrypted with a key that the operating system's keychain protects, so a copy of Mirall's data folder can't be used to pass for you.

Your files are not encrypted by Mirall. What you share stays where it is on your disk, and what you download or mirror arrives as ordinary files. On a lost or stolen computer, what protects them is your operating system's disk encryption.

Your profile is not encrypted either, because the members of your spaces read it from you: your display name and avatar, the names of the folders you share, whom you approved and the invite links you made.

On Linux without a keyring service such as GNOME Keyring or KWallet, the identity key can only be wrapped with a fixed key, so disk encryption is what protects it. The Profile page shows which protection your computer has.

A backup is encrypted with XChaCha20-Poly1305. Its key is derived from your passphrase with Argon2id, and a passphrase must be at least ten characters. The backup folder together with the passphrase restores your whole identity, so keep the passphrase somewhere other than next to the backup.

Updates and builds

Mirall updates itself over its own peer-to-peer channel. Every update is signed with Mirall's release key, and the app only ever moves to a newer version. As with any app that updates itself, whoever holds that key can ship a new version to every installation. You can set Mirall to ask before it downloads an update.

macOS: signed and notarized by Apple.

Windows: the MSIX package is signed with a code-signing certificate.

Linux: the AppImage and the .deb package are not signed. The .deb package doesn't update itself.

The app's windows run sandboxed, with no access to Node.js from the page, and the build switches off Electron features an attacker could use to run code through the app.

Computers an organization manages

With Mirall for Studios, an organization can manage some settings on the computers it looks after. Each configuration it publishes is signed by the Mirall Console, whose key is built into the app, and encrypted so that only the computers holding the license keys it was published to can read it. A computer refuses a configuration that is older than the one it already has.

Settings come in two kinds. Security settings, such as requiring the activity log or a backup, can only ever be made stricter: the Console refuses to relax one, and so does the app. Policy settings, such as the relay, are honoured by the app but not enforced by cryptography, so a modified copy of Mirall could ignore them. The person at the computer can always see what is managed, and can leave the organization, which hands their settings back to them.

A managed computer reports its name, Mirall version, operating system, the settings in effect and whether its backup works. Never its files, its spaces, or who it shares with. The privacy policy has the details.

Limits worth knowing

Both computers have to be online. No server keeps a copy, so a file is only available while the person who shared it is.

On a direct connection, the other computer sees your IP address. A relay carries a connection only when a direct one can't be made, so using one doesn't guarantee your address stays hidden.

Nobody can be removed from a space. People leave on their own, and a space's key is never replaced. If someone should no longer see what a space shares, create a new space without them.

Whoever holds an invite link can ask to join until it expires, and gets straight in if the space auto-approves.

Audits and source code

Mirall has not had an independent security audit yet. Its source is public under the AGPL-3.0 in the Mirall repository on GitHub, so everything on this page can be checked against the code.

Reporting a vulnerability

Please don't report a security problem in a public issue. Report it privately instead:

Report a vulnerability on GitHub, preferred. The report stays private between you and us.

Email security@mirall.app, if you don't use GitHub.

Tell us what you found, how to reproduce it, and which Mirall version and operating system you used. Only the latest release is supported, so check the problem is still there after updating. The security policy has the details. This site's security.txt lists the same contacts.

Mirall news

Know when the next release ships.

An email when a new version of Mirall is out, and now and then an offer. Nothing else, and never from anyone but us.

  • Release notes, in plain words
  • One click to unsubscribe

By subscribing you agree to receive release news and occasional offers from Mirall by email, sent with CleverReach. We send a confirmation link first, and you can unsubscribe at any time. See the Privacy Policy.