High School AdvancedA11.1Secure Software Architecture

Lesson A11.1

Security in the Software Lifecycle

Secure software does not become secure because someone performs one final review before launch. Security decisions begin when the product is first defined and continue through architecture, implementation, review, validation, release, operation, change, and retirement.

This lesson teaches you how to place the right security question at the right lifecycle stage, identify the evidence that supports the decision, assign ownership, keep Unknowns visible, and recognize when a later change should reopen an earlier security assumption.

Lesson Progress

Security in the Software Lifecycle

High School AdvancedA11: Secure Software Architecture • Lesson 1 of 10

10% complete

Readiness Check

A11.1 Entry Readiness

0/4 ready

Professional Hook

Why Strong Teams Do Not Wait Until the End

Imagine a fictional team spends six months building a student services portal. Three days before launch, someone asks a basic question: “Which staff members are allowed to perform high-impact account actions, and where is that rule enforced?”

If the team cannot answer, the problem is not only a missing test. The requirement may never have been defined clearly. The architecture may not have assigned responsibility. The implementation may have followed different assumptions. Reviewers may not have known what to check. Testers may not have known what result counted as success.

That is the central idea of this lesson: software security is strongest when each lifecycle stage prepares evidence for the next one.

Security is not a final inspection. It is a chain of connected decisions.

Learning Objectives

Five Capabilities for This Lesson

1

Explain why software security must be integrated across the complete lifecycle instead of added only before release.

2

Identify the security questions, evidence, owners, and decisions that belong at planning, design, implementation, review, testing, deployment, operation, maintenance, and retirement stages.

3

Distinguish preventive controls, validation evidence, operational monitoring, and governance decisions across a fictional software lifecycle.

4

Recognize lifecycle gaps such as missing ownership, late review, stale evidence, untracked dependencies, unvalidated requirements, and unsupported release assumptions.

5

Build a professional lifecycle security map that can become the first section of the A11 Secure Software Design Assessment.

Why It Matters

The Cost of a Lifecycle Gap

Security gaps often look like isolated technical problems when they are discovered late. But many of them began much earlier as an unclear requirement, missing owner, undocumented assumption, unreviewed dependency, incomplete change process, or missing validation plan.

Lifecycle thinking helps defenders ask a different question: instead of only asking “Is there a problem now?”, ask “At which earlier stage should this expectation have been defined, reviewed, validated, or owned?”

Earlier

Clarify important security expectations while design choices are still flexible.

During

Keep implementation, review, dependencies, and evidence aligned with those expectations.

After

Use operations, maintenance, and retirement evidence to confirm assumptions and improve the next cycle.

Core Framework

The Secure Software Lifecycle Map

Different organizations use different lifecycle names and delivery models. Some use sequential stages, others use continuous delivery, and many combine product, engineering, platform, and security workflows. The exact labels matter less than the underlying questions.

For A11, use this nine-stage model. A real team may combine several stages, but the security responsibilities still need to exist.

01

Plan

What are we building, for whom, and what would matter if it failed?

Security work

Identify users, business purpose, important information, regulated or sensitive data, expected availability, privileged actions, trust assumptions, suppliers, environments, and major abuse or misuse concerns.

Evidence

Product brief, data classification, stakeholder list, business impact notes, initial security goals, high-level risk assumptions.

Typical owners

Product owner, security representative, engineering lead, data owner.

Decision

Is the product scope understood well enough to define meaningful security requirements?

02

Design

How should the system enforce security expectations?

Security work

Translate security goals into architecture decisions: identity, authorization, data handling, trust boundaries, secrets, dependencies, logging, resilience, configuration, failure behavior, and change controls.

Evidence

Architecture diagram, requirements register, threat model, design review notes, dependency assumptions, trust-boundary map.

Typical owners

Security architect, software architect, engineering lead, service owners.

Decision

Does the design support the required security behavior before implementation begins?

03

Implement

Are implementation choices consistent with the approved design?

Security work

Follow secure coding standards, approved libraries, configuration conventions, secret-handling rules, authorization patterns, logging guidance, error-handling rules, and environment separation.

Evidence

Change records, pull requests, dependency metadata, static configuration summaries, code-review notes, implementation checklists.

Typical owners

Software engineers, reviewers, component owners.

Decision

Is the implementation traceable to the design requirements and approved patterns?

