Penthera, home

Penthera 2.5.0 · MIT · Code scans run offline · No cookies

Star118 Install

Check it before they wreck it

Make your app more secure for free

A security scanner and fixer for your app. It checks your AI setup too.

Check your site here and get a prompt to fix it, or run one command on your code.

Passive · nothing stored · your own site only · Terms

No site live yet? Scan the code:
Examplereal output · test server

Unsafe defaults

33/100

  • HighNo HTTPS: pages travel in cleartext
  • MedMissing Content-Security-Policy
  • LowMissing X-Frame-Options

AI coding tools ship faster than anyone can check.

  • Open source
  • MIT
  • Offline

The review you never had time for. It fixes what it can with your OK. For the rest, it tells you or your coding agent how, then checks the fix.

Real Penthera 2.1.2 output on a demo app, broken on purpose, on this computer. Code, package and AI setup checks make no outside connections by default. A URL scan contacts the site you name, and your coding agent is your own choice.

01 · Get started

Three ways to run Penthera.

Runs in your app’s folder, and needs Node.js 22 or later.

  1. A In a terminal

    The CLI

    The guided start. It asks before it changes anything and never commits or pushes.

  2. B In your coding agent

    The Agent Skill

    Teaches Claude Code, Cursor, Codex and other coding agents to run scans, explain them and fix what they can. Other install routes

  3. C As a tool your agent calls

    The MCP server

    Pinned to 2.5.0, so it never updates without you.

Prompts, MCP configs, app builders and files for agents
Prompts for Claude Code, Cursor and Codex

Claude Code

Set up Penthera in this repo. Run `npx penthera init --dry-run` and show me what it would do. Then run `npx penthera --repo .`, `npx penthera agents` and `npx penthera deps`, and list the findings by severity, with the file for each. Do not change, commit or push anything without asking me.

Cursor

Set up Penthera in this repo. In the terminal, run `npx penthera init --dry-run` and summarize the plan. Then run `npx penthera --repo .` to scan the code, `npx penthera agents` to check .cursor/ and the MCP config, and `npx penthera deps` for the dependencies. Ask me before you change any file.

Codex

Set up Penthera in this repo. Run `npx penthera init --dry-run`, then `npx penthera --repo .`, `npx penthera agents` and `npx penthera deps`. Report each finding with its severity, file and the fix Penthera suggests. Do not edit files or commit.
MCP configs for Claude Code, Codex, Cursor, VS Code and Windsurf

Claude Code

claude mcp add penthera -- npx -y penthera@2.5.0 mcp

Codex

codex mcp add penthera -- npx -y penthera@2.5.0 mcp

Cursor .cursor/mcp.json

{
  "mcpServers": {
    "penthera": {
      "command": "npx",
      "args": ["-y", "penthera@2.5.0", "mcp"]
    }
  }
}

VS Code .vscode/mcp.json

{
  "servers": {
    "penthera": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "penthera@2.5.0", "mcp"]
    }
  }
}

Windsurf mcp_config.json

{
  "mcpServers": {
    "penthera": {
      "command": "npx",
      "args": ["-y", "penthera@2.5.0", "mcp"]
    }
  }
}

Tools read only inside your project, never apply fixes, run no shell and send no attack payloads. What the server can and cannot do. Using Gemini CLI, Antigravity, Cline, Zed, JetBrains, Kiro or Continue? Every tool’s config

Built with Lovable, Bolt, Base44, Replit or v0?

1. Check the live app

Paste your published URL (*.lovable.app, your Bolt, Base44 or Replit domain, v0’s production URL) into the check at the top of this page. Passive, nothing stored.

2. Scan the code

Connect the builder to GitHub, clone the repo, and run:

npx penthera@2.5.0 --repo .

3. Check every change

Add the GitHub Action: it reviews each pull request the builder opens. Replit: run the command above in the Shell.

Browser builders only accept MCP servers by URL; Penthera’s runs on your machine, so your code never leaves it. Per builder

Files your agent can read

