Menu
InfoQ Architecture·September 6, 2026

Google Mantis: An AI-Agent Framework for Automated Vulnerability Scanning

Google Mantis is an open-sourced AI-agent framework designed to automate the software vulnerability lifecycle, addressing the high false positive rates of conventional AI scanning. It leverages agentic techniques, sandboxed reproduction, and contextual analysis of code to accurately identify, validate, reproduce, and suggest fixes for vulnerabilities. The system employs a modular architecture with various specialized agents and supports dynamic model pairing for efficiency.

Read original on InfoQ Architecture

Google's Mantis framework represents a significant advancement in automated software vulnerability scanning. Unlike traditional AI-powered scanners that often suffer from high false positive rates and 'hallucinated' vulnerabilities, Mantis employs a sophisticated, agent-based architecture to enhance accuracy and reliability. This system design focuses on reducing noise and providing actionable insights, crucial for maintaining security in large codebases.

Agentic Architecture for Enhanced Accuracy

Mantis utilizes industry-standard agentic techniques, orchestrating multiple AI agents to perform different stages of vulnerability analysis. This multi-agent approach mimics a human security researcher's workflow, incorporating verification and validation steps to filter out erroneous findings.

  • Strategist Agent: Evaluates high-level code structure, threat models, and dependency graphs.
  • Research Agents: Examine raw source files in depth, tracing data and control flows, and sanitization logic.
  • Critic & Reviewer Agents: Filter out false positives and prioritize meaningful findings, applying rule-based negative filters cautiously.
  • Reproducer Agent (mantis-reproduce): Writes functional crash reproducers to validate vulnerabilities in a sandboxed environment.
  • Patcher Agent (mantis-patch): Generates side-effect-free fixes for identified vulnerabilities.

Contextual Analysis and Modular Design

Instead of brute-force scanning, Mantis analyzes repository history, previous security fixes, architecture, and threat models. It then summarizes this information into a hierarchical tree, significantly reducing token usage (by 85%) for LLMs while retaining crucial structural context. The system is designed as a modular skill suite with over 15 tools, allowing agents to execute sequentially or in parallel and communicate via a shared state on disk.

💡

Optimizing AI Model Usage

Mantis supports using multiple AI models and combining different models for various phases. This allows for strategic pairing of model classes with specific tasks, such as using 'flash' or 'lite' models for rapid classification (e.g., `mantis-researcher`, `mantis-dedupe`) and more powerful, advanced models for tasks requiring deep contextual understanding and zero-shot problem solving (e.g., `mantis-reproduce`, `mantis-patch`). This dynamic model selection optimizes both speed and efficiency.

vulnerability scanningAI agentsLLMsecurity architecturefalse positivesDevSecOpsopen sourcemodular design

Comments

Loading comments...