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.
npx skills add trk/processwire-boost --skill pw-security-auditgit clone --depth 1 https://github.com/trk/processwire-boostWrote 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.
[](https://agentmods.dev/skills/trk/processwire-boost/pw-security-audit)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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=0disables pagination (unlimited), and nestedlimit=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()orinclude=all/include=unpublished/check_access=0with 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, rejectctype_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::statusSystemIDpages,Field::flagSystem | Field::flagPermanent | Field::flagGlobalfields,Template::flagSystemtemplates, and built-insuperuser/guestusers and roles.
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.
- 12d ago Changed · +15 lines 637a29efbc33
- 29d ago Changed · -105 lines · +9 tokens per session acd3582ba03a
- 1mo ago Changed · +5 lines 81542509f507
- 3mo ago First seen · 215 lines · 40 tokens per session scan A 80b9ed4a6120
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.
pw-security-audit compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pw-security-audittrk/processwire-boost | Skill | 5 | 13d ago | MIT | A | 49 | Claude Code, Codex |
| mk:context-auditngocsangyem/MeowKit | Skill | 17 | yesterday | MIT | A | 24 | Claude Code |
| cf-clicloudflare/skills | Skill | 3.5k | 6d ago | Apache-2.0 | A | 78 | Claude Code |
| workers-best-practicescloudflare/skills | Skill | 3.5k | 6d ago | Apache-2.0 | A | 25 | Claude Code |
| cloudflare-app-bootstrapcloudflare/skills | Skill | 3.5k | 6d ago | Apache-2.0 | A | 69 | Claude Code |
| ai-answer-auditelvisun/newsjack | Skill | 1.7k | 6d ago | MIT | A | 70 | Claude Code |
| find-journalistselvisun/newsjack | Skill | 1.7k | 6d ago | MIT | A | 52 | Claude Code |