AI Fix Prompts
Copy-paste prompts to fix security issues with AI coding tools
55 articlesAdd Auth Middleware with AI Prompts
AI prompts to add authentication middleware. Protect your API routes, server actions, and pages with reusable auth checks.
Add Content Security Policy with AI Prompts
AI prompts to implement Content Security Policy headers. Prevent XSS, clickjacking, and other injection attacks with proper CSP configuration.
Add CSRF Protection with AI Prompts
AI prompts to implement CSRF protection. Prevent cross-site request forgery with tokens, SameSite cookies, and origin validation.
Add Secure Error Handling with AI Prompts
AI prompts to implement secure error handling. Hide sensitive details from users while logging what you need for debugging.
Add OAuth Security with AI Prompts
AI prompts to implement OAuth securely. Proper state parameter handling, token storage, and protection against common OAuth attacks.
Add Password Hashing with AI Prompts
AI prompts to implement secure password hashing. Use bcrypt, argon2, or scrypt to protect user passwords with proper salting and work factors.
Add Security Headers with AI Prompts
AI prompts to add essential security headers. Configure CSP, HSTS, X-Frame-Options, and other headers to protect your application from common attacks.
Add Session Security with AI Prompts
AI prompts to secure your session management. Implement secure cookies, session timeouts, regeneration, and protection against session hijacking.
Add Two-Factor Authentication with AI Prompts
AI prompts to implement two-factor authentication (2FA). Add TOTP, SMS, or passkey-based 2FA to protect user accounts from unauthorized access.
Configure HTTPS Properly with AI Prompts
AI prompts to configure HTTPS correctly. Set up SSL/TLS certificates, enforce HTTPS, and fix mixed content issues for secure connections.
Secure Docker Configuration with AI Prompts
AI prompts to secure Docker containers. Configure non-root users, minimize images, handle secrets, and follow container security best practices.
Separate Development and Production with AI Prompts
AI prompts to properly separate development and production environments. Prevent accidental production data exposure and configuration mistakes.
Escape HTML Output with AI Prompts
AI prompts to properly escape HTML output. Implement context-aware encoding to prevent XSS when rendering user data in your templates.
Fix Authentication Bypass with AI Prompts
AI prompts to fix authentication bypass vulnerabilities. Secure your auth checks, protect API routes, and prevent unauthorized access to your application.
Fix Broken Authentication with AI Prompts
AI prompts to fix broken authentication vulnerabilities. Repair weak password policies, session issues, and auth flow bugs that let attackers in.
Fix CORS Issues Securely with AI Prompts
AI prompts to fix CORS issues without compromising security. Understand Cross-Origin Resource Sharing and configure it properly for your API.
Fix XSS Vulnerabilities with AI Prompts
AI prompts to fix Cross-Site Scripting (XSS) vulnerabilities. Escape output, sanitize input, and implement CSP to prevent script injection attacks.
Netlify Security Configuration with AI Prompts
AI prompts to configure Netlify security settings. Set up headers, environment variables, and serverless functions securely on Netlify.
Protect Admin Routes with AI Prompts
AI prompts to protect admin routes and implement role-based access control. Secure your admin panels, dashboards, and privileged endpoints.
Sanitize User Input with AI Prompts
AI prompts to sanitize and validate user input. Prevent injection attacks by properly handling form data, API inputs, and file uploads.
Secure Cookie Configuration with AI Prompts
AI prompts to configure cookies securely. Set HttpOnly, Secure, SameSite, and other attributes to protect session and authentication cookies.
Secure File Uploads with AI Prompts
AI prompts to secure file upload functionality. Validate file types, scan for malware, and store uploads safely to prevent attacks.
Secure Form Handling with AI Prompts
AI prompts to secure your HTML forms. Implement validation, CSRF protection, honeypots, and rate limiting to prevent form abuse and attacks.
Secure JWT Implementation with AI Prompts
AI prompts to implement JWT authentication securely. Proper signing, validation, refresh tokens, and protection against common JWT attacks.
Secure Local Storage Usage with AI Prompts
AI prompts to use localStorage and sessionStorage securely. Understand what data should never be stored client-side and safe alternatives.
Add Secure Logging with AI Prompts
AI prompts to implement secure logging practices. Log what you need for debugging without exposing passwords, tokens, or sensitive user data.
Secure Login Flow with AI Prompts
AI prompts to secure your login flow. Implement rate limiting, account lockout, secure session creation, and protection against brute force attacks.
Secure Logout Implementation with AI Prompts
AI prompts to implement secure logout. Properly invalidate sessions, clear tokens, and protect against session fixation after logout.
Secure Password Reset Flow with AI Prompts
AI prompts to implement secure password reset. Create safe reset tokens, prevent account enumeration, and protect against reset flow attacks.
Validate Client Input with AI Prompts
AI prompts to implement client-side input validation. Create real-time form feedback with proper validation patterns for better UX and security.
Vercel Security Configuration with AI Prompts
AI prompts to configure Vercel security settings. Set up security headers, environment variables, and edge functions securely on Vercel.
Add API Authentication with AI Prompts
AI prompts to add authentication to your API. Implement JWT, API keys, session-based auth, and OAuth for secure API access.
Add Database Audit Logging with AI Prompts
AI prompts to add audit logging to your database. Track who changed what, when, and why with proper audit trails for compliance and debugging.
Add Proper .gitignore with AI Prompts
AI prompts to create a secure .gitignore file that prevents committing secrets, environment files, and sensitive data to your repository.
Add Supabase Row Level Security with AI Prompts
AI prompts to add Row Level Security (RLS) to your Supabase database. Create policies to protect user data and prevent unauthorized access.
Add API Key Validation with AI Prompts
AI prompts to add proper API key validation to your endpoints. Validate format, check permissions, and handle invalid keys securely.
Database Backup Setup with AI Prompts
AI prompts to set up database backups. Configure automated backups, test restoration, and implement disaster recovery for PostgreSQL, MySQL, and managed databases.
Database Input Validation with AI Prompts
AI prompts for validating user input before database queries. Sanitize, validate types, and enforce constraints to protect your database from bad data.
Encrypt Database Fields with AI Prompts
AI prompts to encrypt sensitive database fields. Implement field-level encryption for PII, payment data, and secrets with proper key management.
Encrypt Sensitive Data with AI Prompts
AI prompts to implement data encryption in your application. Encrypt data at rest, in transit, and handle encryption keys securely.
Write Firebase Security Rules with AI Prompts
AI prompts to write Firebase Security Rules for Firestore and Realtime Database. Protect user data with proper authentication and authorization rules.
Fix Exposed API Keys with AI Prompts
Copy-paste AI prompts to fix exposed API keys in your code. Works with Cursor, Claude, and ChatGPT to move hardcoded secrets to environment variables.
Fix SQL Injection Vulnerabilities with AI Prompts
AI prompts to find and fix SQL injection vulnerabilities in your code. Convert unsafe queries to parameterized statements and protect your database.
MongoDB Security with AI Prompts
AI prompts to secure your MongoDB database. Configure authentication, enable authorization, prevent NoSQL injection, and set up proper access controls.
Move Secrets to Environment Variables with AI
AI prompts to migrate hardcoded secrets to environment variables. Proper .env setup for Next.js, Node.js, Python, and more frameworks.
Parameterize Database Queries with AI Prompts
AI prompts to convert string concatenation to parameterized queries. Prevent SQL injection by using prepared statements in any language or framework.
Prisma Security Review with AI Prompts
AI prompts to review Prisma ORM security. Find unsafe raw queries, missing access controls, and data exposure issues in your Prisma application.
Add Rate Limiting to API with AI Prompts
AI prompts to add rate limiting to your API. Prevent abuse, protect against DDoS, and ensure fair usage with proper rate limiting implementation.
Remove Hardcoded Secrets with AI Prompts
AI prompts to find and remove hardcoded secrets from your codebase. Migrate credentials to environment variables and clean git history.
Rotate Compromised Credentials with AI
Emergency AI prompts for rotating compromised API keys and credentials. Step-by-step guidance for Stripe, AWS, OpenAI, and other services.
Set Up Secret Scanning with AI Prompts
AI prompts to configure secret scanning for your repository. Set up GitHub secret scanning, pre-commit hooks, and CI/CD checks to catch exposed credentials.
Secure API Endpoints with AI Prompts
AI prompts to secure your API endpoints. Add authentication, rate limiting, input validation, and proper error handling to protect your APIs.
Secure Configuration Files with AI Prompts
AI prompts to secure configuration files in your project. Separate secrets from config, validate settings, and prevent exposure of sensitive data.
Secure Database Connection with AI Prompts
AI prompts to secure your database connection. Enable SSL/TLS, configure connection pooling, and protect credentials in your database setup.
Write RLS Policies with AI Prompts
AI prompts for writing Supabase RLS policies. Advanced patterns for team access, role-based permissions, and complex authorization logic.