AI-Built App Security Check (headers, TLS, leaked keys) avatar

AI-Built App Security Check (headers, TLS, leaked keys)

Pricing

Pay per usage

Go to Apify Store
AI-Built App Security Check (headers, TLS, leaked keys)

AI-Built App Security Check (headers, TLS, leaked keys)

Grades any website's HTTPS, certificate, security headers and cookies, and finds secret keys (Supabase service_role, Stripe, OpenAI, AWS and more) shipped in its JavaScript. Made for apps built with Lovable, Bolt, Replit, Cursor and Supabase. Passive: one page load per site.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

PatchLabs

PatchLabs

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

14 hours ago

Last modified

Features

Limited permissionsSingle-tenantServer interface

Share

AI-Built App Security Check

Check any website for the security mistakes AI app builders make most often: missing HTTPS and security headers, weak cookies, and secret keys shipped in the JavaScript every visitor downloads (Supabase service_role, Stripe, OpenAI, Anthropic, AWS, GitHub, SendGrid, Resend, Twilio, private keys).

Made by PatchLabs for apps built with Lovable, Bolt, Replit, Cursor, v0 and Supabase. It runs the same checks as the free PatchLabs headers check, across as many sites as you like, with the output as a dataset you can export or call from an API or MCP client.

What it checks

CheckWhat failsSeverity
Leaked secret keysA secret key appears in the home page or any same-site script (values are masked in the output)critical / high
HTTPShttp:// doesn't redirect to https://medium
CertificateInvalid, expired, or expiring within 21 dayshigh / medium
HSTSNo Strict-Transport-Security, or max-age under 180 dayslow
Content-Security-PolicyNone setmedium
FramingNo frame-ancestors or X-Frame-Optionslow
X-Content-Type-OptionsMissing or not nosnifflow
CookiesMissing Secure, or a session cookie without HttpOnlymedium
Mixed contentScripts or styles over plain HTTPmedium
Version leaksServer or X-Powered-By reveal software versionsinfo
Referrer-PolicyNone setinfo

Each site gets a grade from A to F. Any critical leaked key makes the grade F. The anon (public) Supabase key is not reported as a leak, because it is meant to be public; the output notes when a site talks to Supabase from the browser, since whether its data leaks then depends on RLS policies a page load can't see.

Input

{
"startUrls": [{ "url": "https://myapp.lovable.app" }, { "url": "https://client-site.com" }],
"maxConcurrency": 5
}

Only check sites you own or have permission to test.

Output

One dataset item per site:

{
"url": "https://myapp.lovable.app",
"grade": "F",
"headers_grade": "C",
"headers_score": 65,
"secrets_found": 1,
"secrets": [{
"id": "PL-010",
"severity": "critical",
"title": "Supabase service_role key in code every visitor downloads",
"object": "https://myapp.lovable.app/assets/index-4f2a.js",
"evidence": { "starts_with": "eyJhbGci…", "length": 219 },
"fix": "This key skips every RLS policy. Rotate it in Supabase (Settings > API) now and move the code that needs it to a server or edge function."
}],
"findings": [{ "id": "PL-030", "severity": "medium", "title": "No Content-Security-Policy", "fix": "..." }],
"passed": [{ "id": "PL-027", "title": "HTTPS is forced" }],
"supabase": { "projects": ["abcdefghijklmnopqrst"], "anon_key_in_page": true, "note": "..." },
"scripts_read": 6,
"checked_at": "2026-11-19T23:00:00+00:00"
}

Secret values are never stored: only the type, the file, the first characters and the length.

Call it as an API (Server Actor)

Agents and scripts can check one site per HTTP request and get the result straight back, with no run to start or dataset to read. Send your Apify API token as a Bearer token to this Actor's server URL (shown on its Server tab):

curl -H "Authorization: Bearer $APIFY_TOKEN" "<server URL>/check?url=https://myapp.lovable.app"
curl -H "Authorization: Bearer $APIFY_TOKEN" -X POST -d '{"url": "https://myapp.lovable.app"}' "<server URL>/check"

The response is the same JSON as one dataset item above. You pay one site-checked event only when the site loaded; a refused or unreachable address returns HTTP 422 with an error and costs nothing.

What it does not do

It is passive. Per site it makes one plain http:// request, one https:// load of the home page and fetches the same-site scripts that page loads (up to 20). It does not submit forms, sign in, crawl other pages, or try any key it finds. It refuses private and local addresses.

Use cases

  • Agencies and freelancers: check every client site you've shipped in one run, and show the client the report.
  • Before launch: run it on your Lovable or Bolt app before you share the link.
  • Monitoring: schedule it daily on your sites and get alerted when a deploy drops a header or ships a key.
  • From AI agents: call it over Apify's API or MCP server from Claude, Cursor or any MCP client.

Found something?

The PatchLabs guides explain each finding and how to fix it on Lovable, Supabase and Bolt. To check what the page can't show, such as Row Level Security, storage buckets and functions, run the free RLS check on your app's repository.

Source: github.com/manra399/patchlabs