Back to Blog
The SAST report nobody opens: a triage loop that survives week ten
Security
8 min read
18 views

The SAST report nobody opens: a triage loop that survives week ten

System Admin

November 19, 2026

Table of Contents (10)Expand ↓

The report nobody opens

You push a branch. The pipeline runs a Static Application Security Testing (SAST) tool. SAST means software that reads your source code and flags patterns that look like security weaknesses. The job finishes with 400 findings. You scroll for ten seconds, see a hardcoded password in a test fixture, and close the tab.

That reaction is normal, and it is the core problem. A recent thesis on improving the adoption, usability, and retention of SAST tools studies this exact gap. Its literature review covers 89 research works on SAST implementation and continued usage and identifies recurring developer concerns, including false positives.

The thesis frames the tension well: developers are responsible for secure code, but the tools meant to help them are hard to keep using. Adoption is not the hard part. Retention is. A common pattern I have seen working with teams is that a scanner gets installed and then stops being read soon after — that is an observation from experience, not a measured result from the thesis.

This article is about the workflow that fixes that. Not a better scanner. A triage loop you can actually run.

Why the scanner loses your attention

A SAST tool has no idea what your code is for. It matches patterns. A string that looks like a credential is a finding, even if it is a fake value in a test. A SQL query built from a variable is a finding, even if the variable is a constant.

So the report mixes three things:

  • Real bugs you should fix today.
  • Real patterns that are safe in this context.
  • Noise from rules that do not fit your stack.

The thesis identifies false positives as a recurring developer concern. That matches what you see. When most of the list is wrong, your brain learns to ignore the whole list. That is rational behavior, not laziness.

The fix is to make the list smaller and more trustworthy. You do that by changing what the scanner reports, not by trying harder to read it.

Separate signal from noise before you read a single finding

Do not triage 400 findings. Triage the rules that produced them.

Most SAST tools let you list which rules fired. Group the findings by rule ID. In many codebases, a small number of rules produce most of the volume — check your own report rather than assuming. Purely hypothetical: 400 findings could come from 12 rules, and 3 of those rules could account for 300 of them. Your numbers will differ; the shape is what matters.

Now ask one question per rule: does this rule ever produce a finding we would fix?

Rule behavior — What to do · Finds real issues in our code — Keep it on, tune severity · Fires on test fixtures and generated code — Exclude those paths · Fires on a framework we do not use — Turn it off · Fires often but we have never fixed one — Turn it off, revisit later

That last row is the one people resist. Turning off a security rule feels wrong. But a rule you never act on is not protecting you. It is training you to ignore the tool.

Write down each decision. A short comment in the scanner config is enough. "Off: rule X fires only on Django templates, we use Jinja." Six months later, someone will ask why, and the answer will be there.

Fix one category first

The thesis points at usability and continued use as the central challenges. A workflow that asks you to fix everything at once fails on both. You burn out in week one and stop.

Pick one category. The highest-signal one. In practice that often means a rule where a finding is usually a real bug in your codebase — a heuristic, not a guarantee. In my experience, common high-signal candidates are hardcoded secrets, unsafe deserialization, or string-built SQL.

Then do this:

  1. Fix every open finding in that category. Not the whole report. One category.
  2. Add a test or a lint rule that catches the same pattern earlier.
  3. Make that category block merges in CI.
  4. Leave every other category in a weekly review queue.

You now have one rule you trust completely. The scanner has earned a place in your loop. That is the retention problem solved for one category. Repeat when you have time.

A gate only works if it is narrow enough to trust and strict enough to matter — a similar idea appears in the merge gates discussed in durable agent workflows.

Put the scanner in the loop, not in a report

A report you read later is a report you skip. The scanner has to run where you already are: on the pull request, before merge.

Here is a small Node.js script that reads a SAST JSON report, groups findings by rule, and fails only on the rules you have marked as blocking. It runs anywhere Node runs.

🟨JavaScript
import { readFile } from "node:fs/promises";

// argv[2] is the report path; argv[3] is the optional config path.
const configPath = process.argv[3] ?? "sast-triage.json";

async function main() {
  const path = process.argv[2];
  if (!path) {
    console.error("usage: node triage.mjs <report.json> [config.json]");
    process.exit(2);
  }

  let report;
  let config;
  try {
    report = JSON.parse(await readFile(path, "utf8"));
    config = JSON.parse(await readFile(configPath, "utf8"));
  } catch (err) {
    console.error(`could not read input: ${err.message}`);
    process.exit(2);
  }

  const BLOCKING_RULES = new Set(config.blockingRules ?? []);
  const findings = Array.isArray(report.findings) ? report.findings : [];
  const byRule = new Map();

  for (const f of findings) {
    // Findings with no ruleId go to the queue by design, never blocking.
    // Change this to a blocking bucket if your scanner omits rule IDs.
    const rule = f.ruleId ?? "unknown";
    if (!byRule.has(rule)) byRule.set(rule, []);
    byRule.get(rule).push(f);
  }

  let blocking = 0;
  for (const [rule, items] of byRule) {
    const tag = BLOCKING_RULES.has(rule) ? "BLOCK" : "queue";
    console.log(`${tag} ${rule}: ${items.length} finding(s)`);
    if (BLOCKING_RULES.has(rule)) blocking += items.length;
  }

  if (blocking > 0) {
    console.error(`\n${blocking} blocking finding(s). Fix these before merge.`);
    process.exit(1);
  }

  console.log("\nNo blocking findings. Remaining items go to the weekly queue.");
}

main().catch((err) => {
  console.error(err);
  process.exit(2);
});

With a config file like { "blockingRules": ["hardcoded-secret", "sql-injection"] }, your decisions live outside the code. The script assumes a report shape with a findings array, where each item has a ruleId. That shape is illustrative. Check your scanner's output format and adjust the field names. The point is the structure: group by rule, block on a short list, queue the rest.

Notice what the script does not do. It does not try to rank severity. It does not try to guess intent. It applies your decisions, which you made once, in a config file, when you were calm.

Handle false positives without hiding real bugs

Every suppression is a small risk. You are telling the tool "this pattern is fine here." If you are wrong, the bug ships.

So make suppression expensive enough to be deliberate:

  • Suppress at the narrowest scope. One line, not one file.
  • Require a reason in the comment. "Test fixture" is a reason. "LGTM" is not.
  • Review suppressions on a schedule. Once a quarter, read them all.

A suppression with no reason is a bug waiting to happen. The thesis names false positives as a recurring concern, and the standard answer is suppression. The part teams skip is the review. Do not skip it.

There is a second failure mode. A rule that is genuinely noisy today can become useful after a refactor. If you turn it off, note why and when to revisit. A dead rule with no note is gone forever.

What this workflow does not fix

Be honest about the limits.

SAST finds patterns. It does not find logic bugs, authorization mistakes, or design flaws. A scanner that reports zero findings does not mean your code is secure. It means no known pattern matched.

The thesis studies adoption and usability. It does not claim a specific workflow solves retention, and neither should you. The workflow here is a synthesis, not a measured result. Treat it as a starting point you adjust.

It also does not remove the need to read code. The scanner narrows where you look. You still have to look.

A habit that survives week one

The scanner you ignore is not a bad scanner. It is a scanner with no place in your day. Give it one narrow place: a blocking rule on the pull request, and a weekly queue for everything else.

Start with one category. Fix it. Make it block. Then add the next. That is how the tool earns trust, and trust is what keeps you reading it in week ten.

Related reading

Sources

Share

About the Author

Comments (0)

Loading comments...