security-reviewer

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

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.

agentmods
npx agentmods add agents/pluginslab/wp-agentic-kit/security-reviewer
Clone the repo
git clone --depth 1 https://github.com/pluginslab/wp-agentic-kit

Made for: Claude Code.

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. Scan, not verified.
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 $0.00039 $0.00758
Opus 5 $0.00019 $0.00379
Sonnet 5 $0.00008 $0.00152
Haiku 4.5 $0.00004 $0.00076

Measured yesterday against content hash 76618e98e909, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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
  • Severitycritical, 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. yesterday 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 (18 stars, last pushed 2mo ago), licensed MIT. It adds 39 tokens to every session and 758 once invoked, about $0.0002 per session on Opus 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.

Related

Other agents, from other repositories

test-engineer

Test engineer agent for bug reproduction and verification. Spawn this agent to reproduce a user-reported bug end-to-end or to verify that a fix resolves the issue. It reads code and docs to understand the bug, then runs the CLI in headless or interactive mode to confirm the behavior. It can write test scripts as a…

QwenLM/qwen-code · 119 tokens

diary-writer

generate a diary for user.

QwenLM/qwen-code · 10 tokens

triage-labels

Label vocabulary for triaging/grilling issues in this repository. Managed by smallhours setup — edit .smallhours.yml labels: to rename, then re-run setup; do not edit this file by hand.

bcanfield/agentic-tech-debt · 0 tokens

developer

Implements bounded delivery slices with clear acceptance criteria. TRIGGER when: (1) task has explicit files-to-modify and definition of done, (2) slice is single-role with no architectural uncertainty, (3) the mandatory architect decomposition gate has already been cleared for this task. SKIP: strategic decisions…

yahor-punko/mavericks-os · 0 tokens

architect

Pre-task analysis and architecture design. TRIGGER for all tasks, without exception — mandatory gate before any sub-agent is spawned. Main Agent provides raw task description and codebase context; architect determines task boundaries and returns decomposition. SKIP: implementation, external technology research …

yahor-punko/mavericks-os · 0 tokens

qa

Validates completed slices against acceptance criteria. TRIGGER when: (1) developer marks a slice devdone or readyforqa, (2) runtime or manual verification is required. SKIP: artifact-only or unit-only tasks (validator run / test suite serves as QA), tasks still inprogress.

yahor-punko/mavericks-os · 0 tokens