ModelRefs / Security Scanning — Architecture Blueprint

Security Scanning — Architecture Blueprint

Production architecture blueprint for Security Scanning: components, deployment, cost and latency, failure modes, evaluation and governance.

Overview

This is the implementation view of Security Scanning: the components it requires, where it can run, what it costs in latency and spend, how it fails, and what you must measure before putting it in front of users.

5 components to assemble, 5 documented failure modes, high implementation complexity. Every statement below comes from the canonical workflow record with its sources and review date; where the evidence does not settle a question, the page says so rather than filling the gap.

Implementation complexity
high
Components
5
Failure modes
5
Evaluation readiness
documented
Sources
3read 2026-11-20

What this workflow takes in and produces

Takes in

  • static analysis and scanner results
  • source code and diffs
  • dependency and configuration data
  • security policies and known-issue lists

Produces

  • finding explanations
  • prioritised finding lists
  • patch suggestions
  • false-positive candidates with reasons

Applied to

  • explaining and prioritising scanner findings
  • proposing patches for human review
  • adding pull-request context to findings

Components you need to assemble

A working implementation needs 5 distinct components. Each is a build-or-buy decision in its own right.

  • static analysis or code scanning engine
  • pull-request integration
  • policy and suppression registry
  • patch testing in CI
  • security reviewer workflow and audit log

Implementation complexity: high. This describes the integration and evaluation effort, not the difficulty of any single component.

Deployment patterns

Deployment options recorded for this workflow: managed-api, hybrid.

Topologies it has been recorded against: serverless-api, managed-container, self-hosted-cluster. Each changes the data-residency, scaling and cost profile, so confirm the one you need against current provider documentation.

Cost and latency

  • Scanners run on every change, so add language-model steps only for findings that need explanation, ranking or a patch.
  • Measure cost per confirmed finding and reviewer time saved, including time spent on wrong explanations.

How this workflow fails

Observed failure modes for this class of workflow. Design a check for each one before shipping, not after.

  • real vulnerability dismissed as a false positive
  • patch that introduces a new weakness
  • unsupported assurance that code is secure
  • findings leaked to an external provider
  • user over-confidence in generated code

Risk areas the evidence covers

  • missed vulnerabilities
  • false-positive handling
  • patch correctness
  • over-confidence
  • data exposure

Proving it works before you ship

Evaluation readiness: Documented — Finding precision, missed-vulnerability, patch-correctness and triage-time measures are defined; language, framework and policy-specific baselines remain required.

Worked evaluation case: Assisted triage of scanner findings

Run the scanner on a codebase with known and seeded vulnerabilities and compare the assistant's explanations, priorities and patches with security reviewers' judgements.

What to measure

  • precision of findings judged real
  • known vulnerabilities dismissed
  • patch correctness after re-scan and tests
  • new weaknesses introduced by patches
  • reviewer time per finding

Governance and data handling

  • Vulnerability details and unpatched code are sensitive. Decide what may be sent to a model provider and how findings are stored and disclosed.
  • A security reviewer approves suppressions and patches. The assistant must not close findings on its own.

Implementation notes

  • Keep a deterministic scanner as the detector and use the model to explain, rank or propose fixes, so a missed finding is not hidden by fluent text.
  • Re-run the scanner and the tests on every proposed patch before a reviewer sees it.

What this blueprint does not establish

  • The user study used a 2022 code model and a fixed set of tasks, and does not evaluate assistants that explain scanner output.
  • CodeQL supports only listed languages and may produce no alerts for others; the OWASP list names risk categories and is not a test.
  • No language set, scanner, vulnerability taxonomy, policy or acceptance threshold is registered for a target deployment.
  • No measured finding precision, missed-vulnerability rate, patch correctness or triage-time effect for model-assisted scanning is attached.

Source coverage: Documented — A user study supports that participants with an AI assistant wrote less secure code and were more likely to believe it was secure. The OWASP Top 10 for LLM Applications (2025) supports treating improper output handling and excessive agency as risks of model-generated output. GitHub's CodeQL documentation supports query-based code scanning that reports alerts and covers only listed languages. None evaluates an assistant that explains or patches scanner findings.

Sources read on 2026-11-20. Revalidate scanner coverage, current model behaviour and provider data controls.

Sources

Candidate models and benchmarks

Candidate models with published references, the providers behind them, and the benchmarks whose task shape bears on this workflow are on the Security Scanning workflow reference. This blueprint covers implementation; that page covers selection.

Continue your research

Use these connected ModelRefs sections to compare alternatives, inspect implementation paths, and review the evidence and governance boundaries relevant to Security Scanning — Architecture Blueprint.