04

Review

What evidence shows the implementation still matches security intent?

Security work

Review code, architecture changes, dependencies, privileged paths, error handling, logging, configuration, assumptions, and requirement traceability using safe peer-review processes.

Evidence

Review comments, design-change records, approval notes, exception records, evidence links, unresolved questions.

Typical owners

Peer reviewers, security reviewers, software leads.

Decision

Are material concerns resolved, accepted by the right owner, or explicitly blocked?

05

Validate

What evidence shows the required behavior works as intended?

Security work

Use safe, authorized tests and supplied evidence to validate requirements, negative paths, configuration expectations, logging coverage, dependency baselines, rollback behavior, and release criteria.

Evidence

Test results, requirements matrix, environment scope, expected outcomes, failed checks, retest evidence, sign-off notes.

Typical owners

Engineers, testers, security reviewers, release owners.

Decision

Is the evidence sufficient to support release, or are gaps still blocking?

06

Release

Is the approved software package ready to move into the intended environment?

Security work

Confirm artifact identity, approved version, configuration baseline, environment separation, access controls, monitoring, rollback plan, known exceptions, ownership, and release approvals.

Evidence

Release packet, artifact metadata, configuration baseline, approval record, rollback plan, monitoring checklist.

Typical owners

Release engineer, service owner, security approver, accountable risk owner.

Decision

Proceed, pause, or proceed only under a governed exception with explicit ownership and expiration.

07

Operate

Does the software continue to behave safely after release?

Security work

Monitor important security events, source health, authorization decisions, service health, error trends, configuration drift, dependency status, and operational exceptions.

Evidence

Monitoring dashboards, source-health status, alert summaries, change records, support trends, security review notes.

Typical owners

Operations, engineering, security operations, service owners.

Decision

Is the operational evidence consistent with the expected security posture?

08

Maintain

How do changes affect the original security assumptions?

Security work

Review new features, dependency updates, design changes, configuration changes, supplier changes, bug fixes, incident lessons, and requirement updates.

Evidence

Change requests, new threat-model notes, dependency updates, requirement revisions, validation evidence, maintenance records.

Typical owners

Engineering teams, security reviewers, product owners, dependency owners.

Decision

Does this change require renewed design review, validation, approval, or risk acceptance?

09

Retire

How should the software and its data be safely removed from service?

Security work

Plan data retention or deletion, account shutdown, credential and secret retirement, dependency cleanup, access removal, monitoring closure, records retention, and replacement-system handoff.

Evidence

Retirement plan, data-disposition record, access-removal evidence, secret-rotation or revocation record, ownership sign-off.

Typical owners

Service owner, data owner, security, operations, records or compliance owner.

Decision

Can the system be retired without leaving active access, unmanaged data, stale credentials, or unsupported dependencies behind?

Vocabulary

Terms You Need for the Rest of A11

Software Development Lifecycle (SDLC)

The organized stages through which software is planned, designed, built, reviewed, tested, released, operated, maintained, and eventually retired.

Security requirement

A specific expectation describing security behavior the software should provide, along with scope, ownership, and evidence needed to validate it.

Traceability

The ability to connect a requirement to design decisions, implementation evidence, validation results, and release decisions.

Security gate

A defined decision point where required evidence is reviewed before the software or change moves forward.

Exception

A documented decision allowing a requirement or control to be temporarily unmet under explicit ownership, rationale, safeguards, and an expiration or review date.

Residual risk

Risk that remains after controls, review, validation, and other safeguards are considered.

Lifecycle evidence

Artifacts such as requirements, diagrams, review notes, test results, approvals, configuration records, monitoring summaries, and retirement records that support decisions.

Change trigger

A condition that causes earlier security questions to be revisited, such as a new dependency, new privileged feature, new data type, or architecture change.

Release readiness

The documented state showing whether required evidence, approvals, configuration, rollback, monitoring, and unresolved risks are acceptable for release.

Retirement

The controlled removal of software from service, including access removal, data disposition, secret retirement, and closure of operational responsibilities.

Lifecycle Principle 1

Security Starts Before Implementation

Planning and design determine what the team believes it is protecting. If important user roles, data categories, privileged actions, trust boundaries, and availability expectations are not understood early, later reviewers must guess what “secure” means.

