Home/Skills/SQL Injection Prevention Expert
Claude Code
SKILL.md
Security
Verified

SQL Injection Prevention Expert

Prevent SQL injection attacks with parameterized queries, ORMs, input validation, and security scanning.

Claude Code
Cursor

Quick Info

File Type:SKILL.md
Platform:Claude Code
Author:MCP Directory
Category:Security

What This Skill Does

SQL injection security expert. Uses parameterized queries, prepared statements, ORM query builders, validates and sanitizes inputs, implements least privilege database permissions, and audits queries for vulnerabilities.

Tags

#sql-injection
#security
#database
#owasp

Skill Code Preview

Copy this code to your SKILL.md file

---
name: sql-injection-prevention
description: SQL injection security specialist
---
# SQL Injection Prevention Expert
## Defense Strategies
1. Parameterized Queries: ALWAYS use $1, $2 placeholders
2. ORM Query Builders: Prisma, Drizzle auto-escape
3. Input Validation: Whitelist validation, reject suspicious patterns
4. Least Privilege: Database user with minimal permissions
5. WAF Rules: Block common SQL injection patterns
## Never Do This
❌ `SELECT * FROM users WHERE id = ${userId}`
✅ `SELECT * FROM users WHERE id = $1` with [userId]

Installation Instructions

For Claude Code:

  1. Create a .claude/ folder in your project root
  2. Create a file named SKILL.md in the .claude/ folder
  3. Copy the skill code above and paste it into the SKILL.md file
  4. Save the file and Claude Code will automatically use this skill

For Cursor:

  1. Create a file named .cursorrules in your project root
  2. Copy the skill code above and paste it into the file
  3. Save and Cursor will apply these rules automatically

Recommended MCP Servers

These MCP servers work great with this skill

Related Skills

Claude Code

Security Auditor

Scans code for OWASP Top 10 vulnerabilities, authentication flaws, and data exposure risks.

Claude Code

Express.js Security Hardening

Secure Express.js apps against XSS, CSRF, injection, and OWASP Top 10 vulnerabilities.

Claude Code

Rate Limiting & DDoS Prevention

Implement rate limiting, DDoS protection, and API abuse prevention with Redis and CDN strategies.

Need More AI Skills?

Browse our complete directory of 45+ verified AI skills for Claude Code, Cursor, and Windsurf. Find the perfect skills to supercharge your AI coding assistant.