Secure software development

Hand-drawn open terracotta scaffold of uprights, rails and diagonal braces in front of stepped stacks of blocks hatched in sand, umber and moss.

Secure software development is the practice of building security into how software is specified, designed, written and tested, rather than adding it after release. It is organised by frameworks such as Microsoft’s Security Development Lifecycle (SDL), NIST’s Secure Software Development Framework (SSDF), OWASP’s SAMM and ASVS, and BSIMM. Little evidence shows that these frameworks lower vulnerabilities: a review of secure development methodologies found that industry and government frameworks provide no evidence of their effectiveness (Kudriavtseva & Gadyatskaya, 2023). The main disputes are whether vendor-reported drops in vulnerability counts mean anything, and whether single practices such as code review, fuzzing and training help. Evidence that reviewing a design lowers released vulnerabilities is indirect, counting tickets and requirements rather than flaws (Hovsepyan, 2024). Developer studies give firmer results on a narrower point: where developers look for help and how an API is designed both change how secure their code is (Acar et al., 2016; Acar et al., 2017).

Frameworks and what they cover

The frameworks divide the field by what they prescribe: requirements a product must meet, practices a team should follow, or a description of what organisations do. OWASP’s Application Security Verification Standard (ASVS) defines security requirements for designing, developing and testing web applications and services (OWASP, 2025). NIST’s SSDF instead describes secure development practices that fit into any development life cycle (Souppaya et al., 2022).

BSIMM (Building Security In Maturity Model) calls itself a descriptive model of real-world practices, not a prescriptive one (Black Duck Software, 2026). Its sixteenth report analysed 111 organisations (Black Duck Software, 2026), and its data cover the activities of 675,000 developers (Weir et al., 2021). A 12-year survey built on BSIMM’s structure, covering 211 large companies, found the average number of security activities adopted rising from 2015 (Weir et al., 2022). SAMM (Software Assurance Maturity Model) and BSIMM both score maturity, and maturity does not reflect how effective a security process is (Kudriavtseva & Gadyatskaya, 2023).

Practitioners know the named frameworks but mostly use custom ones. In a survey of 37 practitioners and interviews with 8, most were aware of secure development frameworks but worked with frameworks of their own making (Wee et al., 2024).

Privacy and law frame the same work in other terms. NIST’s privacy engineering report sets out privacy engineering objectives and a privacy risk model as a shared vocabulary for privacy risk (Brooks et al., 2017). The EU’s General Data Protection Regulation (GDPR) speaks of security of processing: technical and organisational measures matched to risk, with pseudonymisation and encryption as examples (European Union, 2016b).

What the frameworks ask of a design

ASVS, the SSDF and the SDL each ask for documented design work. ASVS lists specific design documentation. In version 5.0.0, the documentation must list every communication need, including the external services the application relies on, and set protection requirements for each level of sensitive data. It must flag where dangerous functionality is used, and name time-consuming or resource-demanding features with a plan to keep them from exhausting availability or outlasting a caller’s timeout. It must also inventory the logging at each layer: events, formats, storage, access and retention (OWASP, 2025).

A document alone does not settle whether a product meets ASVS. OWASP says that verifying its requirements may need the documentation, the source code, the configuration and the people who built the software (OWASP, 2025).

The SSDF asks for traceability and independent review. Teams track security requirements, risks and design decisions together, and NIST’s examples include recording the response to each risk and the reason for any approved exception (Souppaya et al., 2022). The design is then reviewed against those requirements and risks by qualified people not involved in it, by automated checks in the toolchain, or both (Souppaya et al., 2022). The 2025 draft of version 1.2 keeps that review. It adds examples: give elevated privileges only to the minimal functionality that needs them, and share threat models with customers under controlled disclosure (Booth et al., 2025).

Microsoft’s SDL centres the design phase on threat models, structured lists of what could go wrong (see Threat modelling). Teams draw data-flow diagrams of key interactions, data types, ports and protocols, and build threat models that identify, categorise and rate threats by risk. The models are updated as the software changes and reviewed before release for accuracy, completeness and mitigation of unacceptable risks (Microsoft, 2025b).

Whether frameworks reduce vulnerabilities Weak evidence: few or small studies support this

The evidence that following a framework lowers vulnerabilities is thin. A multivocal review covers both academic papers and industry and government documents. One such review found that most methodologies imply they work without concrete evidence, and named this a research gap (Kudriavtseva & Gadyatskaya, 2023). NIST, for example, states that following the SSDF should help reduce vulnerabilities in released software, but presents no experimental results for it (Souppaya et al., 2022; Kudriavtseva & Gadyatskaya, 2023).

Academic methodologies fare little better. Of eight reviewed, only one included a case study. A case study in an accounting system reported no breaches in the year after adoption, and one in web banking gave no conclusive evidence (Kudriavtseva & Gadyatskaya, 2023).

