Jacobo López-Cortijo
← Blog

How to run Google Mantis safely on an app you built with AI

By Jacobo López-Cortijo ·

You built an app with Cursor, Lovable or Claude Code. It works. And at some point a quiet question shows up: does it have holes I can't see?

In June 2026 Google published a tool that tries to answer that question. It's called Mantis. I've packaged the safe part of it, tested it on a real client project first, and I'm giving it away: mantis-safe-skills on GitHub.

I'm not a security expert. I build software with AI and I keep it running. That's the part I can help you with, and I'll tell you where it ends.

What is Google Mantis?

Mantis is an open-source toolkit from Google (Apache 2.0) that lets an AI agent read a codebase, look for security bugs, try to reproduce them and suggest a fix. It lives at github.com/google/mantis. It comes as 19 skills for an AI coding agent. It is not a supported Google product, and my package is not affiliated with Google.

Is it safe to run Google Mantis on my computer?

Not all of it. Some of its skills write an exploit or a patch and run it to prove a bug is real. Google's own README says to run Mantis only in isolated environments, never on a machine with access to production or sensitive data. Running code an AI just wrote, on the computer you use for everything else, is exactly what that warning is about.

The other skills only read your code and write notes. My package installs 8 of the 19, the ones that only read, plus one small skill I wrote for the summary at the end. The skills that execute code stay out.

Does it work on Windows?

Yes. The package has an installer for Windows and one for macOS and Linux. It copies the skills into Claude Code at one fixed version of Mantis that I checked, and verifies each file before installing it. It never overwrites a folder you already have, and one command removes everything it added.

How much does it cost?

Mantis is free, and so is my package. It runs inside your AI coding agent, so it uses your own plan or API key. Nothing goes through me, and I never see your code or your key.

It isn't light, though. On a real client project of 339 files, a full run took about 25 minutes and about 400,000 tokens. Check your plan's limits before you point it at something bigger.

What you get at the end

A report in plain language: what the AI suspects, how serious it thinks it is, what its own critic said about it, and which file to look at. Every finding is labelled "Unverified, not reproduced", because the package never runs anything to prove it. Google's own report only keeps findings it could reproduce, so I left it out and wrote a more cautious one. Treat each line as a question, not a verdict.

How to read the report

Some findings are plain code bugs you can fix in an afternoon: a missing check on a form, a secret in the wrong file. Others need someone who does security for a living. Each finding names the file and says how a specialist could check it. If you can't tell which kind it is, treat it as the second kind.

The hole I didn't see

An app I built had a contact form. When someone filled it in, the app sent a thank-you email to the address they typed, and that email repeated what they had written. It looked friendly. It meant anyone could type a stranger's address and a message, and my app would deliver it for them, from my domain.

Someone found it. In about three hours, one visitor sent 40 of those forms. Nothing was hacked and no data leaked, but my app was carrying someone else's spam. I took the thank-you email out, added limits on how often a form can be sent, and later a hard daily ceiling when a patient sender came back.

No scanner found that for me. A person abusing it did. That's the kind of hole a tool like Mantis is meant to point at before someone else does, and it's why I packaged it.

Before giving the package to anyone, I ran it on a copy of the code of CostaLuz Lawyers, a law firm I build software for. Every step ran in plain Claude Code, nothing from their project was executed, and the review threw out some of its own findings as false positives before the summary.

What it does not do

  • It doesn't make your app secure. It finds some problems, not all of them.
  • It doesn't replace a security audit when your app handles money, health data or other people's documents.
  • It doesn't touch your servers, your database or your live site. It only reads the code on your computer.

If the installer fails

Write to me, or open an issue on the repository. I'll fix it, for you and for everyone else who uses the package. That part is my job: making tools work on real machines.

I won't judge your findings. Whether something is serious is a question for a security specialist, and if you ask me, that's what I'll tell you.

If you have a question about your business's website, write to me, even if you're not hiring anyone. I'll answer it myself.

Talk soon,
Jacobo

mantis-safe-skills

The package from this post: the 8 Mantis skills that only read your code, for Claude Code, with an installer for Windows and one for macOS and Linux. Free.