Buying, adopting and commissioning software

8 min 5 sections 5 practice questions 11 sources citedISC2 objective 8.4

Most software an organisation runs was written by someone else. It may be bought as a finished product, taken free from an open source project, or written to order by another firm. Each route brings different evidence about how safe the software is, and different ways it can fail. The organisation that runs it stays accountable for the risk, whoever wrote it. No background in software purchasing is assumed.

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

  • Tell apart commercial off-the-shelf, open source and commissioned software by the evidence each offers
  • Explain what a Common Criteria evaluation does and does not prove
  • Explain the risks of open source components and how software composition analysis manages them
  • Name the security terms a contract for commissioned software should contain
  • Explain what software escrow protects against

The supplier that closed on a Friday

An illustrative example

A small chain of veterinary clinics runs all its appointments, records and billing on a program written by a two-person software firm. The program works well and the clinics pay a yearly support fee.

One Friday the firm emails its customers to say it has ceased trading. On Monday a new law on prescription records comes into force, and the program needs a change to comply. The clinics own a licence to run the program. They do not have its source code, and nobody else knows how it works.

What could the clinics have arranged when they bought the program, so that this Monday would be manageable?

Acquired software moves the work, not the accountability

A restaurant that buys sauces from a supplier still answers to its customers if a sauce makes them ill. It can choose the supplier with care, check deliveries and write terms into the contract. It cannot hand the blame back. Software is the same: the organisation that runs acquired software remains accountable for the it brings.

Software arrives by three main routes, and each offers different evidence.

Three routes to acquired software and the evidence each offers
RouteWho wrote itSource code visibleMain evidenceMain risk
Commercial off-the-shelfA vendor, for many customersRarelyCertifications, vendor's development practice, an , own testingHidden flaws, vendor failure,
Open sourceA public projectYesThe code, project health, composition analysisUnmaintained or malicious components, licence terms
Commissioned from a third partyA contracted firm, for this buyerIf the contract says soContract terms, test results, acceptance testingWeak practice at the contractor, unclear

Managed services and cloud services, where another organisation also runs the software, add a fourth route with its own evidence.

Commercial off-the-shelf software and the Common Criteria

Commercial off-the-shelf (COTS) software is a finished product sold in the same form to many customers: an accounts package, an office suite, a 's operating software. The buyer cannot usually see the source code, so it relies on evidence from outside the code.

The Common Criteria is the international standard ISO/IEC 15408 for evaluating the security of IT products. A Protection Profile states the security requirements for a type of product, such as a firewall. A Security Target states what one vendor claims for its product. An accredited laboratory evaluates the product, called the Target of Evaluation, against those claims to an Evaluation Assurance Level (EAL) from 1 to 7.

Common Criteria evaluation assurance levels
LevelName
EAL1Functionally tested
EAL2Structurally tested
EAL3Methodically tested and checked
EAL4Methodically designed, tested and reviewed
EAL5Semiformally designed and tested
EAL6Semiformally verified design and tested
EAL7Formally verified design and tested

A higher EAL means the claims were checked more thoroughly. It does not mean the product has more security functions, and it covers only the evaluated version and settings.

Before installation, the buyer verifies the download's or against the vendor's, so it knows the product was not altered on the way. It tests the product in an isolated environment first. It also confirms how quickly the vendor will fix flaws and when support will end, because unsupported software receives no .

Open source: free to use, not free of risk

Open source software is published with its source code under a licence that lets anyone use, study, change and share it. Most modern programs contain many open source components. In December 2021 a flaw known as Log4Shell was found in Log4j, a free library for recording events used in a huge range of products. An unauthenticated attacker could take control of an affected system, and many organisations could not quickly tell whether they used it.

Provenance
Where a component came from and who changed it. Components are taken from the official source, with signatures checked.
Maintenance health
Whether the project is still maintained, reviews code before merging, signs releases and fixes known flaws. Public scoring tools check these signs.
Typosquatting
A malicious component published under a name one slip away from a popular one, waiting for a typing error.
Dependency confusion
An attacker publishes a public component with the same name as one of the organisation's private components, and the build tool fetches the public one.
Licence terms
A copyleft licence, such as the GNU General Public License (GPL), requires changed versions to be shared under the same licence. Its duties start when the software is passed on to others, changed or not. A product that ships even an unchanged GPL component must include the licence and make that component's source code available. Running it only in-house brings no such duty. Non-copyleft licences, such as MIT and Apache 2.0, allow use inside proprietary products.

Software composition analysis (SCA) manages this. Run in the pipeline, it lists every open source component in a build, matches each against known flaws and licence terms, and can produce the SBOM. Pinning each component to an approved version and fetching private components only from the organisation's own store stop the two naming attacks.

Third-party software, and software written to order

Third-party software is software from outside the organisation that it builds into or alongside its own: plug-ins, libraries, programming kits, connections to other firms' services, and software written to order by an outside firm. Each supplier is assessed before use, by questionnaire and by independent reports such as a , an 's opinion on the supplier's controls. For software written to order, the buyer cannot inspect the contractor's working practice day to day, so the contract carries the security requirements.

  • The security functions required and how strong they must be
  • The secure development practice the contractor must follow, and the evidence it must supply, such as test results and an SBOM
  • Screening of the developers who will work on it
  • Who owns the source code and other rights in the work
  • The buyer's right to audit, and notice of any security incident
  • Acceptance criteria that the software must meet before it is accepted and paid for

