Security

What is secure baseline?

A secure baseline is the documented, approved set of security settings that every system of one type must be built to and checked against for drift.

What is a secure baseline?

A secure baseline is the written standard for how one class of system must be configured: every Windows 11 laptop, every RHEL 9 web server, every model of branch firewall. It lists each security-relevant setting and the value it must have, such as which services may run, the password and lockout policy, the audit policy, which legacy protocols are switched off and which ports the host firewall admits. New systems are built to the baseline, and running systems are measured against it.

Hardening is the work of stripping out unneeded features and locking down the rest. The baseline is the record of what that finished state looks like, so it can be repeated on the next thousand machines and proven to an auditor.

How a secure baseline is established, deployed and maintained

  • Establish. Start from a published benchmark, usually a CIS Benchmark, a DISA STIG or a vendor baseline, rather than a blank page. Test it on a pilot group, adjust settings that break business software, and record every deviation with a reason and an owner, because a skipped setting is an accepted risk. Approve the result through change management and give it a version number.
  • Deploy. Push it with the tool that fits the platform: Group Policy Objects in an Active Directory domain, an MDM or endpoint management platform for laptops and phones, configuration management tools such as Ansible or Puppet for servers, and hardened golden images or infrastructure-as-code templates in the cloud.
  • Maintain. Check systems against the baseline on a schedule, investigate and correct drift, and revise the baseline when a new OS release, a new benchmark version or a new threat changes what secure means. Each revision goes back through change approval.

Example: catching drift with a dry run

Configuration management tools can compare a server with the baseline without changing anything. Running an Ansible playbook in check mode reports what would have to change to bring each host back into line:

ansible-playbook -i prod.ini rhel9-baseline.yml --check --diff

The recap line for one host begins web03 : ok=41 changed=3 unreachable=0 failed=0, and the diff above it names the three settings: SSH root login has been switched back on, a cleartext FTP package is installed again, and the audit rule watching the sudoers file is gone. Nobody approved those changes, so the team re-applies the baseline and opens a ticket to find out who made them and why. Running the same check every night turns drift from an audit-day surprise into a routine alert.

Why baselines matter for security

  • Consistency: an attacker needs only one weak server, and a baseline removes the one-off build that nobody hardened.
  • Speed: when a new flaw calls for a setting change, the team edits the baseline once and redeploys instead of touching each host by hand.
  • Evidence: frameworks such as PCI DSS expect documented configuration standards for system components, and scan results against the baseline show auditors that systems comply.
  • Detection: a host that suddenly fails checks it passed last week may have been tampered with, not just misconfigured.

Secure baseline vs. benchmark, hardening and behavior baselines

  • Benchmark: a published recommendation from an outside body such as CIS or DISA. It becomes your baseline only after you tailor and approve it.
  • Hardening: the activity of reducing attack surface. The secure baseline is its documented target.
  • Golden image: a prebuilt system image with the baseline already applied. It is one way to deploy a baseline, and the systems built from it still drift afterward.
  • Behavior baseline: in monitoring and anomaly-based detection, a baseline means normal activity, such as typical traffic volume or logon hours. That sense describes behavior, not configuration.

Secure baseline on the CompTIA Security+ exam

Secure baselines are taught with hardening under SY0-801 objective 4.1, which covers applying mitigating controls in a scenario, and checking hosts against a benchmark to catch drift comes up again with security monitoring under objective 4.4. Wording such as every new server must be configured the same approved way, an industry-recognized configuration standard or workstations no longer match the approved settings points to establishing, deploying or maintaining a secure baseline. Distractors include a vulnerability scan, which looks for known flaws such as missing patches rather than departures from approved settings; anomaly detection, whose baseline describes normal traffic; and change management on its own, which approves changes but does not define the secure configuration.

Studying for CompTIA (Security)?

ExamWizardz turns the official objectives into a guided study plan — with practice tests, realistic PBQs, and a readiness score. Start free.

Start studying free

Related terms