Security

How your file is protected, what Fidant doesn't protect against, and how to tell us about a problem.

How the file is protected

Your browser encrypts the file with AES-256-GCM before it leaves your computer. The key is in the part of the link after #, which browsers never send to a server when they open the link. A request link from the Ask for a file page holds no key: the page and its sender each make a key pair and work out the key from them, and only the public keys pass through our server.

The file goes directly between the two browsers. If a network blocks that, the sender can allow our relay. If the relay is available, the file then passes through it instead, still encrypted. Between the two browsers, our server passes on a few small messages. Those that set up the connection are encrypted, so the server can't read them, except the sender's public key on the Ask for a file page, which isn't secret.

The recipient's browser checks the file's SHA-256 checksum, so a file that was changed or damaged on the way is not saved.

The pages may connect only to our own site and our server's own address. The Send a file page may also connect to 127.0.0.1 on your own computer, for a file the fidant command hands it and to tell the command when you chose something else instead. The send page may also connect to Slack's hooks.slack.com, which it does only when you click “Post in #channel” on a page opened from one of our Slack commands, to post the link, key included, into the conversation after a line that mentions you.

How it works, step by step

What it doesn't protect against

Anyone who gets hold of a link can open the file. Send each link only to the person it is for, over a channel you trust.

The sender's name is typed by the sender and not verified.

On the Ask for a file page, anyone who has your request link can send you a file of their own. The page answers the first sender that connects without asking you, so that sender learns your IP address and that the page is open, whoever it is. A hostile server can take the expected sender's place the same way. The optional key fingerprint is the only way to tell whether the sender is the one you expect. Neither can read the file the expected sender sends.

The two browsers see each other's IP address, the same as on a video call. Each browser asks our relay for its public address, so the relay sees both IP addresses and can usually tell that they belong together, even when the file goes directly. When the file goes through the relay, it also sees roughly how big the file is.

Your browser runs the code we serve it, from our storage at AWS through its CDN. We can change that code, and so can AWS, the automated jobs that release our code and set up our AWS services, and GitHub, which runs those jobs. Different code could read files, and could skip the safety number. The code is public, but browsers can't yet check that what they got matches it.

A computer that is already compromised can read the file before it is encrypted or after it is unlocked.

Fidant has not been independently audited yet.

You can run a command on your own computer that builds the code in the production branch on GitHub, which fidant.se is released from, and asks fidant.se for the same files. It shows that, at the addresses it asked for and at that moment, fidant.se answered with the same file contents. It doesn't show what other visitors or browsers get, other addresses, the headers sent with the files, or our server, and it doesn't show that the code is safe. The command runs that code on your computer and relies on GitHub's answer for which version fidant.se runs.

How to check what fidant.se serves

The fidant command

This page covers the web app. The fidant command sends from a terminal with the same encryption. Its own page says what it does differently and what it leaves behind.

The fidant command

Report a vulnerability

Please report security problems privately through GitHub, not in a public issue. We'll reply there.

Report privately on GitHub