Acceptance testing by the buyer, against those criteria and including security tests, is the last control before the software goes live. Software accepted without it carries whatever the contractor left in.

Software escrow: a copy of the source held in trust

Software escrow is an agreement between three parties. The developer deposits the source code and the material needed to build and run it with an independent escrow agent. The buyer, called the beneficiary, receives the deposit only if a release event named in the agreement occurs.

  • The developer becomes insolvent or stops trading
  • The developer stops supporting the software
  • The developer fails to meet its maintenance obligations
  • The rights in the software pass to another firm that does not keep up the protection

A deposit is useful only if it is complete and current. Verification by the escrow agent checks that the deposit can really be built into the working program, and the deposit is refreshed with each release. The veterinary clinics needed exactly this: with the source in escrow, another firm could have made Monday's change.

A question, worked through

A charity is about to buy a case management system from a small, young software company. The product fits the charity's needs better than any other, and the company will not share its source code. The trustees' main worry is that the company might fail within a few years, leaving the charity unable to maintain the system. The security manager is asked for one contract term.

Which contract term BEST addresses the trustees' concern?

  1. Software escrow of the source code, released if the company fails
  2. A Common Criteria evaluation of the product at a stated level
  3. A software bill of materials supplied with each new release
  4. A right to audit the company's development practice each year
Decide on your answer, then open the reasoning
  1. The concern is continuity: keeping the system maintainable if the supplier fails. The question asks which term meets that concern.
  2. Rule out b. A Common Criteria evaluation says how thoroughly security claims were checked. It does nothing if the company closes.
  3. Rule out c. An SBOM lists components and helps with flaws in them. It does not let anyone change the program.
  4. Between a and d: a right to audit gives insight into the company while it exists. When it fails, there is nothing left to audit.
  5. Escrow gives the charity the source code on insolvency, so another firm can maintain it. Option a.

Answer: A. Software escrow of the source code, released if the company fails

Choosing between good answers

A question worries that a software vendor may go out of business
the answer is software escrow with release on insolvency or end of support.
A question asks what a Common Criteria EAL tells a buyer
it shows how thoroughly the vendor's claims were evaluated, not how much security the product has.
A question asks how to find known flaws and licence terms in a build's open source components
choose software composition analysis.
A question asks where to set security requirements for software written by a contractor
choose the contract, with acceptance criteria and acceptance testing before the software is accepted.

Try it

Take a purchase from the supplier's claims to acceptance, and note the evidence asked for 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 vendor's firewall software is certified under the Common Criteria at EAL4. A buyer asks what this level tells it.

What does the evaluation assurance level show?

What to remember

  • Acquiring software transfers the work of writing it, not the accountability for its risk.
  • COTS software is judged by outside evidence: Common Criteria evaluation, the vendor's practice, integrity checks, testing in isolation and support commitments.
  • The Common Criteria (ISO/IEC 15408) evaluates a product's Security Target to an assurance level from EAL1, functionally tested, to EAL7, formally verified design and tested.
  • Open source components are managed by provenance and health checks, licence review, protection against typosquatting and dependency confusion, and software composition analysis.
  • Commissioned software is secured through the contract: requirements, development practice, developer screening, ownership, audit rights and acceptance criteria.
  • Software escrow gives the buyer the source code if the developer fails or stops support.

Say it from memory

  1. What evidence does a buyer of COTS software rely on, and what does a Common Criteria EAL show?

    Outside evidence: a Common Criteria evaluation, the vendor's practice and SBOM, and hash or signature checks on the download. Also testing in isolation and commitments on patching and end of support. An EAL, from 1 (functionally tested) to 7 (formally verified design and tested), shows how thoroughly the vendor's claims were checked.

    Read this part again

  2. What are the security risks of open source components, and how does software composition analysis help?

    Unmaintained or flawed components (as with Log4Shell), unknown provenance, typosquatting, dependency confusion and licence obligations such as copyleft. SCA lists every component in a build, matches each against known flaws and licences, and can produce the SBOM. Pinned versions and a private store stop the naming attacks.

    Read this part again

  3. Which security terms belong in a contract for software written by a third party, and what does escrow add?

    Required security functions, the contractor's secure development practice and evidence, developer screening, ownership of the code, right to audit, incident notice and acceptance criteria tested before acceptance. Escrow holds the source code with an independent agent and releases it to the buyer if the developer fails or stops support.

    Read this part again

  4. Who stays accountable for the risk of acquired software, and what are the three main routes by which software is acquired?

    The organisation that runs acquired software remains accountable for the risk it brings. The routes are commercial off-the-shelf software from a vendor, open source from a public project, and software commissioned from a third party for this buyer.

    Read this part again

  5. What is software escrow, and what release events let the buyer receive the deposit?

    An agreement in which the developer deposits the source code and what is needed to build and run it with an independent escrow agent. The buyer receives it if the developer becomes insolvent or stops trading, stops support, fails its maintenance obligations, or the rights pass to a firm that does not keep up the protection.

    Read this part again

Sources