bobmatnyc avatar

Wordpress Security Validation

This teaches WordPress's three-layer security model: sanitize inputs, validate business logic, escape outputs. It's aimed at intermediate to advanced developers working on WordPress 6.7+ with PHP 8.3+ who need to prevent XSS, CSRF, and SQL injection vulnerabilities. The approach is practical and opinionated, which is exactly what you want for security. With 242 installs and clean audit passes from major security tools, it's seeing real adoption. If you're building WordPress plugins or themes and haven't internalized the "sanitize, validate, escape" pattern, this will get you there faster than piecing together documentation.

skills.sh installs
618
GitHub stars
79
last updated
Aug 21, 2026

Install

$ npx -y skills add bobmatnyc/claude-mpm-skills --skill wordpress-security-validation --agent claude-code

Installs into .claude/skills of the current project.

Files

WordPress Security & Data Validation

Version: 1.1.0 Target: WordPress 6.7+ | PHP 8.3+ Skill Level: Intermediate to Advanced

Overview

Security is not optional in WordPress development—it's fundamental. This skill teaches the three-layer security model that prevents XSS, CSRF, SQL injection, and other common web vulnerabilities through proper input sanitization, business logic validation, and output escaping.

The Golden Rule: "Sanitize on input, validate for logic, escape on output."

Why This Matters

Every year, thousands of WordPress sites are compromised due to security vulnerabilities in plugins and themes. Most of these attacks exploit one of three weaknesses:

  1. XSS (Cross-Site Scripting): Malicious JavaScript injected through unsanitized output
  2. CSRF (Cross-Site Request Forgery): Unauthorized actions performed on behalf of authenticated users
  3. SQL Injection: Database manipulation through unsanitized database queries

This skill provides complete, production-ready patterns for preventing all three attack vectors.


The Three-Layer Security Model

Sponsors

Details

Repository
github.com/bobmatnyc/claude-mpm-skills
Categories
Security, PHP & Laravel, Databases
First seen
Jun 3, 2026

More from bobmatnyc/claude-mpm-skills

All 158

Recommended

More Security
1aj-geddes avatarvulnerability-scanningaj-geddes/useful-ai-promptsAutomated vulnerability detection using OWASP tools, CVE databases, and security scanners. Use when performing security audits, compliance checks, or continuous617skills.sh installs
2aj-geddes avatarsecurity-testingaj-geddes/useful-ai-promptsIdentify security vulnerabilities through SAST, DAST, penetration testing, and dependency scanning. Use for security test, vulnerability scanning, OWASP, SQL in607skills.sh installs
3manutej avataroauth2-authenticationmanutej/luxor-claude-marketplaceComprehensive OAuth2 authentication skill covering authorization flows, token management, PKCE, OpenID Connect, and security best practices for modern authentic603skills.sh installs
4secondsky avatarapi-authenticationsecondsky/claude-skillsSecure API authentication with JWT, OAuth 2.0, API keys. Use for authentication systems, third-party integrations, service-to-service communication, or encounte549skills.sh installs
5aj-geddes avatarsecurity-headers-configurationaj-geddes/useful-ai-promptsConfigure HTTP security headers including CSP, HSTS, X-Frame-Options, and XSS protection. Use when hardening web applications against common attacks.519skills.sh installs
6davila7 avatarapi-security-best-practicesdavila7/claude-code-templatesImplement secure API design patterns including authentication, authorization, input validation, rate limiting, and protection against common API vulnerabilities466skills.sh installs