Researchers who study the question explain why outcomes are hard to measure. A 2023 Dagstuhl seminar reported that secure development processes are usually not rigorously evaluated. Part of the reason is the gap between a process and the product it yields (Bodden et al., 2023). A 2026 thesis adds that practices do not improve security automatically: the effect depends on how practitioners select, interpret and implement them (Huisman, 2026).

The SDL and Windows Vista Weak evidence: few or small studies support this

The one outcome figure for a major framework comes from Microsoft itself, and critics dispute what it shows. Microsoft states that the SDL reduced post-release vulnerability counts in its flagship products (Kudriavtseva & Gadyatskaya, 2023). In 2008 the SDL’s program manager credited the SDL with a roughly 50 percent drop in vulnerabilities in Windows Vista against Windows XP SP2. He also wrote that vulnerability counts are the only concrete security metric (Howard, 2008). Microsoft’s published comparison counted 66 vulnerabilities in the first year of Windows Vista and 119 for Windows XP (Microsoft, 2010).

Critics doubt that such counts measure security. Industry analysts at the time said Microsoft’s count of patch events ignored the time enterprises spend testing patches, and that what attackers target matters more than the count (Keizer, 2008). A study of vulnerability reports pointed to a deeper problem: how many are reported depends on the effort spent finding them. The reports record neither that effort nor how many people examined the code (Ozment & Schechter, 2006).

Design review and released vulnerabilities

Evidence that reviewing a design lowers released vulnerabilities is indirect: the studies count tickets, requirements or vulnerability reports. In one product team’s own account, an ASVS sprint produced tests for 90 requirements and 7 tickets where the project did not comply (Hovsepyan, 2024). A study that generated security requirements from functional specifications measured qualities of the requirements, such as diversity and specificity (Lian et al., 2025).

Case studies at large companies report new requirements and fewer vulnerability reports. A large telecom organisation applied security risk assessment at the requirements stage in eight release projects; in the first, two identified risks led to new feature-level requirements (Ardi et al., 2023). In a retrospective on Microsoft’s security push, the authors reported that vulnerability reports declined after SQL Server Service Pack 2 became the dominant version in the field (Lipner & Howard, 2023).

Scores of security practices Contested: studies disagree on this

Studies disagree on whether projects that adopt more security practices have fewer vulnerabilities. These studies use OpenSSF Scorecard, a tool that scores open-source packages on practices such as code review and dependency updates (see Software supply chain security).

StudyPackagesResult
Zahan and colleagues, 2023npm and PyPIScorecard practices explained 9 to 12 percent of the variation in vulnerability counts; reported vulnerabilities rose as the score rose (Zahan et al., 2023)
Zahan and colleagues, 2025About 145,000 npm packagesHigher overall adoption went with 5.2 fewer vulnerabilities and faster fixes, but code review went with more reported vulnerabilities (Zahan et al., 2025)
Veracode (vendor analysis)Real-world librariesNoisy, incomplete data; most factors did not correlate meaningfully, and the strongest link was having no dependency update tool (Veracode, n.d.)

The later study’s authors say that little is known about whether best practices improve security, and that adopting practices without empirical validation has carried risks before (Zahan et al., 2025). They attribute the earlier study’s weak result to small and sparse vulnerability data and missing control variables (Zahan et al., 2025).

Single practices

Practices inside the frameworks find security problems, but how far each lowers the vulnerabilities a product ships with is unclear.

Code review

Code review caught few security issues in Chromium, and which ones it catches depends on how it is done. There, a large open-source browser, about 1 percent of reviewers’ comments raised security issues, and reviews mostly missed language-specific and domain-specific flaws (di Biase et al., 2016). Before that work, higher review coverage was known to go with fewer post-release bugs, but not specifically with security (di Biase et al., 2016).

Time and familiarity help. In a case-control study of Chromium OS, review time, mutual reviews between two developers and reviews of bug fixes helped find security defects. Reviews spanning many directories, or by busy developers, missed more (Paul et al., 2021). The broader evidence on how people judge proposed changes is in Human review of proposed changes.

A security checklist adds little once reviewers are asked to look for security. In an online experiment, adding security checklists did not raise vulnerability detection in code review beyond what security instructions alone achieved (Braz et al., 2022).

Static analysis and fuzzing

Static analysis (inspecting code without running it) and fuzzing (feeding a program large numbers of generated inputs) find bugs, but their effect on vulnerability counts is unclear. In 316 projects of the OSS-Fuzz continuous fuzzing service, fuzzing often found bugs quickly and developers often patched them quickly (Ding & Le Goues, 2021). Yet people rarely filed CVE entries (the public catalogue of known vulnerabilities) for the security bugs it found, so public counts miss them (Ding & Le Goues, 2021).

