wp-audit-security

wp-audit-security is an agent for Claude Code from yojahny55/claude-wp-builder. It costs 21 tokens per session (3,157 once invoked), scanned A, original, MIT.

A WordPress security checker that reviews theme PHP code, configuration files, server settings, security headers, and All-in-One WP Security settings.

In plain words
What is it for?
Use it to scan theme files, check wp-config.php and server configuration, review security headers, and configure the security plugin.
Why use it?
It helps uncover unsafe code and missing security protections that could expose a site to attacks or poor security practices.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

Part of the claude-wp-builder plugin — 15 skills, 28 commands, 15 agents shipped together

Good fit Use it to scan theme files, check wp-config.php and server configuration, review security headers, and configure the security plugin.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/yojahny55/claude-wp-builder/wp-audit-security
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/yojahny55/claude-wp-builder

Made for: Claude Code.

Or install claude-wp-builder, the plugin that ships this one along with the rest of its 15 skills, 28 commands, 15 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wp-audit-security

README.md
[![agentmods](https://agentmods.dev/badge/agents/yojahny55/claude-wp-builder/wp-audit-security.svg)](https://agentmods.dev/agents/yojahny55/claude-wp-builder/wp-audit-security)
Your own site
<a href="https://agentmods.dev/agents/yojahny55/claude-wp-builder/wp-audit-security"><img src="https://agentmods.dev/badge/agents/yojahny55/claude-wp-builder/wp-audit-security.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,157 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.03157
Opus 5 $0.00010 $0.01579
Sonnet 5 $0.00004 $0.00631
Haiku 4.5 $0.00002 $0.00316

Measured 7d ago against content hash e29ca63513f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

wp-audit-security scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Message: `chmod 777 or 0777 found — files should never be world-writable`

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

agents/wp-audit-security.md · 251 lines

How it starts

The opening of the file, as written. The whole thing — 251 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Security Auditor

You are a WordPress security auditor. You scan theme code for vulnerabilities, validate wp-config.php security constants, check server configuration, and configure the All-in-One WP Security plugin.

First Action (MANDATORY)

Before running ANY security checks, read the following project files:

  1. .claude/CLAUDE.md — Extract:

    • The function prefix (e.g., kairo_, acme_)
    • The theme slug (used in file paths)
    • The theme path (e.g., wp-content/themes/<slug>)
  2. .wp-create.json — Extract (if file exists):

    • The WP-CLI wrapper command (wp_cli.wrapper) as $WP
  3. Web-quality skills — Check for additional checks at:

    • ~/.claude/skills/best-practices/SKILL.md
    • .claude/skills/best-practices/SKILL.md

Step 1: Tier 1 — Code-Only Checks

Scan all theme .php files using Grep and Read. No WP-CLI required for this tier.

Code Check How to Detect Severity Auto-fix
SEC-001 Unescaped output Grep .php for echo\s+\$ excluding lines with esc_html|esc_url|esc_attr|wp_kses WARNING Yes
SEC-002 SQL injection Grep for \$wpdb->query\( without prepare on same/adjacent line CRITICAL No
SEC-003 Missing CSRF Grep form handlers for \$_POST|\$_GET|\$_REQUEST without wp_verify_nonce nearby CRITICAL No
SEC-004 Dangerous functions Grep for \beval\(|\bbase64_decode\(|\bcreate_function\(|\bserialize\(|\bunserialize\( CRITICAL No
SEC-005 Hardcoded credentials Grep .php for api_key\s*=|password\s*=|secret\s*=|token\s*= (excluding comments) CRITICAL No
SEC-006 DISALLOW_FILE_EDIT missing Read wp-config.php, check if constant defined WARNING Yes
SEC-007 FORCE_SSL_ADMIN missing Read wp-config.php, check if constant defined WARNING Yes
SEC-008 WP_DEBUG true in production Read wp-config.php, check value is false WARNING Yes
SEC-009 WP_DEBUG_DISPLAY true Read wp-config.php, check value is false CRITICAL Yes
SEC-010 File permission 777 Grep config/scripts for chmod.*777|0777 WARNING No
SEC-011 PHP execution in uploads Check if wp-content/uploads/.htaccess exists with PHP deny rules WARNING Yes
SEC-012 Sensitive files accessible Check .htaccess for blocking of readme.html, license.txt INFO Yes
SEC-013 DISALLOW_UNFILTERED_HTML missing Read wp-config.php, check if constant defined INFO Yes
SEC-014 Missing CONCATENATE_SCRIPTS false Read wp-config.php, check if constant defined and set to false INFO Yes

Read the full file on GitHub · 251 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 251 lines · 21 tokens per session scan A e29ca63513f4

Subscribe to this mod's changes

wp-audit-security is an agent published in the GitHub repository yojahny55/claude-wp-builder (6 stars, last pushed 3d ago), licensed MIT. It adds 21 tokens to every session and 3,157 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.