The system life cycle: from need to working system

8 min 6 sections 4 practice questions 7 sources citedISC2 objective 3.10

Every information system has a life: someone needs it, it is specified, designed, built, assembled, tested, put into use, run for years and finally retired. Security work belongs at every stage, and a fault is far cheaper to fix in the stage that made it than later. No technical background is assumed. A security manager must know what security work each stage needs, what it produces and who signs it off.

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

  • Put in order the stages of the system life cycle and name the standards that describe them
  • Tell apart the system life cycle and a software development life cycle
  • Explain why a missing security requirement costs more the later it is found
  • Choose the security activity, output and decision-maker for each of the first five stages

The booking system that forgot who could see what

An illustrative example

A group of doctors' surgeries commissions an online appointment system. The specification describes booking, cancelling and reminders in detail. Nobody writes down who may see which patient's appointments.

The system is built, tested against its specification, and passes. Two weeks after launch a patient notices that changing one number in the web address shows another patient's bookings. Fixing it means rewriting the database design, three screens and every test.

At which stage of the system's life would this fault have been cheapest to prevent, and who should have caught it?

A system has a life, and security is part of every stage

A system here means everything needed to deliver a service: hardware, software, data, people and . The system life cycle is the whole of its existence, from the first statement of need to its disposal.

Two documents describe the stages. ISO/IEC/IEEE 15288 is the international standard for system processes. NIST Special Publication 800-160 Volume 1 adds the security work to each of those processes. Grouped into nine stages, they run in this order:

  1. Stakeholder needs and requirements
  2. Requirements analysis
  3. Architectural design
  4. Development and implementation
  5. Integration
  6. Transition and deployment
  7. Operations and maintenance
  8. Retirement and disposal

Alongside every stage runs continuous security review: security is reassessed whenever the system, its threats or its surroundings change, from the first requirement to disposal.

Security work at each stage of a system's life

Security work at each stage of a system's lifeNine stages in order, stepping across three lanes from left to right, each with its main security work: stakeholder needs, requirements analysis, architectural design, development, integration, verification and validation, transition, operations and maintenance, and retirement and disposal.Stakeholderneedsprotection needsRequirementsanalysismisuse casesArchitecturaldesignthreat modelDevelopmentsecure coding,code reviewIntegrationinterface andregression testsVerificationand validationsecurity testingTransitionhardening andauthorisationOperations andmaintenancepatch and monitorRetirementand disposalsanitisationSecurity work at each stage of a system's lifeNine stages in order, stepping across three lanes from left to right, each with its main security work: stakeholder needs, requirements analysis, architectural design, development, integration, verification and validation, transition, operations and maintenance, and retirement and disposal.Stakeholderneedsprotection needsRequirementsanalysismisuse casesArchitecturaldesignthreat modelDevelopmentsecure coding,code reviewIntegrationinterface andregression testsVerificationand validationsecurity testingTransitionhardening andauthorisationOperations andmaintenancepatch and monitorRetirementand disposalsanitisation
Read this figure as text

ISO/IEC/IEEE 15288 sets out the system life cycle processes, and NIST SP 800-160 Volume 1 adds the security work to each. Grouped into nine stages, they run in this order. Each change in operation passes through the early stages again.

  1. Stakeholder needs and requirements: the protection needs, the security categorisation, a privacy impact assessment and the legal duties.
  2. Requirements analysis: testable security requirements, and misuse cases that show how the system could be abused.
  3. Architectural design: the security architecture, its trust boundaries and a threat model.
  4. Development and implementation: secure coding, code review and vetting of the components used.
  5. Integration: interface and regression testing, and a configuration baseline.
  6. Verification and validation: security testing against the requirements, and acceptance against the real needs.
  7. Transition and deployment: hardening, training, a rollback plan and the authorisation to operate.
  8. Operations and maintenance: patching, change and configuration management, continuous monitoring and reauthorisation. Each change re-enters the cycle at requirements analysis.
  9. Retirement and disposal: data migration and retention, sanitisation of the media and a certificate of sanitisation.

The standards split some of these further, separating design from architecture and operation from maintenance. They also place validation after transition, because a system can only be shown to meet its purpose where it will really run.

A software development life cycle covers only the making of software: planning, coding, testing and release. It sits inside the development stage and repeats with every change. NIST also uses the abbreviation SDLC for the system development life cycle, so the context decides which is meant.

