AI pentesting guides / By tech stack

Stack guide: Bolt

Security testing for apps built with Bolt

Security testing an app built with Bolt.new means testing the deployed frontend, its server routes and its database the way a stranger would: Bolt can generate full-stack projects in many frameworks, and the security of the result depends on choices made during generation that are easy to miss in a chat transcript.

Bolt projects that need a backend commonly use Supabase, either through Bolt Cloud, where the backend is provisioned for you, or a Supabase project you connect. That makes database access rules a central part of any test, alongside the framework-specific checks for whatever Bolt generated.

Frontend build leaks

  • Vite only exposes variables prefixed VITE_ to client code, and anything exposed is public. A secret key renamed with that prefix to make an error go away is now in the bundle.
  • Source maps published with the site reveal the full generated source.
  • Hard-coded test credentials or admin emails left in components.

Backend and database

  • With a Supabase backend, every table reachable with the publishable key needs RLS and correct policies; see the Supabase guide for the method.
  • Server routes or functions generated for an integration (payments, email, AI) that do not check the caller, letting anyone trigger them at your cost.
  • Webhook endpoints that do not verify signatures from Stripe or similar providers.
  • Role checks implemented in React state rather than on the server.

Framework-specific checks

Bolt can scaffold Next.js, Astro, SvelteKit, Remix and plain Vite apps, among others. Once you know which one you have, apply that stack's checks: middleware and server actions for Next.js, form actions and hooks for SvelteKit, loaders and actions for Remix. The framework decides where the server boundary is, and that boundary is where authorisation must live.

When the backend is provisioned for you

With Bolt Cloud the Supabase project sits under Bolt's organisation until you claim it, so you may not see its policies in your own dashboard. That is another reason to test from outside: the deployed behaviour is what matters, wherever the configuration lives.

With Pentest-Swarm

Testing a Bolt app with Pentest-Swarm

Pentest-Swarm tests the published app over HTTP and is indifferent to which tool generated it.

  • Scope the run to your app's domain and your database API host only.
  • Use --browser recon so it observes the API and database calls your generated frontend makes.
  • Run the owasp-top10 playbook for the web app and api-security for server routes, with a test user's session.
  • Use --estimate to see expected model spend before a run, or a local model for no API cost.

Where it falls short

A black-box test does not read the generated code, so it will not flag insecure code paths it never reaches, and it cannot list dependencies. Export the project and run a dependency scan and secret scan, and retest after major prompt-driven changes.

Questions

Are Bolt apps insecure by default?

Not inherently. They are as secure as the configuration generated for them, which nobody may have reviewed. Testing the deployed app tells you where you stand.

Do I need to export my Bolt project to test it?

No. A black-box test only needs the published URL and a test account. Exporting helps if you also want static and dependency scanning.

Which Bolt apps should be tested first?

Anything with user accounts, payments or stored personal data, since those are where access-control mistakes cause real harm.

Sources

  1. Bolt support: Supabase integration