Early detection rates may not reflect the steady state. Across about 1.12 million fuzzing sessions, many bugs found had existed before continuous fuzzing began, and the authors state it is unclear how continuous fuzzing contributes to vulnerability detection (Shirai et al., 2025). Evaluations of fuzzers themselves are uneven: a review of 150 fuzzing papers found widespread disregard of guidelines on statistical tests and systematic errors (Schloegel et al., 2024).

The two kinds of tool find different flaws. On over 100 known memory-safety vulnerabilities in C and C++, 13 fuzzers found very similar bugs, static analysers found more varied ones, and the two sets barely overlapped (Hassler et al., 2025).

Security training Weak evidence: few or small studies support this

Evidence that training developers improves their code rests on one small preprint. Twelve developers building a Java Spring Boot backend with help from a language model produced 162 validated weaknesses before training and 111 after (Kharma et al., 2026). The authors say the result does not replace secure defaults, static analysis, expert review or hardening (Kharma et al., 2026).

Where developers learn security

The information sources developers consult change how secure their code is. In a lab study of 54 Android developers, those limited to Stack Overflow wrote significantly less secure code than those given official documentation or books (Acar et al., 2016). They also wrote significantly more working code. The authors conclude that official documentation is secure but hard to use, while informal help is accessible but often leads to insecurity (Acar et al., 2016).

The same errors appear in published apps. Many security errors made in the lab also appeared in a sample of 200,000 Google Play apps (Acar et al., 2016). Among 1.3 million Android apps, 15.4% contained security-related code copied from Stack Overflow, and 97.9% of those included at least one insecure snippet (Fischer et al., 2017).

Knowing about security does not mean developers apply it. In password-storage studies, security knowledge did not guarantee a secure implementation, and developers often stored passwords insecurely while claiming confidence (Naiakshina et al., 2017; Hallett et al., 2021). Developers rarely add security unless the task asks for it. In one student study, only 2 of 20 students not told to store passwords securely tried to, against 14 of 20 told to (Naiakshina et al., 2018).

In a larger study of 138 developers, the effects of prompting and of specifications were small. Prompted developers stored passwords more securely than unprompted ones, and writing a specification first helped slightly (Hallett et al., 2021). How passwords should be stored is covered in Passwords.

API design and framework defaults

Safer API design reduces some mistakes but does not by itself make code secure, and evidence about secure defaults in real backends is thin. In a controlled experiment with 256 Python developers, simpler cryptographic APIs cut insecure parameter choices but did not ensure security (Acar et al., 2017). Good documentation and examples improved whether code worked, not whether it was secure. For about 20% of working solutions, participants believed their code was secure when it was not (Acar et al., 2017).

Misuse of cryptographic APIs is common in real code. Static analysis flagged insecure use in 88.10% of 936 open-source Java applications, though many flagged misuses are false positives in practice. The authors rate nearly half of the misuses high severity (Wickert et al., 2022). In 895 popular Python projects, 52.26% had at least one misuse, and the authors credit good API design for the lower rate than in Java and C studies (Wickert et al., 2021).

Helpers that developers must choose to use are not enough. In a password-storage study, ready-made secure helper classes in a web framework did not lead to secure code when using them was optional (Naiakshina et al., 2017). A study of 14 web frameworks found that they often leave critical parts of cross-site scripting (XSS) sanitization unaddressed (Weinberger et al., 2011a).

Making the insecure option impossible is the approach with a deployment result, though it is company-reported. Google replaced risky browser DOM APIs with hardened ones and enforced them with a compile-time checker; it reports fewer XSS occurrences in its code base over a two-year deployment (Wang et al., 2021a). XSS and other web attacks are covered in Web security.

Threats a design must bound

Some threats depend on decisions made in the architecture: which resources customers share, how much work a caller can trigger, and what record an action leaves.

Tenant isolation

A multi-tenant system serves several customers, called tenants, from shared infrastructure, so its design must say where one tenant’s data stops. Guidance asks that isolation be enforced on every access and hold during failures. AWS recommends that, in pooled compute, a policy check every attempt to reach a tenant resource and confirm the request does not cross a tenant boundary (Amazon Web Services, n.d.h). Microsoft adds that tenant data must stay isolated even when components fail or go down (Arora & Downs, 2026).

Shared caches have exposed one customer’s data to another. In 2023 a bug let some ChatGPT users see the titles of another active user’s chats. OpenAI then added checks that data returned by its Redis cache matches the requesting user (OpenAI, 2023b). In 2026 Cloudflare reported that some customers of one hosted language model received responses containing data from other customers’ requests (Flansburg & Chen, 2026). Inference software offers controls for this: vLLM can isolate the reuse of its prefix cache, which keeps work done on earlier prompts, through optional per-request salting (vLLM, n.d.).

