SuperAPIAI Directory

mantis

github.com · AI security

Google Mantis is an open-source (Apache-2.0) set of security-review skills, plus a reference harness built on Google's Agent Development Kit, that lets an AI coding agent threat-model a codebase, hunt for vulnerabilities, reproduce them in a sandbox, and write and re-attack patches. It suits securit

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose

Mantis is a security review skill set for AI coding agents, accompanied by a reference execution framework based on the Google Agent Development Kit (ADK), with the goal of helping build secure software in the AI era. It uses a modular, technology-stack-agnostic design to enable AI agents to autonomously discover, reproduce, and patch vulnerabilities. It is officially positioned as a starting point rather than a fixed instruction set, and users are encouraged to adapt, tune, and extend it according to their organization's software or hardware technology stack.

Main Capabilities

According to the official description, Mantis is broadly designed to accomplish the following:

  • Review codebase history to look for historical vulnerabilities that should not recur;
  • Build a semantic index (and/or summary) for the codebase to efficiently navigate the code;
  • Automatically generate threat models;
  • Build research hypotheses for each agent (or directly "scan every file");
  • Execute these research plans;
  • Deduplicate existing findings;
  • Triage/critique findings to counter hallucinations and statically verify production feasibility;
  • Reproduce vulnerabilities to varying degrees depending on the available environment, from statically inferring exploitation methods, to unit tests, and even launching simulated servers to attempt exploitation;
  • Search across known vulnerabilities for opportunities to build more impactful attack chains;
  • Patch discovered vulnerabilities and use adversarial loops to verify that the vulnerabilities are indeed fixed;
  • Calibrate all findings against established scoring criteria to counter LLM exaggeration of severity (presenting the most critical risks to humans, rather than throwing out thousands of "critical" issues);
  • Reflect after each round of the loop on the lessons learned in that round of research.

In addition, based on the collected experience, threat models, and knowledge base, /mantis-advise skills can be used to develop code more safely, avoid repeating past mistakes, or trigger edge cases previously protected by a safeguard that has been removed.

The ADK reference framework also demonstrates some ways to build agent workflows:reference/workflow.json demonstrates how to conduct in-depth reviews, while research graph synthesis (./run.sh target --objective "...") allows custom graph topologies to be generated on the fly, which can be used to build any type of agentic in-depth security review.

How to Use

The official getting-started steps are: first install python3-venv (for example sudo apt install python3-venv), then run the installation script. Mantis comes with automated configuration and launch tools (mantis-configure and mantis-launch).

The official documentation states that Mantis skills can be adapted to specialized domains, such as hardware/RTL, infrastructure as code (IaC), ML pipelines, or compiled firmware. The official recommendation strongly encourages using AI to iterate on these skills and to leverage internal documentation, coding standards, and build systems to enhance the threat model used for scanning, while also recommending adjusting risk calibration according to one's own environment and risk tolerance.

Use Cases

It is suitable for security review and vulnerability discovery, reproduction, and patching workflows, especially for teams that want to use AI coding agents to perform threat modeling and vulnerability research on codebases. It can also serve as a reference example for building agent workflows.

Limitations and Risks

The official documentation provides several important warnings:

  • Use at your own risk, and exercise extreme caution. This suite generates and executes autonomously generated code, which may be unstable or perform unintended actions. It should only be used in isolated, restricted environments, and must never be run on machines that can access production systems, sensitive data, or internal networks.
  • Responsible use: AI models are nondeterministic and may produce hallucinated findings or generate incorrect patches. All findings must be manually verified by security experts before being reported. Do not mass-submit unverified AI-generated reports to open source maintainers. Failure to automatically reproduce a vulnerability does not necessarily mean it is a false positive, and successful reproduction does not guarantee that the vulnerability is exploitable in all contexts.
  • Even when using the example sandbox provided by the ADK reference framework, if using state-of-the-art frontier models, the official recommendation is to set up an additional layer of sandboxing and configure strong monitoring within it to detect escape attempts.
  • This project is not an officially supported Google product and is not eligible for the Google Open Source Software Vulnerability Reward Program.
  • This project is for demonstration purposes only and is not suitable for production environments.

License and Project Information

The project uses the Apache-2.0 license, and the repository address is https://github.com/google/mantis。仓库中包含行为准则和安全政策文件。

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools