Building a hardening baseline with CIS Benchmarks

I-1

Start from the CIS Benchmark for each technology, apply Level 1 broadly and Level 2 where risk justifies it, record every exception and check for drift.

Published · By National Front Corp.

Start from the CIS Benchmark for each technology you run, apply the Level 1 profile broadly and Level 2 where the risk justifies it, and write down every setting you deviate from and why. Then enforce the result through code or configuration management and check for drift on a schedule, so the baseline is still true six months after it was applied.

A hardening baseline is the written set of configuration settings that each type of system must meet. Here is how to build one that your team can keep in place.

What is the difference between CIS Controls and CIS Benchmarks?

Both come from the Center for Internet Security, a non-profit organization, and they are easy to confuse.

The CIS Controls describe what a security program should do. Version 8, updated to 8.1 in 2024, contains 18 controls broken down into specific safeguards. The safeguards are grouped into three Implementation Groups, so smaller organizations can start with the essential set (IG1) and add more as they mature. Control 4, Secure Configuration of Enterprise Assets and Software, calls for a documented secure configuration process for your systems.

The CIS Benchmarks describe how to configure one product securely. There are separate benchmarks for Windows and Linux operating systems, macOS, the major cloud platforms, Kubernetes, databases, web browsers, network devices and more, each developed through a consensus process with practitioners and vendors.

In short, the Controls tell you that you need a secure configuration; the Benchmarks give you a starting point for what that configuration is.

What are Level 1 and Level 2 profiles?

Each benchmark groups its recommendations into profiles:

  • Level 1 covers settings that improve security with limited impact on functionality. They are intended for most systems.
  • Level 2 adds defence-in-depth settings for environments where security matters more than convenience. They can reduce functionality or break applications, so they need testing.

Some benchmarks add further profiles for particular roles or features, such as separate profiles for domain controllers and member servers. Every recommendation comes with a rationale, an impact statement, an audit procedure and a remediation procedure, and it is marked as automated or manual depending on whether a tool can check it. The impact statement is the part to read most carefully before you apply anything.

A sensible default is Level 1 everywhere, and Level 2 for identity systems, internet-facing servers and systems holding sensitive data.

How do you turn a benchmark into your own baseline?

A benchmark is a reference, not a baseline. The baseline is your decision about each recommendation.

  1. List your system types. Operating system versions, cloud accounts, network device models and databases, each mapped to the benchmark version that applies.
  2. Choose the profile for each system type.
  3. Review each recommendation with the operators who run those systems, and decide whether to adopt it, adapt it or record an exception.
  4. Write the baseline with the setting, the required value, the reason and the benchmark reference, so a new operator understands why each setting exists.
  5. Pilot it on a small group of systems, then roll it out in planned change windows with a rollback step.
  6. Verify with a scan that the systems now match the baseline.

Good infrastructure hardening spends as much time on steps 3 and 5 as on the settings themselves, because that is where outages are prevented.

Why do you need an exceptions register?

No real environment meets every recommendation. A line-of-business application needs an old protocol, a vendor supports only a specific configuration, or a setting conflicts with a monitoring tool. Unrecorded, those deviations look exactly like mistakes.

An exceptions register turns them into decisions. Each entry records:

  • the setting and the systems affected;
  • the business reason;
  • the compensating control, if there is one;
  • the person who owns the risk and approved the exception;
  • an expiry or review date.

Configure your scanning tools to recognize approved exceptions, so compliance reports show real drift rather than known deviations. When an exception expires without review, it returns as a finding.

How do you detect configuration drift?

Drift is the slow return of insecure settings after the baseline is applied. It comes from manual fixes made under pressure, software installations that change defaults, new systems built outside the standard process and administrators who re-enable something “temporarily”.

Detection works on three levels:

  • Scheduled compliance scans against the baseline, using CIS-CAT or the configuration audit features of your vulnerability scanner.
  • Cloud posture checks. The security posture services of the major cloud providers can evaluate accounts against the CIS Benchmarks for their own platforms.
  • Continuous enforcement. Group Policy, endpoint management and configuration management tools can reapply settings automatically, which corrects drift rather than only reporting it.

Drift findings should flow into vulnerability management with an owner and a due window, like any other weakness, so they are closed rather than simply noted.

How do infrastructure as code and maintenance keep the baseline alive?

Infrastructure as code moves the baseline from a document into the build process. Hardened machine images, including the pre-hardened images CIS publishes on the major cloud marketplaces, give new servers the baseline from the first boot. Templates and modules carry secure defaults for cloud resources. Policy-as-code checks in the deployment pipeline reject changes that break the baseline before they reach production. Because every change to the baseline goes through a reviewed pull request, the version history doubles as evidence for auditors.

A baseline also needs maintenance:

  • Give it a named owner.
  • Review it when CIS publishes a new version of a benchmark you use, and when you adopt a new operating system version or cloud service.
  • Review the exceptions register on a fixed schedule and close the entries that are no longer needed.
  • Record each change to the baseline and the reason for it.

A baseline that nobody owns drifts as surely as the systems it describes.

Our infrastructure hardening team builds baselines like this with your operators and leaves you with a routine to keep them in place. If you want to talk through your own environment, an exploratory meeting is a good place to start.

Questions we hear often

Should we aim for 100 per cent compliance with a CIS Benchmark?
No. A score of 100 per cent usually means either a very simple system or settings applied without regard for what the business needs. The realistic goal is full compliance with your own baseline, which is the benchmark minus documented exceptions. What auditors and customers look for is that every deviation is deliberate, approved and reviewed, not that every recommendation is enabled.
Do CIS Benchmarks satisfy SOC 2 or ISO 27001?
Neither framework requires CIS Benchmarks specifically. Both expect documented secure configuration and monitoring for changes, and ISO/IEC 27001:2022 includes a configuration management control in Annex A. A baseline built on CIS Benchmarks, with an exceptions register and drift reports, is common and well-understood evidence for those requirements. The auditor still decides whether your evidence is sufficient for your scope.
How is a CIS Benchmark different from a DISA STIG?
Both are configuration guides for specific products. CIS Benchmarks are developed through a community consensus process and are used across many industries. Security Technical Implementation Guides are published by the US Defense Information Systems Agency for Department of Defense systems and tend to be stricter. Suppliers to US defence customers may be required to follow STIGs; most other organizations start from CIS Benchmarks or vendor security baselines.
Can we apply a CIS Benchmark with an automated tool?
Yes, and beyond a handful of systems you should. Group Policy, endpoint management tools, configuration management tools and hardened machine images can all apply benchmark settings consistently. Automate only after the settings are reviewed and tested on a pilot group, because applying every recommendation blindly to production is a common cause of broken applications and administrators locked out of their own systems.