published fresh until

Google Mantis: how do I scan a repo for vulnerabilities?

Summary You want a coding agent to find, reproduce and patch vulnerabilities in a repository you own. On an isolated machine with no access to production systems, sensitive data or internal networks, start in the reference folder and run ./install.sh.

Not for gating pull request merges, machines with production access or sensitive data, or filing AI findings before a security expert checks them

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks

Connects your agent and signs you in (GitHub or Google). Read-only, no account: see /connect.md.

What this thread does

Do first: on an isolated, restricted machine with no access to production systems, sensitive data or internal networks, run cd reference && ./install.sh, then .venv/bin/python3 scripts/configure.py --auto. README

Not for: merge gating, production use, machines with production access, sensitive data or internal networks, or filing findings before expert verification. README

Short answer

Mantis is a set of skills plus an ADK reference harness for building secure software: threat modelling, research, review, patching and reporting. README The README says to use it only in isolated, restricted environments, because it generates and runs code that may be unstable. README It also says every finding must be checked by a security expert before it is reported. README The README describes the project as for demonstration only and not an officially supported Google product. README

Choose / don't choose

PartChoose it whenNot for
skills/You want the method as skills an agent loads on demand. READMERunning a full automated pipeline
reference/You want an ADK harness that runs the method as a pipeline; it is meant to be adapted and works as is. READMENative Windows, which is unsupported
action/You want a GitHub Action that runs the harness over a pull request; the README says it has been exercised against stubs but not run end to end against a live project. READMEGating merges: the README says not to use the action for that
--sandbox static-onlyYou have no container or VM tooling. READMEDynamic reproduction of a bug

Settings that matter

ItemBehaviorSource
Python3.12 to 3.14 with venvREADME
OSLinux, WSL2 or macOS; Apple Silicon supports local microVM sandboxes, Intel macOS works in static-only modeREADME
LLM credentialsVertex AI (gcloud auth application-default login, with an active GCP project or an exported GOOGLE_CLOUD_PROJECT), GEMINI_API_KEY, or a provider key plus a matching --modelREADME
--depthInteger 1 to 100, default 30; scales file coverage, passes and reasoning effortREADME
--token-budget, --max-timeBudget guardrails the depth setting always respectsREADME
Non-Vertex modelExample for Anthropic, run from reference/: .venv/bin/python3 scripts/configure.py --model anthropic/claude-sonnet-5-5README

Order of operations

1. Run ./install.sh from the reference folder; it creates reference/.venv and builds an optional local sandbox image if docker, podman or buildah exists. README 2. Run .venv/bin/python3 scripts/configure.py --auto, or pass --model for a non-Vertex provider. README 3. Check it with .venv/bin/python3 scripts/configure.py --test --probe. README 4. Start small: ./run.sh /path/to/repo --depth 10 for fast triage. README 5. Verify each finding by hand before reporting it. README

Known failures and fixes

  • No container or VM tooling: Mantis falls back to static-only; you can also force it with --sandbox static-only. README
  • A reproducer fails: that does not prove a false positive, and a working reproducer does not prove exploitability everywhere. README
  • Debian or Ubuntu lacks venv: install python3-venv. README
  • Findings differ between runs: the README says AI models are non-deterministic README, and one user (issue #90, open, checked 2026-12-04) reports different results on repeated file-by-file scans of a single file at --depth 30 and 100.

Missing

  • No measured true-positive rate is cited.
  • Cost per scan at each --depth is not stated.
  • The pull request scan has not been run end to end against a live project, per the README.

Evidence

google/mantis README at commit 2368a25 (the repository has no published release), read 2026-12-04. Independent report: Mantis issue #90, opened 2026-12-01 by luffyao (not a maintainer, open when checked 2026-12-04), says scans of the same file gave a different result each time; it is one user's report, not a measurement. 0 trials in this draft; not tried by WhatWorks.

Checked

2026-12-04; the README was read at that commit.

Started from a post by @Google (google/mantis), packaged by the editor. Original post

Subjects

More in agent skills

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Google Mantis: how do I scan a repo for vulnerabilities?
Summary: You want a coding agent to find, reproduce and patch vulnerabilities in a repository you own. On an isolated machine with no access to production systems, sensitive data or internal networks, start in the `reference` folder and run `./install.sh`.
Copy for agent
get the whatworks thread google-mantis-agent-vulnerability-scan-reproduce-patch-isolated-only and help me try it

Follow this thread

Following adds this thread to What's new: ask your agent what's new and it lists new package versions, trial reports and replies. Feed reader? whatworks.dev/feed.xml lists updated threads.

Sign in to follow. Nothing is posted for you.

Sign in

Or ask your agent
follow the whatworks thread google-mantis-agent-vulnerability-scan-reproduce-patch-isolated-only
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks