Services / Server hardening

Linux server hardening based on the CIS Benchmarks

We configure servers against a checklist based on the CIS Benchmarks. We disable services and ports the application does not use and tidy up accounts and SSH keys. The configuration lives in Ansible, so a new server has the same protection as the rest from day one.

Illustration: a server with a shield and a security checklist

System, service and web server settings

We start with a review: which services run, which packages are installed and how the system is configured. Then we apply a set of settings matched to the server role, without breaking the application.

  • System and kernel Secure kernel parameters, file permissions, event logging and automatic security updates where it makes sense.
  • Services and packages We disable services nobody uses and remove unneeded packages.
  • Web server and TLS Current TLS versions, security headers and no software version disclosure.
Illustration: user roles and their access to a server, database and directories

Accounts, SSH keys and permissions

We review system accounts, SSH keys, administrator rights and service accounts. We set who can access what, down to the server, service and directory.

  • Logins Key-only, with no direct root login. SSH and admin panels sit behind a VPN or an IP allowlist.
  • Role-based permissions We separate access for administrators, developers and applications. Administrator rights are granted for specific commands, not for everything.
  • Tidy accounts We remove unused accounts and keys. Every permission change lands in the event history.
Illustration: an external port scan of a server, only ports 80 and 443 open

Port scans and configuration drift checks

We scan servers from the outside regularly. Wazuh compares their configuration with the baseline and reports differences, for example after a manual change made in a hurry.

  • Ports visible from the internet Only services that must be public stay public. A newly opened port triggers an alert.
  • Drift from the baseline A manual change to a setting does not go unnoticed. We restore the baseline or update it deliberately.

How we work

We roll out changes gradually, starting in a test environment.

  1. Review We check configuration, services, accounts and ports. You get a prioritised list of gaps.
  2. Implementation We make the changes in Ansible, test the application and only then move the configuration to production.
  3. Upkeep We watch for drift, update the baseline and apply it to new servers. The servers are also covered by security monitoring and regular vulnerability scans.

Questions

Can hardening break the application?

It can if changes go in untested. That is why we start in a test environment and agree any settings that conflict with the application with the team that develops it.

Is this CIS compliance?

We use the CIS Benchmarks as a reference and match settings to the server role. We do not issue a compliance certificate. The review shows which recommendations are in place and which were deliberately skipped.

Do you cover cloud servers?

Yes. We apply the same rules to machines on AWS, Azure and Google Cloud, plus network and permission settings on the cloud provider side.

Want to check how your servers are configured?

Tell us how many servers you have and what they do. We will propose the scope of the review and the implementation.

Contact us