Why a Frontier LLM Is Not an Application-Security Program
The first result from an AI-assisted security review can be deceptively convincing. A frontier model points at a repository and reports several real bugs. That demonstration often leads to a broader question: if a model can find serious issues this quickly, why not build an in-house application-security program around it?
The answer is that finding some vulnerabilities and operating a dependable security system are different engineering problems.
A useful finding is not the same as reliable coverage
The source report describes standalone frontier LLMs as inconsistent security scanners. Repeated runs of the same prompts may produce different findings, while the model may stop after exploring one path without discovering relevant endpoints or alternate execution routes. It has no dependable way to communicate that it has exhausted the attack surface.
According to Semgrep's security research team, frontier LLMs alone often missed 50 to 90 percent of certain classes of vulnerabilities. That figure comes from the vendor's internal research, and the supplied excerpt does not include its methodology, sample size, tested models, or definitions of the vulnerability classes. It therefore supports a risk hypothesis rather than a universal benchmark.
The report also cites a customer whose own LLM harness missed 14 known vulnerabilities. Nine were associated with endpoints the harness never discovered, illustrating how an agent can follow an initial path and conclude its work without covering the application comprehensively.
These observations point to a fundamental mismatch: a generative model is optimized to produce plausible responses, not to guarantee exhaustive traversal of a codebase and its reachable attack surface.
The control-plane problem
A repository-scanning model needs more than a prompt and a source tree. A security program also needs a control plane that supplies:
- Verified code facts, including relevant files, dependencies, endpoints, and reachable execution paths.
- Deterministic policy gates that encode which organizational requirements must be satisfied.
- Organizational memory covering approved patterns, rejected findings, known risks, and application architecture.
- Broad repository context so agents can evaluate alternate paths rather than stopping after the first discovery.
- Pre-commit and CI/CD checks that can block risky changes before deployment.
- Multiple detection methods, including tests, scanners, and other specialized tooling.
This context can improve an agent's usefulness, but it does not turn probabilistic output into deterministic assurance. The distinction matters when a scan is used as a release gate or treated as evidence that the repository is secure.
The operational environment is moving faster
Coding agents can produce working code faster than human reviewers can inspect it. At the same time, attackers can use the same classes of models to locate and exploit weaknesses with less effort and greater automation. A gap between code-generation speed and review capacity therefore creates an opportunity for attackers, even without a new vulnerability in the AI tooling itself.
The report uses the WFX Phantom campaign as an illustration. Between 10 and 12 November, the campaign used stolen GitHub tokens to insert a secret stealer into tens of thousands of repositories. In one described case, the attacker committed a malicious change, collected what was wanted, reverted the commit, and deleted the workflow run within twelve seconds.
Several details are absent from the supplied context, including the year, named repositories, affected products, exploited libraries, and the identity of affected systems. The example should consequently be treated as a campaign illustration rather than a complete incident record. It also does not establish that GitHub was vulnerable, that an LLM generated the attack, or that the Semgrep Agentic AppSec Platform prevents this particular activity.
What the example does show is why security controls cannot rely only on periodic repository scans. Malicious changes may appear, execute, and disappear faster than a human-driven review process can respond. Pre-commit, CI, credential-protection, and post-commit detection each serve different parts of that control problem.
What “agent-native” AppSec should mean
Semgrep positions the Semgrep Agentic AppSec Platform as tooling built around agents rather than a scanner with an AI interface added later. The available excerpt is truncated before it describes the platform's complete implementation or validation results, so its precise capabilities and independently measured effectiveness cannot be assessed from the context provided.
The important architectural distinction is not the presence of an agent. It is whether the surrounding system can provide complete context, preserve decisions across runs, enforce repeatable policies, and intervene before unsafe code ships.
An LLM can remain part of that system. Its role may be useful for navigating unfamiliar code, reasoning about data flows, proposing findings, or orchestrating specialized tools. Reliability comes from the surrounding controls, not from treating the model's output as a definitive verdict.
The risk is false confidence
No CVE, affected product, or vulnerable version is identified here. The practical risk is instead a failure of assurance: a team may infer broad coverage from a scan that was inconsistent, incomplete, or focused on only part of the repository.
Possible consequences include:
- Vulnerable code passing review because the model did not find a relevant endpoint or defect class.
- Unstable findings that complicate regression testing, ticket triage, and audit evidence.
- Large result volumes that obscure the actual level of residual risk.
- Manual review or release gates being weakened because an AI scan appears authoritative.
- Organizational security decisions being forgotten or inconsistently applied across separate runs.
None of these outcomes requires a flaw in the model itself. They can emerge from treating stochastic analysis as exhaustive assurance.
A more defensible operating model
A mature AppSec program can use AI while making the limits of its output explicit. Verified facts and deterministic checks should establish hard controls, while models contribute flexibility and investigative depth. Organizational memory should persist across runs so that agents do not repeatedly rediscover the same requirements or revisit settled decisions.
Evaluation should measure misses as well as discoveries. A scanner that reports impressive findings but silently omits important attack paths can still create a dangerous blind spot. Testing against known vulnerabilities, application-specific endpoints, and realistic attack routes is therefore more informative than counting successful detections alone.
Any commercial platform, including the Semgrep Agentic AppSec Platform, should be evaluated against an organization's own code, threat model, and required coverage. Vendor-authored performance claims are a starting point for evaluation rather than a substitute for independent validation.