A scenario worth testing
A deployment introduces a configuration error and the team needs to return to the previous known-good version. This scenario is an invented teaching example, not a description of an actual breach or test of a named organisation.
OWASP Top 10:2025 includes A03 Software Supply Chain Failures, covering more than outdated direct dependencies. In this guide, the purpose is to evaluate a specific decision and its evidence. It does not follow that the scenario is likely in every environment, or that any untested product is vulnerable.
Red team perspective: define the risk
Question to test. Could an emergency rollback restore code but leave incompatible database or configuration changes behind?
Blue team perspective: define the boundary
Defensive decision. Define compatibility requirements, backup checkpoints and a rehearsed rollback decision.
Safe experiment: make the question measurable
Scope: synthetic records or an explicitly authorised, disposable test environment only. No customer records, live exploit payloads or third-party probing.
- State the decision. Describe the asset, who should be authorised, and which fact would refute the initial hypothesis.
- Create a safe fixture. Construct the example. Run a paper exercise with two fictitious releases, an irreversible schema change and a flagged error threshold.
- Evaluate three cases. Use the fictional cases below; identify the permitted case, an adverse case and a plausible exception. Record what evidence distinguishes them.
- Write an outcome. Decide whether to allow, deny, escalate or ask for more information. Record the policy owner and one measurable follow-up. Never equate a planned test with a completed live test.
Worked example and expected observations
Illustrative result, not a measured finding: A go/no-go matrix and a documented forward-fix alternative if rollback is unsafe.
| Case | Fictional input | Decision to justify |
|---|---|---|
| Expected activity | Canary passes API response and migration compatibility checks | Explain the precise reason it is permitted or expected. |
| Boundary challenge | Canary fails checkout transaction but deployment continues | Identify the policy, detection or approval that should respond. |
| Lookalike or exception | Transient telemetry outage is investigated separately from functional failure | Identify the missing context before making an accusation. |
Interpret this example
Start with the expected case: canary passes API response and migration compatibility checks. Compare the relevant boundary with the adverse case: canary fails checkout transaction but deployment continues. The distinction depends on Release version, gate criteria, observed test and rollback trigger, not the alarming appearance of an isolated event.
The third case deliberately resists a snap conclusion: transient telemetry outage is investigated separately from functional failure. Record which additional fact would change the decision. Bind the evidence to the exact component, artifact and release being evaluated. A hash or signature establishes identity/integrity under defined assumptions, not freedom from vulnerabilities.
Download the three-case CSV exercise (illustrative inputs, not collected production evidence).
Evaluate evidence and failure modes
False confidence to avoid: Successfully changing the application binary does not establish data integrity or restored service. Manifest and registry data may be incomplete; validate the actual release artifact and its approved origin.
A dependency lockfile, SBOM, artifact signature and build attestation establish different types of evidence and cannot be treated as interchangeable. When a log source is missing or a sample is ambiguous, mark the conclusion unverified rather than estimating a success rate from fictional data.
Decide what to improve
Recommended next action: Test user-critical workflows after rollback and record the achieved recovery state. Trace a release from source and dependency selection through building, signing and deployment.
- Which exact asset and named owner does this decision concern?
- Would your evidence include Release version, gate criteria, observed test and rollback trigger?
- Does the adverse case need blocking, investigation or both?
- What one controlled follow-up would distinguish the lookalike case from abuse?
Official references and limitations
Primary references explain the underlying control or framework; they do not validate the fictional cases above.
Try the related offline practice workbook, with runnable Python standard-library examples and marked limitations.