Tenants can also harm each other by competing for shared capacity. In a prototype inside Microsoft SQL Azure, the SQLVM design gave significantly better performance isolation from other tenants than the prior state of the art (Narasayya et al., 2013).

Resource exhaustion and spending

Protection against denial of service, attacks or accidents that exhaust a system’s capacity, is largely a matter of limits placed wherever a request consumes resources. OWASP recommends a maximum size for every incoming parameter and payload, and spending limits for every paid service an API calls (OWASP API Security Project team, 2023a). NIST recommends combining rate limits, timeouts and limits on concurrent requests to protect compute resources (Chandramouli & Butcher, 2025).

Internal traffic needs the same limits as external traffic. In a 2026 Azure OpenAI Service incident, internal retries multiplied until they overwhelmed a shared inference load balancer. That internal traffic was not subject to the rate limiting and overload controls applied in many external cases (Microsoft Azure, 2026). How retries, timeouts and load shedding behave under failure is covered in Failure handling in distributed systems.

Spending caps offered by cloud providers act late. Google Cloud states that enforcement of its spend caps is not instant and that overages are billed as normal (Google Cloud, 2026e). Cloudflare’s spending limit for Workers rejects new invocations once it takes effect, but reporting and blocking take time after the threshold is crossed (Cloudflare, 2026c).

Audit trails and repudiation

Repudiation is a user denying an action they took; an audit trail, a protected record of security-relevant events, is the usual defence. OWASP describes each event by when, where, who and what. The events it lists include successful and failed logins, failed access-control checks and changes to privileges (OWASP Cheat Sheet Series, n.d.b).

The record is only useful if those it records cannot alter it. OWASP recommends storing or copying log data to read-only media (OWASP Cheat Sheet Series, n.d.b). NIST’s control catalogue asks that audit information and logging tools be protected from unauthorised access, modification and deletion (Joint Task Force, 2020).

Protected logs and proof of an act are different things. For non-repudiation, where a person must not be able to deny a specific act, NIST names digital signatures and digital message receipts (Joint Task Force, 2020).

Further reading

  • Kudriavtseva and Gadyatskaya, “Secure software development methodologies: A multivocal literature review” (Kudriavtseva & Gadyatskaya, 2023): a review of academic, industry and government methodologies and the evidence offered for each.
  • Bodden, Weber and Williams (eds.), “Empirical evaluation of secure development processes” (Bodden et al., 2023): a seminar report on why secure development processes are hard to evaluate.
  • Ozment and Schechter, “Milk or wine” (Ozment & Schechter, 2006): why vulnerability report counts are a poor measure of a process’s effect.
  • Acar and colleagues, “You get where you’re looking for” (Acar et al., 2016): the lab study of how information sources change code security.
  • Acar and colleagues, “Comparing the usability of cryptographic APIs” (Acar et al., 2017): an experiment on how API design affects cryptographic code.
  • Zahan, Rahman and Williams, “Assumptions to evidence” (Zahan et al., 2025): a large study relating adopted security practices to vulnerabilities in npm packages.

Known gaps

What this article cannot tell you yet.

  1. No independent before-and-after evaluation of Microsoft’s Security Development Lifecycle was found; its outcome figures come from Microsoft.
  2. No study linking adoption of OWASP ASVS, OWASP SAMM, BSIMM or NIST SSDF to fewer breaches or vulnerabilities was found.
  3. No study comparing vulnerability outcomes in projects with and without static analysis or continuous fuzzing was found; the results of Okun and colleagues’ 2007 study of static analysis tools against National Vulnerability Database reports are not covered.
  4. Evidence on security training rests on one small preprint; larger or peer-reviewed studies of training were not found.
  5. Most developer studies of information sources and APIs used students, online recruits or Android tasks; studies of backend teams and of secure framework defaults in deployed backends were not found.
  6. No study measuring security design review separately against released vulnerabilities was found; the outcome evidence for design-level requirements consists of noncompliance tickets, generated requirements and vendor vulnerability counts.
  7. How often isolation fails under pooled and dedicated multi-tenant designs was not measured; the evidence is vendor guidance and incident reports.
  8. General values for rate limits, quotas and spending caps, and measured effects of setting them, were not researched; the evidence is guidance, provider documentation and one incident review.
  9. Whether a particular audit-trail design helps investigations or reduces harm was not researched.

References

Solid source
Rated highly trustworthy by the research, and every passage taken from it was found in it.
Weak source
Rated low, or a passage taken from it was not found in it.
Medium trust
Rated medium by the research.
Not checked
Rated high, but its passages could not all be checked against it.
Show all 55 references