Secure Configuration Policy

Requires hardened, documented and monitored configuration baselines for every system, and controls on deviation, drift and default settings.

SXL-A24Policy1,380 words 6 min readOwner: Head of IT Operations
Sign in to download the PDFFree. You return straight to this document after you sign in.
Template draft. Replace everything in [square brackets] with your own decision, delete what does not describe what you really do, and approve it through your own document control. It is not legal advice and does not make an organisation compliant or certified.

1. Purpose

This policy makes sure that hardware, software, services and networks are set up in a secure, consistent and documented way, that the secure setting is kept over time, and that departures from it are controlled. Default settings are not secure enough for production use.

2. Scope

The policy applies to every configurable item that stores, processes or transmits Organisation information: servers, endpoints, mobile devices, network and security devices, databases, operating systems, applications, containers, cloud accounts and services, and infrastructure as code.

  • In scope: initial build, change, drift detection and decommissioning.
  • Out of scope: configuration of third-party SaaS beyond the tenant settings the Organisation can control; those are covered by the Cloud Computing Security Policy and Procedure.

3. Terms and Definitions

TermMeaning
BaselineThe approved, documented secure configuration for a type of system.
HardeningReducing a system's attack surface by removing or locking down what is not needed.
Gold imageA pre-hardened, approved build used to create new systems.
Configuration driftA difference between the actual state of a system and its baseline.
Configuration management database (CMDB)The record of configuration items and their relationships and settings.
Infrastructure as codeConfiguration expressed in version-controlled files and applied automatically.

4. Roles and Responsibilities

RoleResponsibilities
Head of IT Operations (document owner)Owns this policy, approves baselines and ensures resources for scanning and remediation.
Information security managerDefines security requirements for baselines, reviews them, runs compliance scans and approves deviations.
Platform and system engineersCreate images, apply baselines, correct drift and keep baseline documents current.
System ownerAccepts the baseline for the system, accepts the risk of approved deviations.
Change managerEnsures configuration changes follow the change process.
Asset register ownerKeeps the CMDB and asset register aligned with real systems.
ActivityResponsibleAccountableConsultedInformed
Define and approve a baselinePlatform engineersHead of IT OperationsInformation security manager, system ownerChange manager
Build systems from the gold imagePlatform engineersSystem ownerInformation security managerAsset register owner
Scan for compliance and driftInformation security managerHead of IT SecurityPlatform engineersSystem owner
Fix driftPlatform engineersSystem ownerInformation security managerChange manager
Approve a deviationInformation security managerHead of IT SecuritySystem ownerPlatform engineers
Update the baseline after a changePlatform engineersHead of IT OperationsInformation security managerAsset register owner

5. Policy Statement

5.1 Baselines

  1. A documented baseline must exist for each type of system in use. Baselines are based on recognised hardening guidance from the vendor or an industry body and are adapted to the Organisation's risks.
  2. Baselines are approved by the Head of IT Operations and the information security manager, stored in version control, and reviewed every [12 months] and after significant vulnerabilities or changes in the product.
  3. New systems must be built from a gold image or from infrastructure code that applies the baseline automatically. Manual builds need a checklist and a second-person check.
  4. A system must not go live until a compliance scan has been run and findings of high severity are fixed or have an approved deviation.

5.2 Minimum hardening settings

AreaMinimum requirement
AccountsDefault accounts removed or disabled; default passwords changed before connection to any network; unique administrative accounts; no shared accounts
Services and softwareOnly required services, ports, protocols, features and packages enabled; unneeded software removed; unsupported software prohibited
AuthenticationStrong passwords or keys, multi-factor authentication for administrative access, account lockout, session time-out of [15 minutes] for interactive sessions
NetworkHost firewall on, management interfaces on a separate network, insecure protocols (telnet, FTP, SNMP v1 and v2) disabled, time sync enabled
EncryptionApproved protocols and ciphers as per the Cryptography Policy; disk encryption on endpoints
LoggingAudit logging enabled and sent to the central platform, as set by the Logging and Monitoring Policy
PatchingAutomatic or scheduled updates enabled in line with the Patch Management Policy
Banners and remote accessWarning banner on administrative interfaces; remote administration only through approved gateways
Removable media and peripheralsDisabled by default on servers and unmanaged use blocked on endpoints
CloudPublic access blocked by default, storage encrypted, least-privilege roles, resource tagging, and logging on

5.3 Control of change and drift

  • Configuration changes follow the Change Management Policy and Procedure. After an approved change, the baseline and the CMDB are updated within [5 working days].
  • Automated checks compare the live configuration with the baseline at least [daily] for Tier 1 systems and [weekly] for others. Drift triggers an alert and a ticket; drift in a security setting must be corrected or approved within [3 working days].
  • Administrative access to change configuration is limited to named people, uses multi-factor authentication, and is logged. Break-glass access is reviewed after use.
  • Configuration data, such as device configurations and infrastructure code, is backed up and stored with version history under the Backup and Restoration Policy.

