Controlling change to software

7 min 4 sections 5 practice questions 4 sources citedISC2 objectives 8.1, 8.2, 8.3

Software changes constantly: a fault is fixed, a feature added, a library updated. Each change is a chance to break something or to slip in something nobody approved. Organisations control software change in three stages and keep every version of the code in a protected store. They log who changed what and when, so that any change can be traced and reversed. No programming background is assumed.

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

  • Put request control, change control and release control in order and say what each checks
  • Name the four functions of software configuration management
  • Explain how a code repository is protected and why a leaked secret must be revoked
  • Explain what a change log records and how the log itself is protected

The quiet edit to the payroll program

An illustrative example

A council's payroll program was changed on a Thursday evening. Nobody asked for the change, and nobody approved it. A developer had corrected a rounding error by editing the live program directly, because the proper route would have taken a week.

His correction worked. It also changed how overtime was rounded for one grade of staff. Three months later an auditor found that the program running in production did not match any approved version. Nobody could say when it had changed, or why.

The developer meant well and the fault was real. What did the council lose by letting him edit the live program?

Request control, change control and release control

for live systems is a general process: request, review, approve, test, implement, record. Software development applies it in three stages, each with its own question.

Request control
Users and managers ask for changes in a recorded way. Each request is assessed for cost, benefit and security impact, and the requests are put in priority order. Its question is whether the change should be made at all.
Change control
The developer makes the approved change in a separate working copy, never on the live system. The change is reviewed by another person and tested, including regression testing. Its question is whether the change was made correctly and safely.
Release control
The tested version is approved for release by someone other than the developer, built, and moved into production. Debugging code is removed first, and the approved version becomes the new . Its question is whether this exact version is ready to go live.

One software change passes three controls

One software change passes three controlsThree frames in order. Request control: a written change request is assessed and ranked. Change control: the change is made in a separate working copy, then reviewed by another person and tested. Release control: someone other than the developer approves it, and it goes live as the new baseline.Record: who, what, when, whyRequest controlChange requestasked in writing,with the reasonAssess, rankcost, benefit,security impactChange controlWorking copyseparate, neverthe live systemReview, testanother person;regression testsRelease controlApprovenot the developerdebug code outProductionbuilt and live:the new baselineOne software change passes three controlsThree frames in order. Request control: a written change request is assessed and ranked. Change control: the change is made in a separate working copy, then reviewed by another person and tested. Release control: someone other than the developer approves it, and it goes live as the new baseline.Record: who, what, when, whyRequest controlChange requestasked in writing,with the reasonAssess, rankcost, benefit,security impactChange controlWorking copyseparate, neverthe live systemReview, testanother person;regression testsRelease controlApprovenot the developerdebug code outProductionbuilt and live:the new baseline
Read this figure as text

Software development applies change management in three stages, each with its own question. Separation of duties runs through them: the person who writes a change does not also approve it and put it live.

  1. Request control asks whether the change should be made at all. A user or manager asks for the change in writing, with the reason.
  2. Each request is assessed for cost, benefit and security impact, and the approved requests are put in priority order.
  3. Change control asks whether the change was made correctly and safely. The developer makes the approved change in a separate working copy, never on the live system.
  4. Another person reviews the change, and it is tested, including regression testing.
  5. Release control asks whether this exact version is ready to go live. Someone other than the developer approves it for release, and debugging code is removed first.
  6. The approved version is built and moved into production, where it becomes the new baseline.
  7. Every change leaves a record: who requested, made and approved it, what changed, when, why, and the result of its review and tests.

The council's developer skipped all three. Nobody judged whether the change was wanted, nobody reviewed or tested it, and nobody approved the release. is the thread through the stages: the person who writes a change does not also approve it and put it live.

Software configuration management: four functions

keeps a system matching an approved baseline. Software configuration management (SCM) applies it to the parts of a program: source code files, libraries, build scripts, settings and documentation. Each part under control is a configuration item. A recorded set of their exact versions at one moment is a baseline.

The four functions of software configuration management
FunctionWhat it doesSoftware example
Configuration identificationChooses the items to control and records what each one isEvery file and library version in release 5.2 is named and numbered
Configuration controlEvaluates, approves or rejects, and carries out changes to those itemsA change to the tax module goes through review before it joins the code
Configuration status accountingRecords and reports the state of every item and every changeA report shows which approved changes are in 5.2 and which are pending
Configuration auditChecks independently that what exists matches the recordsAn compares the program in production with the approved 5.2 baseline

Identify it, control changes to it, account for its status, audit that it matches.

Versioning gives every saved state of every item its own number and keeps the earlier ones, so a release can be rebuilt or rolled back exactly. The council's auditor carried out a configuration audit. It failed because the live program matched no recorded version.

Code repositories and how they are protected

A code repository is the central store of a program's source code and its full history. Software that manages it is called version control. A developer works on a separate line of work called a branch. Each saved set of edits is a commit, which records who made it, when and why. Approved work is then merged back into the main line.

