security-review

Reviews code against security checklists covering secrets, input validation, authentication, and cloud infrastructure.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/freedom909/real-estate-saas --skill security-review-freedom909
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: security-review
Source: https://github.com/freedom909/real-estate-saas/tree/main/.trae/skills/security-review
Command: npx skills add https://github.com/freedom909/real-estate-saas --skill security-review-freedom909

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Developers shipping authentication, API endpoints, payment features, or cloud deployments often miss critical vulnerabilities like hardcoded secrets, SQL injection, XSS, or misconfigured IAM policies. This Skill provides a systematic security review checklist with concrete pass/fail code patterns to catch these issues before production. ## Core Features & Use Cases - Application Security Checklist: Covers secrets management, input validation with Zod schemas, SQL injection prevention, JWT handling, XSS sanitization, CSRF protection, rate limiting, and sensitive data exposure. - Cloud & Infrastructure Security: Includes IAM least-privilege policies, cloud secrets managers, VPC/firewall configuration, CI/CD pipeline hardening with OIDC, Cloudflare WAF rules, and backup/disaster recovery verification. - Pre-Deployment Verification: Provides actionable checklists and automated security test examples (authentication, authorization, rate limiting) to run before any production release. - Use Case: When implementing a new login endpoint in a Next.js/Supabase app, activate this Skill to verify tokens are stored in httpOnly cookies, Row Level Security policies are enabled, inputs are validated, and rate limiting is applied. ## Quick Start Review my new authentication API endpoint for security vulnerabilities using the security review checklist.

Frequently Asked Questions about security-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent SQL injection in Node.js applications?▼

Prevent SQL injection by always using parameterized queries or query builders instead of string concatenation. With Supabase use the .eq() filter methods, and with raw SQL pass values as parameters like db.query('SELECT * FROM users WHERE email = $1', [email]).

What is the correct way to store JWT tokens in web apps?▼

Store JWT tokens in httpOnly cookies with Secure and SameSite=Strict flags, never in localStorage which is vulnerable to XSS attacks. Set the cookie via the Set-Cookie header with a Max-Age for session expiry.

How do I validate file uploads securely?▼

Validate file uploads by checking size limits (e.g., 5MB max), whitelisting MIME types like image/jpeg and image/png, and verifying file extensions. Always use whitelist validation rather than blacklists and never trust client-provided values.

Does this security checklist cover cloud infrastructure like AWS?▼

Yes, the included cloud-infrastructure-security reference covers AWS IAM least-privilege policies, secrets manager rotation, VPC security groups, CloudWatch logging, CI/CD hardening with OIDC, Cloudflare WAF configuration, and automated RDS backups.

Why should I avoid logging error stack traces to users?▼

Stack traces expose internal implementation details that attackers can use to map your system. Return generic error messages to users while logging detailed errors only in server logs, and never log passwords, tokens, or card numbers.

What are the limitations of a checklist-based security review?▼

A checklist catches common vulnerability patterns but cannot replace penetration testing, runtime scanning, or threat modeling for complex attack chains. It works best as a pre-deployment gate combined with automated audits like npm audit and secret scanning.