R457 · AI-built software and its verification › Security scanning for AI-written code

A merge gate that is nondeterministic, steerable and silently skipped: an agentic security scanner in its own words

Read the original

securityagent-securitycode-reviewverificationvendorclaim-checking

Filed 2026-12-01. Primary source: the vendor's own documentation page for its agentic security-scanning plugin, plus the companion page for its in-session sibling. The plugin's repository files (README, SECURITY, CI guide) are linked from that page but are not covered here.

What it is

A multi-agent vulnerability scanner that runs inside a coding-agent session. On a whole-repository scan the default flow has agents map the architecture, hunt for vulnerabilities, and "independently review every finding before writing the report." It runs on three surfaces — interactively in a session, from the shell as a command inside a sandbox, and as a job in GitHub Actions that scans a pull request's diff, posts a review with suggested fixes, and can block the merge. That last surface is the new one, and it is the one worth reading carefully, because turning a probabilistic reviewer into a required check changes what the check means.

The vendor is clear about where this sits. It publishes a defence-in-depth table — an in-session guidance plugin for code as it is written, this deep scan on demand, a PR-time correctness-and-security review, this plugin again in CI, a managed hosted service, and your existing scanners — and states that the plugin "doesn't replace your existing source-code security tools", because "it reasons about your code the way a human security researcher would, which complements the deterministic checks those tools provide." That is the right framing, and it is the framing the announcement coverage tends to drop.

The three properties that matter for a merge gate

1. It is nondeterministic, and says so

"Scans are nondeterministic: two scans of the same code can surface different findings." The guidance that follows is explicit about what to do with that: if a large-repository scan "finds less than you expect", raise the effort, "scan a second time, or do both. Each can report findings that one medium scan doesn't."

A required check with that property is a different object from a unit test. Re-running it is not a retry, it is a second sample. A red result that goes green on re-run has not been fixed, and a green result is a sample from a distribution whose variance nobody has measured. Teams that gate merges on it should decide in advance what a re-run means politically, because the tool will not decide for them: if "run it again" is an accepted route past a red check, the gate is advisory with extra steps.

2. Anyone who can push to the branch can steer it

The documentation's warning is unusually direct: use the job "only in a repository where you trust everyone who can push", because "[a]nyone who adds text or code to a pull request's branch can steer the scan, have it run that code, and make it send model requests on the job's credential." By default the job fails on pull requests from forks.

This is the standard prompt-injection-in-CI problem, stated plainly rather than buried: the analyser reads attacker-controllable text and then acts. The consequences are three, not one — influence over the verdict, code execution on the runner, and spend on the job's credential. The mitigation the docs offer is a trust boundary, not a technical control, which means the control is your branch protection and your contributor set.

There is a second disclosure hazard specific to public repositories: "the review, the job summary, or the job's report artifact can disclose a live vulnerability", with the recommendation to scan in a private session instead. A scanner that posts its findings as a PR review is a scanner that publishes unpatched vulnerabilities to everyone watching the repository.

3. Two classes of pull request pass without being scanned

With the vendor's sample workflow, "a draft pull request from a branch of your repository passes with no scan until you mark it ready for review", and "[a] pull request from Dependabot passes with no scan too, so review its changes yourself."

Both are defensible defaults — drafts churn, and dependency bumps are mostly lockfile noise. Both are also exactly the shape that makes a gate misleading, because the check reports success rather than skipped. Dependency updates are a live supply-chain surface, so "dependency PRs are unscanned" is a policy decision that deserves to be made deliberately rather than inherited from a sample file.

What the design gets right

The verification architecture is the strongest part. Findings reach the report only "after independent verifier agents analyze them, which keeps reports short and worth reading" — precision bought deliberately at the cost of recall, which is the correct trade for anything a human has to read every day.

The patch path applies the same pattern with a written contract. Patches are drafted in a scratch copy, and "an agent independent of the one that wrote the patch reviews it", runs the project's tests where it can, and must vouch for three things: the patch addresses its one finding, introduces no new vulnerability, and leaves behaviour otherwise unchanged. "When the review can't vouch for all three, the plugin writes a short note explaining why instead of a patch." Producing an explanation rather than a low-confidence diff is the behaviour you want from a tool that is allowed to touch security code. Patches are never applied automatically; they land as files with a note carrying the exact apply command, and the advice is one patch per pull request.