An example of the relative cost to fix a fault made at requirements
Stage where the fault is foundRelative cost to fix
Requirements and design1
Coding and unit test5
Integration and system test10
Early customer testing15
After release30

The table comes from a study for NIST, which offered it as an example. The pattern is the lesson: work built on a faulty requirement has to be unpicked and redone.

Stakeholder needs: what the system must protect

A stakeholder is anyone with an interest in the system: users, the owner, customers, regulators, the people whose data it holds. The first stage records what they need the system to do and, for security, what they need protected.

  • Protection needs: which information and services matter, and what harm their loss would do.
  • Security categorisation: rating the impact of a loss of as low, moderate or high, which sets the level of control.
  • A impact assessment: what the system will use and what could go wrong for those people. United Kingdom and European Union law calls it a data protection impact assessment and requires one for high- processing.
  • Legal and contractual needs: data protection, sector rules, contract terms.

The output is a set of stakeholder requirements, written in the stakeholders' own terms. The business owner of the system approves them.

Requirements analysis: turning needs into testable rules

Requirements analysis turns what stakeholders want into precise statements about the system that a tester can check. "Patients' data must be private" becomes "A signed-in patient can see only appointments linked to their own record".

A functional requirement says what the system does. A non-functional requirement says how well: speed, , and many security properties.

A misuse case describes what an attacker or careless user might try, written like an ordinary from the other side. "A patient edits the web address to view another patient's booking" is one. Each produces a requirement that blocks it, and a test.

The output is the system requirements specification, with every security requirement traced back to the need it serves. The approves it, advised by the security architect.

Secure architectural design: where the trust boundaries go

Architectural design chooses the system's main parts and how they connect, after comparing alternatives against the requirements. A security architecture is the part of that design that places the protections.

A trust boundary is a line in the design where data passes between parts trusted to different degrees, such as from the public internet into the booking service. Every crossing needs its checks.

Threat modelling examines the design, part by part and boundary by boundary, for what could go wrong, and records a control for each threat. It is done here because a change on paper costs a fraction of a change in code.

The outputs are the architecture description, the and a list of chosen controls. A design review, in which the chief architect and security architect take part, accepts the design before building starts.

Development and implementation: building the parts securely

Implementation produces each part of the system, by writing it, configuring it or buying it.

  • Secure coding: following rules that avoid known kinds of flaw, such as checking every input that crosses a .
  • Code review: a second developer, often helped by automated tools, reads each change before it is accepted.
  • Component vetting: checking every bought or open-source part for known vulnerabilities, its supplier, its licence and its support period.
  • Protecting the code and the build: keeping passwords and keys out of the code, and building in a controlled environment, so that what was reviewed is exactly what is delivered.

Security requirements written earlier become checks here: each one should have a test that a developer can run before handing a part on.

The outputs are the built parts, review records and a list of the components used. The development lead accepts each part as ready for integration.

Integration: assembling the parts without losing security

Integration combines the separately built parts into one working system. Faults appear at the joins: two parts that each check inputs may each assume the other one does.

  • Interface testing checks every connection between parts, including what happens when one sends something unexpected.
  • Regression testing reruns earlier tests after each change, to show that nothing that worked has broken.
  • A records the agreed, approved settings and versions of every part, so that later changes can be compared with it.

The output is an integrated system under , ready for verification. The test lead confirms that integration testing is complete, and the is approved through .

The first five stages: security work, output and who decides
StageMain security activityOutputWho decides
Stakeholder needsProtection needs, categorisation, privacy impact, legal needsStakeholder requirementsBusiness owner
Requirements analysisTestable security requirements, misuse casesSystem requirements specificationSystem owner, advised by security
Architectural designSecurity architecture, trust boundaries, threat modelArchitecture description and threat modelDesign review
DevelopmentSecure coding, code review, component vettingBuilt parts and review recordsDevelopment lead
IntegrationInterface and regression testing, configuration baselineIntegrated system and baselineTest lead and change control

Worked example: What the missing rule cost the surgeries

