→ Back to Home
Application Security

Google Open-Sources Mantis to Ground Agentic Vulnerability Hunting and Patching

Google has open-sourced Mantis, an automated framework designed to manage the full lifecycle of software vulnerability discovery, candidate triage, dynamic reproduction, and patch generation. Developed to bring machine-speed defense to application security, Mantis deploys a multi-agent architecture—combining reviewer and critic agents—with sandboxed execution environments. The harness analyzes git commit histories to learn from past security fixes, automatically constructs architectural threat models, and employs hierarchical security summary trees to compress repository context, reducing token overhead by over 85%. Alongside the core scanning harness, Google introduced "mantis-advise" to feed historical vulnerability insights back into developer coding agents. For security teams and software engineers, Mantis directly targets the chronic signal-to-noise problem inherent in first-generation AI code scanners. Ungrounded LLM scans frequently hallucinate vulnerabilities or flag theoretical issues with zero reachability, exacerbating alert fatigue. Mantis tackles this by pairing generative candidate discovery with dynamic verification inside isolated sandboxes. A potential flaw is grounded only when an agent successfully generates and executes a reproducer that demonstrates the bug, filtering out false positives before human review. This changes the interaction model for developers from triaging ambiguous alerts to reviewing verified proof-of-concepts alongside concrete patch proposals. This development marks a crucial evolutionary phase in application security and DevSecOps. Traditional static analysis (SAST) tools rely on rigid syntax trees and heuristic rules that struggle with complex business logic and whole-repo context, while standalone LLMs easily exceed token limits or lose architectural coherence. Mantis addresses these limits by structuring repository analysis into tiered summaries and employing agentic validation loops. This approach aligns with a broader shift across the cloud and AI ecosystem, where autonomous agents are increasingly coupled with deterministic runtime environments to turn probabilistic model outputs into verifiable, high-confidence actions. In practice, security leaders and practitioners looking to integrate Mantis must establish strict operational guardrails. Because Mantis generates and executes active reproducers, security teams must run these tasks within hardened, network-isolated sandboxes to prevent accidental host disruption or unauthorized lateral movement. Organizations should also curate domain-specific exclusion policies—such as ignoring self-inflicted denial-of-service conditions—to guide the agent's prioritization. Moving forward, teams should explore shifting this intelligence left by integrating mantis-advise into IDE-level coding assistants, catching structural vulnerabilities during authoring rather than downstream in production pipelines.
#application security#devsecops#vulnerability management#ai security#code analysis
Read original source