Early security work does not require every detail. It requires enough clarity to create useful requirements and identify the areas that need deeper design.

Weak early statement

“The portal should be secure and easy to use.”

Stronger early statement

“Students may view only their own records; counselors may view assigned students; high-impact account changes require a privileged role and must be auditable.”

Weak ownership

“Security team will handle it later.”

Stronger ownership

“Product defines the business rule, architecture defines enforcement, engineering implements it, review checks traceability, and validation provides evidence.”

Lifecycle Principle 2

Requirements Create Traceability

Traceability means the team can follow a security expectation from the original requirement into architecture, implementation, review, validation, and release evidence.

StageExample evidenceQuestion answered
RequirementPrivileged account changes require an approved staff role and must be logged.What should the system do?
ArchitecturePrivileged actions flow through the central authorization service and security telemetry path.Where should the rule be enforced and observed?
Implementation reviewPeer review confirms the privileged action uses the approved authorization interface.Does the implementation follow the intended pattern?
ValidationAuthorized test evidence confirms approved roles succeed and unapproved roles receive the expected denial behavior.Does the requirement behave as expected in the test environment?
ReleaseRequirement evidence is complete, monitoring is ready, and no blocking exception remains.Is there enough evidence to support release?

Lifecycle Principle 3

Ownership Turns Intent Into Action

“Someone should check this” is not an operational security control. The lifecycle needs named roles or accountable teams for each requirement, evidence source, exception, and follow-up.

Requirement owner

Defines the business or security expectation and confirms the requirement remains relevant.

Evidence owner

Produces or maintains the artifact that supports the requirement or decision.

Decision owner

Has authority to proceed, pause, approve an exception, or accept residual risk.

Service owner

Maintains the software after release and ensures lifecycle responsibilities continue.

Dependency owner

Tracks important third-party components, versions, maintenance, and change triggers.

Retirement owner

Ensures access, data, secrets, integrations, and records are closed correctly at end of life.

Fake Dashboard

Northbridge Lifecycle Assurance Dashboard

Fictional training data — evidence status only

Defined security requirements

18

15 Confirmed, 2 Conditional, 1 Unknown

Critical lifecycle owners

9 / 10

Dependency review owner missing for one component

Release evidence coverage

92%

One high-impact validation row remains Unknown

Open change triggers

2

New scheduling integration and dependency baseline change

Fake SOC Alert

Lifecycle Evidence Gap

Source: Fictional Release Review • Time: 14:20

Medium Severity
The release packet references requirement AUTHZ-07, but the current validation matrix has no recorded result for the privileged session timeout requirement.
Defensive recommendation: Keep the requirement status Unknown, assign the validation owner, and resolve or formally govern the gap before release.

Lifecycle Principle 4

Evidence Must Match the Claim

A common review mistake is using one kind of evidence to support a claim it cannot actually prove.

The requirement exists.

Appropriate evidence: Requirements register or approved design requirement.

Caution: A code-review comment alone does not prove the requirement was formally defined.

The design supports the requirement.

Appropriate evidence: Architecture diagram, design decision, threat model, or approved design review.

Caution: A passing runtime check does not explain whether the architecture is maintainable or consistently enforced.

The implementation follows the design.

Appropriate evidence: Peer review, implementation checklist, change record, or safe code-review evidence.

Caution: An architecture diagram alone does not prove the implementation actually follows it.

The requirement works as expected.

Appropriate evidence: Authorized validation result tied to the requirement and expected outcome.

Caution: A reviewer saying “looks good” is not the same as validation evidence.

The release is ready.

Appropriate evidence: Current release packet with required evidence, approvals, exceptions, rollback, and monitoring.

Caution: A successful build only proves the build completed, not that every security condition is satisfied.

Fake Log Panel

Fictional Lifecycle Decision Log

training-log-viewer.log
[09:05] PLAN       DATA-CLASSIFICATION confirmed by Product + Data Owner
[09:42] DESIGN     AUTHZ-07 mapped to Authorization Service and audit telemetry
[11:18] IMPLEMENT  dependency owner missing for messaging-library record
[13:10] REVIEW     privileged-action review evidence attached to AUTHZ-07
[14:20] VALIDATE   session-timeout evidence = UNKNOWN
[14:32] RELEASE    decision pending validation owner response
[15:00] CHANGE     scheduling integration flagged as architecture-review trigger