Writing the missing rule at the requirements stage would have taken one analyst one day, costing 600 pounds. Use the example scale of relative costs.

  1. Found at requirements or design: 1 × 600 = 600 pounds.
  2. Found during coding: 5 × 600 = 3,000 pounds.
  3. Found during integration and system testing: 10 × 600 = 6,000 pounds.
  4. Found after release, as it was: 30 × 600 = 18,000 pounds, before counting the breach report, the patients' distress and the regulator.
  5. A misuse case at requirements analysis, "a patient views another patient's booking", would have produced the rule and a test for it.

The same fault cost thirty times more once released. Security requirements are cheapest when written with the other requirements.

A question, worked through

A security manager at a building society joins a project to replace its mortgage application website. The stakeholder requirements are approved, and the analysts are now writing the system requirements. The project manager wants security to start with a penetration test once the site is built, to save time now.

What should the security manager do FIRST?

  1. Write misuse cases and testable security requirements with the analysts now
  2. Agree the scope and dates of the penetration test once the site is built
  3. Review the developers' code each week for flaws once building has begun
  4. Prepare a threat model of the website's architecture with the designers
Decide on your answer, then open the reasoning
  1. The project is at requirements analysis. The question asks for the first security step at this point.
  2. Rule out b. A penetration test comes late, when a missing requirement costs many times more to fix, and it has no requirement to test against.
  3. Rule out c. Code review is sound practice, but it belongs to development, which has not started.
  4. Between a and d: threat modelling is valuable and comes at the design stage, which follows. The work under way now is requirements.
  5. Misuse cases and testable security requirements fit the current stage and shape every later one. Option a is the answer.

Answer: A. Write misuse cases and testable security requirements with the analysts now

Choosing between good answers

Options place the same security activity at different stages
choose the earliest stage where it can be done. Faults cost more to fix the later they are found.
A question asks where security requirements first appear
stakeholder needs and requirements analysis, not testing.
A question asks who approves what a system must protect
the business or system owner. Security advises; the owner decides.
A question contrasts the system life cycle with a software development life cycle
the system life cycle runs from need to disposal; software development is one part of it, inside development.

Try it

Follow a payroll system from purchase to disposal and note the security decision at each early stage.

Loading the preview.

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 architect is planning the security work for a new council tax system across the first five stages of its life cycle.

Put the security activities in the order of the stages in which they belong, from first to last.

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

  1. 1Place trust boundaries in the design and threat model each part
  2. 2Test each interface between parts and approve a configuration baseline
  3. 3Record protection needs and rate the impact of a loss as low, moderate or high
  4. 4Apply secure coding, code review and vetting of bought components
  5. 5Write misuse cases and turn them into testable security requirements

What to remember

  • The system life cycle runs from stakeholder needs to retirement. ISO/IEC/IEEE 15288 sets the stages and NIST SP 800-160 adds the security work.
  • Stakeholder needs record protection needs, categorisation, privacy impact and legal duties. The business owner approves them.
  • Requirements analysis turns needs into testable rules; misuse cases show what to block.
  • Architectural design places trust boundaries and is threat modelled. Development uses secure coding, code review and component vetting.
  • Integration tests the joins, reruns earlier tests and fixes a configuration baseline.

Say it from memory

  1. What security work belongs in the stakeholder needs and requirements stage, and who approves it?

    Record protection needs, categorise the system's impact as low, moderate or high for confidentiality, integrity and availability, carry out a privacy impact assessment, and list legal and contractual duties. The output is the stakeholder requirements. The business owner approves them.

    Read this part again

  2. What does requirements analysis produce, and what is a misuse case?

    Precise, testable system requirements, security ones among them, each traced to a stakeholder need, in a system requirements specification approved by the system owner. A misuse case describes what an attacker or careless user might do, so that a requirement and a test can block it.

    Read this part again

  3. What security work happens at architectural design?

    Choose the system's structure from alternatives, design the security architecture, place trust boundaries where data passes between parts trusted differently, and threat model the design, recording a control for each threat. A design review accepts it before building starts.

    Read this part again

  4. Name three security activities in development and implementation.

    Secure coding that avoids known kinds of flaw, code review of each change, and vetting every bought or open-source component for vulnerabilities, supplier, licence and support period. Outputs are the built parts, review records and a list of components.

    Read this part again

  5. What security checks belong to integration?

    Interface testing of every connection between parts, regression testing to show nothing that worked has broken, and a configuration baseline of approved settings and versions, approved through change control.

    Read this part again

Sources