Everything on this page as files an agent can read, built from the repo for Penthera 2.5.0. The live check is an API too: /openapi.json.

  • /llms.txtWhat Penthera is, the pinned commands, and where each doc is.
  • /llms-full.txtREADME.md and 49 documentation pages as one Markdown file.
  • /docs/*.mdThe same pages one by one, as Markdown, with absolute links.
  • server.jsonThe MCP server’s manifest in the MCP Registry, io.github.danoszz/penthera.
  • SKILL.mdThe Agent Skill your agent loads.
  • AGENTS.mdHow to work on Penthera’s own code, for coding agents.
  • /sitemap.xmlEvery URL above. /robots.txt welcomes crawlers and points to it.
  • /.well-known/security.txtHow to report a vulnerability in Penthera itself.

02 · What it finds

Ask once. Get findings you can check.

yo is my app secure?

check it before they wreck it

  • Your code

    27 secret and AI-key patterns

    Secrets, risky routes, runtime versions. Keys in the repo, admin and API routes, and pinned versions with known advisories.

    penthera --repo .

  • Your packages

    15,765 package names

    What each package can do. Shell, network and install scripts, typosquats and known-malicious versions.

    penthera deps

  • Your AI setup

    47 AI setup rules

    What your coding agent may do. MCP servers, hooks, permissions, and instructions that tell an agent to do harm.

    penthera agents --home

  • Your live site

    16 URL scan templates

    Headers, TLS, cookies, exposed files. The check above does the passive part for any site; the full scan runs on sites you may test.

    penthera https://staging.example.com

Counts from this release’s rules: 135 readable rules, citing 158 sources. How each check works

03 · Can I trust it

Don’t take our word for it.

Ranked against the free tools

Four public datasets other people built. Penthera and every free open-source tool we could run offline, scored the same way, on a half of each dataset we sealed before we started. Paid tools (GitGuardian, Socket, Snyk, Phylum, Semgrep Pro) publish no results on these datasets, so they are not here.

Also tested: apps built to be broken (E10 pilot)

Tested on apps built to be broken

OWASP Juice Shop and DVNA, scored against their documented flaws: 1 of 14 found at first, 10 of 14 after we fixed the gaps. A pilot, so read the caveats.

  • OWASP Juice Shop

    7/10

    was 1/10

    Recall 0.70, 95% CI 0.40 to 0.89. Before: 0.10, 0.02 to 0.40.

  • DVNA

    3/4

    was 0/4

    Recall 0.75, 95% CI 0.30 to 0.95. Before: 0.00, 0.00 to 0.49.

  • Both apps

    10/14

    was 1/14

    Recall 0.71, 95% CI 0.45 to 0.88. Before: 0.07, 0.01 to 0.31.

  • WebGoat, held out

    2/9

    unchanged

    Recall 0.22, 95% CI 0.06 to 0.55, before and after. A Java app; the fixes target Node.js.

Caveats, the chart and precision
OWASP Juice Shop1/10 to 7/10
DVNA0/4 to 3/4
Both apps1/14 to 10/14
Recall on the flaws Penthera claims to detect, with 95% Wilson intervals. Standard run; its one SQL error check has since moved to --deep, so a re-run is due.

Precision stayed level: 0.87 (95% CI 0.77 to 0.93) on 62 findings before, 0.88 (0.78 to 0.93) on 74 after.

What it does not do

It finds known classes of problems, not novel ones, and it does not replace a human penetration test.

What is planned for each limit
  • Novel problems no rule describes

    Opt-in AI mode: a local model proposes leads and the rules check them. E9 measures whether it finds more.

    In 1.9.0, opt-in

  • Business-logic and authorization flaws

    Authenticated preview scans with test accounts from your seed data. Later: an IDOR baseline.

    Planned

  • Zero-days

    It will not find them. Planned: an alert when something in your SBOM becomes a known vulnerability.

    Planned

  • A human penetration test

    It will not replace one. Use it before and between tests; a planned ship check gives one pass or fail.

    Stays a limit

  • Accuracy on real code

    Penthera Bench v1 and E1 measure it on code we did not write, published whatever the result.

    Pre-registered

Planned integrations, none shipping today: Base44, Lovable, Bolt and other AI app builders; Vercel, Netlify and Cloudflare Pages previews.

04 · Paperwork

Evidence for EU rules

Penthera turns what it finds into the paperwork EU cyber law asks for: drafts and evidence you can check, not a certificate.

Penthera does not make you compliant and does not certify anything. It is not affiliated with or endorsed by the European Union; the stars mark the subject.

05 · Questions

Before you install.

What will it change on my machine?

Nothing without asking. The guided start detects your setup read-only, asks what to check, and offers the hook, the CI workflow and the rest one yes or no at a time. npx penthera init --dry-run shows what it would do and changes nothing. A fix is a diff you approve. The dashboard commits it to a separate local branch for you to merge. Nothing is pushed. What the guided start does

Does it work offline, and what leaves my machine?

The CLI has no telemetry and no account. With --offline it contacts only the target you named, and every report lists the hosts it contacted (network use).

On this site, the check runs in your tab and never sends what you drop or paste. The page counts anonymous page views and load times with Vercel’s cookieless counters on penthera.org. Its Content-Security-Policy allows those two counters and nothing else, so that is all it can send.

Is it safe to point at any site?

Point it only at sites you own or are authorized to test. The default scan sends only requests a browser would send. Payload testing (--deep, --fuzz, --all) is opt-in and asks for confirmation, and the guided start scans your running app only after you confirm the app is yours.

Scanning your own Vercel or Cloudflare site? Allow your IP in the firewall first, or scan a preview URL.

Is it free and open source?

Yes. Penthera is MIT-licensed and complete on one machine, with no account and no paid tier for any feature. If something paid comes later, such as a team server, it is added on top and never removes a local feature. That is decision 6 in the manifesto.

How accurate is it?

On the public benchmark: precision 0.92 (95% CI 0.74 to 0.98) and recall 0.96 (95% CI 0.79 to 0.99), from 22 true positives, 2 false positives and 1 misses in labs we built ourselves. During the benchmark it made 0 requests to anything other than loopback.

The sample is small and the labs are ours, so these numbers catch regressions; they do not measure real-world accuracy. Measuring that on other people’s code is experiment E1, pre-registered before any data is collected.

Every rule is readable: 16 URL scan templates, 27 secret and AI-key patterns, 15 dependency capabilities, 47 AI setup rules and 5 fix recipes, on no runtime dependencies. Benchmark results

How is it different from paid tools?

Penthera runs on your machine, offline, and decides with readable rules that show their evidence at file:line. Many commercial tools work in the cloud, at registry or organization scale, and some add AI review; in places they go further than Penthera. Each comparison page says where the other tool is stronger and how to run the two together.

Does it help with NIS2 and the Cyber Resilience Act?

Yes, with evidence and drafts. The EU section above lists them for each law. You still decide what applies to you, fill in anything marked NEEDS INPUT and file the reports yourself. Most NIS2 measures are organizational, so policies, training and backups stay with you: Penthera records what you attest and can’t check it. It doesn’t make you compliant, and this isn’t legal advice.

Is Penthera built with AI?

Yes, and we say how. Of the commits up to v1.7.0, 91% were written with Claude through Claude Code, and each names the model in its commit message. The maintainer sets the direction, makes the design and security decisions, and reviews what is merged. Generated code passes the same gates as any other change: the test suite, CodeQL, OpenSSF Scorecard and an internal audit before every release. How Penthera is built

How is it researched and tested?

Penthera is a research project with a tool you can use today. Each feature goes method, evidence, tool. The methodology states the threat model and what each check can and cannot see. Experiments that decide what ships next are pre-registered before any data is collected, and the results are published either way. What holds up ships in the next release. What does not is dropped.

Detection rules ship inside reviewed releases as signed, versioned rule packs; nothing is downloaded while Penthera runs. The research plan lists the experiments.

How can I help or challenge it?

If you think a decision is wrong, open a discussion labeled “challenge”: say which decision, what you would do instead and what evidence would settle it. Report bugs and false positives as issues, read CONTRIBUTING.md to contribute, or sponsor its maintenance.

Use it with the tools you have

Most teams use Penthera with at least one of these. Here is where each goes further.

  • PentheraOutside the source: the running app, what packages do, your agent config. Offline, with verified fixes and EU evidence.
  • Cloudflare security-audit skillDepth on your own code: logic and authorization flaws no rule describes, in many languages.
  • Semgrep (CE)Code analysis depth, cross-file dataflow, and your own rules.
  • SnykCurated vulnerability data, containers and IaC, reachability, org features.
  • SocketSees the whole registry, more ecosystems, human malware research.
  • OWASP ZAPDynamic testing depth, a manual proxy, logged-in crawls.
  • GitHub (Dependabot and CodeQL)Known-vulnerability PRs, CodeQL depth, push protection, zero setup on public repos.

Scroll the table sideways to see all seven tools.

QuestionPentheraCloudflare security-audit skillchecked 2026-10-22Semgrep (CE)checked 2026-10-19Snykchecked 2026-10-19Socketchecked 2026-10-19OWASP ZAPchecked 2026-10-19GitHub (Dependabot and CodeQL)checked 2026-10-19
How it decides

Readable rules in the repo, with evidence and a confidence label. Models only propose fixes. Source: socket.md, cloudflare-security-audit.md

A language model hunts; fresh agents try to disprove each finding. Source: github.com

Pattern rules: a rule language and 2,000+ community rules. Source: github.com

A curated vulnerability database, plus Snyk Code static analysis. Source: snyk.io

Static analysis, then an LLM stage, with researchers confirming detections. Source: socket.dev

Passive and active scan rules. Source: zaproxy.org

GitHub-reviewed advisories, plus CodeQL queries. Source: github.com

Your code

Routes, trust boundaries and secrets for Next.js, Express, Hono and Fastify. Source: semgrep.md

Any source, including native code, protocols, cloud config, mobile and desktop. Source: github.com

Many languages. CE works within one file; cross-file on the paid platform. Source: semgrep.dev

Snyk Code, 16 languages. Source: snyk.io

Not its focus. SAST and secrets on the Enterprise plan. Source: socket.dev

No. Source: zap.md

CodeQL, many languages. Source: github.md

Running app

URL scan: headers, TLS, CORS, auth, JWT, IDOR, OAuth, OpenAPI. Injection and fuzzing opt-in. Source: snyk.md

No. It forbids probing deployed endpoints. Source: cloudflare-security-audit.md

No. Source: semgrep.md

Snyk API & Web (DAST), on Enterprise plans. Source: snyk.io

Not its focus: it covers packages, browser extensions and AI models. Source: socket.dev

Yes, deeper: many more active rules, spider and AJAX spider, an intercepting proxy. Source: zaproxy.org

No. Source: github.md

Dependencies

What each package can do, an install firewall, typosquats, known-malicious versions (npm and Python), runtime advisories. Source: cloudflare-security-audit.md, socket.md

Reviews your build and release setup. Known dependency CVEs are out of scope. Source: cloudflare-security-audit.md, github.com

Semgrep Supply Chain with reachability, on the platform. Source: semgrep.md

Known vulnerabilities and licenses, 13+ package ecosystems. Source: snyk.io

Package behavior across many ecosystems, with registry-wide threat intelligence. Source: socket.dev

No. Source: zap.md

Dependabot alerts from reviewed advisories, and update PRs. Source: github.com

AI tooling config (skills, MCP, hooks)

penthera agents: skills, MCP servers, hooks, permissions, plugins, checked locally. Source: snyk.md

Reviews AI and LLM attack classes in your app’s code, not your tool config. Source: cloudflare-security-audit.md

No dedicated check. Source: semgrep.md

Snyk Agent Scan: MCP servers and skills. Sends metadata to Snyk’s API, needs a token. Source: github.com

An MCP server for package lookups; the firewall covers skills and models as downloads. Source: socket.dev, socket.dev

No. Source: zap.md

No dedicated check. Source: github.md

Fixes

Applied on a local branch and re-scanned. Never pushes. Source: snyk.md

Recommends the smallest fix; does not apply it. Source: cloudflare-security-audit.md

Not covered on our compare page

Fix pull requests through your SCM. Source: snyk.io

Not covered on our compare page

Reports alerts. Source: zap.md

Dependabot security and version update PRs. Source: github.md

Offline, no account

Yes. --offline limits traffic to the target you named. Source: socket.md

Needs a coding agent and model usage on every run; network depends on your model provider. Source: cloudflare-security-audit.md

CE with local rules sends no metrics by default. Source: semgrep.dev

An account is required for the CLI. Source: snyk.io

The CLI needs an API token; the firewall’s free mode needs no key. Source: socket.dev

Runs locally on Java 17+ or Docker. Source: zaproxy.org

Runs on GitHub; the CodeQL CLI also runs locally. Source: github.com

Cost

Free, MIT. Source: LICENSE

MIT, plus model usage on every run. One third-party test measured about $30 per run, on one target, by a party with its own tool. Source: github.com

CE free. Platform free up to 10 contributors; Teams from $30 per contributor a month, per product. Source: semgrep.dev

Free plan (5 projects); Team from $25 a month. Source: snyk.io

Free plan (1 seat); paid seats from $25 a month. Source: socket.dev

Free, Apache 2.0. Source: zaproxy.org

Dependabot free. Code scanning free on public repos; private repos from $19 to $30 per committer a month. Source: github.com

Published accuracy

Precision 0.92 (95% CI 0.74 to 0.98) and recall 0.96 (0.79 to 0.99), on 24 findings in labs we wrote ourselves. Real-world accuracy is not measured yet. Source: RESULTS.md, E1-real-world-accuracy.md

See vendor. Source: github.com

See vendor. Source: semgrep.dev

See vendor. Source: snyk.io

See vendor. Source: socket.dev

See vendor. Source: zaproxy.org

See vendor. Source: github.com

Where it goes further

Outside the source: the running app, what packages do, your agent config. Offline, with verified fixes and EU evidence. Source: semgrep.md, snyk.md

Depth on your own code: logic and authorization flaws no rule describes, in many languages. Source: cloudflare-security-audit.md

Code analysis depth, cross-file dataflow, and your own rules. Source: semgrep.md

Curated vulnerability data, containers and IaC, reachability, org features. Source: snyk.md

Sees the whole registry, more ecosystems, human malware research. Source: socket.md

Dynamic testing depth, a manual proxy, logged-in crawls. Source: zap.md

Known-vulnerability PRs, CodeQL depth, push protection, zero setup on public repos. Source: github.md

Every cell links its source: the vendor’s docs or one of our compare pages, each with the date we last checked it. Prices and plans change, so check the vendor’s page before you rely on one. A dash means our page does not cover it.

No row says which tool finds more; that has not been measured. All comparisons, and how to run each tool with Penthera

06 · About

Why Penthera exists.

I build Penthera in the open, at night, alongside my PhD in AI and architecture. In 15 years I designed and built more than 100 apps for startups and governments, some used by millions of people. Security was always expected of me, so I collected the tricks and scripts I run before anything ships. Penthera is that sanity check, for everyone.

AI coding tools let far more people build. The security basics have to keep up, or apps leak data and run up credit-card bills. I believe technology does more good than harm when it is designed for people. Penthera uses research-backed methods and what I learned building agents: readable rules, free and MIT-licensed, to help people check what they ship.

Questions or ideas: GitHub Discussions. Bugs and false positives: issues. A vulnerability in Penthera itself: security.txt.

Made byDaan van der Zwaag