tl;dr A model on its own finds bugs, but not the same ones twice, and it can’t tell you when it’s done. What makes it a security program is the tooling around it: verified facts about the code, deterministic policy gates of what your team has already decided, and checks before anything is committed. That’s what we built into the Semgrep Agentic AppSec Platform, and the rest of this post is the evidence.
Somewhere in your organization, an engineer has already pointed a frontier model at a repository and come up with a list of real security bugs. That may feel impressive enough to ask the obvious follow-up: can’t we just build this ourselves? If you lead security or AI decisions, that question is probably on your mind right now with an urgent deadline.
You have options. You could build your own security agents because you have confidence in your team. Point a frontier model at the codebase and then count on the models getting better. Or you can work with a partner who has already been through it and learn where those strategies break. Building a fast, scalable and reliable solution requires effort and experience.
Not choosing is a choice, but while deliberating over it, agents keep writing code and attackers keep exploiting systems using the same models. Security built for human-speed development has become the bottleneck. Pointing a model at a codebase and saying the equivalent of "Be secure, make no mistakes" is not good enough. You need verifiable facts about the code, memory of how your organization works, and a way to stop risky code from being committed outside of your control.
That’s what a partner who is accountable for how your code ships brings, and it’s what we built the Semgrep Agentic AppSec Platform to do.
Agents changed the pace and the job
There are two things happening at the same time today with software development:
First, coding agents produce working code faster than humans can review it. Businesses have every incentive to ship code quickly, so more of it tends to end up in prod without proper security checks.
Second, attackers have access to the same models as the devs. For them, finding and exploiting bugs is cheaper, easier and more automated than it was a year ago. Without the necessary defenses in place, this is a recipe for disaster.
We saw a clear example of this happening recently. Between 10 and 12 November, the WFX Phantom campaign used stolen GitHub tokens to plant a secret stealer in tens of thousands of repositories. In one case the attacker was in, grabbed what they wanted, reverted the commit, and deleted the run in twelve seconds. That is super-human speed, way too fast to be caught and thwarted in real time.
The tempting response is to point a frontier model at the codebase and ask it to find the bugs. I get why, and we've done this ourselves. The models are good, and they do find issues. The problem is that a model on its own is a slot machine: put in your tokens and then every run is a gamble. Semgrep's security research team found that frontier LLMs alone often miss 50 to 90 percent of certain classes of vulnerabilities. Drew Dennison wrote about running the same prompts over and over and getting a different set of findings each time, sometimes after burning a painful amount of tokens, and never really knowing when he was done.
One customer sent us 14 known vulnerabilities their own LLM harness had missed. When the team dug into the logs, nine of them sat behind endpoints the harness never discovered. The agent followed the first path it found and called it a day. The thing is, models were never meant to be exhaustive in the way that security testing requires. But they can be, with the right tooling and context so the agent understands the whole attack surface.
What makes an Agentic AppSec Platform "agent-native"
Semgrep's pitch is that the platform is built for agents, not bolted on to a scanner after the fact. Semgrep runs its own security agents, and your coding agents can call Semgrep wherever the code is being written to verify its integrity. It works as a gate, deterministically applied directly in your current coding setup.
Mandoline is the program analysis engine inside the agent's reasoning loop. Instead of asking a model to grep its way through repos, Mandoline answers questions about call graphs, dataflow, taint paths, entry points and reachable dependencies, in milliseconds, and hands the model the evidence. Our performance evaluations show it is 50x faster than the Semgrep Pro Engine for the kinds of analysis agents actually do, covers 50 languages, and scored 100 percent on the OWASP Benchmark for Java and 98.28 percent on Python in a single run with no AI token usage. We also flag, fairly, that OWASP scores say less than you'd hope about performance on real private production codebases.
Maybe the most surprising part of Mandoline, though, is that it saves budget while still doing a better job. Using Mandoline in Agentic Workflows cut token cost by 65 percent on average, and agents running Mandoline and the Context Layer found and resolved more than twice as many true positives as frontier models alone. A Fortune 50 customer saw 9x more CVEs reported with Semgrep plus Mythos than with Mythos by itself. Nine times. The tools that you give the agent matter way more than even we predicted.
The Context Layer is the persistent map those workflows run on. It keeps the things that are expensive to rediscover, like a complete inventory of entry points and authorization checks, and the things that are not in the code at all, like threat models, accepted risks and triage decisions your team has already made. In Semgrep's internal benchmarks, the same model on the same projects found a lot more real bugs once it had that context. Opus 5.5 found 19 real SQL injections against Claude Code's 7, and 34 XSS findings against 5. Haiku 5.5 with context found more than Opus 5.5 without it. One customer added two memories about how their internal services handle requests and closed 47 percent of their SSRF backlog. The Context Layer is in private beta and continues to show better and better results.
Then there is the Semgrep MCP server, now in public beta. This is the unglamorous bit that matters if you already have agents in Claude Code, Codex, Cursor, VS Code or ChatGPT. The server lets those agents talk to the Semgrep platform with the same permissions that the human already has: search and triage findings, generate fixes, retry failed scans, dry-run a policy, look up which repos an advisory touches, and turn a fixed bug into a Semgrep Guardian rule so it does not come back. Findings get fixed right in the editor, and the context that makes a fix correct lives in the platform. The Semgrep MCP server joins it all up.
For enterprises, the platform includes the deployment options security and AI leaders actually get asked about: bring-your-own-key models, Agentic Workflows in CI, Semgrep Dedicated single-tenant hosting, and an EU multi-tenant region. You can also bring existing Semgrep findings into OpenAI's Daybreak Defense Factory without rescanning.
Why can't I just build this myself?
I have a lot of respect for teams that want to build their own security agents. Some of you already have some kind of custom setup. It's tempting to do this because AI has removed a lot of the manual work that is required to create it, but don’t confuse the free open source Semgrep Community Edition with the tooling in the Semgrep Agentic Platform.
The thing is, building this well is not a prompt engineering project. It is years of language and framework coverage, an analysis engine that is fast enough to sit inside an agent's loop, a way to remember what your organization has already decided, evaluations against real code, and permissions that do not let the agent do things the human is not allowed to do. Mandoline supports everything from Java and TypeScript to COBOL, Fortran, Terraform and multiple SQL dialects, including the framework and routing quirks that make entry points difficult to discover. That is not accomplished in a vibe coded sprint or two.
There is also the cost of getting it wrong to consider. A frontier model hunting through a monorepo with basic tools will happily spend tokens rereading the same files over and over, following the wrong code path, and repeating work it already did. The 65 percent token reduction is what we manage to achieve by building deterministic tools to cleverly manage the agents.
And then there is the consistency aspect. If two runs of the same agent produce two different backlogs, you are effectively gambling your security on non-deterministic output. We've developed the persistent context, recorded memories and guided workflows that enable consistency and reliability.
Stop the bug in the IDE
A key component of the platform is Semgrep Guardian. Guardian sits in the coding agent and checks the code as it is written, so that many classes of issues never even make it off the developer’s laptop. We’ve rolled it out to more than 10,000 developers during our beta period. The reports of how often vulnerabilities and secrets are introduced by LLMs are wild, and the fix rate is a real testament to how convenience and developer experience play a huge part in AppSec. A finding raised inside the coding agent was more than three times as likely to get fixed as one raised as a PR comment (36 percent vs 10 percent). The 75th percentile time to fix was 33 minutes inside the agent, 21 hours on a pull request, and about 30 days for a full scan. We don’t want to slow down development, and 95 percent of Guardian scans finish in under two minutes. We’ve also observed that Guardian prevents an average of four issues per developer per week.
Guardian lets you set organization-wide coding policies from one control point, runs AI-assisted detection for messier bugs like IDOR and broken object-level authorization, and acts as a firewall to block risky lockfile changes that could introduce malware or a reachable vulnerable dependency. It also addresses the pain we were looking at during Black October. When a security threat emerges like we've seen with Java, Ruby, PHP, and NGINX in recent weeks, Guardian can push an advisory to every developer environment across the organization, and each machine checks itself against it. It works best in GitHub Copilot, Codex, and Claude Code, but also integrates anywhere an MCP server can be configured. If you are rolling it out across a company that does not standardize on one harness, start with a pilot in Observe Mode, look at what it would have prevented, and only then turn on blocking.
What comes next
If you are building a security harness for yourself, evaluating agents against your code, or fighting the cost of repeated security responses and advisories, your teams may find themselves somewhere in between desperation and overconfidence. We’ve shared security research over the past year across the blog and in public conference talks because we can relate to that journey and have put this expertise into the Semgrep Agentic AppSec Platform.
If you are already a Semgrep customer, Semgrep Agentic Security Workflows and Guardian are already available now in Codex, Claude Code, Cursor, the CLI, or wherever else your agents write code. The Context Layer is in private beta and Mandoline is in research preview. Book a demo to see it in action.