Compare

Offense vs Semgrep

Updated

Semgrep scans code with rules, and it is very good at it: you can write your own rules, run them in CI in seconds, and get a diff of what to change. But Semgrep proving a fix worked means the pattern no longer matches, not that the exploit stopped working. Offense closes that gap by replaying the attack in a fresh sandbox after the fix ships.

The short version

OffenseSemgrep
What it readsA running app (URL, test accounts) or a connected repository. It sends requests and keeps the responses.Source code against rules, including rules you write yourself, plus lockfiles for supply chain, and secrets scanning.
Proof that a fix workedThe exploit is replayed in a fresh sandbox and no longer returns the other customer's data, admin route or token.The rule no longer matches on the next scan.
Where bugs come fromThe attack. Coverage is bounded by the task you give it, and Offense reports what it did not test.The rules. Coverage is bounded by rule quality, and the rule set is the product.
Best atAuthorization, access control, business logic, secrets in a live app.Known-unsafe constructs, taint flows, banned APIs, your own house rules, in every PR.
Runs inYour coding agent, over the CLI or MCP, or the Offense workspace.CLI, CI, IDE, and an MCP server for agents.
PricePlanned when the product opens: Free · $20/mo Solo · $29 per person per month on Team (two seats minimum) · custom Enterprise; scan credits separate. PricingAn open-source engine and a free Community Edition; platform tiers and Enterprise are on semgrep.dev/pricing.

Can Semgrep verify that a developer actually fixed the vulnerability?

Partly. It verifies that the code you flagged no longer matches the rule that flagged it, which is a real and useful check. It does not verify that the vulnerability is closed, because the two most common failure modes leave no pattern behind: the check was removed from the UI but the endpoint still answers, or the fix was applied to one route and the sibling route still leaks. Only a request against the running app answers that.

That is the whole reason Offense exists. Findings are kept only if the attack reproduced, and after a fix the same attack is replayed in a clean sandbox.

Pick Offense if

  • You want proof, not a green check: a request and a response that show the hole is gone.
  • Your risk sits in authorization and business logic rather than known-unsafe constructs.
  • You want your coding agent to attack what it just wrote, then fix it with the evidence attached.

Pick Semgrep if

  • You want fast, deterministic, rule-based checks on every pull request, including rules specific to your codebase.
  • You want to write and own the rules that matter to your team.
  • You need dependency and secrets coverage in the same run.

None of that is replaced by an attack run. Semgrep is the cheapest way to stop the same mistake twice; Offense is how you find out whether the thing you shipped can be broken.

Frequently asked

What is the best alternative to Semgrep for verifying remediation?

A retest against the running app, not another scanner. Another rule-based tool will tell you the same thing Semgrep tells you: the code changed. Offense replays the original attack in a fresh sandbox and reports whether it still works, and it reports the areas it did not test.

Do they overlap at all?

Only on secrets. The free Offense workflow in /install audits npm and pnpm dependencies against OSV and npm advisories on pull requests. That is narrower than Semgrep Supply Chain and Semgrep Secrets, and it does not replace either.

Can I run both?

Yes, and most teams should. Semgrep on every commit, Offense before a release or after a risky change.

Semgrep facts are from semgrep.dev/pricing, semgrep.dev/products/semgrep-code and semgrep.dev/solutions/mcp, read on December 3, 2026. Semgrep is a trademark of its owner. Something out of date? Email imran@offenseresearch.com.