Open source · AGPL-3.0

Security review for every pull request

Open-source scanners check the change. Your own Claude Code, Codex or Cursor triages what they find and reads the diff. The result lands on the pull request as a check and review comments.

2 findings block this change

At or above high, on lines this change touched.

Failed
  1. Checkout
  2. Scanners
  3. AI review
  4. Publish
crit
0
high
2
med
1
low
0
info
0
fail on: high

Built on open-source scanners

Each one is pinned by version and SHA-256 checksum and baked into the sandbox image. Their rules and configs come from the image, not from the pull request.

Scanners that run only when they're needed

On a pull request, each scanner looks at the changed files first and skips if nothing it reads was touched. The run page says why. The ones that run can't be turned off by the code they're scanning.

Scanners

OpenGrep41.2s
2 findings
Trivyskipped
No relevant files changed
zizmorskipped
No relevant files changed

Rules for the languages you use

About 980 OpenGrep rules from five open packs, including mobsfscan for Android and iOS. Only the rules for languages in your repository load, and a pull request that changes no source file skips OpenGrep.

A credential-like value is committed to the repository. Anyone with read access to the repository (or its history) can use it. It was added in commit 8c41f0a2e9b1 of this pull request and removed by a later one, but it is still in the branch's history.

Remediation

Revoke and rotate the credential, remove it from the code, and load it from a secret manager or environment variable instead.

Every commit in the pull request

Gitleaks scans what each commit added, not only the final files. A key added in one commit and deleted in the next is still in the branch's history on GitHub, so it is still reported.

This package version is known to be malicious.

Remediation

Remove flatmap-stream now, treat any machine that installed it as compromised, and rotate the credentials it could reach.

Malicious packages stay blocked

OSV-Scanner checks lockfiles against OSV.dev, including the OpenSSF malicious packages dataset. A match is critical, and the AI can't dismiss it. Vendored C and C++ libraries are matched by file hash.

The pipeline contains an injection into bash or JavaScript with an expression that can contain user input. Sources: CI_MERGE_REQUEST_TITLE

CI pipelines, not only GitHub Actions

zizmor audits GitHub workflows. poutine covers GitLab CI, Azure Pipelines and Tekton: untrusted input in scripts, a fork's code run with the pipeline's secrets, and scripts piped from curl into a shell.

This write operation is not protected by any security scheme. (at paths./orders/{id}.delete)

Agent's reasoning

The route handler checks the session, but the spec tells API clients and gateways it's public.

OWASP API Top 10 on your spec

Spectral checks OpenAPI and Swagger files with the OWASP API Security ruleset, kept to its security rules: endpoints with no authentication, credentials in URLs, plain HTTP and SSRF-prone parameters.

Ignored in the pull request

OpenGrepnosemgrep.semgrepignore
Gitleaksgitleaks:allow.gitleaksignore.gitleaks.toml
OSV-Scannerosv-scanner.toml.gitignore
zizmorzizmor.yml# zizmor: ignore
poutine.poutine.yml
Trivy.trivyignoretrivy.yaml

The pull request can't switch them off

Scanners read files the author wrote, so they ignore suppression comments, ignore files, .gitignore and configs in the pull request. Each runs with the config in the image.

Findings where you already review code

