Run a vibe coding security scanner, but treat it as a first pass, not a verdict. Five free tools cover most of that pass: Gitleaks for keys in Git history, Trivy for vulnerable packages, Semgrep for risky code, Supabase’s Security Advisor for database settings and OWASP ZAP against the running app. None knows which user should see which record.

What a vibe coding security scanner checks, and what it cannot

A vibe coding security scanner checks what a rule can match: keys in Git history, packages with published advisories, risky code patterns, unsafe database settings and responses from the running app. It cannot know your business rules, so it misses a logged-in user reading another customer’s records.

An app built with Lovable, Bolt, Cursor, Claude Code or Replit usually has five layers a scanner can look at: the Git history, the installed packages, the source code, the database settings and the running app. Each tool below reads one of them. What the app should pass before launch, layer by layer, sits in the vibe coding security checklist; this page is about the tools that do the reading.

Scanner, audit and pentest answer different questions

We split the three by the question each one answers and the evidence it hands back.

ActivityMain questionTypical evidenceMain limit
Automated scannerDoes a rule, risky package, exposed secret, unsafe setting or suspicious response appear?A rule id, a file and line, a package advisory, or a request and responseSees only its own rules, the paths it is given and the sessions that work
AuditWhich findings and design gaps matter to this app, and in what order?The mechanism, the affected data or action, and a priorityProves runtime behavior only where the audit ran the request
Penetration testCan an authorized tester defeat a control in the scoped running target?Repeatable requests, the identity used and the impact shownCovers the agreed scope and time; a pass is not proof that nothing else is there

How a pentest’s scope is agreed in writing is set out in what a web application penetration test covers. The wider map, with the controls each of the three tests, is the 12 web app security controls.

The comparison: five free scanners side by side

The best vibe coding security tools for a first pass, in our reading, are free: Gitleaks, Trivy, Semgrep Community Edition and OWASP ZAP are open source, and Supabase’s Security Advisor ships with the Supabase platform. Each covers one layer, so a clean result from one says nothing about the other four.

Checked October 5, 2026 against each tool’s own documentation; the table describes the free or included edition.

ToolWhat it findsWhere it runsWhat it hands backLogged-in testingLicense costMain limit
GitleaksPasswords, API keys and tokens in Git repos, directories, files and stdinLocal command, a pre-commit hook, or CI through Gitleaks-ActionRule id, file, line, commit, author, date and a fingerprintNot applicableFree (MIT); the GitHub Action asks organization accounts for a free license keyWhether a found key still works is not stated in Gitleaks’s docs
TrivyKnown vulnerabilities (CVEs), IaC misconfiguration, secrets, software licenses and SBOM dataLocal command or CI, including a Trivy GitHub Action; it fetches its vulnerability database as neededLibrary, vulnerability id, severity, installed version and fixed versionNot applicableFree (Apache-2.0)Works from lock files; Trivy’s docs list source-code reachability analysis only for Aqua’s paid product, not open source Trivy
Semgrep Community EditionInsecure coding patterns in source code, from community rules or your ownLocal command after install, in the IDE, in Git commit hooks or in CIRule id, message, file, line and the matched codeNot applicableFree (open source)Draws a line at file boundaries, so some cross-function issues are out of reach
Supabase Security AdvisorDatabase settings such as RLS disabled in public tables, permissive policies, security definer views and functions callable by signed-in usersStudio, the Supabase CLI, MCP or the Management APIThe check’s name, a summary, the risk and how to resolve itNot applicableShips with the platform; plan conditions not stated in Supabase’s docsSome findings may be intentional; a policy can exist and still compare the wrong value
OWASP ZAPIssues in a running web app or API, from passive and active scanningDesktop app, Docker images, GitHub Actions or a YAML Automation Framework planAlerts tied to a request: name, URL, risk, confidence, parameter, evidence and rule idYes, through its authentication settingsFree (open source)Sees only the routes it discovers and the sessions that hold; active scans can change data

Free licenses still leave costs: compute, CI minutes on a hosted runner and, above all, the time someone spends reading results and deciding which ones are real. Budget for that triage time; it is where scanner output becomes fixes or stays noise.

