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 trilwu/secskills --skill auditing-php-applicationsgit clone --depth 1 https://github.com/trilwu/secskillsWrote 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/trilwu/secskills/auditing-php-applications)<a href="https://agentmods.dev/skills/trilwu/secskills/auditing-php-applications"><img src="https://agentmods.dev/badge/skills/trilwu/secskills/auditing-php-applications.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector pass
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.00129 | $0.02813 |
| Opus 5 | $0.00064 | $0.01406 |
| Sonnet 5 | $0.00026 | $0.00563 |
| Haiku 4.5 | $0.00013 | $0.00281 |
Grade A, and why
auditing-php-applications 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 8d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- `file_get_contents`/`curl`/`fopen` on a user-supplied URL is SSRF — route the How it starts
The opening of the file, as written. The whole thing — 209 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Auditing PHP Applications
This is the PHP-specific layer on top of auditing-code-for-vulnerabilities.
Take the methodology from that skill — context → attack surface → bug-class
hunt → variant analysis → the four-question verification gate — and apply the
PHP sink catalog below to it. This skill exists because PHP has footguns no
language-agnostic methodology carries: features that turn a file read into
remote code execution, and comparison rules that turn == into an auth bypass.
The collection deliberately has no per-language audit skills except this one. PHP earns the exception because it dominates the legacy-web and WordPress/Magento space where critical bugs actually live, and because its dynamic features fail in ways a reviewer must be primed for specifically.
When to Use
- Reviewing a PHP codebase or plugin for exploitable vulnerabilities
- Auditing a WordPress, Magento, Joomla, or Laravel application's source
- Tracing a suspected RCE, LFI, SQLi, or object-injection path in PHP
- Deciding whether a
unserialize,include, or==on user input is exploitable
When NOT to Use
- General audit methodology, or a non-PHP language — use
auditing-code-for-vulnerabilities; this skill assumes it - Finding a planted webshell or backdoor rather than a vulnerability — use
hunting-web-backdoors - Building the deserialization exploit chain once you have the sink — use
exploiting-deserialization - Black-box testing a running app — use
testing-web-applications - Reviewing only the diff of a change — use
reviewing-code-changes
Sinks by Bug Class
Trace user input (superglobals, headers, uploaded filenames, DB values that were once user input) to each of these. A sink is only a bug when a source reaches it.
Remote code execution
- Direct eval sinks:
eval,assert(string arg, pre-8.0),preg_replacewith/e(pre-7.0),create_function(pre-8.0),mb_ereg_replace/mb_eregi_replacewith theeoption. - Command execution:
system,exec,passthru,shell_exec, backticks,proc_open,popen,pcntl_exec. Watchescapeshellargvsescapeshellcmdmisuse —escapeshellcmddoes not prevent argument injection. - Dynamic dispatch:
$func()where$funcderives from input,call_user_func/call_user_func_array,array_map/usort/preg_replace_callbackwith a user-influenced callback.
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.
- 8d ago First seen · 209 lines · 129 tokens per session scan A f9950f49df43
auditing-php-applications is a skill published in the GitHub repository trilwu/secskills (137 stars, last pushed 3d ago), licensed MIT. It adds 129 tokens to every session and 2,813 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
mvc-expert
Expert guidelines to refactor legacy PHP codebases into clean, modern, and scalable MVC-structured projects / Pedoman ahli untuk merefaktor codebase PHP lama menjadi proyek terstruktur MVC yang bersih, modern, dan skalabel.
yao-geoflow-template
Use only for explicit legacy GEOFlow template skill questions, old PHP template-package contracts, or historical outputs using root index.php/article.php/category.php/archive.php and includes/.php. Route current Laravel Blade themes, reference-site cloning, homepage modules, leadform, theme editor, channel frontend…
wp-plugin-bootstrap
Scaffolds and reviews the main entry-point PHP file of a WordPress plugin — header (with Requires Plugins for WP 6.5+), ABSPATH guard, file/path/url/version constants, Composer PSR-4 autoload with src/ as the default class root, optional scoped fallback for release ZIP safety, PascalCase class filenames that match…
bd-attribute
Add a new declarative attribute to the better-data library (e.g. #[ArrayOf], #[Default], domain hint). Attributes live in src/Attribute/ as final readonly classes with constructor-promoted public properties — pure data carriers, never business logic. The failure mode that catches every contributor is "partial wiring"…
bd-better-route-bridge
Compose better-data DTOs with the better-route library — use BetterRouteBridge::{get, post, put, patch, delete} to register a REST route that hydrates the request into a DTO, validates, calls the handler with (DataObject, mixed $request), and presents returned DataObject values through Presenter with…
bd-data-object
Add or modify DataObject subclasses inside the better-data library — the immutable, attribute-decorated DTOs the whole library is built around. Every DTO is final readonly class extends DataObject with constructor-promoted typed parameters; sources hydrate via ::fromArray, sinks project via SinkProjection, the…