What protects you, and what doesn't

Each risk, and what in Fidant stands against it.

And the risks Fidant can't protect you from, such as someone else getting hold of the link.

How Fidant protects you

The earlier steps explain each part.

How Fidant protects you
The riskWhat Fidant does
Our server or our host reads the fileThe file is encrypted in your browser, with a key from the part of the link after #, which browsers never send to a server when they open the link. Only someone with the link can decrypt it. On the Ask for a file page, the key comes instead from a key exchange between the page and its sender, and the request link holds only a public key. All of this rests on the code we serve being the published code (see What it doesn't protect against; for the fidant command, see /how/cli).
Our server puts itself between the two browsersThe setup messages are encrypted and bound to their link, attempt and direction. They carry the fingerprints of the WebRTC encryption, which the server therefore can't swap for its own.
The networks on the way or our relay read the trafficTwo layers of encryption: WebRTC's DTLS, and AES-256-GCM under a file key only the two ends have, new for every attempt.
The traffic gives away the file name, the exact size or a secret's lengthName, type and size travel only encrypted, in a frame of fixed size. A file is padded so its size shows only roughly, and every shared secret is padded to the same single chunk.
A piece of the file is changed, dropped, repeated or reorderedEvery frame is authenticated and numbered, and the recipient checks the size and the SHA-256 checksum. A frame or a checksum that doesn't check out stops the transfer and throws away what was written.
A link is opened twice, or by someone else after deliveryA link is refused once its file is delivered, and in a second tab while one is connected to it.
A file disguised by its name, or one that runs as a pageNames that hide their real ending with text direction characters are refused, and downloads are always plain binary data.
A shared secret lingers in the browserOn the recipient's side it is never downloaded or put in a form field, and translation is off. The sender's text box tells the browser to keep spelling, autocomplete, writing suggestions and translation off it. The shared secret can still linger in two ways: a browser can save the sender's text box with its session, and a copied secret stays on the clipboard (see What it doesn't protect against).
Data left behind on our machinesNo accounts, no storage of the files people send and no database of people or transfers, apart from mail you send to limit@relay.fidant.se. Amazon SES stores it raw, with your address, name, text, attachments and headers, in AWS's Stockholm region. A maintainer reads it by hand. Amazon can read it too, and so can the automated jobs that set up our AWS services, through what they set up. It is kept until 30 days after it arrives, and Amazon S3 removes it after that. Each mail also sends us an alert with its size, a checksum of it and the time it came, which we keep until we delete it. AWS keeps counts and sizes of these mails, and when they came, in its own metrics, which it keeps for up to 15 months, and in our bill. They name no one, but on a quiet day they can show roughly how big one mail was and when it came. The server holds what it knows about pages only in memory, apart from the lines it logs, and forgets a page within a minute after the page disconnects. The server's logs have fixed fields and never hold names, keys, file data or IP addresses. Log lines are kept for 14 days, and then AWS deletes them, usually within 72 hours. The CDN, its firewall and the load balancer have their request logs off, AWS's security analytics included. What AWS still keeps about them is under What is left behind. The relay keeps no log of the traffic by default. While the relay renews its certificate, it logs the addresses that reach it on port 80, never those of the browsers in a transfer, and keeps them for about five weeks.
Tracking, or code from other sitesHTTPS only, no cookies, no third-party scripts or trackers, and a Content Security Policy that allows code only from our own site.
You don't want your traffic through our relayThe relay is off unless the sender allows it. Until then our server gives no relay credentials, and the sender's browser ends a relayed connection it sees.

The site itself

The site is served only over HTTPS, and browsers are told never to use plain HTTP for it. Sending and receiving refuse to run without a secure connection.

A Content Security Policy lets the pages load code, styles and fonts only from our own site, and connect only to our own site and our server's own address, and stops other sites from showing them in a frame. The send page, in English or Swedish, may also connect to hooks.slack.com, for “Post in #channel”. The Send a file page, in English or Swedish, when it is opened by loading the page (the address the fidant command opens, or the Swedish one a Swedish browser is sent on to), may also connect to 127.0.0.1 on your own computer, and a page you move to from it without reloading keeps that. It uses 127.0.0.1 only to read a file the command hands it and to tell the command when you chose something else instead, but the policy would let our code on that page reach any service on your own computer that answers such requests. There are no cookies, no third-party scripts and no trackers.

The setup WebSocket refuses connections opened from other sites. Limits protect the server from overload: connections in total and per address, messages per connection, pairings per link, links per sender and the size of each setup message.

What it doesn't protect against

The link is the key. Anyone who gets a link can open the file or shared secret behind it until the link has been used. Send each link only to the person it is for, over a channel you trust.

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.

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

A request link from the Ask for a file page holds no key, but anyone who reads it can send you a file of their own, and the first sender to connect learns your IP addresses and that the page is open. A hostile server can do the same by swapping the sender's key. Only the optional key fingerprint shows whether the sender is the one you expect.

The other browser sees your IP address. Each browser asks our relay for its public address, so the relay sees both IP addresses and can usually tell that they belong together. The networks on the way, and our relay when the file goes through it, also see when the transfer happens and roughly how big the file is. Our server sees both IP addresses, which recipient connects to which sender and when, and how many recipients a sender has. If a transfer's connection drops and the recipient's page asks our server again, it sees that too, and when. If a page's connection to our server drops and the page takes its place back, it sees that the new IP address belongs to the same transfer. AWS's load balancer in front of our server sees all of this as well, because it decrypts the connection. The CDN sees which pages each IP address loads, including the link ID in the address of a recipient's page. So our server learns who sends to whom, though not what.

Malware on either computer can read the file before it is encrypted or after it is decrypted.

When the recipient copies a shared secret, it goes to the device's clipboard, where clipboard history, clipboard sync to other devices and other apps can read it. Once a shared secret has been shown, Fidant can't reach it: it can't take it back or delete it.

Fidant has not been independently audited yet.

Planned: verified transfers

Not built yet. The plan: the recipient signs a receipt with BankID before they can open the file, and the receipt names the file. The key is split, and our server releases its half only after the receipt is signed. Events go into an audit log that makes tampering visible, anchored with trusted timestamps.

When it ships, this page will describe it as a new mode.

The design records on GitHub