# How to measure whether a secure SDLC is working

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

| # | Metric | Formula | Data source | Evidences |
|---|---|---|---|---|
| 1 | Check coverage | repositories where each required check ran on the last change / repositories in scope | CI run history; repository inventory | PO.4.2, PW.7.2, PW.8.2; SAMM Security Testing |
| 2 | Gate enforcement | repositories where the gate blocks (not only reports) / repositories in scope | Branch protection and pipeline configuration | PO.4.1, PO.4.2; SAMM Secure Deployment |
| 3 | Time to fix | for findings closed in the period: median of (closed date minus opened date), by severity | Issue tracker | RV.2.2; SAMM Defect Management |
| 4 | Open finding age | 90th percentile of (today minus opened date) for findings still open, by severity | Issue tracker | RV.2.1, RV.2.2 |
| 5 | Fix target attainment | findings closed within their target / findings whose target date fell in the period | Issue tracker with target dates | RV.2.2; SAMM Defect Management |
| 6 | Escaped defect rate | vulnerabilities first found after release / all vulnerabilities found for that release (before and after) | Issue tracker with a "found in" field; disclosure intake | RV.1.1, RV.3.2; SAMM Defect Management |
| 7 | Exception age and lapse rate | median of (today minus approval date) for active exceptions; and expired but unclosed exceptions / active exceptions | Exception register | PO.4.1 example 5, PW.1.2 |
| 8 | Gate bypass rate | changes that reached the protected branch or production with a gate overridden, skipped or disabled / all changes | Repository and CI audit logs; emergency change log | PO.4.1, PO.4.2 |
| 9 | False-block rate | blocked runs later judged false positive / all blocked runs | Gate results with triage outcome | PO.4.2 example 3 (review the automated decisions) |
| 10 | Repeat root cause rate | vulnerabilities in a root-cause class already recorded in the previous 12 months / all vulnerabilities fixed in the period | Root cause field in the tracker | RV.3.1, RV.3.2, RV.3.4 |
| 11 | Release evidence completeness | releases with every required record (test results, exception decisions, integrity information, provenance data) / releases in the period | Release records; archive | PS.2.1, PS.3.1, PS.3.2 |
| 12 | Check run time | p50 and p95 of (check finish time minus check start time) for each check, per trigger (pull request, merge, nightly, release) | CI run history | PO.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](/stages/test/)).
- **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.

| Metric | Inputs | Result |
|---|---|---|
| Check coverage (static analysis) | 36 of 40 repositories ran it on their last change | 36 / 40 = 90% |
| Gate enforcement | 30 of 40 repositories block on failure | 30 / 40 = 75% |
| Time to fix, critical | Five critical findings closed after 3, 5, 9, 12 and 30 days | median = 9 days |
| Open finding age, high | 20 high findings open, the 90th percentile age is 41 days | 41 days |
| Fix target attainment | 25 findings had target dates in the quarter, 21 were closed in time | 21 / 25 = 84% |
| Escaped defect rate | 52 vulnerabilities found for release R, 6 of them after release | 6 / 52 = 11.5% |
| Exception lapse rate | 12 active exceptions, 3 past expiry and still open | 3 / 12 = 25% |
| Gate bypass rate | 600 changes to protected branches, 9 with an override | 9 / 600 = 1.5% |
| False-block rate | 140 blocked runs, 21 judged false positive | 21 / 140 = 15% |
| Check run time, pull request trigger | 40 runs; the 20th and 21st sorted durations are 4.0 and 4.2 minutes; the 38th is 11 minutes | p50 = 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](/security-gates/)).

## Published numbers you can compare against

Very few exist, and the ones that do are small samples. As read on 19 November 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 (10 June 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](/stages/operate/)).

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:

| Metric | Formula | Data source |
|---|---|---|
| Time to initially respond | median of (first response to the reporter minus report received time) | Report intake system |
| Time to validate | median of (validity decision time minus report received time) | Report intake system |
| Time to remediate or mitigate | median of (remediation or mitigation time minus report received time), for valid reports | Report 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](/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

- [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
- [Strategy and Metrics, OWASP SAMM](https://owaspsamm.org/model/governance/strategy-and-metrics/), read 2026-11-19
- [Defect Management, OWASP SAMM](https://owaspsamm.org/model/implementation/defect-management/), read 2026-11-19
- [Benchmark, OWASP SAMM](https://owaspsamm.org/benchmark/), read 2026-11-19
- [The Model, OWASP SAMM](https://owaspsamm.org/model/), read 2026-11-19
- [CISA BOD 20-01: Develop and Publish a Vulnerability Disclosure Policy](https://www.cisa.gov/news-events/directives/bod-20-01-develop-and-publish-vulnerability-disclosure-policy), read 2026-11-19
- [CISA BOD 26-04: Prioritizing Security Updates Based on Risk](https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk), read 2026-11-19

Last reviewed: 2026-11-19

Canonical: https://sdlcsecurity.com/measuring/
