Hardening is the process of removing everything a server does not need, so there is less to attack, less to patch and less to misconfigure. It is not a product and it is not a one-off switch - it is a documented baseline you build to, check against and re-check over time.
The baseline below is what we work through when we build, migrate or audit a server for a small or medium business. It is deliberately tool-agnostic: the principles hold for Windows or Linux, physical or virtual, on-premises or cloud-hosted.
Before you start
Hardening changes live systems. Take a working backup or snapshot first, change one thing at a time, and keep a rollback path. If the server is in production, agree a change window before you start.
1. Build from a known-good starting point
- Install from verified media and apply current updates before exposing the server to the network.
- Remove or disable vendor demo accounts, sample data and default web content.
- Record the operating system edition, version and patch level in your asset register.
- Standardise: a server you build the same way twice is a server you can rebuild quickly.
2. Reduce the attack surface
Every listening service and installed role is something an attacker can reach or something you must patch. Keep only what the server is for.
- List the roles and features actually required; remove the rest.
- Disable unused services, protocols and ports, and verify with a listening-port check.
- Remove unnecessary user accounts and groups; rename default administrator accounts where the platform allows it.
- Uninstall trial software, development tools and browsers from production servers unless required.
- Collapse remote administration to one audited route.
3. Access control
- Individual named accounts for administrators - no shared admin logins.
- Least privilege: the minimum rights needed, for the shortest time needed.
- Separate day-to-day accounts from administrator accounts.
- Strong authentication for all remote and administrative access.
- Automatic lockout for idle sessions, and an offboarding process that removes access the same day.
- Review who has access every quarter and remove what is no longer needed.
4. Patching and maintenance
- Define a maintenance window and stick to it - unplanned patching is how outages happen.
- Test significant updates on a non-production system first where one exists.
- Keep firmware (BIOS, RAID, NIC, disk) in the maintenance plan, not just the operating system.
- Track exceptions: anything deliberately unpatched gets a written reason and a review date.
- Verify after patching that services started and backups still run.
5. Logging, monitoring and backups
- Enable security-relevant logging: authentication, privilege changes, service failures.
- Send logs somewhere the server itself cannot erase them.
- Monitor disk space, service health and certificate expiry - the boring failures cause the longest outages.
- Back up the server, and restore-test it on a schedule (see our restore-testing checklist).
- Document what 'normal' looks like, so unusual activity is recognisable.
6. Verify the baseline
A hardening claim is only as good as the verification behind it. Re-check after every build and migration.
- Run an independent configuration review against this baseline and record deviations.
- Confirm no unnecessary ports are listening from a machine outside the server.
- Confirm logging reaches its destination and an alert fires when you trigger a test event.
- Confirm the restore test succeeded, not just that the backup job ran.
- Store the result with the server documentation so the next audit starts from evidence.
In short
- Remove what you do not need - less software means less to patch and less to exploit.
- Named accounts, least privilege and one audited administrative route.
- A baseline only counts when someone verifies it and records the result.
- Backup and restore-test every server you harden.
Related service
IT Infrastructure & Systems Administration
Network design and installation, structured cabling, server deployment, configuration, hardening and ongoing systems administration — engineered and documented to a standard your business can maintain.
Explore this service