DML School of Technology
Menu

Open to everyone Reading, lesson 29 of 100, 2 min read

Hardening laptops and servers

What hardening means

Hardening is reducing a system's attack surface and tightening its settings so that fewer things can go wrong. A freshly installed system usually favours convenience; hardening shifts the balance towards safety.

A hardening checklist for a laptop

  1. Updates: automatic, for the operating system and every app.
  2. Accounts: a standard account for daily use; a separate admin account; no guest account; strong sign-in, with a PIN or biometrics backed by a strong password.
  3. Screen lock: after a few minutes of inactivity.
  4. Disk encryption: BitLocker or Device Encryption on Windows, FileVault on macOS. Keep the recovery key somewhere safe.
  5. Remove software you do not use, especially old browser plug-ins and trial programs.
  6. Firewall on.
  7. Browser: up to date, few extensions, pop-ups blocked, downloads checked.
  8. Remote access (remote desktop, screen-sharing tools) off unless needed.
  9. Macros in office files blocked when they come from the internet.
  10. Backups running (next lesson but one).

For servers

Servers add more:

  • Only the services the server exists for; everything else stopped and disabled.
  • SSH with keys instead of passwords, and no direct sign-in as root.
  • A firewall allowing only required ports, from required addresses.
  • Logs sent somewhere the server's own admin cannot quietly delete them.
  • Regular comparison with a published baseline, such as the CIS Benchmarks, which give step-by-step settings for common systems.

Configuration drift

Systems slowly drift away from their hardened state as people make "temporary" changes. Write your settings down, or better, apply them automatically with configuration tools, and check them regularly.

Note

If you took the Linux Server Administration course, you hardened SSH and set a firewall. That was hardening in practice.