Security

How to secure a server: a starter checklist

The order we use on a fresh server and on an audit: access first, then patching, network, restore drills and monitoring.

Server security is not a product installed once. It is a set of defaults, permissions and routines that keep holding when someone is tired, a certificate expires, or a service nobody remembers still listens on a port.

The checklist below is the order we apply to a new server and to an audit of an existing one. It starts with access, because most real incidents begin with a credential rather than an exploit.

What you protect, and from what

Four things are at stake: the data, the credentials that reach it, the availability of the service, and the trust of the customers whose information you hold. The threats are ordinary: scanners, credential stuffing, unpatched services, exposed administration panels.

Human factors matter as much. A shared password, an account belonging to someone who left, a backup on the same disk as the data, a staging environment holding production credentials. Priorities should follow likelihood, not drama.

  • Data and credentials: the loss that is hard to undo
  • Availability: an exposed service is also a target for flooding
  • Scanning finds open panels, databases and default passwords
  • Stale access and manual mistakes cause as many incidents

Need help applying this?

Tell us about your setup and constraints — we will reply with the options we would consider, including the ones that do not need us.

Discuss your project

Access and authentication

Disable password login for SSH, allow keys only, one per person, with root login off and administrative work through sudo. Give each engineer a named account, remove it when they leave, and restrict sources that may reach the management port.

Protect the accounts around the server as carefully as the server. Multi-factor authentication on the hosting panel, DNS provider and registrar prevents a takeover that no local hardening would survive. Secrets belong in a manager.

  • Key-based SSH only, root login disabled, one key per person
  • Multi-factor authentication on the panel, DNS and registrar
  • An access review when roles change or someone leaves
  • Administrative interfaces behind a VPN or an allowlist

Updates, configuration and the network

Patch the operating system, runtime and dependencies on a schedule, with a maintenance window and a record of what was applied. Remove services nobody uses, because every listening process is a decision someone has to defend.

A firewall should deny inbound traffic by default and allow only what the service needs, with management ports limited by source. A web application firewall helps against known patterns and rate limits, but needs tuning.

  • A patch cadence with a defined window and a written record
  • Default-deny firewall, minimal ports, admin access limited by source
  • A WAF and rate limits in front of the application, tuned
  • TLS everywhere, with automated renewal and an expiry alert

Backups and restore drills

Back up onto separate storage, with at least one copy the server cannot delete or encrypt. Keep database dumps consistent rather than copying files from a running engine, encrypt the archive, and set retention from business need.

An untested backup is a hope. Restore onto separate hardware on a schedule, measure how long it takes, confirm the application works, and write down what broke. The number that matters in an incident is measured restore time.

  • Backups on separate storage, with a copy the server cannot reach
  • Consistent, encrypted dumps rather than copies of running files
  • A restore run on separate hardware, with the duration recorded
  • Backup access separated from server access, so one key is not enough

Monitoring, logs and what to do after an incident

Watch availability, disk pressure, memory, certificate expiry, backup completion and failed logins. Ship logs off the host with retention long enough for an investigation, and send alerts to a channel someone reads. Test the alert path.

If an incident happens, contain before investigating: isolate the host, revoke credentials, restore from a known-good copy, then establish the cause. Afterwards rotate every reachable secret, review access, and write the timeline down.

  • Alerts for availability, disk, logins, certificates and backups
  • Logs off the host, with retention that outlasts an investigation
  • Contain, revoke, restore, then investigate, in that order
  • After an incident, rotate credentials and write the timeline

Key takeaways

  • Access control and patching prevent more incidents than any product.
  • A backup that was never restored is an assumption, not a plan.
  • Monitoring and logs decide how quickly an incident is contained.

FAQ

Have a decision to make this quarter?

Tell us what has to run, who owns it today and what breaks under load. We will reply with the options we would consider, including the ones that do not need us.

Contact page