Training note: this is fake data for defensive analysis practice only.

Evidence Register

Separate Observation, Meaning, and Next Action

A professional lifecycle review should distinguish what the supplied evidence says from what the reviewer concludes. The following fictional register models that separation.

LC-01PlanConfirmed

Source: Product brief

Observation

The fictional Northbridge Student Services Portal will support students, counselors, and approved administrative staff.

Meaning

Multiple user groups with different permissions must be reflected in design requirements.

Next action

Define user roles, sensitive actions, and data categories before architecture approval.

LC-02DesignConfirmed

Source: Architecture diagram

Observation

Identity, application, API, data, logging, and notification services cross several trust boundaries.

Meaning

Authentication alone will not answer every authorization and data-handling question.

Next action

Create explicit requirements for trust boundaries and privileged actions.

LC-03ImplementConditional

Source: Dependency record

Observation

A messaging library is approved, but ownership for version review is not listed.

Meaning

The dependency is known, but lifecycle responsibility is incomplete.

Next action

Assign a dependency owner and review trigger.

LC-04ReviewConfirmed

Source: Peer review note

Observation

Reviewers confirmed the new counselor action uses the expected authorization service.

Meaning

The implementation appears aligned with the intended architecture for that action.

Next action

Link the review evidence to the requirement and validation plan.

LC-05ValidateUnknown

Source: Requirements matrix

Observation

The row for privileged session timeout has no recorded result.

Meaning

The review cannot conclude that this requirement was validated.

Next action

Assign an owner and collect authorized test evidence before release decision.

LC-06ReleaseConditional

Source: Release packet

Observation

Rollback and monitoring plans are approved, but one high-impact requirement remains Unknown.

Meaning

Release readiness depends on the organization's blocking and exception rules.

Next action

Escalate the missing evidence to the accountable release and risk owners.

LC-07OperateConfirmed

Source: Monitoring summary

Observation

Authentication, authorization, API errors, and privileged actions are visible in approved monitoring sources.

Meaning

The system has operational evidence for several important security questions.

Next action

Track source health and confirm expected coverage after major changes.

LC-08MaintainConditional

Source: Change request

Observation

A new external scheduling integration is planned for the next release.

Meaning

The new trust relationship changes earlier architecture assumptions.

Next action

Revisit data-flow, dependency, authorization, logging, and supplier requirements.

LC-09RetireUnknown

Source: Retirement draft

Observation

The draft says the old notification service will be removed but does not mention access or secret retirement.

Meaning

The retirement plan is incomplete.

Next action

Add access removal, secret revocation, data disposition, ownership, and verification evidence.

Analyze the Evidence

Evidence Analysis: Release Readiness

The code-review record is current.
Rollback evidence is approved.
Monitoring coverage is documented.
The validation matrix has no result for the high-impact requirement.
No exception record is attached.

The fictional release packet has code-review approval, rollback, and monitoring evidence, but one high-impact requirement remains Unknown. What is the strongest conclusion?

Lifecycle Principle 5

Changes Reopen Earlier Questions

Software evolves. A new feature may introduce a new privileged action. A new dependency may change maintenance responsibilities. A new supplier may create a new trust relationship. A new data type may change privacy or retention expectations.

Strong lifecycle programs define change triggers so teams know when an earlier requirement, threat model, design decision, validation plan, or release criterion must be revisited.

Change triggerQuestions to reopenPossible evidence
New privileged featureAuthorization, logging, approval, validation, user-role assumptionsUpdated requirement, design review, validation matrix
New third-party integrationTrust boundary, data flow, dependency, supplier, privacy, monitoringUpdated architecture, supplier review, dependency record
New sensitive data typeClassification, minimization, access, retention, logging, deletionData inventory, requirement update, design decision
Major dependency updateCompatibility, provenance, maintenance, regression risk, rollbackDependency record, test evidence, release notes
Deployment model changeEnvironment boundaries, identity, configuration, logging, secrets, resilienceArchitecture update, configuration baseline, release review
Incident lessonAssumptions, monitoring, response, recovery, design requirementPost-incident review, updated requirement, validation plan

Lifecycle Principle 6

Retirement Is a Security Stage

