Works with the AI Agents you already use
WordPress Security Code Auditor
Expert Security Auditing for WordPress Modern WordPress security requires more than just pattern matching or basic linting.
$27.99
WordPress Security Code Auditor
Example session with this skill installed
Audit our lead-capture mu-plugin (lead-capture.php, pasted, about 120 lines). It registers wp_ajax_nopriv_save_lead, which inserts $_POST['email'] into a custom table with $wpdb->query and string concatenation, and a [lead_thanks] shortcode that echoes $_GET['ref'] back to the page.
- Read your context and instructions
- Compiled the wordpress security code
Mode: AUDIT. Exposure tier: E3 (unauthenticated AJAX and a public shortcode), +1 Impact applied.
Entry points
wp_ajax_nopriv_save_leadreads$_POST['email'][lead_thanks]reads$_GET['ref']
Findings
| # | Finding | Class | File:Line | CWE | Imp | Eff | Score |
|---|---|---|---|---|---|---|---|
| 1 | Email concatenated into $wpdb->query | 4 SQL | lead-capture.php:41 | CWE-89 | 5 | 1 | 25.0 |
| 2 | ref echoed unescaped | 2 Escaping | lead-capture.php:88 | CWE-79 | 5 | 1 | 25.0 |
| 3 | No nonce on save_lead | 3 Nonce | lead-capture.php:33 | CWE-352 | 3 | 3 | 3.0 |
Line numbers are from the pasted file. #1 and #2 block launch.
Patch for #1
$email = isset( $_POST['email'] ) ? sanitize_email( wp_unslash( $_POST['email'] ) ) : '';
if ( ! is_email( $email ) ) { wp_send_json_error( 'invalid', 400 ); }
$wpdb->insert( $wpdb->prefix . 'leads', array( 'email' => $email ), array( '%s' ) );
Patch for #2
$ref = isset( $_GET['ref'] ) ? sanitize_text_field( wp_unslash( $_GET['ref'] ) ) : '';
return '<p>' . esc_html( $ref ) . '</p>';
Next steps
- Add
check_ajax_referer( 'save_lead', 'nonce' )and send the nonce from the form. - Add
phpcs.xml.distwith WordPress.Security sniffs as a blocking CI step. - Say "harden" for full patches and the acceptance checklist.
Connects securely to your tools. The creator never sees your data.
About this skill
Expert Security Auditing for WordPress
Modern WordPress security requires more than just pattern matching or basic linting. This skill transforms your AI agent into a senior application security engineer specialized in the WordPress ecosystem. It focuses on deep taint-flow analysis rather than simple regex hits—distinguishing between truly vulnerable code and safe, properly handled data.
Advanced Taint-Flow Analysis
Unlike generic scanners, this tool understands context. It knows that echo $var is safe if it was escaped three lines prior, but a database query is a critical risk if it bypasses $wpdb->prepare, even if the input was partially cleaned. It specifically targets the "Big 8" WordPress vulnerability classes, including SQL injection, XSS, CSRF (nonce issues), and improper capability checks.
Two Specialized Modes
- AUDIT: Provides a comprehensive, scored findings table with Impact/Effort metrics and exploit sketches based on your specific exposure tier (E1-E3).
- HARDEN: Goes beyond reporting by delivering ready-to-merge patches that fix vulnerabilities while adhering to WordPress Coding Standards (WPCS).
Why It's Better Than Manual Prompting
Prompting an AI to "find security bugs" often results in generic OWASP advice and false positives. This skill enforces a rigorous, multi-gate methodology including exposure-tier calibration, precise taint-flow tracing, and a weighted scoring algorithm (Score = Impact² / Effort) to ensure you fix the most dangerous bugs first.
- Static analysis only: cannot interact with live databases.
- Struggles with obfuscated or heavily minified JS.
- Focused on code, not server-level WAF or firewall configs.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 4 months ago