Keeping every system in a known, approved state

8 min 5 sections 4 practice questions 4 sources citedISC2 objective 7.3

A restaurant chain lays out and equips every kitchen to one written standard. Any difference is then either an approved change or a fault, and both are easy to spot. Configuration management does the same for computer systems. No background is assumed. A security professional depends on it, because a system whose set-up nobody has recorded cannot be defended, checked or rebuilt.

By the end of this unit you will be able to:

  • Explain what a baseline is and why changes to it are controlled
  • Tell apart a configuration item, a baseline and a configuration management database
  • Put in order the four phases of security-focused configuration management
  • Tell apart configuration management, change management and patch management

Twelve clinics, twelve different servers

An illustrative example

A veterinary group has twelve clinics. Each clinic's server was set up by hand, by whichever engineer was free that week, over six years.

An intruder gets into one clinic's server through a remote-support program. A supplier had left it switched on with the password it was sold with. Head office asks the obvious question: which of the other eleven servers have that program switched on? Nobody can answer without visiting each clinic.

What would the group need to have in place to answer that question in minutes?

A known state, written down

A system's configuration is the way it is set up: its hardware, the software installed and its versions, its settings, the accounts that exist on it and its network connections.

Configuration management (CM) is the work of deciding what that set-up should be, recording it, and controlling how it is first built, changed and checked afterwards.

Many break-ins need no clever attack. They use a misconfiguration: a password left as the maker set it, a service nobody needed left running, a folder shared with everyone. A known, recorded state makes three things possible. An unauthorised change stands out. A failed system can be rebuilt exactly. The question where else does this weakness exist has an answer.

United States guidance from the National Institute of Standards and Technology (NIST) calls the discipline security-focused and gives it four phases.

  1. Planning: write the , name the roles, choose the tools and decide which parts of each system will be controlled.
  2. Identifying and implementing configurations: develop a secure for each system, have it reviewed and approved, and build the system to it.
  3. Controlling configuration changes: allow changes only after they are proposed, analysed for security impact, tested and approved.
  4. Monitoring: check that each system still matches its approved baseline, and find components and changes that nobody recorded.

Configuration items, baselines and the database that lists them

A configuration item (CI) is an identifiable part of a system that is placed under control: a server, a , an application, or a document such as a network diagram. Each has a unique name, an owner and a version.

A baseline is the agreed specification of a system or configuration item at a point in time. It has been formally reviewed and approved, and it can be changed only through . Every later build and every later check is measured against it.

A configuration management database (CMDB) holds a record for each configuration item and the links between them: this application runs on that server and uses that database. An says what the organisation owns. A CMDB also says how each item is set up and what depends on it, so the effect of a change or a fault can be seen in advance.

Four activities keep the records true.

Configuration identification
Choosing which items to control, naming them and recording their baselines.
Configuration control
Making sure a baseline changes only through an approved change.
Configuration status accounting
Recording and reporting the current state of each item and the history of its changes.
Configuration audit
Checking that the real system matches its records. It is also called configuration verification.

The group with authority to approve changes to a baseline is usually called the configuration control board (CCB).

Provisioning and hardening: building from the baseline

Provisioning is preparing something new so that it is ready for use: a server, a laptop, a cloud service. Under configuration management every new system is built from the approved baseline. Nobody sets one up from memory.

The usual tool is a golden image: a complete, tested copy of an approved build from which new machines are created. The image is stored where few people can alter it. It is updated and approved again on a schedule, or new machines would start life out of date.

The baseline itself should be hardened. Hardening is reducing the number of ways a system can be attacked.

  • Remove or switch off every program, service and account the system's job does not need. NIST calls this least functionality.
  • Change every default password and disable default accounts.
  • Apply current security fixes.
  • Tighten the settings: password rules, screen locks, who may sign in remotely.
  • Switch on and the system's own firewall.

Nobody needs to invent these settings. A benchmark is a published, recommended secure configuration for a particular product. The Center for Internet Security (CIS) Benchmarks and the Security Technical Implementation Guides (STIGs) of the United States Department of Defense are the best known. A benchmark is someone else's recommendation. A baseline is the organisation's own approved state, usually a benchmark with recorded and justified exceptions.