Teams often think about security while a service is active but forget what remains after it is replaced. An unused application can still leave behind accounts, credentials, secrets, data copies, integrations, scheduled jobs, monitoring rules, and dependencies.

Access

Remove or disable service accounts, user access, administrative paths, integrations, and unused permissions.

Secrets

Retire, rotate, or revoke credentials and keys associated with the old service according to approved processes.

Data

Follow retention, transfer, archival, or deletion requirements and keep evidence of the disposition decision.

Dependencies

Remove unsupported packages, build jobs, vendor links, and maintenance responsibilities that no longer serve an active system.

Monitoring

Close or redirect alerts, dashboards, logs, ownership, and on-call expectations so abandoned sources do not create confusion.

Records

Keep the approvals, retirement evidence, and required records needed to explain what happened to the service and its data.

Common Mistakes

Where Lifecycle Programs Lose Quality

1

Security only at final testing

Why it fails: Late review discovers design problems when the architecture, deadlines, and implementation are already difficult to change.

Better approach: Place security questions and evidence requirements at planning, design, implementation, validation, release, and operations stages.

2

A checklist with no ownership

Why it fails: Tasks can appear complete even when nobody is accountable for evidence or follow-up.

Better approach: Attach owners, status, evidence, review dates, and escalation paths to important lifecycle requirements.

3

Treating review approval as proof of everything

Why it fails: A code review may support one claim but does not automatically prove runtime configuration, deployment readiness, monitoring, or operational behavior.

Better approach: Match each claim to the type of evidence capable of supporting it.

4

Ignoring changes after release

Why it fails: Dependencies, integrations, users, data types, and architecture can change original assumptions.

Better approach: Define change triggers that reopen threat models, requirements, validation, or release review.

5

Hiding Unknowns to make a release look complete

Why it fails: Missing evidence becomes invisible risk and can undermine later decision-making.

Better approach: Keep Unknowns explicit and route them to the right owner before the decision.

6

Skipping retirement planning

Why it fails: Old systems can leave stale accounts, credentials, data, integrations, or unsupported dependencies behind.

Better approach: Treat retirement as a formal lifecycle stage with evidence and ownership.

Scenario Decision Lab

Scenario Decision Lab 1 — The Friday Release

Northbridge plans a Friday release. Functional tests passed and the code review is approved. During the release meeting, the team notices that one high-impact security requirement has no recorded validation result. The product deadline is important, but there is no approved exception record.

Scenario Decision Lab

Scenario Decision Lab 2 — The New Scheduling Integration

Two months after launch, the product team wants to add a third-party scheduling service. The existing threat model and requirements were approved before this integration existed. The new service will receive limited appointment information from the application.

Safe Fictional Lab

Build a Lifecycle Security Map

You are reviewing the fictional Northbridge Student Services Portal. Use only the supplied evidence in this lesson. Do not inspect real software, repositories, accounts, APIs, or devices.

1

Stage

Where in the lifecycle is this decision happening?

2

Security question

What must the team know or decide at this stage?

3

Requirement / expectation

What behavior, control, or evidence is expected?

4

Owner

Who is accountable for producing evidence or making the decision?

5

Evidence

What supplied artifact could support the claim?

6

Status

Confirmed, Conditional, Degraded, Unknown, Blocked, or Not Applicable?

7

Next action

What needs to happen before the software moves forward?

8

Change trigger

What future change would require this question to be revisited?

Lab safety rule

Your job is to organize evidence and decisions, not to test a real target. When information is missing, record Unknown and identify the next evidence request.

Analyze the Evidence

Evidence Analysis: Change Trigger

The original architecture review was approved three months ago.
The new integration introduces a new external service.
Limited appointment information will cross the new trust boundary.
No updated dependency or supplier record has been attached yet.
The product team wants to keep the same release date.

A new third-party integration will receive limited appointment information. The old threat model predates the integration. What is the strongest lifecycle response?

Advanced Challenge

Design a Useful Security Gate

A weak security gate is a checkbox. A strong gate is a decision point that identifies exactly what evidence must exist, who reviews it, what happens when evidence is missing, and who can approve an exception.

Design a fictional gate for the transition from Validate → Release. Your gate should include:

1

Required security requirements and their validation status

2

Required review and dependency evidence

3

Configuration baseline and artifact identity

4

Monitoring and source-health readiness

5

Rollback plan and owner

6

Blocking criteria

