Security

How to measure whether a secure SDLC is working

Updated November 19, 2026

Measure a secure SDLC with a small set of ratios that each answer one question: are the required checks running (coverage), do findings get fixed on time (time to fix), do defects reach customers (escaped defects), do exceptions expire (exception age) and do people skip the gates (bypass rate). SP 800-218 PO.4.1 asks you to define key performance indicators and key risk indicators, and OWASP SAMM's Strategy and Metrics practice asks for metrics on effectiveness and efficiency. This page defines twelve with formulas and data sources. Read November 19, 2026.

What the standards ask you to measure

SP 800-218 PO.4.1 is the nearest SSDF task: "Define criteria for software security checks and track throughout the SDLC." Its example 2 is to "define key performance indicators (KPIs), key risk indicators (KRIs), vulnerability severity scores, and other measures for software security", and example 6 is to "analyze collected data in the context of the security successes and failures of each development project, and use the results to improve the SDLC." The standard does not name any metric or target.

OWASP SAMM puts measurement in the Governance function, in the Strategy and Metrics practice. Its Measure and Improve stream runs from "define metrics with insight into the effectiveness and efficiency of the Application Security Program" at maturity 1, to "set targets and KPI's for measuring the program effectiveness" at maturity 2, to "influence the strategy based on the metrics and organizational needs" at maturity 3. SAMM's Defect Management practice has a stream called Metrics and Feedback for the same purpose at the defect level.

So the sources give you the obligation to define and use measures. The definitions below are this page's, built on the task text; each cites the SSDF or SAMM item it provides evidence for.

The metric set

Define each metric once, with the same denominator every time. "Repository" can be any unit you track, as long as you keep it fixed.

#MetricFormulaData sourceEvidences
1Check coveragerepositories where each required check ran on the last change / repositories in scopeCI run history; repository inventoryPO.4.2, PW.7.2, PW.8.2; SAMM Security Testing
2Gate enforcementrepositories where the gate blocks (not only reports) / repositories in scopeBranch protection and pipeline configurationPO.4.1, PO.4.2; SAMM Secure Deployment
3Time to fixfor findings closed in the period: median of (closed date minus opened date), by severityIssue trackerRV.2.2; SAMM Defect Management
4Open finding age90th percentile of (today minus opened date) for findings still open, by severityIssue trackerRV.2.1, RV.2.2
5Fix target attainmentfindings closed within their target / findings whose target date fell in the periodIssue tracker with target datesRV.2.2; SAMM Defect Management
6Escaped defect ratevulnerabilities first found after release / all vulnerabilities found for that release (before and after)Issue tracker with a "found in" field; disclosure intakeRV.1.1, RV.3.2; SAMM Defect Management
7Exception age and lapse ratemedian of (today minus approval date) for active exceptions; and expired but unclosed exceptions / active exceptionsException registerPO.4.1 example 5, PW.1.2
8Gate bypass ratechanges that reached the protected branch or production with a gate overridden, skipped or disabled / all changesRepository and CI audit logs; emergency change logPO.4.1, PO.4.2
9False-block rateblocked runs later judged false positive / all blocked runsGate results with triage outcomePO.4.2 example 3 (review the automated decisions)
10Repeat root cause ratevulnerabilities in a root-cause class already recorded in the previous 12 months / all vulnerabilities fixed in the periodRoot cause field in the trackerRV.3.1, RV.3.2, RV.3.4
11Release evidence completenessreleases with every required record (test results, exception decisions, integrity information, provenance data) / releases in the periodRelease records; archivePS.2.1, PS.3.1, PS.3.2
12Check run timep50 and p95 of (check finish time minus check start time) for each check, per trigger (pull request, merge, nightly, release)CI run historyPO.4.2, PW.7.2, PW.8.2; slow checks drive bypasses (metric 8)

Notes on the definitions:

  • Time to fix looks only at closed findings, so a team can improve it by never closing hard ones. Report open finding age (metric 4) next to it.
  • Escaped defect rate needs a consistent "found in" field with values such as review, test, release gate, post-release. The SSDF supports the data: PW.7.2 and PW.8.2 record issues found before release, and RV.1.1 records reports received after release.
  • Check run time uses percentiles because a few very long runs distort an average. With n runs sorted by duration, p50 is the middle value (the mean of the two middle values when n is even) and p95 is the value at position ceil(0.95 x n). For example, with 40 pull request runs in a week, p50 is the mean of the 20th and 21st values and p95 is the 38th value. Report it per trigger, because a pull request check and a nightly scan have different budgets (see the test stage).
  • Severity is whatever scale your policy defines; keep it the same across all metrics.
  • Counts of findings are deliberately missing. A rising count can mean more coverage or worse code, and the counts alone cannot tell you which.

Worked example with illustrative numbers

For example, a team has 40 repositories in scope for one quarter. These numbers are invented to show the arithmetic and are not benchmarks.

