What a security gate is, in SSDF terms
SP 800-218 does not use the word gate. PO.4 is titled "Define and Use Criteria for Software Security Checks" and its purpose is to "help ensure that the software resulting from the SDLC meets the organization's expectations by defining and using criteria for checking the software's security during development." The implementation examples describe a gate in three parts:
- A criterion. Example 3 under PO.4.1: "Add software security criteria to existing checks (e.g., the Definition of Done in agile SDLC methodologies)." Example 2 lists key performance indicators, key risk indicators and vulnerability severity scores as measures.
- A decision. PO.4.2 example 3: "Automate decision-making processes utilizing the criteria, and periodically review these processes."
- A record. PO.4.1 example 5: "Record security check approvals, rejections, and exception requests as part of the workflow and tracking system." PO.4.2 example 4 adds that only authorized personnel should access the gathered information, with protection against "any alteration or deletion."
In the Microsoft SDL the same idea appears as release-phase checks and approvals; the final review is the strictest gate (see the release stage). OWASP SAMM's Secure Deployment practice describes the maturity path for gates in deployment: document the process, then "automate the deployment process over all stages and introduce sensible security verification tests", then automatically verify the integrity of all deployed software.
Where gates sit
Each gate answers a different question, so each has its own criterion. The blocking column is a suggested default, which you adjust to your risk.
| Gate point | Question it answers | Typical checks (categories) | Default |
|---|---|---|---|
| Design approval | Does the design meet the security requirements? | Design review, threat model review (PW.2.1) | Block start of build for high-risk features |
| Pull request | Is this change safe to merge? | Peer review, static analysis, dependency check (PW.7.2) | Block on new high-confidence findings; warn otherwise |
| Build and test | Does the build meet the criteria? | Security regression tests, configuration checks, composition analysis | Block on failed security tests |
| Release | Is the release candidate fit to ship? | Test results triaged, exceptions current, integrity information produced (PS.2.1) | Block unless a recorded exception applies |
| Post-release | Are released versions still acceptable? | Scheduled re-scans of supported releases (RV.1.2) | Warn and create tracked work; no blocking |
Tests are described in the test stage.
What should block and what should only warn
The sources set the principle, that criteria are defined and decisions are recorded, and leave the thresholds to you. The rules below are design reasoning from that principle, not findings from a study.
Block when all of these hold:
- The criterion is written down and the same input always gives the same result.
- The finding is specific: a file, a line or a component and version, so the developer knows what to change.
- The developer can fix it, or follow a documented path to an exception, inside the time budget of the gate.
- A wrong block has a cheap recovery: a documented exception route that someone answers quickly.
Warn when a finding is probable but unconfirmed, when a fix is outside the developer's control, or when the finding exists in legacy code the change does not touch. A warning must still create a record, so that PW.7.2 and PW.8.2 hold: every issue is recorded and triaged in the team's workflow or issue tracker.
Two patterns keep a new gate from stopping all work on day one. First, run it in report-only mode and measure how many findings it raises and how many are wrong before it blocks anything. Second, block only on findings introduced by the change under review, and handle the existing backlog through normal remediation with its own targets. Microsoft's SDL sets the strictest version, "no software release can pass an FSR with known vulnerabilities that would be considered as Critical, Important, Moderate, or Low", against the organization's severity criteria; a team that adopts a lower bar should write the bar down, as the SDL does with its security bug bar.
Setting thresholds
A threshold has four parts: the finding class, the severity, the status of the finding (new or existing) and the action. For example, a team could write:
- Secrets or credentials in a change: block.
- A known-vulnerable dependency at critical severity with a fix available, introduced by the change: block.
- High-severity static analysis finding, new in the change, confirmed by the reviewer: block.
- Medium and low findings: warn and record.
- Failing security regression test: block.
The severity scale is yours; SP 800-218 PO.4.1 example 2 asks that your measures include "vulnerability severity scores" and does not name one. Review thresholds on a fixed schedule, since PO.4.2 example 3 is to "periodically review these processes." Use the false-block rate and the bypass rate from measuring a secure SDLC as the inputs to that review.
Exceptions with an owner and an expiry
If the only way past a failing gate is to disable it, people will disable it. An exception route that is fast and visible makes the gate cheaper to respect than to avoid. Each exception record should hold:
| Field | Content |
|---|---|
| Gate and criterion | Which check failed and which rule it breaks |
| Scope | The repository, component or release the exception covers, and nothing else |
| Risk and mitigation | What could go wrong, and any temporary mitigation (compare RV.2.2 example 2) |
| Requester and approver | Different people; the approver has authority over the risk |
| Expiry | A date or release after which the exception lapses and the gate blocks again |
| Rationale | Why it was approved (PW.1.2 example 1: "the rationales for any approved exceptions to the security requirements") |
The SDL model supports this shape. Its security advisor grants an exception only if "the overall security risk is tolerable", requests are made early, exceptions not addressed in a release "should be logged, and then addressed and corrected in the next release", and a team that cannot reach agreement escalates to executives with a report on the risk. Expired exceptions are a metric: see exception age in measuring a secure SDLC.
A time budget for each gate
A gate that makes developers wait gets skipped or batched. Give every gate a budget and measure against it. The budgets below are examples; choose values from your own measured durations (95th percentile run time per trigger).
| Gate | Example budget | If a check exceeds it |
|---|---|---|
| Pull request | Short enough that the author is still in the context of the change | Move the slow check to the build gate or run it on a schedule; keep the fast subset on the pull request |
| Build and test | Within the normal build time plus a small allowance | Run in parallel; narrow the scope to changed components |
| Release | Hours for automated checks; days for human review | Start the human review earlier, as the SDL does by scheduling the FSR weeks before release |
The SDL notes that an FSR can take "anywhere from a few days to six weeks"; that is the cost of putting the entire review at the end.
Example gate policy
An example for a team with a main branch, pull requests and a release candidate stage. All values are illustrative.
| Gate | Blocks on | Warns on | Exception owner | Exception expiry | Time budget (example) |
|---|---|---|---|---|---|
| Pull request | Secret in diff; new critical or high static analysis finding confirmed by a reviewer; new dependency with a known critical vulnerability and an available fix | Medium and low findings; findings in untouched code | Engineering manager, with AppSec consulted | 30 days | 10 minutes |
| Build and test | Failed security regression test; failed configuration baseline check | Dynamic analysis findings below high | Product owner | One release | 30 minutes |
| Release candidate | Any open critical or high finding without an unexpired exception; missing integrity information or provenance data; unreviewed threat model change | Medium findings older than their fix target | Security lead and product owner together | Next release | 1 business day for automated checks |
| Post-release scan | Nothing | New advisory on a supported release | Security lead | Not applicable | Weekly |
Each row maps to SSDF tasks: PO.4.1 and PO.4.2 for the criteria and automation, PW.7.2 and PW.8.2 for triage records, PS.2.1 and PS.3.2 for the release artifacts, and RV.1.2 for the post-release scan.
Bypass paths to watch
Gates fail through the side door more often than the front. List the ways your process lets a change skip a check, and log each one:
- an administrator override or a force merge;
- a direct push to a protected branch, or a protection rule disabled for a period;
- a check removed or set to non-blocking in the configuration;
- a pipeline run that skips the security stage;
- an emergency change process that has no after-the-fact review.
Treat changes to the gate configuration as changes to code: SP 800-218 PS.1.1 example 4 is to "have the code owner review and approve all changes made to the code by others", and its scope covers configuration-as-code. Count the events and divide by the total number of changes to get the bypass rate defined in measuring a secure SDLC. Review every emergency use within a few days, and when a bypass becomes routine, treat that as evidence that the gate's criteria or time budget are wrong.
Questions people ask
What is a security quality gate in the SDLC?
It is a point in the SDLC where software must meet written security criteria before it moves on. SP 800-218 PO.4.1 asks organizations to define criteria for software security checks and track them throughout the SDLC, and PO.4.2 to automate the decision-making and gather the supporting information.
Should a security gate block every finding?
No. Block on findings that are specific, reproducible and fixable within the gate's time budget, and warn on the rest while recording them in the issue tracker. A gate that blocks on noise is bypassed.
Sources
- NIST SP 800-218, Secure Software Development Framework (SSDF) Version 1.1, read November 19, 2026
- Microsoft SDL Phase Five: Release, read November 19, 2026
- Secure Deployment, OWASP SAMM, read November 19, 2026
Last reviewed November 19, 2026