Deutsch
For your stackCursor · GitHub

Security audits for apps built with Cursor

Push the app you built in Cursor to GitHub, let ShipRely read it read-only, and paste the Cursor version of each fix prompt into the agent chat.

  • Read-only access to your repository
  • Every finding with file and line
  • Fix prompts for Lovable, Cursor, Claude Code and Bolt

Cursor works on your project folder, so the app reaches GitHub the usual way: you push it, or a cloud agent opens a pull request. ShipRely reads that repository with read-only access and checks it for the security and database mistakes that AI-written code tends to contain, such as secret keys in browser code, admin checks that only exist in the UI and database functions anyone can call. Each finding comes with a fix prompt written for Cursor’s agent.

Cursor makes you fast at writing code you would otherwise have to look up. It also makes it easy to accept a change that works without asking what it exposes. ShipRely is the read-through before launch: an audit of the whole repository with evidence for every finding and a fix your agent can apply.

How your Cursor code reaches ShipRely

Cursor edits a project on your machine (or, with cloud agents, a copy of your repository). Either way, ShipRely reads the GitHub repository.

Get the project onto GitHub

If your project is only local, create a private repository on GitHub and push it with git or the GitHub CLI; GitHub’s guide Adding locally hosted code to GitHub (opens in a new tab) walks through it. If you use Cursor’s cloud agents, the Cursor GitHub App already clones your repository and opens pull requests from working branches (GitHub integration docs (opens in a new tab)).

Connect the repository to ShipRely

Install the ShipRely GitHub App, select the repository and choose the branch: main, or the branch of a pull request you want to check before merging. Access is read-only.

Run the audit

Select Security, Database & Supabase or both, and a depth. Specialist agents list, read and search your files. They never install dependencies, build the project or run your code.

Hand the fix to Cursor's agent

Each finding has a prompt version written for Cursor. Paste it into the agent chat, review the diff, commit and push. Then audit the new commit.

What AI-written code gets wrong

The mistakes we find are rarely exotic. They are the places where code works in a demo and fails against someone who doesn’t use your UI. The Security specialist follows each entry point and asks who can call it and what it trusts; the Database & Supabase specialist reads your migrations, policies, grants and database functions.

  • Checks that only exist in the UI

    An admin page hidden by a React guard, while the API behind it answers anyone with a valid session.

  • Secrets on the wrong side

    Keys in client code or in build-time variables that are bundled into the JavaScript every visitor downloads.

  • Privileged code without a gate

    A database function or server endpoint that runs with admin rights and never checks who called it.

On our synthetic test apps, which contain such mistakes on purpose, the engine reported these:

High

Admin user listing authorized only by client-side app_metadata check

src/pages/AdminUsers.tsx

Critical

Service-role Supabase key read from VITE_ variable in browser bundle

src/lib/admin.ts

Critical

add_credits RPC lets any signed-in user grant unlimited credits to any account

supabase/migrations/20260418160000_credit_purchases.sql

Reported by the ShipRely engine on our synthetic React, TypeScript and Supabase test apps, benchmark run of 3 December 2026.

More on each pattern: admin checks that only live in the frontend, secret keys in VITE_ variables, SECURITY DEFINER functions without checks and the overview in the complete security guide for AI-built apps. If a key was ever committed, read secrets in git history: deleting it from the latest commit is not enough.

A fix prompt your agent can follow

A ShipRely prompt is specific: the object by name, the change, how to deliver it and what must keep working. It avoids line numbers, because those go stale once the agent edits the file. This is what the engine wrote for the add_credits finding:

Fix prompt from a real benchmark finding

In a new migration, revoke execute on public.add_credits from public, anon and authenticated, and grant it only to service_role. Grant credits from a server-side payment webhook (new edge function) that verifies the provider’s signature and uses a stored mapping from the checkout session to the user, with idempotency on the payment id. Remove the add_credits call from PaymentSuccess.tsx so it only refreshes the balance. Also set search_path = '' on the function and validate that _amount is positive.

The report also lists acceptance checks, for example “a signed-in user calling add_credits through the API gets a permission error”. Ask the agent to write those as tests, then run them.

How ShipRely differs from an agent review

Cursor’s own tools review code too: its GitHub App powers Bugbot, which reviews pull requests for bugs and security issues. A review of each change is valuable, and ShipRely doesn’t replace it. ShipRely looks at the whole repository with a fixed procedure per area, and a finding is only shown when a deterministic check confirms the cited lines exist and contain the quoted code. We measure that pipeline on apps with planted defects and on clean twins that must stay silent (methodology).

Limits

ShipRely reads the repository; it doesn’t run your app or connect to your database. Our checks are deepest for React and TypeScript web apps with Supabase. Credential files such as .env are never read. Security and Database & Supabase run on the real engine; other areas are in development. Plans are on the pricing page.

Frequently asked questions

Cursor is now called Grok Build. Does this page still apply?

Yes. On 30 November 2026 Cursor’s desktop app became the Grok Build desktop app, and its makers say the editor and agent sessions work as before. Your code still lives in a git repository, and that is all ShipRely needs.

Do I need to push my code to GitHub?

Yes. ShipRely reads repositories through its GitHub App. If your Cursor project is only on your computer, create a repository on GitHub and push it, ideally a private one. GitHub’s docs show how with git or the GitHub CLI.

Cursor’s agent can review code too. Why use ShipRely?

An agent review in your editor is useful while you write code. ShipRely runs a fixed procedure per audit area across the whole repository, checks every finding’s evidence against the code without a model, and gives you a report you can re-run on the next commit.

Does ShipRely read my .env file?

No. Files that typically hold credentials, such as .env, are never read or quoted, so ShipRely does not report secrets that sit only in those files. Keep them out of git anyway; our guide on secrets in git history shows how to check.

Sources

  1. 1.Cursor is now Grok Build — Grok
  2. 2.GitHub integration — Grok Build Docs
  3. 3.Adding locally hosted code to GitHub — GitHub Docs

Updated

Find this in your own app

ShipRely reads your repository (read-only), proves each finding with file and line, and gives you a fix prompt to paste into your AI builder.

Run a demo audit
  • Read-only access to your repository
  • Every finding with file and line
  • Fix prompts for Lovable, Cursor, Claude Code and Bolt