When to run each one

No vibe code scanner covers all five layers, so run the ones that match the layers your app has; a JavaScript app on Supabase with a login takes all five.

Gitleaks: keys in Git history

Run gitleaks git on the repository once, which reads past commits through git log -p, then on every commit through the pre-commit hook. History matters because deleting a secret from the latest commit leaves earlier copies accessible. A hit means rotate the key at the provider, then confirm the old one fails; secret scanning across the full Git history walks through the full run and the proof the old key is dead. In our June and July 2026 audits, 6 of the 21 third-party apps shipped a real secret, and three had one permanently in Git history: a webhook signing secret, a live AI-provider key, and a Stripe test key with its webhook secret. We chose those apps, so the counts describe them and not every app built with AI.

Trivy: vulnerable packages and misconfiguration

Trivy reads lock files such as package-lock.json and checks the versions against its vulnerability database, which it fetches and maintains as needed; vulnerability and secret scanning are on by default, and misconfiguration is added with --scanners misconfig. Record the database date with each result, because the same lock file can produce a different list once the database changes. For a JavaScript-only first look, reading npm audit output honestly covers the built-in tool. A reported advisory is a candidate until someone shows the app reaches the affected function, which is the third rung of the evidence ladder further down.

Semgrep Community Edition: risky code patterns

Semgrep CE is an open source static analysis tool: semgrep scan pulls community rules from the Semgrep Registry and reports insecure coding patterns such as dynamic content used in a system call. Its own design notes say CE “draws a line at crossing file boundaries during analysis”, so a flaw that runs through several files can go unreported. The bigger payoff is your own rules: one that says every route under /api/admin must call the admin check turns a convention into something CI checks on every change. Which static analysis tool to pick, and the other open source options, are compared in static code analysis tools for an AI-built codebase.

Supabase Security Advisor: database settings

Open it in Studio as the Security Advisor, or run supabase db advisors from the CLI. Its checks carry plain names such as “rls disabled in public”, “rls enabled no policy”, “permissive rls policy” and “authenticated security definer function executable”, and each comes with a summary, the risk and how to resolve it; Supabase’s database advisors lists all of them. Supabase itself warns that “Some findings may be intentional”. Supabase calls the advisors deterministic checks, and a policy that exists can still compare against the wrong user or tenant value. A request made as a second account shows that, as in testing Supabase RLS as two real users.

OWASP ZAP: the running app

ZAP’s passive scan reads the traffic without changing it, and its docs call it safe; the active scan “is a real attack on those targets and can put the targets at risk”. Start with the Docker baseline scan, which its docs describe as a time-limited spider that reports issues found passively, and run active scans only against a staging copy you own. Exclude email, payment, destructive and third-party routes before any active run, so the scan cannot send messages, charges or deletes. The setup options are in OWASP ZAP’s documentation, which now carries the line “ZAP by Checkmarx”. How a dynamic scan of the running app differs from a static one is in what a DAST scan proves that SAST cannot.

Commercial vibe code scanners: what to ask before you upload code

Hosted scanners now sell to vibe coders directly. VibeAppScanner, for one, says you paste a URL and it “tests your live database, auth, and APIs”, with the score and issue counts free and the findings paid. Judge any of them on these points: where the scan runs, whether code is uploaded and kept, which frameworks it understands, whether it logs in as two roles, how it behaves in CI, what evidence it exports, how it measures what it misses, and the current price. If a hosted vibe coding security checker asks for repository access, read its data retention terms before you grant it. Gitleaks, Trivy and Semgrep CE run as commands on your own machine or CI runner; Semgrep’s docs say it can run without internet access, and Trivy’s docs say it fetches its security databases as needed.

Does the scanner stay logged in? Proving a logged-in scan worked

A logged-in scan is proven by its request history, not by its settings. Use two test users with separate records, a page that only a signed-in user sees as the login check, and a list of the routes each user reached; a report that cannot show that proves nothing about cross-user access.

