Security in every phase of the software life cycle

8 min 6 sections 5 practice questions 7 sources citedISC2 objective 8.1

Software has a life: someone has the idea, it is specified, designed, built, tested and released, then it runs for years and is finally switched off. Each phase has security work that belongs to it, and work done in the wrong phase costs more or is not done at all. Running and retiring the software is the longest part of the life, and a team drawn from every interested group keeps it on track. No background in software is assumed.

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

  • Put the phases of the software life cycle in order and name the security work in each
  • Explain what shift left means and why an early fix costs less
  • Tell apart certification, accreditation and acceptance at release
  • Explain what operation and maintenance require, from handover to disposal
  • Explain what an integrated product team is and why security belongs on it from the start

Three months lost in the last fortnight

An illustrative example

A county council commissions an online planning portal. Requirements, design and building take eight months. Nobody from the security team is asked to take part.

Two weeks before launch, an outside tester finds that every uploaded document, including objectors' names and home addresses, sits in one folder that anyone on the internet can list. The fix is not a line of code. Storage, sign-in and the screens all have to change. The launch slips by three months, and the councillors ask why nobody noticed sooner.

The test found the problem, as tests should. Why did finding it at the end cost three months?

The phases of a system's life, from idea to disposal

NIST divides the system development (SDLC) into five phases: initiation, development or acquisition, implementation and assessment, operation and maintenance, and disposal. For a piece of software, teams usually split the middle more finely, as below.

  1. Initiation: the need is stated, the idea is judged worth doing, and the information it will handle is classified.
  2. Requirements: what the system must do, and must never do, is written down.
  3. Design: the structure is chosen, such as where data is stored and how users sign in.
  4. Development: the code is written, or a product is bought and configured.
  5. Testing: the system is checked against its requirements.
  6. Release: the system is approved and installed for real use.
  7. Operation and maintenance: it runs, is watched, corrected and changed, often for many years.
  8. Disposal: it is retired, its data kept or destroyed, and its accounts and keys withdrawn.

Every method of building software passes through these activities. A traditional project does each once, in order. A fast-moving team goes round all of them every few weeks for each small piece. Either way, security work is attached to the activity, not to the calendar.

The security work that belongs to each phase

Security activity by phase
PhaseSecurity work
Initiation the information, make a first assessment of , name who owns the system
RequirementsWrite security and requirements, legal duties, and : what an attacker would try
DesignModel threats, keep the small, review the design against principles
DevelopmentFollow a secure coding standard, review code, scan it automatically, check bought-in components
TestingTest that each security requirement is met, and attack the system as an intruder would
ReleaseCertification, authorisation and acceptance, secure configuration, separate test and live systems
Operation and maintenance, monitor, control changes, handle vulnerability reports, reassess risk
DisposalKeep records the law requires, sanitise storage, revoke accounts, keys and certificates

Each life cycle phase carries its own security work

Each life cycle phase carries its own security workEight phases in order: initiation, requirements, design, development, testing, release, operation and maintenance, and disposal, each with its security work. Beneath them, shift left points into requirements.Initiationclassify, namethe ownerRequirementssecurity, privacy,misuse casesDesignthreat model,design reviewDevelopmentsecure coding,review, scansTestingeach requirementmet; attack itReleasecertification,acceptanceOperation andmaintenancepatch, monitorDisposalsanitise, revokekeysShift left: work earliera fix costs less thereEach life cycle phase carries its own security workEight phases in order: initiation, requirements, design, development, testing, release, operation and maintenance, and disposal, each with its security work. Beneath them, shift left points into requirements.Initiationclassify, namethe ownerRequirementssecurity, privacy,misuse casesDesignthreat model,design reviewDevelopmentsecure coding,review, scansTestingeach requirementmet; attack itReleasecertification,acceptanceOperation andmaintenancepatch, monitorDisposalsanitise, revokekeysShift left: work earliera fix costs less there
Read this figure as text

