Security requirements and design review
Security throughout development
Security belongs in every stage of the software development lifecycle (SDLC), from requirements to operation. A security requirement describes behavior that can be checked. For a bookstore order page, “be secure” is too vague; require that only the owner can read an order and that requests without an authenticated identity are denied. Record the responsible developer and a test before implementation.
Turn a goal into an acceptance test
Write the subject, protected resource, permitted operation and relevant conditions. REQ-01: an authenticated customer can read an order only if its recorded owner equals the authenticated customer ID. Acceptance cases: owner A reads order A (allow); customer B reads order A (deny); anonymous reads order A (deny). Use synthetic identities; the server obtains identity from a trusted authentication layer rather than a user-supplied owner field.
Design review before coding
Draw the browser, application and order store. Decide where authentication is checked, where ownership is enforced, and which component may read stored data. A design review checks that each requirement has an enforcement point and an evidence plan. For REQ-01, the application checks ownership before returning order contents. A separate data-layer rule can strengthen the design. Keep a record of assumptions and unresolved questions.
Evidence and traceability
Link REQ-01 to the design decision, code review and regression tests; after release, monitor relevant denials without recording order contents or credentials. A passed test shows the observed behavior for its conditions, not universal security. If the requirement changes, update the design, tests and review together. NIST SSDF 1.1 is one framework for integrating security practices into development, not a mandatory lifecycle model for every organization.
Practice: a refund requirement
Write a requirement that permits a finance reviewer to approve a refund only after another employee requests it. Specify two allowed/denied cases and one missing-information case. Identify the enforcement point and evidence needed. Avoid requirements such as “use a firewall” without specifying the security outcome.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Security requirements and design review — knowledge check
Apply secure development concepts to fictional bookstore records.
Which requirement can be directly tested?
Which identity should the order handler trust?
Customer B requests order A. What verifies REQ-01?
What should a design review connect to each requirement?
The allowed refund workflow changes. What must be updated?