Google Agentic Code Security Moves Vulnerability Checks Before Submission
Google says its agentic security system now scans every infrastructure code change across hundreds of millions of lines, before vulnerable changes enter production. The Google agentic code security pipeline combines AI scanning, structural validation, nightly testing, and human-reviewed patches. According to Google, this process prevents hundreds of vulnerabilities each month from entering its codebase or production systems.
The important change is not simply that Google uses Gemini to find bugs. Google has moved AI-assisted security into the path followed by each proposed code change. That challenges the established model of running broad security scans after developers have combined many changes.
The announcement arrives as OpenAI, Anthropic, Cisco, Microsoft, and Google are expanding AI systems that find or repair software flaws. These systems can increase defensive capacity, but they also create a difficult operational problem. Finding more vulnerabilities helps only when teams can validate, prioritize, and safely patch them.
Google Agentic Code Security Starts Before Code Lands
Google is replacing some late, repository-wide security work with narrow reviews triggered by individual code changes.
Google disclosed the system on September 18, 2026. The company says it operates across the infrastructure supporting its global network, AI systems, and user-facing services.
Each proposed change receives a pre-submit scan inside the development tools that Google engineers already use. Pre-submit scanning means checking code before it becomes part of the shared codebase. The system treats security feedback more like a compiler warning or readability review than a separate audit.
That timing matters because an individual change contains less material than an entire repository. An agent can examine the modified code, its immediate dependencies, and the relevant threat assumptions without processing every unrelated component.
A narrow review also gives the scanner a more useful question. Instead of asking whether a vast repository contains anything suspicious, the system asks whether one change introduces a reachable security weakness.
Google’s description divides the workflow into several stages:
A lightweight agent examines each proposed code change.
Local threat models supply security context for the affected component.
A triage agent checks whether the suspected attack path is structurally reachable.
Nightly integration tests look for problems created by interactions among multiple changes.
A repair agent prepares a proposed fix and supporting evidence for human review.
The company says this pipeline operates across hundreds of millions of lines of deployed infrastructure code. It also claims the system stops hundreds of vulnerabilities each month. Those figures come from Google and have not received independent auditing.
The difference between “finds” and “prevents” deserves attention. A scanner can produce many warnings without improving security if engineers ignore them or identify most as false alarms.
Google says its recommendations are widely adopted internally. However, the announcement does not publish an adoption percentage, severity breakdown, or comparison against a conventional scanner.
The company’s strongest disclosed performance metric concerns its triage stage. Google says that agent reaches more than 92 percent precision and responds in less than one minute.
Precision measures how many reported findings are genuine, rather than how many existing vulnerabilities the tool discovers. A system can produce precise alerts while still missing difficult flaws. Google did not disclose a recall rate, which would help measure that second issue.
Google also reports false-positive rates as low as 3 percent in some situations. The phrase “in some cases” limits how broadly readers should apply that number. Different languages, components, vulnerability classes, and threat models can produce substantially different results.
Still, the architecture points toward a meaningful change in software security. Google is treating AI review as a continuous production control, not an occasional assistant for a separate security team.
That makes the announcement more consequential than another model benchmark. The system’s value depends on whether it can make a trustworthy decision within the short interval before a developer submits code.
Faster Vulnerability Discovery Puts Patching Teams Under Pressure
AI is making vulnerability discovery cheaper, but remediation remains constrained by testing, review, and deployment capacity.
Security teams have long managed an imbalance between discovery and repair. Static analyzers, fuzzers, researchers, and incident reports can identify more issues than maintainers can immediately investigate.
AI increases that imbalance. An agent can repeatedly inspect repositories, form attack hypotheses, and generate proof-of-concept inputs without requiring equivalent human time for every attempt.
Yet each credible finding creates work. Someone must establish exploitability, determine affected versions, assess severity, design a safe fix, test it, and coordinate deployment.
Google’s own security organization has acknowledged this bottleneck. In its description of automated OSS-Fuzz patches, the company says purely agentic scanners can produce high false-positive rates. It also notes that continuous frontier-model scanning can remain too expensive for many projects.
That automated patching pipeline combines OSS-Fuzz with CodeMender, an agent developed by Google DeepMind. OSS-Fuzz supplies reproducible crashes, while CodeMender investigates causes and proposes fixes.
The pairing shows why raw model capability is not enough. A reproducible crash gives the repair agent stronger evidence than an unconstrained suspicion generated during a broad code review.
Google’s infrastructure system applies a similar principle before submission. Its scanning agent proposes a problem, but a separate triage agent examines code structure and reachability.
A call graph maps which functions can invoke other functions. Abstract syntax tree parsing represents source code as structured program elements instead of plain text. Together, these tools help determine whether attacker-controlled data can reach dangerous operations.
This deterministic layer pressures traditional application-security products because it changes the expected user experience. A scanner that merely fills a dashboard with possible issues looks less useful beside a system that validates paths and proposes patches.
The pressure also reaches developers. A security system placed directly inside code review must return useful results quickly. Slow scans interrupt work, while noisy findings teach developers to dismiss alerts.
Google says its quick validation stage completes in under one minute. If that performance holds across varied codebases, it supports frequent scanning without forcing developers into a separate workflow.
The approach also changes the role of centralized security teams. Specialists can encode domain rules and threat assumptions while agents apply that context across routine code changes.
This does not remove human security work. It moves specialists toward designing controls, examining unusual findings, and reviewing changes with the highest potential impact.
Competitors are pursuing related models. OpenAI introduced Codex Security as an agent that analyzes repositories, tests suspected vulnerabilities in sandboxes, and proposes fixes. The company says it found nearly 800 critical issues and more than 10,500 high-severity issues during testing.
Those are OpenAI’s figures, not independently confirmed measurements. Still, its workflow closely resembles Google’s combination of contextual analysis, exploit validation, and proposed remediation.
Anthropic has also pushed AI-assisted vulnerability discovery, while Cisco has adopted multi-model scanning across its products. Cisco told Axios that it scanned 1.8 billion lines across 25 programming languages within eight weeks.
Cisco also moved from monthly security disclosures to twice-monthly releases. That change illustrates the broader constraint: greater discovery capacity forces organizations to accelerate disclosure and remediation processes.
The primary contest is therefore not Google against one particular vendor. It is continuous, context-aware review against delayed, broad scanning that separates detection from development.
Traditional scanners will not disappear. Signature checks, dependency analysis, fuzzing, and manual review each detect different failure modes. Google’s system adds a new orchestration layer around those capabilities.
The winning approach will likely combine probabilistic agents with deterministic evidence. An agent can form hypotheses across unfamiliar code, while structural tools and tests can reject unsupported conclusions.
That combination is central to Google’s claim. The company is not asking one model to act as an unquestioned security reviewer. It separates scanning, triage, testing, repair, and human approval into distinct controls.
How Google AI Vulnerability Scanning Narrows the Search
The system gains precision by giving several specialized agents limited responsibilities and code-specific context.
A general model reviewing a large repository faces a context problem. The code alone rarely explains which assets matter, where trust boundaries sit, or which callers can supply untrusted input.
Google addresses that weakness with localized threat models. A threat model records protected assets, expected attackers, trust boundaries, and plausible abuse paths for a system.
The company says these models draw from live codebase metadata rather than disconnected documents. That link matters because an outdated threat model can produce confident findings based on architecture that no longer exists.
Google evolved Mantis, its open-source multi-agent review harness, to connect scanning agents with those localized models. A harness coordinates prompts, tools, evidence, and handoffs around an underlying model.
The Mantis review harness is important because it separates the system’s architecture from any single model release. Google says a well-designed harness can compensate for variability among models.
The first agent examines the proposed change using relevant security context. It can identify a suspicious data flow, missing authorization check, unsafe memory operation, or another potential weakness.
A second agent then validates that hypothesis with program structure. It traverses call graphs, parses syntax, and applies indexed safety rules to determine whether the vulnerable path is reachable.
This stage functions as a credibility filter. It asks whether an attacker can exercise the suspected flaw, not merely whether the code resembles a vulnerable pattern.
The distinction helps explain the reported precision. Many static-analysis warnings describe theoretically unsafe code that cannot run with attacker-controlled inputs. Reachability analysis can remove some of those alerts.
However, reachability does not establish every part of exploitability. Runtime configuration, permissions, deployment topology, and hidden environmental assumptions can also decide whether an attack succeeds.
Google adds nightly post-submit scans to catch weaknesses spanning multiple changes. A pre-submit scanner sees an individual contribution clearly, but it can miss behavior created when separate changes interact.
This creates a two-speed model. Fast checks protect developer flow, while slower integration work searches for broader system effects during off-peak periods.
When the pipeline validates a vulnerability, a repair agent receives the finding and generated proof. That proof is a code example showing how the vulnerable behavior can be exercised.
The agent then constructs a patch aligned with Google’s coding standards. It attaches that proposal to the original change request for review rather than deploying it without approval.
Human review is a significant safeguard. A patch can block one exploit while breaking valid behavior, weakening another control, or creating a subtler vulnerability.
Google’s earlier work offers useful context. A 2024 technical report said Gemini-generated fixes resolved 15 percent of sanitizer bugs found during unit tests. The result covered C++, Java, and Go and led to hundreds of patches.
That AI patching research framed a modest success rate as valuable because sanitizer findings occur at high volume. It did not claim autonomous repair had solved general software security.
The new infrastructure pipeline expands the ambition. It joins discovery, validation, and repair within the normal development lifecycle instead of applying models only to known sanitizer failures.
Its architecture also creates useful independence between stages. Google recommends keeping the rules, context, and harnesses for development, scanning, and triage agents separate.
That separation reduces correlated errors. If one agent writes code and then judges its own output using identical context, it may repeat the same mistaken assumption.
An independent triage system has a better chance of challenging the original reasoning. Deterministic checks further reduce reliance on one model’s explanation.
This principle resembles established controls in finance and safety engineering. The actor producing a change should not be the only actor deciding whether that change is acceptable.
For companies considering a similar system, the hidden requirement is organizational memory. Local threat models, dependency maps, safety rules, and historical review standards must remain current.
AI cannot use context that an organization never captured. Fragmented documentation and undocumented architecture will restrict the agent’s ability to distinguish dangerous behavior from legitimate exceptions.
That creates an adjacent role for a searchable engineering knowledge base. Teams need reliable access to architecture decisions, code ownership, and security assumptions before automated review can use them effectively.
The technical mechanism is therefore less magical than the “agentic” label suggests. Google combines models with structured code analysis, maintained context, asynchronous testing, and review gates.
Its advantage comes from placing those elements around every change. The model is one component in a system designed to turn a security hypothesis into actionable evidence.
Automated AI Patching Still Has a Validation Problem
Google’s internal results are promising, but the published evidence does not establish recall, semantic correctness, or portability to ordinary companies.
The clearest uncertainty concerns measurement. Google disclosed precision and selected false-positive figures, but it did not provide an independent evaluation dataset.
It also did not state how many detected flaws were critical, exploitable in production, or unique to agentic scanning. Preventing hundreds of vulnerabilities can cover a wide range of severity and confidence.
Another missing metric is recall. A scanner that reports ten real vulnerabilities and no false alarms looks precise, but it remains incomplete if one hundred other flaws go undetected.
Recall is difficult to measure because the total number of vulnerabilities is unknown. Researchers often use seeded flaws or historical cases, but both methods can distort results.
Historical benchmarks risk contamination because training data can include public bug reports and developer patches. An agent may reproduce a remembered repair instead of reasoning about an unfamiliar vulnerability.
New research illustrates that problem. PatchBench evaluates agents on transplanted and modified vulnerabilities whose fixes are harder to retrieve from memorized public examples.
Its authors found that 25 percent of agent patches showed substantial similarity to historical developer fixes. They also found that proof-of-concept-only validation inflated solve rates by an average factor of 1.83.
Under stronger security and semantic checks, even leading agents solved roughly half of the benchmark tasks. Sixty-seven tasks remained unsolved by all 11 evaluated agents.
The PatchBench evaluation also found that agents sometimes suppress a reported crash without correcting its root cause. Such a patch can pass a narrow test while leaving the underlying weakness intact.
These findings do not directly refute Google’s internal claims. Google’s environment uses live code changes, localized threat models, structural validation, and human review rather than only historical benchmarks.
However, the research shows why a passing proof cannot serve as complete evidence. A patch must preserve valid functionality while blocking the broader vulnerability class.
Google’s nightly tests help address this risk, but test suites are never exhaustive. A generated patch can alter behavior that existing tests do not cover.
The system may also inherit blind spots from its threat models. A precise, current model improves context, while an incomplete model can exclude the attack path that matters most.
Maintaining those models creates recurring work. Teams must update boundaries, dependencies, permissions, and abuse cases as services evolve.
Google can support that effort with extensive internal tooling and security expertise. Smaller organizations may lack the code indexes, threat-model discipline, and computing resources needed to reproduce the results.
Cost remains another open question. Google does not disclose inference spending, accelerator use, or the engineering cost of operating the pipeline.
Scanning one small change is cheaper than repeatedly scanning an entire repository. Yet applying agents to every change across many repositories can still create substantial cumulative demand.
Google runs Gemini on its own TPU infrastructure, including Trillium and Ironwood systems. Most organizations will buy inference from an external provider or operate smaller models under tighter budgets.
Data governance can also complicate adoption. Sending proprietary source code and threat information to a hosted model introduces contractual, privacy, and supply-chain questions.
Companies will need clear boundaries around code retention, model training, access control, audit logs, and cross-tenant isolation. Highly regulated teams may require private deployment options.
There is also a conflict-of-interest question. The same AI provider can supply code generation, security review, cloud infrastructure, and the models evaluating all three.
Independent controls become important when one vendor occupies several layers. Axios reported that security executives expect enterprises to retain a mix of providers instead of relying on one platform for creation and defense.
That concern favors Google’s recommendation to separate agents and validation contexts. However, logical separation inside one vendor’s stack is not identical to organizational or supplier independence.
Human review remains the final defense against these uncertainties. That safeguard works only when reviewers have enough time, expertise, and evidence to challenge the generated patch.
A large volume of plausible fixes can overwhelm reviewers just as easily as a large volume of noisy findings. Automation can move the bottleneck rather than remove it.
Google has acknowledged that open-source maintainers already receive AI-generated contributions with negative review value. Its CodeMender program therefore uses isolated testing and Google engineer review during beta.
The lesson applies equally inside enterprises. A repair agent should reduce total review effort, not merely produce more pull requests.
The most credible reading of Google’s announcement is therefore narrow. The company has built a sophisticated internal pipeline and disclosed encouraging operational metrics.
The announcement does not prove that autonomous agents can replace security engineers, formal verification, fuzzing, or independent assessment. Google does not make that explicit claim either.
Instead, the system attempts to move credible findings closer to the moment a vulnerability appears. Its success depends on evidence quality and safe remediation, not the volume of AI output.
What Comes Next for Google Agentic Code Security
The next test is whether Google can publish broader measurements, transfer the workflow beyond its environment, and keep repair quality ahead of discovery volume.
Three signals will determine whether Google agentic code security represents a durable operational shift.
The first signal is measurement quality. Google should disclose recall estimates, severity distributions, adoption rates, and patch regression results across different languages and infrastructure layers.
An external evaluation would add credibility. Independent researchers could test whether the pipeline detects novel flaws without reproducing known patches or exploiting narrow benchmark conditions.
More precise reporting would also clarify the “hundreds per month” claim. Readers need to know how many findings would have reached production without this system and how their severity was established.
If Google publishes reproducible results across unfamiliar vulnerabilities, confidence in its approach will increase. If reporting remains limited to selected precision figures, uncertainty will persist.
The second signal is practical adoption of Mantis outside Google. Open sourcing a harness gives other organizations access to orchestration logic, but not Google’s internal metadata or operational maturity.
External teams must supply threat models, code indexes, safety rules, evaluation datasets, and review processes. Their results will show how much of Google’s performance comes from the harness itself.
Successful adoption would involve more than installations or GitHub stars. Teams should report fewer escaped vulnerabilities, acceptable false-positive rates, and shorter remediation times without increased regressions.
Failure would also be informative. If users struggle to maintain context or control model costs, the approach may remain concentrated among companies with unusually mature engineering systems.
The third signal is competitive response. OpenAI, Anthropic, Microsoft, Cisco, and established application-security vendors are converging on validated discovery and automated repair.
The important comparison will not be which model produces the most findings. It will be which system can demonstrate exploitable paths, generate semantically correct fixes, and fit inside daily development.
Cisco’s decision to increase disclosure frequency shows how AI discovery is already changing downstream operations. More vendors will need to adjust release schedules, validation capacity, and customer communication.
Attackers will also gain stronger analysis tools. An agent that helps a defender trace a vulnerable call path can offer similar leverage to someone examining exposed software.
That symmetry shortens the interval between vulnerability discovery and exploitation. Defensive value increasingly depends on patching speed rather than detection alone.
Google’s pre-submit strategy responds by removing vulnerabilities before attackers can inspect a released artifact. It is a stronger position than discovering a flaw after deployment, even when incident response is fast.
Yet pre-submit scanning cannot cover every weakness. Configuration errors, runtime state, compromised dependencies, social engineering, and architectural mistakes can emerge outside a single code change.
Organizations should view agentic code review as one layer of defense. Fuzzing, dependency controls, penetration testing, runtime monitoring, access restrictions, and incident response remain necessary.
For developers, the immediate question is whether security feedback becomes more relevant and less disruptive. A sub-minute finding with a reachable path and reviewed patch can improve both speed and trust.
For security leaders, the question is whether agents reduce total risk rather than increase alert production. That requires measuring escaped flaws, remediation time, reviewer effort, and regressions together.
For enterprise buyers, the key issue is evidence portability. Google’s internal scale demonstrates that the architecture can operate within one highly engineered environment. It does not guarantee identical results elsewhere.
The larger shift is already visible. Application security is moving from periodic inspection toward continuous, evidence-driven intervention inside the development workflow.
Google agentic code security offers one of the clearest implementations of that model. Its agents scan, challenge, retest, and propose repairs before code reaches production.
The next few months should reveal whether Google publishes broader validation and whether external Mantis users can reproduce its gains. Those results matter more than another headline finding count.
Engineering teams should begin by examining their own foundations. Are threat models current, dependencies mapped, tests meaningful, and review responsibilities explicit?
If those pieces are missing, adding an agent will expose the gaps without resolving them. If they are present, continuous agentic review can convert that institutional knowledge into earlier security decisions.
The real question is no longer whether AI can identify suspicious code. It is whether organizations can build a controlled process that turns each finding into a safe, timely fix.



