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.
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.
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.
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.
- Review We check configuration, services, accounts and ports. You get a prioritised list of gaps.
- Implementation We make the changes in Ansible, test the application and only then move the configuration to production.
- 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.
Checklist
We check system, service and web server settings item by item against the CIS Benchmarks.
Keys and accounts
Key-only logins, separate accounts for people and applications, unused access removed.
Open ports
Only what must be public is visible from the internet. A newly opened port raises an alert.
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