The phases run from left to right, initiation first. Each has its own security work, and the work does not stop at release. Shift left means moving security work towards the left end of the line.

  1. Initiation: classify the information, make a first assessment of risk and name who owns the system.
  2. Requirements: write security and privacy requirements, legal duties, and misuse cases, which say what an attacker would try.
  3. Design: model threats, keep the attack surface small and review the design against principles.
  4. Development: follow a secure coding standard, review code, scan it automatically and check bought-in components.
  5. Testing: test that each security requirement is met, and attack the system as an intruder would.
  6. Release: certification, authorisation and acceptance, secure configuration, and separate test and live systems.
  7. Operation and maintenance: patch, monitor, control changes, handle vulnerability reports and reassess risk.
  8. Disposal: keep the records the law requires, sanitise storage, and revoke accounts, keys and certificates.
  9. Shift left moves security work earlier, into requirements and design and into checking each piece of code as it is written, because an early fix costs less. It does not remove independent testing or approval before release.

A project that will process carries out a privacy impact assessment, called a data protection impact assessment (DPIA) under the EU General Data Protection Regulation (GDPR), at initiation or requirements. Its findings then shape the design. The GDPR requires one before any processing likely to put people at high risk.

The council's portal had no misuse case saying that no one may list other people's uploads. So neither design nor testing looked for the flaw until the end.

Shift left: doing security work earlier

Draw the phases on a line from left to right, initiation first. Shift left means moving security work towards the left end. Requirements and design come before code, and each piece of code is checked as it is written instead of one test before release.

The reason is cost. A flaw found in a design drawing is fixed by changing the drawing. The same flaw found after the screens, storage and tests are built means changing all of them, as the council found. Found after release, it also means an incident, a patch and perhaps a notification to regulators. NIST's Secure Software Development Framework puts it plainly: the earlier security is addressed, the less effort and cost it takes to reach the same level of security.

The council's portal, shifted left

A security analyst joins at requirements and writes: no user may list or open another user's documents. The designer stores each upload under its owner's account. The developer's code is reviewed against that rule, and an automatic check tests it on every change. The final tester finds nothing new to report.

Common misconception

“Shifting left means the final security test before release is no longer needed.”

Shift left adds earlier work. It does not remove independent testing or approval before release, which still catch what earlier phases missed.

Release: certification, accreditation and acceptance

Before a system goes live, three different decisions are made by three different parties.

Certification
A technical assessment of whether the security controls are in place, work as intended and meet the requirements. Testers or assessors carry it out and report.
Accreditation, now called authorisation
A senior manager's formal decision to let the system operate, accepting the risk that remains. In NIST's current terms this is an authorisation to operate, granted for a stated period.
Acceptance
The customer or business owner's formal agreement that the delivered system meets what was asked for, usually after testing by its users. For bought or commissioned software it often triggers payment.

Certification informs. Accreditation decides about risk. Acceptance decides whether the product was delivered as agreed. A system can pass acceptance because every feature works and still be refused authorisation because its is too high.

Operation and maintenance: handover to retirement

Operation and maintenance is usually the longest phase. It starts with a handover from the people who built the system to the people who will run it. They receive its documentation, its approved secure configuration, instructions for routine tasks and for recovery, a list of its components, and the named person who owns it.

  • Service levels: the , response and repair times agreed with the business, often written into a with a supplier.
  • Patching and vulnerability handling: fixes are tested and applied, and reports of new flaws are assessed and answered.
  • Monitoring: logs and alerts show misuse and failure.
  • : every change, however small, is requested, assessed, approved, tested and recorded.
  • Periodic reassessment: risk and authorisation are reviewed when the system or its threats change.

The phase ends when support ends. Once the supplier stops issuing patches, every new flaw stays open, so the system is replaced or given support from another source. Disposal then keeps the records that must be kept, sanitises the storage, and withdraws the accounts, keys and certificates the system used.

The integrated product team: every discipline from the start

In 1995 the United States Secretary of Defense directed that be used throughout defence acquisition, an idea taken from industry. An integrated product team (IPT) is a group drawn from every discipline a product needs, which is collectively responsible for delivering it. Members represent their area with authority to decide, and the customer is among them.

For software, the team includes the business owner, developers, testers, operations staff, security and privacy specialists, and often legal and purchasing. Each brings their concerns at the start, when they cost least to meet, instead of as objections at the end.

The council's portal is the case against the alternative. Security worked as a separate gate, met the project once and found a design flaw too late. As a member of the team it would have written the misuse case in the first month.

A question, worked through

A hospital trust's new patient records system has completed its security assessment. The report lists two medium risks that cannot be fixed before the planned go-live date. The supplier says the system is ready, and clinical users have signed off that every feature works.

