Hardening the LiquidFiles virtual appliance
LiquidFiles aims to be secure on default, and it is. And there are a couple of things you can do or verify to improve the security on your LiquidFiles system, especially if it's been running a few years.
Add an Ubuntu Pro License
If you're interested in security or compliance, we recommend that you sign up for and enable an Ubuntu Pro license to enable commercial support from Ubuntu as well as additional security measures for compliance with certifications such as: DISA-STIG, FedRamp, NIST, Sarbanes-Oxley (SOX), HIPAA, FISMA, Center for Internet Security (CIS), Common Criteria, PCI, ISO 27001, FIPS 140 and Cyber Essentials.
Use Public Hostname in URLs
We recommend that you set the setting Use Public Hostname in URLs in Admin → System → Hostname & URL. The reason this setting isn't set as default is that firstly it makes it impossible to use the Getting Started function in LiquidFiles before a proper Public Hostname has been configured and working in your environment. You also need to be careful with this setting if you use a reverse proxy as it may cause a redirect loop. Enabling this setting will improve security as it address a couple of low risk vulnerabilities, Host Header Injection, and Leaking Private IP Address.
Defaults or Recommendations that sometimes gets changed
Automatic Updates
The default setting is that Automatic Updates are enabled, and we recommend that you keep it that way.
Some organizations think it will improve security if they manually test each release themselves before enabling it. This is good in both theory and practice if you are one of those rare organizations that call pull this off consistently. More often than not though, we come across systems that hasn't been updated in 3 years because of this belief but where the practice doesn't follow and since often LiquidFiles systems "just work", it never gets looked at and therefore never updated. Unless you have the discipline to actually do this consistently, security will be much improved if you keep automatic updates enabled.
Admin Security
Admin Networks
If you can, you can limit the networks Administrators can access both the web interface and the SSH Admin interface. The Admin web interface limit is configured in Admin → Configuration → Settings, in the Advanced tab. The SSH Admin access limit is configured in Admin → System → Console.
Sysadmin Access
We've lost count many times over the amount of support requests we get along the lines of — we've made some change with our Active Directory and now no one, including no administrators can login to LiquidFiles. While you can either add a new locally authenticated Sysadmin account by logging in to the console and run ft add_admin, or ft reset_admin to reset the first sysadmin account. The easiest way by far is to ensure you have at least one Sysadmin account that can access LiquidFiles that does not rely on any external authentication mechanism so you can login and start troubleshooting.
Multi-Factor Authentication
For day-to-day admin accounts, it's a good idea to enable one of the Multi-Factor Authentication mechanisms in LiquidFiles.
Protecting against automated attacks
Internet-facing systems are probed by automated tools that look for valid accounts and try passwords, often spread across hundreds of addresses. To see if/when your system is being probed or attacked, please see the Automated & Targeted Attacks article that walks through listing and blocking addresses that are probing or attacking your LiquidFiles system. LiquidFiles limits what these tools can do by default and for product and targeted attacks, they will be brute force limited. The settings below further reduce what they can learn and give you more warning. They are listed with the most important first.
Configure any reverse proxy correctly
If LiquidFiles sits behind a reverse proxy, load balancer or CDN, the protections below only work when LiquidFiles can see the real client address. Check both of these in Admin → System → Hostname & URL:
- Add the proxy as a Trusted Proxy. Without it, every request appears to come from the proxy. A single attacker then gets the proxy blocked, and with it everyone, and an address check such as Permitted Admin Networks sees only the proxy address. Enter the inside address of each proxy, the one LiquidFiles sees, in Trusted Proxies. Only add proxies you control, or your CDN's published ranges, as a trusted proxy can claim any client address.
- Use HTTPS end to end. Have the proxy connect to LiquidFiles over https and keep Protocol set to Force HTTPS, the default. Without it, LiquidFiles can't enable Secure Cookies or HSTS. SSL offloading to the proxy no longer improves performance on modern systems, and HTTP/2 is only available over https.
Please see Reverse Proxy Configuration for the details.
Require sender validation on Filedrops
Without validation, the sender address on a Filedrop submission is whatever the sender typed. To make external senders confirm their email address, enable Require User Validation in both of these places:
- Admin → Groups → each group, in the Filedrop tab, for that group's User Filedrops.
- Admin → Filedrops → each named Filedrop.
Turn off Friendly Error Messages
When Friendly Error Messages is enabled, registration and password pages can reveal whether an email address has an account. Unless your users need that guidance, disable it in Admin → Configuration → Settings, in the Basic Settings tab.
Protect Sysadmin accounts
- Set Strong Authentication to a Require option, such as TOTP Require, in Admin → Groups → Sysadmins, in the Authentication tab.
- Set Permitted Admin Networks in Admin → Configuration → Settings, in the Advanced tab. Include every address your administrators connect from. If they work from home, give them a fixed VPN range first so that you don't lock them out.
- Keep at least one Sysadmin account that doesn't depend on LDAP or SAML, as described in Admin Security.
Disable email-address Filedrops you don't need
A Filedrop URL that contains an email address lets anyone test whether that address is a user on your system. Where you don't need them, clear Users in this group have access to User Filedrops with Email URLs in Admin → Groups → each group, in the Filedrop tab. Existing links in that format stop working when you do this.
Use Permitted Extensions
A list of the file types you expect is stronger than a list of the types you want to stop, because a blocked list can never be complete. Set Permitted Extensions in Admin → Groups → each group, in the Access & File Limitations tab, and on individual named Filedrops in Admin → Filedrops.
Review the pre-shared SSO key
If you don't use Pre-Shared Key SSO, remove the SSO Secret Key in Admin → Configuration → SSO. The login method is disabled while the key is empty. If you do use it, generate a new key whenever someone who knew it leaves, and whenever you suspect it has been exposed.
Keep Brute Force settings close to the defaults
The Web Brute Force settings are in Admin → System → Firewall. LiquidFiles uses them for more than per-address blocking, as they also set the thresholds for two wider protections:
- Subnet blocking. Repeated failures from different addresses in the same /24 (IPv4) or /64 (IPv6) network block that whole network.
- Attack mode. Failures from many networks at once start a 30-minute period where a single failed attempt blocks an address.
Tighter settings make both of these start sooner. We recommend the defaults for Web Brute Force Check Count (5) and Web Brute Force Check Time (5 minutes). The default Web Brute Force Block Time is 15 minutes. You can raise it, but remember that during attack mode one mistyped password blocks that person's address for the full block time.
Sysadmins receive an email when a network is blocked or attack mode starts, with at most one email every 6 hours. The email links to the Firewall page, where you can review and remove blocks.
Whitelist your office and VPN ranges
Add your office, VPN and monitoring ranges to Web Brute Force Whitelist in Admin → System → Firewall. Subnet blocking applies to private ranges too, so without this entry a few people mistyping passwords behind one address range can block everyone in it.
Sign Up for the LiquidFiles Maillist
We have a low volume Mailist where we mainly announce primarily version updates. Should there be any important updates that we need to announce, the Maillist will be the fastest and easiest way for you to learn update such updates from us.
Conclusion
LiquidFiles aims to balance security and convenience for your users carefully, and we continously evaluate the choices we make for default values and change them as the threat landscape changes. Presumably you've ended up on this page because you have an interest in moving the needle from more convenience towards increased security and following these recommendations will improve the security for your LiquidFiles system.