Sessions expire and login scripts break quietly, so a scan can spend its whole run on public pages while the report still looks full. ZAP’s own guide says pages behind a login are not discoverable unless its authentication is configured. Set it up like this, against staging:

  1. 01 Create two synthetic staging users, each with records only that user should see
  2. 02 Set the allowed host and exclude email, payment, destructive and third-party routes
  3. 03 Set a login check: a response marker that only a signed-in user sees
  4. 04 Run the scan once for each user
  5. 05 Export the discovered URLs and requests per user and confirm each one reached its signed-in routes

ZAP’s Automation Framework accepts several login methods, among them form, JSON, script, browser and client, plus a loggedInRegex that tells it whether a response came back signed in. That makes logged-in testing possible; only the exported request history shows it happened. External and internal scans, with and without a login, are set side by side in authenticated and unauthenticated scans compared, and the layer-by-layer routine for one app is a website security check for your own app.

Read scanner findings as an evidence ladder

Scanner findings sit on an evidence ladder: a pattern match, a known-bad package or setting, a static path to the risky call, a reproduced request, a demonstrated impact, and a business priority. Each rung needs a different next check before anyone fixes or files it.

The ladder is our own framing of how much each kind of finding proves.

Evidence levelWhat you knowNext check
Pattern candidateText or syntax matched a ruleRead the whole code path and the rule’s assumptions
Configuration or component findingA setting, object, package or version meets a known conditionConfirm the exposure and whether the app uses the affected part
Static reachabilitySource analysis found a path from an entry point to the risky callReproduce it on staging with the intended user
Runtime reproductionA scoped request produced the unexpected behaviorConfirm it repeats, what data or action it touches, and clean up
Exploit impactAn authorized test reached a defined security consequenceRecord the evidence safely, fix, and retest
Business priorityThe workflow, users, likelihood, owner and recovery cost are knownDecide the order, the deadline and any risk you accept

A clean report means the chosen rules found no match in the paths they were given. It says nothing about a file the scan excluded, a session that failed, a route the crawler never found, or a rule the tool does not have.

Counts swing both ways. In 3 of the 21 third-party apps from our June and July 2026 audits, scanners flagged 33 to 44 vulnerabilities and the audit traced exactly zero as reachable. Across all 26 apps we audited, 9 ran a framework version with a publicly known, reachable RCE or auth bypass, and the fix was often a one-line version bump. Both numbers come from apps we picked for those audits, so neither works as a false-positive rate.

Where scanners lose the app’s intent: what our audits found

Scanners lose the app’s intent where the rule depends on who is asking. In our June and July 2026 audits, 11 of 21 third-party apps had unauthenticated endpoints doing privileged work and 7 of 21 had confirmed cross-user or cross-tenant failures: bugs that return a clean 200 to a scanner.

The first three rows count 21 third-party apps and the last counts 14 third-party AI apps, all from our June and July 2026 audits; that is a selected set rather than a random sample, so the counts describe those apps and are not rates for vibe-coded apps in general. The “why scanners miss it” column is our reading of the mechanism, not a tool vendor’s claim.

PatternCount in our auditsWhy scanners miss itThe check to run yourself
Cross-user or cross-tenant access7 of 21 confirmed; 9 of 21 had row-level security gapsThe response is a valid success with well-formed data; nothing marks it as someone else’s recordSign in as user B and request a record made only for user A
Unauthenticated endpoint doing privileged work11 of 21The endpoint answers normally; no rule knows it should have required a loginReplay the request with no session, then with an invalid one
Server accepts whatever the browser asserted10 of 21A schema check proves a field’s shape, not its authorityChange the role, price or owner field and confirm the server derives it
Live prompt-injection path8 of the 14 AI appsUntrusted text reaches the model’s instructions through code that looks ordinarySend inert instruction text through the AI feature in staging and confirm tool calls stay bounded

A scanner sees a successful response with well-formed data. It has no way to know the data belongs to someone else.

One case from the same audits shows the pattern: an AI coding workspace had correct row-level security, then routed around it through SECURITY DEFINER helper functions, several of which took a user or project id as a plain argument without comparing it to the caller, so any free signup could read other customers’ private AI chats or delete their projects. The full telling is in why AI coding tools ship security holes. As we see it, the table policies were right and the leak sat in functions that ran as their owner and believed the id they were handed; a review of the policies alone does not show that, and one call made as a second user does. PostgreSQL runs a SECURITY DEFINER function with the privileges of the user that owns it, as PostgreSQL’s CREATE FUNCTION reference states. Supabase’s advisor does flag a SECURITY DEFINER function that signed-in users can call; whether that function checks the id it receives is still a question for a second account. The numbers behind every row above are in the full numbers from our 26 audits.