MetricInputsResult
Check coverage (static analysis)36 of 40 repositories ran it on their last change36 / 40 = 90%
Gate enforcement30 of 40 repositories block on failure30 / 40 = 75%
Time to fix, criticalFive critical findings closed after 3, 5, 9, 12 and 30 daysmedian = 9 days
Open finding age, high20 high findings open, the 90th percentile age is 41 days41 days
Fix target attainment25 findings had target dates in the quarter, 21 were closed in time21 / 25 = 84%
Escaped defect rate52 vulnerabilities found for release R, 6 of them after release6 / 52 = 11.5%
Exception lapse rate12 active exceptions, 3 past expiry and still open3 / 12 = 25%
Gate bypass rate600 changes to protected branches, 9 with an override9 / 600 = 1.5%
False-block rate140 blocked runs, 21 judged false positive21 / 140 = 15%
Check run time, pull request trigger40 runs; the 20th and 21st sorted durations are 4.0 and 4.2 minutes; the 38th is 11 minutesp50 = 4.1 minutes, p95 = 11 minutes

How to read it: coverage is high, but a quarter of repositories do not block, which means findings there can ship. Three expired exceptions are the first thing to close. A 15% false-block rate suggests the thresholds of the gate need review (see security gates).

Published numbers you can compare against

Very few exist, and the ones that do are small samples. As read on November 19, 2026:

  • OWASP SAMM Benchmark. The SAMM team collects anonymous SAMM assessment scores. Version 24.1.1, released September 2024, holds 30 data sets, "skewed towards large organizations"; version 24.1.0, released June 2024, held 25. The project describes the number of data sets as "quite limited." Use the dataset to see how others score across the five SAMM business functions, not to set targets for the metrics above.
  • CISA BOD 20-01. For federal agencies running a disclosure policy, the directive lists ten metrics to report each quarter: the number of vulnerability disclosure reports; the number determined valid; the number currently open and valid; the median age of those open and valid reports; the number of open and valid reports older than 90 days; the number of all reports older than 90 days by risk or priority level; the median age of reports older than 90 days; the median time to validate a submitted report; the median time to remediate or mitigate a valid report; and the median time to initially respond to the reporter. It is a ready-made starting list for the disclosure metrics in the next section. CISA's notes to the directive recommend no more than 3 business days to acknowledge a report, 7 days to assess it and 90 days to resolve it; they are recommendations for agencies, not targets for your product.
  • CISA BOD 26-04 (June 10, 2026). It revoked BOD 22-01 and sets risk-based remediation timelines for federal civilian agencies, from three calendar days with forensic triage for the highest-risk cases to fix on the next system upgrade for the lowest. They are not benchmarks for other software (see the operate stage).

No SSDF task or CISA form sets a numeric target for any metric on this page. Pick your own targets, record them in policy and revisit them when the data shows they are unreachable or too easy.

Measuring the disclosure process

Add three metrics if you run a vulnerability disclosure program (RV.1.3). BOD 20-01 itself names the median time to initially respond to the reporter, the median time to validate a report and the median time to remediate or mitigate a valid report, so the three below use those names:

MetricFormulaData source
Time to initially respondmedian of (first response to the reporter minus report received time)Report intake system
Time to validatemedian of (validity decision time minus report received time)Report intake system
Time to remediate or mitigatemedian of (remediation or mitigation time minus report received time), for valid reportsReport intake system

BOD 20-01 also asks agencies to set target timelines for acknowledgement, initial assessment, and resolution including notification of the outcome to the reporter; measure whichever of these your own policy promises.

Running the measurement

  1. Fix the definitions before collecting. A changed denominator breaks trends. Version the definitions in the policy (see the policy template).
  2. Collect from systems, not surveys. Each data source above is a system of record that already exists: the repository host, CI, the issue tracker, the exception register. Where a field is missing, add it to the workflow, since PO.4.1 example 5 and PW.7.2 already expect approvals, rejections and exceptions to be recorded there.
  3. Report by segment. An average across 40 repositories hides the 5 that matter. Segment by risk tier and by team.
  4. Review on a schedule and act. PO.4.1 example 6 is to use the results to improve the SDLC. A metric that no one has acted on twice should be dropped.
  5. Guard the data. PO.4.2 example 4 says to allow only authorized personnel to access the gathered information and to prevent "any alteration or deletion" of it.

For an auditor or customer reviewer, each metric's "Evidences" column names the SSDF task or SAMM practice it supports; the record behind the number (CI history, tracker, exception register) is the evidence, and the number is its summary.

Questions people ask

What metrics show that a secure SDLC is working?

Check coverage, gate enforcement, time to fix by severity, open finding age, escaped defect rate, exception age, gate bypass rate and check run time. Each is a ratio, median or percentile with a fixed definition that you can compute from repository, CI and issue tracker data.

Do SSDF or SAMM publish targets for these metrics?

No. SP 800-218 PO.4.1 asks you to define KPIs and KRIs, and OWASP SAMM asks you to define metrics and then set targets, but neither sets numeric values. The SAMM Benchmark is a small data set of assessment scores, not a set of targets.

Sources

  1. NIST SP 800-218, Secure Software Development Framework (SSDF) Version 1.1, read November 19, 2026
  2. Strategy and Metrics, OWASP SAMM, read November 19, 2026
  3. Defect Management, OWASP SAMM, read November 19, 2026
  4. Benchmark, OWASP SAMM, read November 19, 2026
  5. The Model, OWASP SAMM, read November 19, 2026
  6. CISA BOD 20-01: Develop and Publish a Vulnerability Disclosure Policy, read November 19, 2026
  7. CISA BOD 26-04: Prioritizing Security Updates Based on Risk, read November 19, 2026

Last reviewed November 19, 2026