# Security overview

A file transfer server stands at the edge of a network and holds other people's files and logins. This page is the map of what CrushMFT does to protect them, and where each part is set.

## Who gets in

| Subject | Page |
|---|---|
| every way a person or a program can sign in, by protocol | [Every way to sign in](Security-Sign-In-Methods.md) |
| passwords: rules, expiry, how they are stored | [Passwords and password rules](Security-Passwords.md) |
| keys instead of passwords, for SFTP | [SSH keys](Security-SSH-Keys.md) |
| a second factor: authenticator apps, codes by mail or SMS, passkeys | [Two-factor sign-in](Security-Two-Factor.md), [One-time codes by mail and SMS](Security-OTP.md), [Passkeys and security keys](Security-WebAuthn.md) |
| certificates on the user's side | [Client certificates](Security-Client-Certificates.md) |
| sign-in with the login of a Windows domain | [Kerberos single sign-on](Security-Kerberos.md) |

## What they may do

| Subject | Page |
|---|---|
| what a user may do with files | [Permissions](VFS-Permissions.md) |
| what an administrator may do, in parts | [Roles and access](Security-Roles.md), [Making and changing roles](Security-Roles-Editor.md) |
| scripts and AI tools with a slice of somebody's rights | [Access tokens with a time limit](Security-Roles-Tokens.md) |
| administrators of an earlier version | [Roles after upgrading from 11](Security-Roles-from-11.md) |

## Who is kept out

| Subject | Page |
|---|---|
| password guessing and floods | [Bans and hammering](Security-Bans.md), [Login frequency and slow logins](Security-Login-Load.md) |
| rules by address, on three levels | [IP restrictions: server, port and user](Security-IP-Restrictions.md) |
| requests forged by other web sites | [Protection against cross-site requests](Security-CSRF.md) |

## What is protected on the way and at rest

| Subject | Page |
|---|---|
| certificates for HTTPS and FTPS | [Getting and installing certificates](Security-SSL-Certificates.md), [Converting keys and certificates](Security-SSL-Converting-Keys.md) |
| trusting the servers CrushMFT connects to | [Certificate pinning](Security-Certificate-Pinning.md) |
| the passwords and keys the server itself stores | [Secrets on disk](Security-Secrets-at-Rest.md) |
| what the logs hold and what they never hold | [What never reaches a log](Security-Log-Privacy.md) |
| files encrypted on disk | [PGP](Prefs-Encryption-PGP.md), [Encryption](Prefs-Encryption.md) |
| validated cryptography | [FIPS mode](FIPS-Mode.md) |

## Putting it together

| Subject | Page |
|---|---|
| what to change on a new server before it goes online | [Hardening checklist](Security-Hardening.md) |
| past vulnerabilities, signs of a break-in, what to do | [Security advisories](Security-Advisories.md) |
| what the product offers towards audits | [Certifications and compliance](Security-Compliance.md) |

## Five things that matter most

1. **Stay current.** Nearly every break-in into a file transfer server uses a hole that was already fixed. Let the server update itself, or update on the day a release is announced.
2. **Keep administration away from the internet.** Administrators sign in from addresses you name, on a port the public does not reach. Never use an obvious name for the main administrator.
3. **A second factor for everybody who administers**, and for users wherever their tools allow it.
4. **Only encrypted protocols.** No plain FTP, no plain HTTP except to redirect.
5. **A DMZ server in front**, where the licence allows: the machine the internet reaches then holds no users, no files and no settings.

The [hardening checklist](Security-Hardening.md) goes through these and the rest, step by step.