Who is the MOST appropriate party to decide whether the system may go live?

  1. The senior manager who owns the risk, by formally authorising operation
  2. The assessment team, by signing the certification report it wrote
  3. The project manager, by confirming every feature was delivered
  4. The clinical users, by signing acceptance after their testing
Decide on your answer, then open the reasoning
  1. Two known risks remain at go-live. The question asks who decides whether the organisation may run the system with them.
  2. Rule out c. The project manager's job is delivery to time and budget. Confirming features says nothing about whether the remaining risk is acceptable.
  3. Rule out d. User acceptance shows that the system does what was asked. It is not a decision about security risk, and the users have no authority to accept it for the trust.
  4. Between a and b: the assessors' certification is the evidence the decision rests on. Assessors inform and do not decide.
  5. A senior manager who owns the risk accepts it by authorising operation, accreditation in the older term. Option a.

Answer: A. The senior manager who owns the risk, by formally authorising operation

Choosing between good answers

A question asks who decides that a system may go live with known risks
choose the senior official who authorises operation. Assessors certify, users accept, and neither accepts risk for the organisation.
A question asks when security is cheapest to build in
choose the earliest phase offered: requirements and design before coding, and coding before release.
Security is a separate final gate and finds problems late
the answer puts security into the team and the early phases, not a longer final test.
Software is reaching the end of its supplier's support
plan replacement or alternative support before patches stop. Running it unpatched is a risk decision for its owner.
A question asks what happens at disposal
records are kept as the law requires, storage is sanitised, and the accounts, keys and certificates the system used are withdrawn.

Try it

Take a system from need to retirement and decide at each stage what security evidence must exist before it moves on.

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 security analyst is drafting one security task for each phase in the life of a new benefits system, from the first idea to its retirement.

Put the tasks in the order of the phases they belong to.

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

  1. 1Classify the information the system will handle and name its owner
  2. 2Model threats against the chosen structure and shrink the attack surface
  3. 3Write misuse cases describing what an attacker would try
  4. 4Check that each security requirement is met in the built system
  5. 5Sanitise storage and withdraw the system's accounts, keys and certificates
  6. 6Patch, monitor and reassess risk while the system is in use

What to remember

  • The life cycle runs from initiation through requirements, design, development, testing and release to operation and maintenance, and ends with disposal. Each phase has its own security work.
  • Shift left moves security work earlier, where a fix costs less. It does not remove testing before release.
  • Certification assesses the controls, accreditation or authorisation accepts the remaining risk, and acceptance confirms the product was delivered as agreed.
  • Operation and maintenance begins with a handover and covers service levels, patching, monitoring, change control and reassessment until support ends.
  • An integrated product team brings every discipline, including security and the customer, into one team responsible for the product from the start.

Say it from memory

  1. What does operation and maintenance of software involve, from handover to the end of support?

    A handover from builders to operators with documentation, secure configuration, procedures, a component list and a named owner. Then agreed service levels, patching and vulnerability handling, monitoring, change management and periodic reassessment of risk. When supplier support ends, replace the software or find other support, then dispose of it securely.

    Read this part again

  2. What is an integrated product team, and why does it help security?

    A team drawn from every discipline a product needs, including the customer, collectively responsible for delivering it, with members able to decide for their area. The approach was adopted by the United States Department of Defense in 1995. Security and privacy specialists bring their requirements at the start, when they cost least to meet.

    Read this part again

  3. Give the phases of a software system's life in order, from idea to retirement.

    Initiation, requirements, design, development, testing, release, operation and maintenance, and disposal. NIST groups these into five phases: initiation, development or acquisition, implementation and assessment, operation and maintenance, and disposal.

    Read this part again

  4. What security work belongs to the initiation, requirements and design phases?

    Initiation: classify the information, make a first assessment of risk and name who owns the system. Requirements: write security and privacy requirements, legal duties and misuse cases. Design: model threats, keep the attack surface small and review the design against principles.

    Read this part again

  5. How do certification, accreditation and acceptance differ before a system goes live?

    Certification is a technical assessment, by testers or assessors, of whether the controls are in place, work and meet the requirements. Accreditation, now called authorisation, is a senior manager's formal decision to let the system operate, accepting the remaining risk. Acceptance is the customer or business owner's agreement that the delivered system meets what was asked for.

    Read this part again

Sources