google/mantis
Security & PrivacySecurity auditingA modular multi-agent toolkit that finds, reproduces and patches vulnerabilities in a codebase, for security engineers and developers.
This project ships 21 agent skillsSkill list and install →What it does
Mantis is a set of agent skills plus an ADK-based reference harness for automated application security review. An LLM agent walks through a pipeline that builds a semantic tree-sitter index (20+ grammars across backend, frontend, mobile, smart contracts, shell/IaC and firmware/RTL), generates a threat model, proposes research hypotheses, triages and deduplicates findings, attempts reproduction at varying fidelity, chains related issues, patches them with an adversarial verification loop, and calibrates severity against a rubric to counter LLM over-reporting README.
The skills/ directory holds the method as on-demand agent skills; reference/ is a runnable harness that executes them as a pipeline and can be adapted or reimplemented on another agent framework the method the harness. Findings, threat models, risk scores and learnings accumulate in a local SQLite knowledge base that later sessions can query.
Getting started
Prerequisites: Linux, WSL2 or macOS (Intel macOS only in static-only mode; native Windows unsupported), Python 3.12–3.14 with venv, and LLM credentials — Vertex AI via gcloud auth application-default login, a GEMINI_API_KEY, or an Anthropic/OpenAI/OpenAI-compatible endpoint with a matching --model README.
cd reference && ./install.sh
.venv/bin/python3 scripts/configure.py --auto
.venv/bin/python3 scripts/configure.py --test --probe
./run.sh /path/to/repo
The install script creates reference/.venv and builds an optional local sandbox image if Docker, Podman or Buildah is present; without container or VM tooling it falls back to static-only. configure.py --auto writes a gitignored workflow.local.json; use --model explicitly for non-Vertex providers. run.sh accepts a file or a repository directory, and --depth (1–100, default 30) scales coverage, batching, reasoning effort and pass count. Results are printed to the terminal and stored in reference/knowledge.db, queryable with scripts/advise.py --file <path> README.
Optional outputs: SARIF 2.1.0 export via sarif_output in the config file, and an MCP sidecar for live diff gating and background scans in MCP-capable coding agents such as Gemini CLI SARIF MCP.
Constraints and risk
The project explicitly warns that it generates and executes autonomous code that may be unstable or act unexpectedly; it should only run in isolated, restricted environments, never on machines with access to production systems, sensitive data or internal networks. Manifest fixes can be suggested with correction, but while the integrity of work isn't guaranteed, they recommend an additional, strongly monitored sandbox layer when using frontier models. Model output is non-deterministic: findings must be manually verified by a security expert before reporting, and failed reproduction does not prove a false positive.
The bundled GitHub Action and PR-scan workflows have only been exercised against stubs, not end-to-end on a live project, so they should not gate merges GitHub Action status. The project is Apache-2.0 licensed, is not an officially supported Google product, and is described as demonstration-oriented rather than production-ready; a hosted alternative is recommended for managed use license CodeMender.
HotRepo's take
No GitHub daily ranking snapshots or Hacker News threads are recorded for this repository, so there is no site-side trend signal to report. The technical picture is what stands out: the method and the harness are deliberately separated, so the skills can be plugged into coding agents other than the bundled ADK runner, and the pipeline includes stages aimed at the main failure modes of LLM security scanning — hallucinated findings, severity inflation, and patches that do not actually fix the bug. The untested PR-action path is the clearest gap if you want this integrated into merge gating.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
You might also like
- RobustaStudio/semsecSemgrep ruleset for taint-based web vulnerability detection, secret scanning across 75 providers, and modern web stack security checks.
- openai/codex-securityA CLI and TypeScript SDK that scans repositories for security vulnerabilities, validates findings, and proposes fixes.
- erkamyaman/safe-anythingA Rust CLI vulnerability scanner for source code, secrets, dependencies and AI agent configurations.
- betterleaks/betterleaksScans files, Git history, container images and hosted sources for leaked secrets, optionally validating and analysing them.
- aquasecurity/trivyA single CLI scanner that checks container images, filesystems, repos, VMs and Kubernetes for CVEs, misconfigurations and secrets.