Automation finds and corrects drift

Real systems wander. An engineer makes a quick fix at night, an update half fails, a supplier switches something on. The growing gap between a system and its baseline is configuration drift.

Automation closes the gap. A configuration tool applies the baseline to hundreds of machines in the same way. It then checks each one on a schedule and reports or reverses any difference. The result is consistent and fast, and it leaves a record.

Infrastructure as code takes this further. Servers, networks and their settings are described in text files, and a tool builds the systems from the files. The files are the baseline. They are kept under version control, a store that records every alteration with its author and date. Any earlier state can be rebuilt. The is concentration: a mistake or a password written into one file is copied everywhere, so the files and the tool need strict and review.

When monitoring finds a difference there are only two proper endings. The system is put back to its baseline, or the difference is approved through change control and the baseline is updated. Editing the record to match the system, with no decision, is not one of them.

Systems drift from the baseline and are brought back

Systems drift from the baseline and are brought backThe approved baseline and the running system both feed a question: drift found, restore or approve? Two answers lead out, restore to baseline and approve through change control. A third, editing the record, is dashed and marked never.Drift found:restore orapprove?Approvedbaselineunder versioncontrolRunningsystemdrifts with quickfixes and updatesRestore tobaselinesystem isput backApprove throughchange controlbaseline updatedEdit the recordno decision madeneverSystems drift from the baseline and are brought backThe approved baseline and the running system both feed a question: drift found, restore or approve? Two answers lead out, restore to baseline and approve through change control. A third, editing the record, is dashed and marked never.Drift found:restore orapprove?Approvedbaselineunder versioncontrolRunningsystemdrifts with quickfixes and updatesRestore tobaselinesystem isput backApprove throughchange controlbaseline updatedEdit the recordno decision made
Read this figure as text

Real systems wander from their approved baseline: an engineer makes a quick fix at night, an update half fails, a supplier switches something on. A configuration tool checks each system on a schedule and reports any difference.

  1. The approved baseline, kept under version control, is what each system is compared with.
  2. The running system is checked on a schedule, and any difference from the baseline is configuration drift.
  3. When drift is found there are only two proper endings. The first is to put the system back to its baseline.
  4. The second is to approve the difference through change control, so that the baseline itself is updated.
  5. Editing the record to match the system, with no decision, is not one of them. It is drawn dashed and marked never.

Configuration, change and patch management are different jobs

Four disciplines that work together and are often confused
DisciplineQuestion it answersWhat it keeps
Configuration managementWhat state should each system be in, and is it in that state?Baselines and the configuration management database
Change managementShould this change be made, and how is it made safely?Change requests, approvals and results
Patch managementWhich fixes from suppliers are needed, and are they applied?The status of every system
Asset managementWhat does the organisation own, and who is responsible for it?The asset inventory

Change management is a process: a gate that every alteration passes through. Configuration management is about state: the record of what is, before and after. They meet at the end of each approved change, when the baseline is updated. A patch is one kind of change and goes through the same gate.

Common misconception

“Once a secure baseline has been built and applied, configuration management is finished.”

Systems drift and new weaknesses are found in settings that were once sound. The baseline has to be monitored, reviewed and approved again, and each system checked against it for as long as it runs.

Worked example: Bringing the twelve clinics under control

The veterinary group has twelve hand-built servers, no record of their settings and one known break-in through a remote-support program.

  1. Plan. Head office names an owner for server configuration and chooses a tool that can read and apply settings on every server from one place.
  2. Identify. Each server becomes a configuration item in a database, with its clinic, its software and the practice system that depends on it.
  3. Baseline. A hardened build is written from the CIS Benchmark for the servers' operating system. Remote-support programs are not part of it. The owner approves it.
  4. Implement. The tool applies the baseline to all twelve servers. It reports that four had the remote-support program switched on, and removes it.
  5. Control. From now on a supplier who needs remote access raises a change request, and access is opened for the job and closed after it.
  6. Monitor. The tool checks every server against the baseline each night and reports any difference to the owner.

The question that took a tour of twelve clinics can now be answered from one screen, and a setting changed at night shows up the next morning.

