Security and operations
🌐 English · Dansk · Bahasa Melayu
How to use the four artifacts that carry security and operations through a
project: the Security Baseline (SBL), the Threat Model (THM), the
Test Plan (TP) with its security tests and the Operations Plan
(OPS). Each has a checklist: QC-SBL-001, QC-THM-001, QC-TP-001 and
QC-OPS-001. The two examples show them filled in:
Football Club and
Prime Numbers.
1. The chain
| Step | Artifact | When | Answers |
|---|---|---|---|
| 1 | SBL Security Baseline |
After the Business Case, before the Project Plan is accepted | Which controls does this project apply, and which does it opt out of? |
| 2 | THM Threat Model |
Before the design is accepted; updated as it changes | What can go wrong, and what is done about it? |
| 3 | TP Test Plan |
With the design; before any test is written | Which security and negative tests prove the mitigations? |
| 4 | OPS Operations Plan |
Before the first release | How is the system watched, patched, restored, rolled back, defended and retired? |
Each step needs the one before it: the Threat Model carries out controls B02 and
B03 of the baseline, the Test Plan carries out B08, and the Operations Plan
carries out B11 to B17. create-project asks for the artifacts in this order
(steps 3a, 5a and 6a of its journey) and project-planning turns every control
that applies into a task of a milestone.
2. Security Baseline (SBL)
What it is. One file, docs/security/security-baseline.md. It records the
project's profile and one decision for each of the controls B01 to B18.
Create it.
bash framework/scripts/new-artifact.sh SBL
Fill it in.
- Choose the profile, and give the reason: internal documents only, internal service, or exposed service or personal data. Choose the one the facts support; personal data or a public service is never the smallest profile.
- Decide every control:
AppliesorOpted out. The template shows, for each profile, which controls areExpectedand whichOptional. - Say how each applying control is met: the artifact, workflow, check or task. A control with no "how" is not met.
- Record each opt-out with the reason, the owner, the approver (not the owner) and an expiry date. A control the profile expects is opted out only by a risk exception. An opt-out past its expiry date counts as missing.
- List the obligations: laws and customer terms, or "none found" with the date.
Reviewed against QC-SBL-001. Common mistakes: a control left out of the
table instead of opted out; "not applicable" with no reason; an opt-out approved
by the person who asked for it; a claim to meet a standard that nobody assessed.
3. Threat Model (THM)
What it is. One file, docs/security/threat-model.md: the assets, the trust
boundaries, the threats and what is done about each.
Create it.
bash framework/scripts/new-artifact.sh THM
Fill it in.
- Assets: data, secrets, services and the build and release artifacts, each with an owner and a classification.
- Trust boundaries: a diagram of where trust changes (a browser, a network, an administrator). It must agree with the Sequence Diagram and the Design Class Diagram.
- Method: name it (for example STRIDE) and apply it to every boundary crossing, not to a selected few.
- Threats: one row each, with the asset, the boundary, the category, the likelihood and impact on a stated scale, and the rating.
- Mitigations: for each threat, the control, the design element that carries
it (
SD,DCD,ERDorADR) and, for High or Critical, the test case; or a risk exception that names the finding, owner, approver, expiry date and compensating controls.
A High or Critical threat with no mitigation and no valid exception is a
blocking finding: the review is a No-Go. Keep secrets and exploit steps out of
the model.
Reviewed against QC-THM-001. Common mistakes: assets named as
technologies ("the database"); a boundary diagram that differs from the design;
threats with no rating; "follow best practice" as a mitigation.
4. Test Plan (TP) with security tests
The Test Plan already exists in every project. With a Threat Model it also holds the security and negative tests:
- one test for every High or Critical threat of the Threat Model, written as a negative case: the invalid input, the denied access, the failure path;
- the tests for baseline control B08 where it applies;
- secure defaults (what a new account, a new setting or an empty configuration allows), where a threat concerns them;
- the restore and rollback tests that the Operations Plan names.
Put each in the coverage matrix with a test case ID (TC-NNN) and cite the
threat (T-NNN) in "Traces to", so the chain from threat to test can be followed.
The expected result is an observable outcome, never "is secure".
Reviewed against QC-TP-001 (criteria 14 and 15). Common mistake: only
the happy path is tested.
5. Operations Plan (OPS)
What it is. One file, docs/operations-plan.md: how the released system is
run and finally retired. It is the artifact of baseline controls B11 to B17.
Create it.
bash framework/scripts/new-artifact.sh OPS
Fill it in, one section each: monitoring and alerts (what, threshold, who is alerted, response time); patching (cadence and the limit for a critical fix); backup and restore (and the date and result of the last tested restore); deployment and rollback (dry run, approval, the way back, tried once); incident response (severity, roles, steps, review with a deadline); vulnerability handling (intake, triage, response times, disclosure); decommissioning (data deleted, secrets revoked, access removed, archive kept). Each procedure has an owner and a last review date, and traces to the baseline control it carries out. Keep secrets and private contact details out; say where they are kept.
Reviewed against QC-OPS-001. Common mistakes: a backup with no tested
restore; alerts with no owner; "patch regularly"; a rollback nobody tried.
6. When a project is small
A project that opts out of B11 to B17 (nothing is deployed or operated) has no Operations Plan, and says so in the baseline with the reason, owner, approver and expiry date. The opt-out lapses when the project is released to others, a network service or personal data arrives; then the profile is chosen again and the Operations Plan is written.
7. Where to go next
- The artifacts and their short names: Artifacts.
- Two filled-in projects: Football Club (personal data of minors, the largest profile) and Prime Numbers (a local program, the smallest).
- The gap analysis that the controls come from:
process/devsecops-coverage.md.
SQA and QC Framework
- Home
- Description
- Artifacts
- Install
- Badges
- GUI Testing
- Candidate Stories
- Security and operations
- Prompt Log
- AI Prompt Template
- Example: Football Club
- Example: Prime Numbers
- Appendix
Related
Languages