Skip to main content
AI Production Partnerby GO Along

AI App Security Checklist

AI coding tools fail security in predictable ways — the same five categories of flaw appear in nearly every generated codebase we audit. This checklist covers all of them, plus the LLM-specific risks that classical security reviews miss. Every item includes how to verify it, not just what to believe.

24 items10 marked criticalFree to use — no signup required

1. Secrets & Credentials

The most common — and most exploited — AI-code failure.

  • Full git history scanned for secrets

    Critical

    Keys pasted into prompts end up in commits. Scan history, not just the current tree.

  • Every found credential rotated

    Critical

    A committed secret is a leaked secret — deletion doesn't help.

  • Client bundle audited for keys

    Critical

    Anything shipped to the browser is public, including keys AI tools embed in frontend components.

  • Secret manager adopted

    Environment variables backed by a vault; different credentials per environment.

  • Secret scanning in CI

    The next pasted key gets caught at commit time.

2. Authentication & Authorization

AI tools do login well and permissions badly.

  • Object-level authorization on every endpoint

    Critical

    Tested by replaying another user's object IDs against every route that touches data.

  • Token storage and lifetime verified

    httpOnly cookies over localStorage; expiry enforced; revocation actually works.

  • Password handling to standard

    bcrypt/argon2 hashing; reset flows that expire tokens and don't leak account existence.

  • Admin surfaces separately protected

    Critical

    Admin routes gated by role checks and ideally network controls — not just 'hidden' URLs.

3. Input & Data Handling

Injection defense at every boundary.

  • Server-side validation with explicit schemas

    Critical

    Client-side validation is UX, not security. Every boundary validates.

  • Parameterized queries only

    Critical

    No string-built SQL anywhere — including the corners AI generated at 2 a.m.

  • Output encoding where user content renders

    Stored XSS through user-generated content is a classic AI-app finding.

  • File uploads constrained

    Type, size, and storage location controlled; uploads never executed or served from the app origin unchecked.

  • Supabase/BaaS row-level security verified

    Critical

    For Lovable-style apps: RLS enabled on every table with ownership-checking policies, tested as a hostile user.

4. Dependencies & Pipeline

Posture that holds as you keep shipping.

  • Vulnerability scan across the full tree

    No known-critical CVEs; unused packages (AI sessions accumulate them) removed.

  • Versions pinned and updates automated

    Dependabot/Renovate or equivalent, so patching is routine instead of emergency.

  • Security checks gate every merge

    Dependency audit, secret scan, and static analysis run in CI — the floor that lets humans review logic instead of syntax.

5. Abuse & Availability

Limits that keep one actor from ruining everyone's day.

  • Rate limiting layered per endpoint class

    Critical

    Strict on auth, moderate on expensive operations, generous globally — with 429s and alerting on abuse.

  • Timeouts and circuit breakers on external calls

    A slow third party shouldn't stall your request threads.

  • CORS configured deliberately

    Explicit origins — not the wildcard AI tools default to when the demo needs unblocking.

6. LLM & AI Features

The new attack surface, per the OWASP LLM Top 10.

  • Prompt injection defenses layered

    Critical

    System instructions separated from user content; model capabilities (tools, queries) minimized so successful injection has a small blast radius.

  • Model output treated as untrusted

    Encoded before rendering, parameterized before querying, sandboxed before executing — no matter how confident it sounds.

  • Data sent to model providers minimized

    PII redacted where possible; provider retention terms known; privacy policy consistent with actual prompt contents.

  • Per-user budgets on LLM endpoints

    Token caps and spend alerts — an uncapped LLM endpoint is a bill an attacker can run up.

Frequently asked questions

Why does AI-generated code need its own security checklist?

Because its failure pattern is distinctive: AI tools implement features correctly and security inconsistently — secrets pasted into prompts end up in git history, authentication works while authorization is missing, and validation exists on some boundaries but not others. This checklist targets exactly those patterns, plus the new attack surface (prompt injection, insecure output handling) that apps with LLM features acquire.

In what order should we work through it?

Top to bottom — groups are ordered by exploitation likelihood. Secrets first (scanning history takes an hour and the findings are urgent), then authorization, then input handling. The Critical-flagged items across all groups are the pre-launch minimum.

Can we verify these items without security expertise?

Most of them, yes — each item's description says what to check, and tools like secret scanners and dependency auditors automate the mechanical parts. The honest exceptions are authorization testing and LLM-feature review, which benefit from an adversarial mindset. That's what our AI Security Audit provides if you want expert verification.

Does passing this checklist make our app secure?

It eliminates the failure modes that account for the large majority of real-world AI-app breaches — a dramatic risk reduction, honestly stated. What a checklist can't cover is business-logic abuse specific to your domain; that requires human review, which is the difference between this free resource and a full audit.

Ready to take your AI-built app to production?

Get a free, no-obligation production assessment. We review your architecture, security posture, and deployment readiness — and give you a concrete roadmap within 48 hours.

Response within one business day · NDA available · No lock-in