The repository holds the organisation's most valuable , the source code, and is the place where an attacker could insert a back door. It is protected in these ways.

  • : each person and each tool gets only the access its work needs. Write access to the main line is restricted.
  • Branch protection: nothing joins the main line without review and approval by a person other than its author.
  • Commit signing: each commit carries a , which shows the commit came from the holder of a known key. The repository rejects unsigned commits.
  • Code signing and on released files, so a buyer can check that what arrived is what was released.
  • Strong sign-in with more than one factor, and backups kept separately.
  • No secrets in code. Passwords and keys belong in a separate secrets store.

Common misconception

“A password accidentally committed to a repository is safe once the file is corrected.”

The repository keeps every earlier version, so the password stays in its history, and a public repository may already have been copied. The password must be revoked and replaced at once. Scanning each commit for secrets stops the next one.

Auditing and logging of changes

Every change to software and its settings leaves a record, and the records are reviewed. The record answers five questions for each change.

  • Who requested it, who made it and who approved it
  • What changed: which items, from which version to which
  • When it was made and when it went live
  • Why: the request or flaw it answers
  • The result of its review, its tests and any exception granted

Records are kept for a set period and checked against reality. A change found in production with no record behind it is the sign of an unauthorised change, as in the council's case. Each record ties back to a named account, which is why shared accounts defeat it.

A log that its subject can edit proves nothing. Logs are protected from unauthorised reading, changing and deletion, and an alert is raised when someone tries. Strong protection writes them to storage that cannot be overwritten, or sends them at once to a system run by other people. Developers do not administer the logs of their own changes.

A question, worked through

An audit of a hospital's prescribing software finds that the program in production differs from the last approved release. The repository shows the change was committed by a developer, who then built the release and put it live himself the same night. No request or approval exists for it. The chief information security officer asks for one control to prevent a repeat.

Which control BEST prevents a repeat?

  1. Release to production only after approval by someone other than the author
  2. Require every commit to the repository to carry the author's digital signature
  3. Run static application security testing on each commit before the build
  4. Keep the repository's change logs for seven years on write-once storage
Decide on your answer, then open the reasoning
  1. The failure is that one person wrote, approved and released a change, so the question asks for a control that stops a single person putting code live.
  2. Rule out c. Static testing finds flaws in code. The problem is an unapproved change, which static testing does not detect.
  3. Rule out d. Longer, safer logs help detect and investigate the next case. They do not prevent it.
  4. Between a and b: commit signing shows which key holder made the change. The audit already knows who wrote it. The author could still release it unapproved.
  5. Release control with separation of duties stops the author putting the change live alone. Option a.

Answer: A. Release to production only after approval by someone other than the author

Choosing between good answers

A question asks which stage decides whether a change should be made at all
the answer is request control. Change control governs making it; release control governs putting it live.
A question describes comparing what is running with the approved records
that is configuration audit. Recording the state of items and changes is status accounting.
A secret has been committed to a repository
the first step is to revoke and replace the secret. Deleting it from the file does not remove it from history.
One answer adds logging and another adds separation of duties to stop an unauthorised change
separation of duties prevents. Logging detects. Choose by whether the question asks to prevent or to detect.

Try it

Follow one change from commit to production and see who approves it at each step.

Loading the preview.

Check your understanding

5 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 5

A configuration manager is assigning the tasks for a payroll program's release 7 to the four functions of software configuration management.

Match each function to the task that belongs to it.

Choose the match for each entry. Every match has to be right.

What to remember

  • Request control decides whether a change is wanted. Change control makes and tests it away from production. Release control approves and moves the tested version live.
  • The person who writes a change does not also approve it and put it into production.
  • Software configuration management has four functions: identification, control, status accounting and audit.
  • A code repository is protected by least privilege, review before merging, commit and code signing, strong sign-in and keeping secrets out of the code.
  • Every change is logged with who, what, when and why, and the logs are protected from the people whose changes they record.

Say it from memory

  1. Put request control, change control and release control in order and say what each one checks.

    Request control: the change is asked for in a recorded way, assessed for cost, benefit and security impact, and prioritised. Change control: it is made in a separate working copy, reviewed by another person and tested. Release control: someone other than the developer approves the tested version, debugging code is removed and the release becomes the new baseline.

    Read this part again

  2. Name the four functions of software configuration management.

    Configuration identification chooses and records the items. Configuration control approves or rejects changes to them and carries them out. Configuration status accounting records and reports their state. Configuration audit checks independently that what exists matches the records.

    Read this part again

  3. How is a code repository protected, and what must happen when a password is committed to one?

    Least privilege, review by another person before anything joins the main line, commit signing, code signing and hashes on releases, multi-factor sign-in, separate backups and no secrets in code. A committed password stays in the history, so it must be revoked and replaced at once.

    Read this part again

  4. What does a record of a software change contain, and how are change logs protected?

    Who requested, made and approved it; what changed, from which version to which; when; why; and its review and test results. Logs are protected from unauthorised reading, change and deletion. They are kept on storage that cannot be overwritten or sent to a system run by others, never administered by the developers they record.

    Read this part again

Sources