Comments land on the changed lines, the check can block the merge, and one summary comment keeps the whole picture current.
api/orders/search.ts
12+export async function searchOrders(req: Request, res: Response) {
13+ const q = String(req.query.q ?? "");
14+ const rows = await db.query(`SELECT * FROM orders WHERE note LIKE '%${q}%'`);
openvscanbotleft a comment 2 minutes ago

🟠 High · OpenGrep — Tainted sql string (CWE-89)

User input from req.query reaches a SQL string built with a template literal. Use parameterized queries instead.

AI triage: confirmed — req.query.q goes straight into db.query(). This pull request removed the sanitizeSearch() call that used to escape it.

Fix: Pass the search term as a bound parameter.

Suggested change
- const rows = await db.query(`SELECT * FROM orders WHERE note LIKE '%${q}%'`);
+ const rows = await db.query(
+ 'SELECT * FROM orders WHERE note LIKE ?',
+ [`%${q}%`],
+ );
Commit suggestion

opengrep.javascript.express.security.injection.tainted-sql-string·CWE-89

openvscanbotcommented 2 minutes ago

🛡️ OpenVScan · ❌ 2 blocking issues (severity ≥ high)

Reviewed 3f9c2e1 · 🟠 2 high · 🟡 1 medium

🤖 AI review · risk: high

This pull request adds an order search endpoint. It removes input sanitization and builds SQL from the query string, and a new lookup route returns any order by id without checking who owns it. The OpenAPI spec adds a DELETE route with no security scheme.

SeverityFindingSourceLocation
🟠 highTainted sql string (CWE-89)OpenGrep ✓api/orders/search.ts:14
🟠 highOrder lookup doesn't check who owns the orderAI reviewapi/orders/[id].ts:22
🟡 mediumUnauthenticated write operationSpectral (OWASP API) ✓api/openapi.yaml:41
  • 🧹 1 scanner finding dismissed by the AI as false positives
  • 📦 1 pre-existing finding outside this diff

View full report →

Scanners: OpenGrep · OSV-Scanner · Gitleaks · Spectral (OWASP API) (3 skipped: no relevant files changed) · AI: Claude Code. Re-run from the Checks tab or the dashboard.

Inline comments

On the exact line, with the agent's reasoning and a suggested fix you can commit.

A check you can require

Fails only for findings in the diff at or above your threshold. Set it to advisory if you prefer.

One summary comment

Rewritten in place on each push, so the thread doesn't fill up with bot noise.

Teach the reviewer how your code works

Skills are markdown instructions the AI reviewer applies when a change matches: your conventions, a checklist for your framework, how you handle money or tenants. Start from four built-ins based on OWASP, or add your own.

Your skills

2 of 50

A file on GitHub, a gist, or a skills.sh skill page. Up to 512 KB, fetched once and saved as a copy.

  • payments-reviewImported

    All amounts are integer cents. Flag float arithmetic on money and refunds without an idempotency key.

    Updated 2d ago · skills.sh

  • tenant-isolationPasted

    Every query on a tenant table filters by org_id from the session, never from the request.

    Updated 5d ago

Review skills

Instructions the reviewer reads and applies, in the order picked.

AI reviewClaude Code · sonnet

Risk high

This pull request adds an order search endpoint. It removes input sanitization and builds SQL from the query string, and a new lookup route returns any order by id without checking who owns it. The OpenAPI spec adds a DELETE route with no security scheme.

Skills:API security,payments-review

Import a link

A skills.sh page, a GitHub file or a gist. It's fetched once, on the server, and saved as a snapshot that never changes behind your back.

Upload or paste

Any SKILL.md or markdown file up to 512 KB, and up to 2 MB of skills on a single review. Hidden and bidirectional characters are stripped.

Choose per repository

Each repository picks its skills and their order. Skills shape the AI review only; the scanners stay the same.

Built so a red check means something

A review tool people learn to ignore is worse than none. These are the decisions that keep the signal high and your code and keys contained.

01 / 06

Only what the PR changed blocks it

Old issues elsewhere in the repository are reported for context but never fail the check, so turning OpenVScan on doesn't stop every open PR.

fail on: high

02 / 06

A threshold per repository

Pick which scanners run, which agent reviews, its skills and extra instructions, and the severity that fails the check.

Review policy

Reviews
Every push
Branches
main
Scanners
OpenGrep, OSV-Scanner, Gitleaks, Trivy, zizmor, poutine, Spectral (OWASP API)
AI reviewer
Claude Code · sonnet
Skills
2 selected
Fail the check on
Findings in the diff at or above this severity. AI-dismissed findings never fail it.

03 / 06

Your key never enters the sandbox

Claude Code, Codex or Cursor gets a placeholder. The real credential is swapped in at the network edge, only on requests to the model API you chose.

Claude Codeclaude -pConnected

Your Claude Pro or Max subscription, or an Anthropic API key.

Claude subscription tokensk-ant-oat01-…Q7wAUsed 2m ago

Inside the sandbox

CLAUDE_CODE_OAUTH_TOKEN=placeholder
swapped for the real token at egress, on api.anthropic.com only

04 / 06

The network is locked per phase

Checkout can reach one repository, OSV-Scanner can send package names to OSV.dev, the agent can reach its model API. The rest of the time the sandbox reaches nothing.

Sandbox network

What the container can reach, by phase

checkoutgithub.com, this repository only
scanapi.osv.dev, package names only
agentyour model API
lockednothing

05 / 06

Fix findings from your coding agent

OpenVScan runs an MCP server. Connect Claude Code, Codex or Cursor, and ask it to read a review's findings, fix them and run the review again.

claude · ~/storefront

> fix the OpenVScan findings on this PR

openvscanget_reviewacme/storefront #482 · 2 blocking

Parameterized the search query and added an owner check to the lookup route.

openvscanrerun_reviewstarted · run 9f2c

✓ Check passed

06 / 06

Runs on your Cloudflare account

Two Workers, a Workflow, D1, R2 and a Container. Self-host it under AGPL-3.0 with one deploy command.

$ pnpm db:migrate
$ pnpm run deploy
 openvscan-engine deployed
 openvscan-web deployed
 workflow, D1, R2, container ok

Hosted, or on your own Cloudflare account

OpenVScan is open source, like PostHog: use the hosted cloud or deploy the same Workers yourself.

Cloud

OpenVScan Cloud

Install the GitHub App, pick repositories and add your agent credential. We run the Workers.

  • Reviews within a minute of a push
  • Dashboard for every run and finding
  • Your agent, your quota

Self-host

Your Cloudflare account

The same code, deployed with one command. AGPL-3.0, no license key, no phone-home.

  • Two Workers, a Workflow and a Container
  • D1 for state, R2 for raw scanner output
  • Workers Paid plan for Containers

Agent

Bring your agent

The AI review is optional. Leave it off and you still get scanner findings mapped to the diff.

  • Claude Code: subscription token or API key
  • Codex: ChatGPT login, access token or API key
  • Cursor: Cursor API key
  • Encrypted at rest, swapped in at egress

Questions

Common questions

Something else? Open an issue.

Getting started

Do I have to use AI?

No. Leave the agent unset on a repository and you get scanner findings mapped to the diff, with the same check, comments and dashboard. The agent adds triage and its own findings on top.

Will it block every PR on old issues?

No. The check fails only for findings on lines the PR changed, at or above the severity you choose. Everything else is reported for context. You can also set it to never fail.

Which languages does it cover?

OpenGrep has rules for about 20 languages, and only the ones in your repository load. OSV-Scanner reads lockfiles for 11 ecosystems, Trivy covers infrastructure-as-code, zizmor and poutine cover CI pipelines, Spectral checks OpenAPI specs, and Gitleaks scans any text file.

What does it cost to self-host?

The software is free. You pay Cloudflare for Containers (Workers Paid, $5/month plus usage) and your model provider for the agent, which is optional.

Security & privacy

Which credentials work?

Claude Code: a subscription token from claude setup-token or an Anthropic API key. Codex: a ChatGPT login, a Business or Enterprise access token, or an OpenAI API key. Cursor: a Cursor API key. If you run OpenVScan as a service for other people, check your provider's terms for subscription logins; API keys are the safe choice there.

Can the agent leak my code?

During the review the sandbox can reach only the model API you chose, through a Worker that refuses everything else. It has no GitHub token and no way to post anything itself.

What about pull requests from forks?

Pull requests from people without write access, including forks and bots, get the scanners only. The AI review runs when someone with write access comments @<app> review, so outsiders can't spend your quota. Text from the pull request reaches the agent as untrusted input.

Review the next pull request before it merges

Install the GitHub App, add your agent, and open a pull request. The first review takes about two minutes.