Rewritten in October 2026. An earlier version of this post described a stricter correlation gate and quoted a false-positive reduction. Neither was accurate: the first release gated on severity alone, and the effect of correlation on false positives has never been measured. This version describes how the gate actually works.
Most CI security gates make one decision: is any finding at or above a severity threshold? If yes, the build fails. That rule is easy to explain and easy to defeat. Unproven findings block releases, teams learn to override the gate, and the gate stops meaning anything.
There is a quieter failure too. If a scanner didn't run — the tool wasn't installed, the target was unreachable, the configuration was wrong — it produces no findings, and no findings looks exactly like a clean pass.
Severity answers the wrong question
- Severity says how bad a finding would be if it is real. It says nothing about how likely it is to be real.
- DAST sees behaviour but not code: it can show an endpoint responding badly without knowing which handler produced it.
- SAST sees code but not behaviour: it can flag a dangerous pattern without knowing whether that path is reachable or already guarded.
So Fendix keeps severity — it still describes impact — but decides whether a finding blocks from the evidence behind it.
Correlation is a signal, not the gate
When a static finding and a runtime finding describe the same issue at the same place, Fendix merges them into one correlated finding. Matching is a fixed cascade, not a weighted score: the categories must be related, and then the locations must match by route pattern, normalised endpoint, path suffix, or a shared path segment, in that order.
// Simplified from the correlator: is this static (whitebox) finding
// the same issue as this runtime (blackbox) finding?
func sameIssue(w, b Finding) bool {
if !relatedCategories(w.Category, b.Category) {
return false
}
switch {
case w.Route != "" && routeMatches(w.Route, b.Method, b.URL):
return true // route pattern confirmed against the live request
case normalize(w.Endpoint) == normalize(b.Endpoint):
return true
case suffixMatches(w.Endpoint, b.Endpoint):
return true
default:
return sharesSegment(w.Endpoint, b.Endpoint)
}
}Agreement between engines is strong evidence, but it is one of seven independent signals. A confirmed route, a reachable taint path, a validated payload, or an independent tool reporting the same CWE at the same location also count. And some evidence is self-evident on its own: a live response that shows the problem, or a real credential committed in production code, can block without a second engine. Correlation never removes a finding; everything stays in the report.
A score you can audit
Every finding gets a deterministic 0–100 confidence score. It starts from a base and each rule that fires adds or subtracts a fixed amount, with a plain-language reason. Tests enforce that the reasons add up to the score, so nobody has to trust a black box.
confidence_score: 90 (HIGH)
base 35
+ static evidence 10
+ runtime evidence 10
+ cross-engine agreement 25
+ route confirmed 10
bands: HIGH >= 70, MEDIUM >= 40, LOW < 40What actually blocks
- Below the --fail-on threshold: WARN (medium and above) or INFO. Never a block.
- At or above the threshold with LOW confidence: WARN.
- At or above the threshold with MEDIUM confidence and no independent signal: WARN.
- Otherwise: BLOCK — with a few de-escalations, such as test fixtures without independent evidence, or a vulnerable dependency that is never imported.
This confidence gate shipped in v2.0 as a breaking change: some builds that used to fail now pass. So --enforce-confidence=false restores the old severity-only behaviour exactly, and a test across 54 severity and threshold combinations keeps that escape hatch honest. Decisions made that way are flagged as policy overrides in the report.
A scanner that didn't run isn't a pass
Each analyzer records whether it ran, was skipped, or failed, with a reason code. On the CLI, opt-in flags turn missing analyzers or coverage gaps into a failing exit code. In the hosted workspace, required coverage depends on the scan mode, and missing required evidence produces an INCOMPLETE release decision instead of PASS.
What I'd tell myself at version one
- Write the gate's semantics as tests before writing the README. The first README described a rule the code didn't implement.
- Publish benchmarks with their limits. A curated corpus measures rules on cases you wrote, not a real-world detection rate.
- Treat a stricter or looser gate as a breaking change, and ship an exact escape hatch with it.
Fendix's engine is open source (MIT) at github.com/Fendix-app/Fendix; the hosted workspace is at fendix.dev. Full case study at /case-studies/fendix