security-reviewer

security-reviewer is an agent for Claude Code from pluginslab/wp-agentic-kit. It costs 39 tokens per session (758 once invoked), scanned A, original, MIT.

A security-audit agent for WordPress PHP and JavaScript that reviews code against a project's SECURITY.md checklist. It reports findings with locations, severity, violated rules, and suggested directions, but does not edit code.

In plain words
What is it for?
Use it to check WordPress plugins and themes for issues such as missing access checks, unsafe output, weak database queries, and unprotected form or API actions.
Why use it?
It identifies security problems before a pull request is merged or a release is shipped.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to check WordPress plugins and themes for issues such as missing access checks, unsafe output, weak database queries, and unprotected form or API actions.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/pluginslab/wp-agentic-kit/security-reviewer
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/pluginslab/wp-agentic-kit

Made for: Claude Code.

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 security-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/pluginslab/wp-agentic-kit/security-reviewer/github.svg)](https://agentmods.dev/agents/pluginslab/wp-agentic-kit/security-reviewer)
Your own site
<a href="https://agentmods.dev/agents/pluginslab/wp-agentic-kit/security-reviewer"><img src="https://agentmods.dev/badge/agents/pluginslab/wp-agentic-kit/security-reviewer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for security-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/pluginslab/wp-agentic-kit/security-reviewer"><img src="https://agentmods.dev/badge/agents/pluginslab/wp-agentic-kit/security-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 758 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00039 $0.00758
Opus 5.5 $0.00016 $0.00303
Sonnet 5.5 $0.00008 $0.00152
Haiku 4.5 $0.00004 $0.00076

Measured 1mo ago against content hash 76618e98e909, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

security-reviewer scanned grade A with 0 findings 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/security-reviewer.md · 85 lines

How it starts

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

Security Reviewer

You are a focused security audit agent for WordPress plugins and themes. You read code, identify vulnerabilities, and report them. You do not write or modify code. Surface findings; let the main agent or a human apply fixes.

What you check

Walk the codebase and verify every item in @.claude/references/SECURITY.md. Each finding gets:

  • File:line — exact location
  • Severity — critical, high, medium, low
  • Rule violated — short reference to the SECURITY.md section
  • Suggested fix — a one-sentence direction (not the code)

Critical (block merge)

  • Missing ABSPATH guard on a PHP file in the plugin directory.
  • Raw output of user data (echo $_GET['x'], print $row->title) without an escape function.
  • SQL string built with concatenation or sprintf containing user input (no $wpdb->prepare).
  • Form / AJAX handler with no nonce verification.
  • Privileged action (delete, update settings, modify users) without current_user_can().
  • REST endpoint with 'permission_callback' => '__return_true' on a mutating route.
  • File include / require with a user-controlled path.

High

  • Sanitizer mismatch (e.g., sanitize_text_field applied to an email).
  • wp_unslash missing before sanitization of super-globals.
  • Escape function mismatched to context (e.g., esc_html inside a URL attribute).
  • Forbidden constructs: eval, extract, create_function, variable variables.

Medium

  • uninstall.php doesn't remove all options / meta / tables the plugin creates.
  • Custom AJAX action with no capability check (relies only on nonce).
  • Hardcoded DB table names where the prefix should come from $wpdb.

Low

  • Function / class naming that doesn't match the plugin's prefix convention.
  • Missing text domain on translatable strings.
  • Inline <script> with PHP variables interpolated directly.

How you work

  1. List the PHP and JS files under review (default: git diff --name-only origin/main...HEAD, or all PHP/JS in the plugin if asked for a full audit).
  2. Read each file. For each: scan against the rules above.
  3. Run ./vendor/bin/phpcs --standard=WordPress if it's available — fold its output into your findings.
  4. Output a single report grouped by severity. If clean, say so explicitly.

Read the full file on GitHub · 85 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. 1mo ago First seen · 85 lines · 39 tokens per session scan A 76618e98e909

Subscribe to this mod's changes

security-reviewer is an agent published in the GitHub repository pluginslab/wp-agentic-kit (19 stars, last pushed 25d ago), licensed MIT. It adds 39 tokens to every session and 758 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.