Security

Security requirements in the SDLC

Updated November 19, 2026

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 November 19, 2026.

Stage 1 of 7

Plan and requirements in the Stage Map

6 controls. SSDF tasks at this stage:

PO.1.1PO.1.2PO.1.3PO.2.1PO.2.2PO.2.3PO.4.1

Open this stage on the Stage Map

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 taskRequirements aboutTypical contentOwnerEvidence
PO.1.1The development infrastructure and processesWho may access repositories and build systems, endpoint rules, how open-source use is governedEngineering lead with securityPolicy, reviewed at least annually (the task's own example)
PO.1.2The software your organization developsArchitecture 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 processSecurity lead with product and engineeringPolicy, requirements on tickets, exception records
PO.1.3Third-party commercial components you reuseSecurity terms in contracts, selection criteria such as the supplier's disclosure program, attestation, provenance dataProcurement with securityAcquisition 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 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 May 30, 2025) contains around 350 requirements in 17 chapters, and defines three levels:

LevelShare of the requirementsWhat it is for (ASVS text)
Level 1About 20 percentThe minimum, a critical starting point; basic first-layer defenses against common attacks
Level 2About 50 percent more, so about 70 percent of the total to complyMost applications should strive for this level
Level 3The final ~30 percentApplications 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:

FieldExample
StatementA reset link can be used once and stops working after it is used or expires
Sourcev5.0.0-6.4.1 (ASVS), or policy clause 4.2
Level or priorityLevel 1
Verified byUnit test on token consumption; reviewer checks the expiry value against the design note
OwnerFeature 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.

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 orderR4 below
The same reset is requested over and overR5
The same link is used twiceR2
Responses show which addresses have accountsR6
A successful reset leaves old sessions aliveR9

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.

IDRequirement for this featureASVS 5.0.0 reference and levelVerified byOwner
R1A secure reset process exists that does not bypass any multi-factor authentication the account has enabledv5.0.0-6.4.3, L2Test: account with a second factor cannot finish a reset on the link aloneFeature team
R2The 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 expiringUnit tests for single use and expiry; review of token generationFeature team, security champion reviews
R3No secret questions or password hints are offered as an alternative pathv5.0.0-6.4.2, L1Review of the flow and the UIProduct owner
R4The reset flow processes steps in order for the same user, without skippingv5.0.0-2.3.1, L1Test: calling the final step without a valid token failsFeature team
R5Anti-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 appliesFeature team
R6Reset requests and failed attempts do not reveal whether an account exists, in message or timingv5.0.0-6.3.8, L3 (stated to include forgot password); adopted early for this featureTest compares responses for known and unknown addressesFeature team
R7The user is notified after a credential resetv5.0.0-6.3.7, L3; adopted earlyTest: notification is sent on completionFeature team
R8New passwords meet the application's password policyv5.0.0-6.2.1 and related 6.2 requirements, L1 and L2Same checks as registration and password changeFeature team
R9The 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 resetFeature team
R10Reset requests, token issue, token use and password change are logged with who, what and when, and no token or password is written to a logv5.0.0-16.3.1, L2; v5.0.0-16.2.1, L2; v5.0.0-16.2.5, L2Log review in test; reviewer checks log statementsFeature team, security champion reviews
R11Administrative or support users can start a reset for a user but cannot choose the user's passwordv5.0.0-6.4.6, L3; adopted earlyReview of the support tooling designProduct 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:

PracticeWhat to doEvidence an assessor can inspectOwner
PO.1.2 (example 2)Define policy that names the classes of flaws gates verify and the responses to vulnerabilities found in released softwareThe policy; gate configurationSecurity lead
PO.4.1 (example 3)Add security criteria to the existing definition of doneThe definition of done; completed tickets with the criteria tickedEngineering manager
PW.1.2Track security requirements, risks and design decisions with the featureRequirement and decision records linked to the epic or design documentFeature team
PO.1.2 (example 7)Handle requests to waive a requirement through an exception process with periodic reviewException records with owner, reason, expirySecurity lead and product owner
PO.1.2 (example 6)Review all requirements at least annually, or sooner after a major vulnerability or incidentReview record and change logSecurity 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, and see how the requirement IDs reach code review and tests. The full list of tasks is on the SSDF page, and the complete rollout order is in the secure SDLC guide.

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

  1. NIST SP 800-218, Secure Software Development Framework (SSDF) Version 1.1, read November 19, 2026
  2. OWASP Application Security Verification Standard 5.0.0, What is the ASVS, read November 19, 2026
  3. OWASP ASVS 5.0.0, chapters V2, V6 and V7, read November 19, 2026
  4. OWASP ASVS 5.0.0, chapter V16 Security Logging and Error Handling, read November 19, 2026
  5. OWASP Threat Modeling Cheat Sheet, read November 19, 2026
  6. OWASP Forgot Password Cheat Sheet, read November 19, 2026

Last reviewed November 19, 2026