Careful
134kBarreras de seguridad para comandos destructivos (gstack).
- Costo de contexto al activarse
- 879 tok
- Tamaño del paquete
- 4 archivos
- Última actualización
- hace 3 meses
- Permisos
Audita código en busca de vulnerabilidades comunes que los asistentes de IA introducen en apps 'vibe-coded': claves expuestas, RLS roto, fallos de auth, pagos inseguros y más.
en el repo
0–100, la ruta de este skill
último commit aquí
últimos 90 días
179 tok en reposo
32 KB
Funciona con cualquier agente que lea SKILL.md
npx -y skills add raroque/vibe-security-skill --skill vibe-security --agent claude-codeSe instala solo en este repositorio.
Este skill needs API credentials.
Di cualquiera de estas frases y el agente debería cargar este skill.
Audit code for security vulnerabilities commonly introduced by AI code generation. These issues are prevalent in "vibe-coded" apps — projects built rapidly with AI assistance where security fundamentals get skipped.
AI assistants consistently get these patterns wrong, leading to real breaches, stolen API keys, and drained billing accounts. This skill exists to catch those mistakes before they ship.
Never trust the client. Every price, user ID, role, subscription status, feature flag, and rate limit counter must be validated or enforced server-side. If it exists only in the browser, mobile bundle, or request body, an attacker controls it.
Examine the codebase systematically. For each step, load the relevant reference file only if the codebase uses that technology or pattern. Skip steps that aren't relevant.
Secrets & Environment Variables — Scan for hardcoded API keys, tokens, or credentials. Check for secrets exposed via client-side env var prefixes (NEXT_PUBLIC_, VITE_, EXPO_PUBLIC_). Verify .env is in .gitignore. See references/secrets-and-env.md.
Database Access Control — Check Supabase RLS policies, Firebase Security Rules, or Convex auth guards. This is the #1 source of critical vulnerabilities in vibe-coded apps. See references/database-security.md.
Authentication & Authorization — Validate JWT handling, middleware auth, Server Action protection, and session management. See references/authentication.md.
Rate Limiting & Abuse Prevention — Ensure auth endpoints, AI calls, and expensive operations have rate limits. Verify rate limit counters can't be tampered with. See references/rate-limiting.md.
Payment Security — Check for client-side price manipulation, webhook signature verification, and subscription status validation. See references/payments.md.
Mobile Security — Verify secure token storage, API key protection via backend proxy, and deep link validation. See references/mobile.md.
AI / LLM Integration — Check for exposed AI API keys, missing usage caps, prompt injection vectors, and unsafe output rendering. See references/ai-integration.md.
Deployment Configuration — Verify production settings, security headers, source map exposure, and environment separation. See references/deployment.md.
Data Access & Input Validation — Check for SQL injection, ORM misuse, and missing input validation. See references/data-access.md.
If doing a partial review or generating code in a specific area, load only the relevant reference files.
Organize findings by severity: Critical → High → Medium → Low.
For each issue:
Skip areas with no issues. End with a prioritized summary.
lib/supabase.ts:3 — Supabase service_role key exposed in client bundle
The service_role key bypasses all Row-Level Security. Anyone can extract it from the browser bundle and read, modify, or delete every row in your database.
// Before
const supabase = createClient(url, process.env.NEXT_PUBLIC_SUPABASE_SERVICE_KEY!)
// After — use the anon key client-side; service_role belongs only in server-side code
const supabase = createClient(url, process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!)
app/api/checkout/route.ts:15 — Price taken from client request body
An attacker can set any price (including $0.01) by modifying the request. Prices must be looked up server-side.
// Before
const session = await stripe.checkout.sessions.create({
line_items: [{ price_data: { unit_amount: req.body.price } }]
})
// After — look up the price server-side
const product = await db.products.findUnique({ where: { id: req.body.productId } })
const session = await stripe.checkout.sessions.create({
line_items: [{ price: product.stripePriceId }]
})
These rules also apply proactively. Before writing code that touches auth, payments, database access, API keys, or user data, consult the relevant reference file to avoid introducing the vulnerability in the first place. Prevention is better than detection.
references/secrets-and-env.md — API keys, tokens, environment variable configuration, and .gitignore rules.references/database-security.md — Supabase RLS, Firebase Security Rules, and Convex auth patterns.references/authentication.md — JWT verification, middleware, Server Actions, and session management.references/rate-limiting.md — Rate limiting strategies and abuse prevention.references/payments.md — Stripe security, webhook verification, and price validation.references/mobile.md — React Native and Expo security: secure storage, API proxy, deep links.references/ai-integration.md — LLM API key protection, usage caps, prompt injection, and output sanitization.references/deployment.md — Production configuration, security headers, and environment separation.references/data-access.md — SQL injection prevention, ORM safety, and input validation.Reproducido de raroque/vibe-security-skill bajo licencia MIT. Leer esta página en markdown.
11 archivos en el paquete. Solo se lee SKILL.md al activarse — las referencias se cargan si el skill decide que las necesita.
Variables de entorno:NEXT_PUBLIC_SUPABASE_ANON_KEYNEXT_PUBLIC_SUPABASE_SERVICE_KEY
Barreras de seguridad para comandos destructivos (gstack).
Modo Chief Security Officer: auditoría de seguridad centrada en infraestructura, con OWASP Top 10, modelado de amenazas STRIDE y verificación activa.
Modo de máxima seguridad: avisos ante comandos destructivos más restricción de ediciones a un directorio concreto (gstack).