dr-robert-li/cowork-wordpress-expert/security-analysis
Claude Code and agent skill by dr-robert-li/cowork-wordpress-expert
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Evaluates WordPress codebase against OWASP Top 10 and WP-specific vulnerability patterns. Use when reviewing code security, auditing plugins/themes, or investigating security incidents.
Install
npx vskill@latest install dr-robert-li/cowork-wordpress-expert/security-analysisSKILL.md
The same SKILL.md was published earlier as dr-robert-li/cowork-wordpress-expert/security-analysis.
Domain 1: Security Audit
Evaluate the codebase and configuration against OWASP Top 10 and WordPress-specific vulnerability patterns.
1.1 Input Validation & Sanitization
- All user inputs pass through appropriate WordPress sanitization functions (
sanitize_text_field(),sanitize_email(),absint(),wp_kses(),wp_kses_post()) $_GET,$_POST,$_REQUEST,$_SERVER,$_COOKIEare never used directly without sanitization- Database inputs use
$wpdb->prepare()for all parameterized queries — no raw string concatenation in SQL - File upload validation checks MIME type, extension, and file size using WordPress APIs
esc_url()used for all URLs before output or redirect
1.2 Output Escaping
- All dynamic output escaped with context-appropriate functions:
- HTML context:
esc_html() - Attribute context:
esc_attr() - JavaScript context:
esc_js()orwp_json_encode() - URL context:
esc_url() - Translation with escaping:
esc_html__(),esc_html_e(),esc_attr__() - Template files reviewed for raw
echoof user-controlled data - No use of
eval(),assert(),preg_replace()withemodifier, orcreate_function()
1.3 Authentication & Authorization
- All AJAX handlers check
check_ajax_referer()or equivalent nonce verification - All form submissions verify nonces via
wp_verify_nonce() - REST API endpoints use
permission_callback(never__return_truefor sensitive operations) - Capability checks (
current_user_can()) before any privileged operation - No hardcoded credentials, API keys, or secrets in source code
- Authentication cookies use
httpOnly,Secure, andSameSiteflags where applicable
1.4 Cross-Site Request Forgery (CSRF)
- Every form includes
wp_nonce_field() - Every form handler verifies nonce before processing
- AJAX actions use
wp_create_nonce()/check_ajax_referer() - State-changing operations never triggered by GET requests alone
1.5 SQL Injection
- All database queries use
$wpdb->prepare()with proper placeholders (%s,%d,%f) - No direct concatenation of variables into SQL strings
LIKEqueries use$wpdb->esc_like()followed by$wpdb->prepare()- Custom table creation uses
dbDelta()with proper schema - No use of
query()with unsanitized input
1.6 File Security
- Direct file access prevented with
ABSPATHcheck at top of PHP files - File uploads restricted to safe types, stored outside webroot or with
.htaccessprotection - Directory listing disabled
wp-config.phpnot accessible from web- Debug log files (
debug.log) not publicly accessible - No
phpinfo()calls in production code - File permissions follow WordPress recommendations (644 for files, 755 for directories)
1.7 Data Exposure
WP_DEBUGset tofalsein productionWP_DEBUG_DISPLAYset tofalsein productionWP_DEBUG_LOGeitherfalseor logging to a non-public path- Error reporting suppressed in production (
display_errors = Off) - Sensitive data not stored in
wp_optionswithout encryption - User enumeration mitigated (author archives, REST API user endpoint)
- WordPress version not exposed in HTML source or headers
readme.htmlandlicense.txtremoved or access-restricted
1.8 Obfuscated / Malicious Code Detection
- Scan for
base64_decode(),gzinflate(),str_rot13(),gzuncompress()chains - Flag any
eval()usage with dynamic content - Detect obfuscated variable names or encoded strings
- Check for unauthorized file modifications (compare against known-good checksums)
- Identify backdoor patterns: hidden admin accounts, rogue cron jobs, injected
wp_optionsentries
1.9 Dependency & Supply Chain
- All plugins and themes sourced from reputable origins
- No nulled/pirated plugins or themes
- Plugin and theme versions checked against known vulnerability databases (WPScan, Patchstack, Wordfence Intelligence)
- Composer dependencies audited for known vulnerabilities
- npm/node dependencies (if applicable) checked with
npm audit
Quick Reference: WordPress Red Flags
Immediate investigation triggers — if you encounter any of these, escalate severity:
eval()with any dynamic contentbase64_decode()followed byeval()orinclude- SQL queries without
$wpdb->prepare() wp_ajax_nopriv_handlers without rate limiting or input validationWP_DEBUGset totruewithWP_DEBUG_DISPLAYalsotruein production- Default
wp_table prefix in production - WordPress core files modified (non-standard checksums)
- Admin user with ID 1 and username "admin"
- Empty
index.phpfiles missing from directories (directory traversal risk) .gitdirectory accessible from webwp-config.phpbackup files in webroot (wp-config.php.bak,wp-config.old)- Plugins not updated for 2+ years with known vulnerabilities
- PHP version below 8.0 (end of security support)
- MySQL version below 8.0 / MariaDB below 10.5
Tool Usage: Security Analysis Commands
Security-Specific Static Analysis
WordPress Core Integrity
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/security-analysis/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dr-robert-li/cowork-wordpress-expert/security-analysis)