# Security requirements in the SDLC

Write security requirements as pass-or-fail statements that come from three places: the organization's policy, the risk of the specific feature, and an external standard such as OWASP ASVS. NIST SP 800-218 tasks PO.1.1 to PO.1.3 say to document requirements for your development environment, for the software you write, and for third-party components, and keep them current. Pick an ASVS level first (Level 1 is about 20 percent of the 350 or so requirements, Level 2 brings the total to about 70 percent), then write each requirement with an owner and a test. A worked set for a password reset feature is below. Read 19 Nov 2026.

## Where security requirements come from

SP 800-218 splits requirements into three tasks under practice PO.1 ("Define Security Requirements for Software Development"), each with a different scope:

| SSDF task | Requirements about | Typical content | Owner | Evidence |
|---|---|---|---|---|
| PO.1.1 | The development infrastructure and processes | Who may access repositories and build systems, endpoint rules, how open-source use is governed | Engineering lead with security | Policy, reviewed at least annually (the task's own example) |
| PO.1.2 | The software your organization develops | Architecture and design rules, flaw classes that gates check, how vulnerabilities in released software are handled, what is archived per release, end-of-life notice, an exception process | Security lead with product and engineering | Policy, requirements on tickets, exception records |
| PO.1.3 | Third-party commercial components you reuse | Security terms in contracts, selection criteria such as the supplier's disclosure program, attestation, provenance data | Procurement with security | Acquisition documents, supplier attestations |

Below the policy level, each feature adds its own requirements from its own risk. Practice PW.1 (design) turns the threat model into requirements for that feature, and PW.1.2 asks you to track them with the design decisions. That is the loop to aim for: policy gives the baseline, the feature's risk adds to it, the [threat model](/stages/design/) feeds new requirements back, and all of it lives in the tracker next to the work.

## Choose an ASVS level before you write anything

Starting from the OWASP Application Security Verification Standard saves you writing a requirement catalog. ASVS 5.0.0 (published 30 May 2025) contains around 350 requirements in 17 chapters, and defines three levels:

| Level | Share of the requirements | What it is for (ASVS text) |
|---|---|---|
| Level 1 | About 20 percent | The minimum, a critical starting point; basic first-layer defenses against common attacks |
| Level 2 | About 50 percent more, so about 70 percent of the total to comply | Most applications should strive for this level |
| Level 3 | The final ~30 percent | Applications that need the highest level of security; defense in depth and hard-to-implement controls |

ASVS leaves the choice to you: an organization should analyze its risks and decide the level from the sensitivity of the application and its users' expectations. Its own example is an early-stage startup collecting limited sensitive data that may start with Level 1, against a bank that would find it hard to justify less than Level 3 for online banking. It also encourages forking: drop chapters you do not use (for example OAuth or WebRTC), keep the numbering so that a requirement means the same thing across versions, and start from Level 1 as a baseline.

Three habits from the standard's own guidance make the output auditable:

1. **Cite the version.** ASVS recommends the form `v<version>-<chapter>.<section>.<requirement>`, so `v5.0.0-6.4.3` is unambiguous when numbering changes in a major release.
2. **Write the documentation requirements as decisions.** Each chapter's first section asks for documented decisions (for example, how rate limiting is configured, what validation rules apply). ASVS treats verifying the documentation and verifying the implementation as two separate activities, so record both.
3. **Treat levels as priorities, not exemptions.** A feature that handles credentials can take a higher level than the rest of the product.

## Write each requirement so a test can fail it

ASVS defines a good requirement in its scope chapter: it has a demonstrable effect on security (without it the application is less secure), it states what must be achieved rather than a recommendation, and it can be verified with a clear pass or fail. Use the same rules for requirements you write yourself.

A requirement record needs five fields:

| Field | Example |
|---|---|
| Statement | A reset link can be used once and stops working after it is used or expires |
| Source | `v5.0.0-6.4.1` (ASVS), or policy clause 4.2 |
| Level or priority | Level 1 |
| Verified by | Unit test on token consumption; reviewer checks the expiry value against the design note |
| Owner | Feature team lead (builds), security champion (reviews) |

Avoid these forms, which cannot fail: "the system shall be secure", "use strong encryption" (which one, for what data?), and "follow best practices". Replace them with a statement that names the behavior and the check. Where the value depends on your context (a token lifetime, a rate limit), put the number in a documented decision and refer to it, as ASVS's documentation requirements do.

## Add abuse cases for the feature

Alongside the standard's requirements, write short abuse cases: ways a valid workflow is used that nobody wanted. The OWASP Threat Modeling Cheat Sheet lists "misuse or abuse cases" as the technique for abuse of a valid workflow or business rule, exploring actions performed out of order, repeatedly, concurrently or for an unintended outcome. Each abuse case becomes one or more requirements and one test. They also seed the [design-stage threat model](/stages/design/).

For the password reset feature:

| Abuse case (stated as what the system must withstand) | Becomes the requirement |
|---|---|
| Steps of the flow are performed out of order | R4 below |
| The same reset is requested over and over | R5 |
| The same link is used twice | R2 |
| Responses show which addresses have accounts | R6 |
| A successful reset leaves old sessions alive | R9 |

## Worked example: requirements for a password reset by email

The feature (an example): a user who forgot their password asks for a link by email, opens it, and sets a new password. The team targets ASVS Level 2 for this feature because it handles credentials. Every ASVS identifier and level below is from ASVS 5.0.0; the statements are written for this feature, and the numbers marked as chosen are the team's decisions, not ASVS values.

| ID | Requirement for this feature | ASVS 5.0.0 reference and level | Verified by | Owner |
|---|---|---|---|---|
| R1 | A secure reset process exists that does not bypass any multi-factor authentication the account has enabled | `v5.0.0-6.4.3`, L2 | Test: account with a second factor cannot finish a reset on the link alone | Feature team |
| R2 | The reset link is generated with a secure random source, is single use, and expires (lifetime chosen by the team, for example 30 minutes) | `v5.0.0-6.4.1` (initial passwords and activation codes: random, short-lived, not reused), L1, applied by analogy; the OWASP Forgot Password Cheat Sheet lists random, long, stored securely, single use, and expiring | Unit tests for single use and expiry; review of token generation | Feature team, security champion reviews |
| R3 | No secret questions or password hints are offered as an alternative path | `v5.0.0-6.4.2`, L1 | Review of the flow and the UI | Product owner |
| R4 | The reset flow processes steps in order for the same user, without skipping | `v5.0.0-2.3.1`, L1 | Test: calling the final step without a valid token fails | Feature team |
| R5 | Anti-automation controls limit reset requests; the limits are documented (chosen by the team) | `v5.0.0-2.4.1`, L2; `v5.0.0-6.1.1`, L1 (documentation) | Documented decision exists; test shows the limit applies | Feature team |
| R6 | Reset requests and failed attempts do not reveal whether an account exists, in message or timing | `v5.0.0-6.3.8`, L3 (stated to include forgot password); adopted early for this feature | Test compares responses for known and unknown addresses | Feature team |
| R7 | The user is notified after a credential reset | `v5.0.0-6.3.7`, L3; adopted early | Test: notification is sent on completion | Feature team |
| R8 | New passwords meet the application's password policy | `v5.0.0-6.2.1` and related 6.2 requirements, L1 and L2 | Same checks as registration and password change | Feature team |
| R9 | The user can end other active sessions after a reset (the team chooses to end them automatically) | `v5.0.0-7.4.3`, L2 (give the option) | Test: older sessions stop working after the reset | Feature team |
| R10 | Reset requests, token issue, token use and password change are logged with who, what and when, and no token or password is written to a log | `v5.0.0-16.3.1`, L2; `v5.0.0-16.2.1`, L2; `v5.0.0-16.2.5`, L2 | Log review in test; reviewer checks log statements | Feature team, security champion reviews |
| R11 | Administrative or support users can start a reset for a user but cannot choose the user's password | `v5.0.0-6.4.6`, L3; adopted early | Review of the support tooling design | Product owner |

Two things to record next to this list. First, R6, R7 and R11 are Level 3 requirements adopted early because they are cheap here and cover this feature's main risks; recording the reason prevents a later reviewer from reading it as inconsistency. Second, ASVS has a requirement (`v5.0.0-6.3.6`, Level 3) that email is not used as an authentication mechanism, and its notes record that NIST SP 800-63 considers email not acceptable for that purpose. A product that targets Level 3 cannot rely on an email link alone and needs a different design. At Level 2 the email link is within the standard, and that choice goes in the decision log.

## Where the requirements live and what they leave behind

Requirements that sit in a document nobody opens do not survive the first sprint. Keep them where the work is, and use the SSDF examples as the evidence list:

| Practice | What to do | Evidence an assessor can inspect | Owner |
|---|---|---|---|
| PO.1.2 (example 2) | Define policy that names the classes of flaws gates verify and the responses to vulnerabilities found in released software | The policy; gate configuration | Security lead |
| PO.4.1 (example 3) | Add security criteria to the existing definition of done | The definition of done; completed tickets with the criteria ticked | Engineering manager |
| PW.1.2 | Track security requirements, risks and design decisions with the feature | Requirement and decision records linked to the epic or design document | Feature team |
| PO.1.2 (example 7) | Handle requests to waive a requirement through an exception process with periodic review | Exception records with owner, reason, expiry | Security lead and product owner |
| PO.1.2 (example 6) | Review all requirements at least annually, or sooner after a major vulnerability or incident | Review record and change log | Security lead |

For third-party components, PO.1.3 asks for the same discipline from your suppliers: put a core set of security requirements into contracts and acquisition documents, and use criteria such as the supplier's vulnerability disclosure and incident response capability when you select software. Keep the supplier's answers with the requirement.

The next stage turns these requirements into a design: continue with [design and threat modeling](/stages/design/), and see how the requirement IDs reach [code review](/stages/code/) and [tests](/stages/test/). The full list of tasks is on the [SSDF page](/ssdf/), and the complete rollout order is in [the secure SDLC guide](/secure-sdlc/).

## Questions people ask

### What are security requirements in the SDLC?

They are statements about what the software and its development process must do to resist misuse, written so each can be verified as pass or fail. They come from policy, from the risk of the feature and from standards such as OWASP ASVS.

### Which ASVS level should we use?

Choose by risk. ASVS says Level 1 is the minimum starting point (about 20 percent of requirements), Level 2 is what most applications should strive for (about 70 percent cumulative), and Level 3 is for the highest assurance. A feature that handles credentials can take a higher level than the rest of the product.

## Sources

- [NIST SP 800-218, Secure Software Development Framework (SSDF) Version 1.1](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-218.pdf), read 2026-11-19
- [OWASP Application Security Verification Standard 5.0.0, What is the ASVS](https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x03-What-is-the-ASVS.md), read 2026-11-19
- [OWASP ASVS 5.0.0, chapters V2, V6 and V7](https://github.com/OWASP/ASVS/tree/v5.0.0_release/5.0/en), read 2026-11-19
- [OWASP ASVS 5.0.0, chapter V16 Security Logging and Error Handling](https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x25-V16-Security-Logging-and-Error-Handling.md), read 2026-11-19
- [OWASP Threat Modeling Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Threat_Modeling_Cheat_Sheet.html), read 2026-11-19
- [OWASP Forgot Password Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html), read 2026-11-19

Last reviewed: 2026-11-19

Canonical: https://sdlcsecurity.com/stages/requirements/