5.4 Deviations

A deviation from a baseline needs a recorded business or technical reason, a risk assessment, compensating controls, approval by the information security manager and the system owner, and an end date no later than [12 months]. Deviations are listed in the deviation register and reviewed [quarterly].

5.5 Decommissioning

  • Before a system is retired its data is archived or deleted, its credentials and keys are revoked, its entries in monitoring and the CMDB are closed, and storage is wiped under the Asset Disposal Process.

5.6 Configuration compliance schedule

System typeBaseline ownerScan frequencyDrift correction target
Servers and databasesPlatform engineers[Daily] automated[3 working days]
EndpointsEndpoint administrator[Weekly][7 days]
Network and security devicesNetwork engineer[Weekly] and after change[3 working days]
Cloud accounts and containersCloud administrator[Daily] automated[2 working days]
Mobile devicesEndpoint administratorContinuous via MDMNon-compliant devices blocked after [24 hours]

6. Baseline Content by Platform

Each baseline document must at least cover the items below for its platform. The platform engineer records the source guidance, the version, and each setting with its value and reason.

PlatformItems the baseline must define
Server operating systemsAccount and group policy, password and lockout rules, services, file permissions, kernel and network parameters, audit policy, remote access, host firewall, time sync
Endpoint operating systemsDisk encryption, screen lock after [10 minutes], administrator rights removed, removable media policy, application control, update channel, endpoint protection
DatabasesAuthentication method, default accounts, roles, encryption at rest and in transit, audit logging, network listener binding, backup account, patch level
Network and security devicesManagement access, protocols, firmware level, SNMP and logging, rule-set review, banners, configuration backup
Web servers and applicationsHidden version headers, TLS configuration, security headers, directory listing off, error handling, upload limits, separate service accounts
Containers and orchestrationMinimal base images, non-root users, read-only file systems where possible, resource limits, secrets handling, image signing, network policies
Cloud accountsIdentity and root protection, region restrictions, logging and alerting, storage and network exposure, encryption keys, budget and quota alarms
Note. Worked example: a scan of 200 servers finds 12 with an administrator remote access port open to the whole internal network when the baseline allows only the management subnet. The information security manager raises 12 tickets rated high. Nine are corrected within 3 working days by reapplying the infrastructure code. Three belong to a legacy application whose vendor requires the open port; the owner raises a deviation with a host firewall rule limiting access to two named servers and an end date of 9 months. The compliance figure moves from 94 percent to 99 percent.

7. Compliance and Monitoring

The information security manager reports scan coverage, compliance percentage and open deviations each [month]. Internal audit tests a sample of systems against their baselines once a [year] and confirms that the baseline documents are current. Findings are tracked as corrective actions.

8. Measures

MeasureTarget
Systems with an approved baseline[100%]
Systems compliant at the latest scan[95%]
High-severity drift fixed within target[95%]
Open deviations past their end date[0]
New systems built from gold image or code[100%]

9. Records and Evidence

  • Baseline documents with version history, kept while current plus [3 years].
  • Scan results and drift tickets, kept [2 years].
  • Deviation register with approvals, kept [3 years] after closure.
  • Build checklists and gold image records, kept for the life of the system.

Annexure A: Configuration deviation request

FieldEntry
System, owner and baseline reference
Setting that deviates
Reason
Risk and compensating controls
Requested end date
Approvals and dates

10. Exception

Exceptions to this document are allowed only where compliance is not practicable and the risk has been assessed. A request must state what is to be excepted, why, the risk it creates, the compensating controls, and an end date no later than [6 months]. It is approved in writing by the document owner and the risk owner, recorded in the exceptions register, and reviewed at the end date. An exception does not change the document.

11. Enforcement

Compliance is monitored through internal audits, management review and routine checks by the document owner. Non-compliance is reported through the incident or non-conformity process and handled under the organisation's disciplinary procedure, and under the terms of any contract for people who are not employees. Serious or repeated non-compliance may lead to loss of access and, where the law is broken, to referral to the authorities.

12. Review

This document is reviewed at least every [12 months], and when there is a significant change to the organisation, its systems, its risks or the law, or after an incident that shows it was not effective. Each review is recorded in the revision history.

ISO/IEC 27001:2022 references

ReferenceTitle
A.8.9Configuration management
A.8.19Installation of software on operational systems
A.8.32Change management
A.8.2Privileged access rights
A.8.7Protection against malware
A.5.37Documented operating procedures
Sign in to download the PDFFree. You return straight to this document after you sign in.