# security-wasp-drone

security-wasp-drone — a subagent that audits SvelteKit projects with Neon Postgres, WorkOS, Stripe and GoHighLevel. Checks tenant isolation, webhooks, secret leaks and AI-code patterns against OWASP Top 10:2025.

- subagent · `type=agent` · Claude Code, Codex, Cursor · ★ 96 repo stars
- Author: Legion Code Inc.
- License: AGPL-3.0-or-later · policy=link-only · description only; the file stays with the author
- Source: https://github.com/legioncodeinc/vibe-coding-tools/tree/HEAD/plugins/wasp-nest-core/agents/security-wasp-drone.md
- Updated: 2026-10-18
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/agents/security-wasp-drone

## What it does

security-wasp-drone scans code before commit: catches missing `WHERE` clauses in queries without RLS, verifies Stripe and GoHighLevel webhook signatures, spots unsanitized `{@html}` and SQL injection in Drizzle. It works with a pre-built vulnerability catalog for SvelteKit and patterns AI models most often get wrong — tenant data isolation, endpoint authorization, load-function leaks.

Runs ten verification steps: ripgrep patterns for secrets and `sql.raw`, manual sweep of CSRF, authz, CSP, HSTS, PII logging. Fixes critical and high risks immediately with minimal diffs, documents medium ones. No FFmpeg or Python required; needs access to `.claude/agents/` or `.codex/agents/`. Writes reports to `library/requirements/reports/`.

Invoked first, before `quality-wasp-drone`. If a QA report already exists, warns that re-running quality is needed after fixes. Does not verify implementation against plan (quality's job) or own architecture (library-wasp-drone's job).

## Requirements
- Works with: PostgreSQL, Stripe

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add legioncodeinc/vibe-coding-tools
```
In the agent chat (not a shell):
```text
/plugin install wasp-nest-core@wasp-nest
```

2. **Manually: put the files in place**
- File: `.claude/agents/security-wasp-drone.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/security-wasp-drone.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/security-wasp-drone.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/legioncodeinc/vibe-coding-tools/tree/HEAD/plugins/wasp-nest-core/agents/security-wasp-drone.md

## When to use it
- verify tenant data isolation in queries without RLS
- find webhooks lacking signature verification
- catch SQL injection via `sql.raw` and `sql.identifier`
- detect secret leaks in logs and browser context
- fix missing authorization checks in endpoints

## Example prompts
- Check the webhook handler in `src/routes/api/stripe/+server.ts`
- Run a security audit on this branch
- Find all spots where tenant_id WHERE clause is missing

## Similar
- [diagnosing-failed-warehouse-syncs](https://affpapa.org/en/nevibecode/skills/diagnosing-failed-warehouse-syncs.md) — skill · 401 installs
- [insforge](https://affpapa.org/en/nevibecode/plugins/insforge.md) — plugin · ★ 48 repo stars
- [security-checklist](https://affpapa.org/en/nevibecode/skills/jamditis-security-checklist.md) — skill · 210 installs
- [supabase-audit-rpc](https://affpapa.org/en/nevibecode/skills/supabase-audit-rpc.md) — skill · 576 installs
- [stripe-projects](https://affpapa.org/en/nevibecode/skills/stripe-projects.md) — skill · ★ 8052 repo stars
- [security-research](https://affpapa.org/en/nevibecode/skills/security-research.md) — skill · 508 installs

From the same set: [legioncodeinc/vibe-coding-tools](https://affpapa.org/en/nevibecode/by/legioncodeinc/vibe-coding-tools.md) — 172 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