7

Exception authority and expiration

8

Residual-risk owner

9

Unknown handling

10

Post-release validation expectations

The challenge is not to make the gate as strict as possible. It is to make it clear, evidence-based, repeatable, and useful for accountable decisions.

Defender Habits

A11.1 Defender Checklist

Skill Check

Seven Questions

Check Your Understanding

A11.1 Mini Quiz: Security in the Software Lifecycle

Choose your answers first. Explanations appear only after submission.

1. Which statement best describes secure software lifecycle thinking?

2. A requirement exists, but no test result is recorded. What is the most professional status?

3. Which artifact most directly supports a release-readiness decision?

4. Why can a new third-party integration trigger renewed security review?

5. What makes a lifecycle security requirement actionable?

6. Why is retirement included in a secure software lifecycle?

7. Which choice best describes a healthy security gate?

Portfolio Prompt

Portfolio Build — Lifecycle Security Map

Create the first artifact for your A11 Secure Software Design Assessment: a lifecycle security map for the fictional Northbridge portal. Include lifecycle stage, security question, requirement or expectation, owner, supporting evidence, status, next action, and change trigger. Keep Unknowns explicit and use only fictional or supplied information.

Use the nine-stage lifecycle model from this lesson.
Do not claim evidence exists when it was not supplied.
Separate observation from interpretation.
Make ownership visible.
Include at least three change triggers that reopen earlier questions.
Add one paragraph explaining how the lifecycle map reduces late security surprises.

Confidence / Readiness Reflection

Are You Ready for A11.2?

Before moving to secure design requirements, check whether you can explain how those requirements fit into the larger lifecycle.

1

I can explain why security begins before implementation.

2

I can connect a lifecycle stage to an appropriate security question.

3

I can separate requirement evidence from review evidence, test evidence, release evidence, and operational evidence.

4

I can mark missing evidence as Unknown instead of assuming success.

5

I can identify an owner and next action for a lifecycle gap.

If one of these still feels unclear, revisit the lifecycle stage table and the evidence-register section. A11.2 will assume that you understand where requirements come from and how they later connect to architecture, review, validation, release, and operations.

Portfolio Build Guide

How to Make the Lifecycle Map Look Professional

A strong portfolio artifact should be readable by someone who was not present during the lesson. It should show the logic of the review rather than only list security words.

Start with context

State the fictional product purpose, users, important data, environments, and major privileged actions.

Use one row per meaningful lifecycle decision

Avoid giant paragraphs. Make stage, owner, evidence, status, and next action easy to scan.

Keep evidence references specific

Use labels such as LC-03 Dependency Record or LC-05 Requirements Matrix instead of vague phrases such as “the documents.”

Use bounded language

Say “the supplied evidence supports...” instead of making claims about systems you did not inspect.

Show Unknowns

Unknowns demonstrate evidence discipline. Add the evidence request and owner needed to resolve them.

Show feedback loops

Include arrows or notes showing how incidents, dependency changes, integrations, and new requirements reopen earlier stages.

Add a release decision box

Summarize what is Confirmed, Conditional, Unknown, Blocked, or governed through exception.

End with a concise executive summary

Explain the strongest lifecycle controls, largest gaps, and next three actions in non-technical language.

Key Takeaways

What You Should Remember

1.Security is a lifecycle responsibility, not a release-week activity.
2.Every important security claim should connect to evidence appropriate for that claim.
3.Ownership makes lifecycle controls actionable.
4.Unknown is a professional status when evidence is missing.
5.Security gates should help teams make decisions, not merely produce paperwork.
6.Changes after release can invalidate earlier assumptions and should trigger renewed review.
7.Retirement is part of software security because access, data, secrets, and dependencies can outlive the application.
8.A strong lifecycle map becomes the foundation for the rest of A11.

Lesson Safety Boundary

Lifecycle review is defensive governance

This lesson does not authorize scanning, probing, exploitation, credential attacks, bypass testing, destructive testing, or accessing real software, accounts, repositories, devices, APIs, or networks without permission. Use only fictional or explicitly authorized evidence.

Lesson Complete

A11.1 Security in the Software Lifecycle Complete

You now have the lifecycle foundation for A11. Next, A11.2 turns broad security goals into clear Secure Design Requirements that can be owned, reviewed, validated, and governed.