A scanner routine for each change

A scanner routine for each change runs the same four scans locally and in CI, fails the build only on a written policy, adds a logged-in dynamic scan when routes or permissions change, and records every suppression with an owner and a reason.

  1. 01 Run the secret, dependency, configuration and code scans locally before you accept a baseline
  2. 02 Record each accepted result with the tool version, the ruleset or advisory database date, the commit, the file or URL, and its evidence level
  3. 03 Run the same commands in CI and fail only on a written policy, such as a new secret or a new finding above a chosen severity and exposure
  4. 04 Run the logged-in dynamic scan against staging after routes or permissions change
  5. 05 Test the cross-user, no-session, payment, role, export and AI-tool paths yourself with two test accounts
  6. 06 Keep suppressions in source control with an owner and a reason, and rerun the exact reproduction after a fix

On GitHub Actions, Gitleaks, Trivy and ZAP can each run through a documented route: Gitleaks-Action, the Trivy GitHub Action and ZAP’s packaged scans on the GitHub Marketplace. A baseline that quietly waives every old finding also hides the next regression, so a suppression deserves the same context as a fix: why the finding is unreachable or accepted, who decided, and what change should reopen it.

When a scanner should hand off to an audit or a pentest

A scanner should hand off when the open question is about intent or impact: whether one customer can reach another’s data, whether a finding is reachable, or whether a contract asks for authorized testing. An audit answers the first two; a penetration test answers the third.

Each case has its own next step. An open authorization question, such as who may see which record, goes to a review of the code and the data model. A finding whose priority depends on reachability goes to a review that traces the path from the entry point. A customer contract that asks for authorized adversarial testing goes to a penetration test with written rules of engagement. The different kinds of firms that sell this work, and what each returns, are laid out in the four kinds of security testing seller.

How the sprint handles this choice

If your scans keep raising questions no tool can answer and a launch is close, bring them to a free audit: a video call that needs no access to your code, where we go through the app and the scan results with you and talk over which findings deserve your time. The engineering work, with evidence, is our Production Hardening Sprint: 10 working days , through 123 deliverables. Among them are a scan of the Git history for committed secrets with every exposed credential found rotated (2.2), a dependency audit that upgrades or removes known-vulnerable packages and removes unused ones (3.5), and a review against the OWASP Top 10 that records findings, fixes and evidence by category (3.7).

Your app’s current framework and hosting setup are the starting point.

Common questions about security scanning for AI-built apps

How do hackers scan for vulnerabilities?

They map the target first and then probe what they find, the same explore and attack stages ZAP’s guide gives for a penetration test. The guide describes exploring as learning what software is in use, what endpoints exist and what patches are installed, and looking for hidden content and known vulnerabilities; the attack stage tries to exploit what turned up. The defense is to run that kind of scan on your own app first, against staging, and fix what it finds.

What are some security tools?

For the owner of a web app, five cover the first pass: a secret scanner such as Gitleaks, a dependency scanner such as Trivy, a code scanner such as Semgrep CE, a database settings check such as Supabase’s Security Advisor, and a dynamic scanner such as ZAP. For wider needs, the US agency CISA keeps a list of no-cost cybersecurity services and tools from public and private providers, and says it does not attest to their suitability for any particular use.

What does authenticated mean?

Authenticated means signed in: the system has checked who you are, usually with a password or a token. In scanning, an authenticated scan signs in with test credentials so it can reach what a logged-in user reaches. It proves nothing about those pages until the request history shows the scan actually reached them.

What are the three types of scanning?

In NIST SP 800-115, the first three target identification techniques are network discovery, network port and service identification, and vulnerability scanning; the guide adds wireless scanning as a fourth. An app owner usually needs a different set on top: code, dependency and secret scans of the repository, and a scan of the running app.