The provenance artefact deserves copying wholesale. Alongside the Markdown report, a JSONL stream and a SARIF 2.1.0 log with CWE classification, each run writes a revision stamp recording "which commit was scanned, at what scan effort, whether uncommitted changes were part of the scanned tree, and how thoroughly the run was verified", stamping UNVERSIONED when the scan ran outside version control. That is four facts that determine whether a past report still means anything, written down at the time rather than reconstructed later. Most scanners record the first and none of the rest. The related rule is equally sensible: an old report is usable "only if the scanned commit is in your current history."

Small touches show the same care. The report directory is the only change a scan makes to the checkout and ships its own ignore file so a stray git add cannot sweep a vulnerability report into a commit — with the honest caveat that "[s]ome packaging and deploy tools don't read that file", so reports should be moved out before packaging. Keeping a report for audit is a documented one-step deviation: delete that ignore file and commit the directory.

The inputs are a trust surface, and the docs treat them as one

Three separate places warn that what you feed the scanner can hide a vulnerability from it:

The triage feature also carries the most useful calibration note on the page: rejected findings land under a Not validated heading, and you should read it yourself, "because the triage is more likely to reject a real finding that your list describes in only a few words." That is a stated false-negative bias correlated with input verbosity — precisely the kind of thing most tools leave you to discover.

Where enforcement stops applying

The shell command has a documented gap worth knowing before anyone wires it into automation: "[t]he command doesn't load your repository's .claude/ settings or hooks, so the deny rules there don't apply. In the sandbox, your organization's server-managed settings don't apply either." Adding --no-sandbox — required on Windows — runs the scan in auto mode with the invoking user's access.

So the surface that looks most like a batch tool is the surface where repository-level and organisation-level policy does not reach. The sandbox itself is Linux-only (kernel 5.19 or later, x86-64 or arm64, Python 3.10 or later, non-root; --sudo on recent Ubuntu), and the command is unsupported on macOS and WSL 2, which pushes a large fraction of developers to the session path by default. Passing a custom base URL means "your credential can go to that host."

Cost, which is a design constraint here rather than a footnote

"A codebase scan can cost a lot of tokens, and the cost grows with the size of the repository, the scan effort, and the model." The thorough change-scan mode "takes longer and costs several times as much" than high scan effort, in exchange for also listing vulnerabilities older than the change. The attack-surface analysis "may take a long time and use a significant number of tokens", and during it you must leave the session open and not commit, switch branches or edit files. The documented levers are scoping to one area, dropping to low effort, or changing the model — and the report's coverage section states what was and was not examined, which is what makes partial scanning honest rather than misleading.

The attack-surface analysis is worth separating from the scan conceptually: it hunts for "[c]ode that the default configuration reaches but no default feature uses", "[s]ensitive code reachable before login or without any user action", and "[c]ombinations of options that silently turn off a security feature". That last category is a genuinely hard class of bug for deterministic tooling. Its output carries the right disclaimer — "[t]reat findings and patches as untested until you check them yourself."

Failure modes

Review checklist

  1. Decide what a red result means before enabling the gate, and in particular whether re-running counts as a fix. Write it down.

  2. Make skipped scans visible. If drafts and dependency pull requests are exempt, add a separate scheduled or manual scan that covers them, and say so in the contributing guide.

  3. Check push access against the documented trust requirement. If not everyone who can push to a branch is trusted, the job does not belong on pull requests in that repository.

  4. On public repositories, keep findings out of PR reviews, job summaries and artifacts.

  5. Give the job a credential scoped to that job alone, and alert on its spend — steerable scans and credential spend are the same hazard.

  6. Treat the architecture documentation the scan reads as security-relevant input, and review it on the same cadence as the scanner's own configuration.

  7. Always read the Not validated section of a triage report, given the stated bias against terse findings.

  8. Keep revision stamps with any report you retain, and refuse to act on a report whose scanned commit is no longer in history.

  9. Apply patches one pull request at a time, after reading each patch's note, and run a status check afterwards — the docs warn an agent "can still edit your own files by mistake."

  10. Prefer the session or Actions surfaces where repository and organisation policy must apply; if the shell command is used, replicate the deny rules it does not load.

  11. Pin the workflow to a commit rather than a moving reference, and budget scan cost per repository before enabling scheduled full scans.

Connections

See R457 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.