A question, worked through

A logistics firm builds its 200 warehouse servers from a golden image. A quarterly automated check finds a file-sharing service running on 14 of them. The service is not in the approved baseline. Site engineers say they switched it on months ago to speed up label printing, and that the warehouses now rely on it.

What should the security manager recommend FIRST?

  1. Rebuild the 14 servers from the golden image to restore the baseline
  2. Add the service to the baseline so the records match the servers
  3. Raise the service as a change so its risk is assessed and decided
  4. Leave the servers alone and record the difference in the next report
Decide on your answer, then open the reasoning
  1. The check has found drift: a change nobody approved. The question is what comes first, and the scenario adds that the business now depends on the service.
  2. Rule out d. Recording the difference and doing nothing accepts a risk that nobody with authority has looked at.
  3. Rule out b. Updating the baseline makes the paperwork tidy, but it approves a service on 14 servers without anyone assessing it.
  4. Option a does restore the approved state. It also stops label printing in 14 warehouses before anyone has weighed that cost, so it is premature.
  5. Option c puts the difference through change control. The risk is assessed, the owner decides, and the outcome is either removal or an approved, updated baseline. It comes first.

Answer: C. Raise the service as a change so its risk is assessed and decided

Choosing between good answers

A system is found to differ from its baseline
treat it as an unauthorised change. Restore the baseline, or approve the change and update the baseline. Never only edit the record.
A question describes a known, approved, recorded state
it is configuration management. When it describes request, approval, testing and scheduling, it is change management.
Many systems must be built alike
choose provisioning from a hardened golden image or automated build over careful manual set-up.
A team is about to write secure settings from nothing
prefer adopting a recognised benchmark and recording the exceptions.

Check your understanding

4 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.

These questions are drafts that no named reviewer has approved yet.

Question 1 of 4

A security manager is introducing security-focused configuration management for a firm's servers. Put these activities in the order of NIST's four phases.

Put the steps in order with the buttons beside each one. The whole order has to be right.

  1. 1Assess, test and approve each proposed change to the approved build
  2. 2Write a hardened build, have it approved and build each server to it
  3. 3Name an owner for server settings and choose a tool to manage them
  4. 4Check each night that every server still matches its approved build

What to remember

  • Configuration management keeps each system in a known, approved state and can show that it is in that state.
  • A configuration item is a part under control. A baseline is its approved specification. The CMDB records the items and what depends on what.
  • NIST's four phases are planning, identifying and implementing configurations, controlling configuration changes, and monitoring.
  • New systems are provisioned from a hardened golden image. Automation applies the baseline and detects drift.
  • Change management decides whether a change is made. Configuration management records the state before and after it.

Say it from memory

  1. What is configuration management, and what do baselining, provisioning and automation each contribute?

    It keeps every system in a known, approved state. Baselining agrees and records that state. Provisioning builds each new system from the baseline. Automation applies the baseline to many systems and checks them for drift. A baseline changes only through change control.

    Read this part again

  2. Name the four activities that keep configuration records true, and say how a CMDB differs from an asset inventory.

    Configuration identification, configuration control, configuration status accounting and configuration audit, also called configuration verification. An asset inventory says what the organisation owns. A configuration management database (CMDB) also says how each item is set up and what depends on it.

    Read this part again

  3. What is the difference between a benchmark and a baseline?

    A benchmark is a published, recommended secure configuration for a particular product, such as the CIS Benchmarks or the STIGs. It is someone else's recommendation. A baseline is the organisation's own approved state, usually a benchmark with recorded and justified exceptions.

    Read this part again

  4. When monitoring finds a system that differs from its baseline, what are the only two proper endings?

    The system is put back to its baseline, or the difference is approved through change control and the baseline is updated. Editing the record to match the system, with no decision, is not one of them.

    Read this part again

  5. How does configuration management differ from change management, and where do they meet?

    Change management is a process: a gate that every alteration passes through, keeping change requests, approvals and results. Configuration management is about state: the record of what is, before and after, kept as baselines and the CMDB. They meet at the end of each approved change, when the baseline is updated.

    Read this part again

Sources