pw-security-audit

pw-security-audit is a skill for Claude Code, Codex from trk/processwire-boost. It costs 49 tokens per session (1,887 once invoked), scanned A, original, MIT.

A security review guide for ProcessWire, a PHP content management system. It covers common web risks, including unsafe input, incorrect access permissions, cross-site request forgery, and SQL injection.

In plain words
What is it for?
Use it to audit ProcessWire modules, hooks, templates, or MCP endpoints for security problems.
Why use it?
It helps identify ways attackers could submit harmful data, bypass permissions, or manipulate database queries.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to audit ProcessWire modules, hooks, templates, or MCP endpoints for security problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/trk/processwire-boost/pw-security-audit
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.

Any agent
npx skills add trk/processwire-boost --skill pw-security-audit
Clone the repo
git clone --depth 1 https://github.com/trk/processwire-boost

Made for: Claude Code, Codex.

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 pw-security-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/trk/processwire-boost/pw-security-audit/github.svg)](https://agentmods.dev/skills/trk/processwire-boost/pw-security-audit)
Your own site
<a href="https://agentmods.dev/skills/trk/processwire-boost/pw-security-audit"><img src="https://agentmods.dev/badge/skills/trk/processwire-boost/pw-security-audit/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 pw-security-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/trk/processwire-boost/pw-security-audit"><img src="https://agentmods.dev/badge/skills/trk/processwire-boost/pw-security-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,887 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.00049 $0.01887
Opus 5.5 $0.00020 $0.00755
Sonnet 5.5 $0.00010 $0.00377
Haiku 4.5 $0.00005 $0.00189

Measured 12d ago against content hash 637a29efbc33, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pw-security-audit 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 12d 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.

resources/boost/skills/pw-security-audit/SKILL.md · 130 lines

How it starts

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

ProcessWire Security Audit

Audit ProcessWire applications for exploitable vulnerabilities, access-control gaps, and unsafe input handling using ProcessWire-native mitigations ($sanitizer, $user, $page->viewable(), $page->editable(), $session->CSRF, $database->prepare(), FileValidatorModule).

Documentation Reference (Source of Truth)

  • Core CLI: php index.php docs get-text Sanitizer, php index.php docs get-text Session, php index.php docs get-text Users, php index.php docs get-text FileValidatorModule
  • Core Markdown: wire/core/Sanitizer/API.md, wire/core/Session/API.md, wire/core/Users/API.md, wire/core/WireDatabase/API.md

Core Audit Checklist

1. Selector Injection & Top-Level Limit Enforcement ($sanitizer->selectorValue())

  • Every external value interpolated into a $pages->find(), $pages->findOne(), $pages->get(), $pages->count(), or $page->children() selector string MUST be sanitized with $sanitizer->selectorValue() (or cast to (int) for numeric IDs).
  • Enforce a positive limit=N (N >= 1) at the top level of $pages->find() queries: limit=0 disables pagination (unlimited), and nested limit= clauses inside [...] sub-selectors (e.g., items=[limit=5]) or (...) groups do not bound the outer query.
// SAFE
$q = $sanitizer->selectorValue((string) $input->get('q'));
$results = $pages->find("template=product, title|summary%={$q}, limit=50");

// UNSAFE — attacker can inject ", include=all, template=user"
$q = $input->get('q');
$results = $pages->find("title%={$q}");

2. RBAC, Numeric Name Resolution & Core Entity Guards

  • Does the code use $pages->get() or include=all / include=unpublished / check_access=0 with user-controlled IDs or paths and then render or mutate the page without checking $page->viewable() or $page->editable()?
  • Are custom URL hooks ($wire->addHook('/api/...', ...)) and Process module actions enforcing $user->isLoggedin() and $user->hasPermission('...')?
  • Numeric-String ID Trap on RBAC Repositories: $users->get(), $roles->get(), and $permissions->get() treat numeric strings (e.g., '41') as page IDs! When looking up by name from untrusted input, reject ctype_digit($raw) and verify $item->name:
  • Protected System Entities: Block destructive actions (trash, delete, rename, uninstall, role revocation) on root (id=1), admin, trash, 404, RBAC container pages ($config->usersPageID, rolesPageID, permissionsPageID), Page::statusSystem | Page::statusSystemID pages, Field::flagSystem | Field::flagPermanent | Field::flagGlobal fields, Template::flagSystem templates, and built-in superuser / guest users and roles.

Read the full file on GitHub · 130 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. 12d ago Changed · +15 lines 637a29efbc33
  2. 29d ago Changed · -105 lines · +9 tokens per session acd3582ba03a
  3. 1mo ago Changed · +5 lines 81542509f507
  4. 3mo ago First seen · 215 lines · 40 tokens per session scan A 80b9ed4a6120

Subscribe to this mod's changes

pw-security-audit is a skill published in the GitHub repository trk/processwire-boost (5 stars, last pushed 13d ago), licensed MIT. It adds 49 tokens to every session and 1,887 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-31.

Related

pw-security-audit compared with skills from other repositories

pw-security-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pw-security-audittrk/processwire-boostSkill513d agoMITA49Claude Code, Codex
mk:context-auditngocsangyem/MeowKitSkill17yesterdayMITA24Claude Code
cf-clicloudflare/skillsSkill3.5k6d agoApache-2.0A78Claude Code
workers-best-practicescloudflare/skillsSkill3.5k6d agoApache-2.0A25Claude Code
cloudflare-app-bootstrapcloudflare/skillsSkill3.5k6d agoApache-2.0A69Claude Code
ai-answer-auditelvisun/newsjackSkill1.7k6d agoMITA70Claude Code
find-journalistselvisun/newsjackSkill1.7k6d agoMITA52Claude Code