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 agentmods add skills/eresussecurity/appsec-skills/eresus-php-auditnpx skills add EresusSecurity/appsec-skills --skill eresus-php-auditgit clone --depth 1 https://github.com/EresusSecurity/appsec-skillsWrote 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/eresussecurity/appsec-skills/eresus-php-audit)<a href="https://agentmods.dev/skills/eresussecurity/appsec-skills/eresus-php-audit"><img src="https://agentmods.dev/badge/skills/eresussecurity/appsec-skills/eresus-php-audit.svg" alt="Measured on agentmods" 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.00092 | $0.02911 |
| Opus 5 | $0.00046 | $0.01456 |
| Sonnet 5 | $0.00018 | $0.00582 |
| Haiku 4.5 | $0.00009 | $0.00291 |
Grade A, and why
eresus-php-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 6d 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 — 372 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PHP Security Audit
Purpose
Perform a comprehensive, depth-first security audit of PHP codebases. This skill provides the complete knowledge of Kunlun-M's CVI rule set, organized by vulnerability class, plus framework-specific patterns for Laravel, WordPress, Symfony, and modern PHP 8.x applications.
Use view_file and grep_search exclusively. No terminal commands.
Audit Workflow
Phase 1: Reconnaissance
- Identify the PHP framework/CMS (Laravel, WordPress, Symfony, CodeIgniter, raw PHP)
- Check
composer.json/composer.lockfor known vulnerable dependencies - Map entry points: routes, controllers, REST endpoints, admin pages, AJAX handlers
- Identify the autoloader and class loading mechanism
- Check PHP version requirements (
phpconstraint incomposer.json)
Phase 2: Entry Point Discovery
Inspired by Kunlun-M's EntranceFinder plugin — systematically find all user-facing entry points:
- Direct file access — find all
.phpfiles that can be accessed directly (not included/required) - Route definitions — check framework routing files
- AJAX handlers — WordPress
wp_ajax_*, Laravel API routes, custom handlers - CLI entry — Artisan commands, WP-CLI commands, custom scripts
- Cron jobs — scheduled tasks that process external data
Search patterns for entry points:
- Files with
$_GET,$_POST,$_REQUEST,$_FILES,$_COOKIE,$_SERVER - Files with
file_get_contents('php://input') - Laravel:
Route::get,Route::post,Route::any,Route::resource - WordPress:
add_action('wp_ajax_,add_action('rest_api_init - Symfony:
#[Route(,@Route(,routing.yamldefinitions
CVI Rules — Injection
CVI-1001: SSRF
Search for HTTP request functions with user-controlled URLs:
curl_setopt($ch, CURLOPT_URL, $userInput)
file_get_contents($userUrl)
fopen($userUrl, 'r')
$client->get($userInput) // Guzzle
$client->request('GET', $userInput)
Severity: HIGH — can lead to internal service access, cloud metadata theft
Trace: Check if URL comes from $_GET, $_POST, database with user data
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 6d ago First seen · 372 lines · 92 tokens per session scan A afcf8a7305a1
eresus-php-audit is a skill published in the GitHub repository EresusSecurity/appsec-skills (7 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 92 tokens to every session and 2,911 once invoked, about $0.0005 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-31.
Other skills, from other repositories
ai-skill-auditor
A universal, dependency-free Node.js tool to statically audit AI Skills and local agents for malicious patterns.
smart-contract-audit
Comprehensive smart contract security audit framework with multi-expert analysis. Use for full audits of Ethereum / EVM Solidity and Vyper, Solana / SVM Anchor Rust, TON / FunC / Tact, or Sui / Move projects.
jwt-attacks
Forge and re-sign captured JWTs to test signature validation - algorithm confusion (alg:none, RS256 to HS256), key injection, and secret cracking. Use when testing JWT or bearer-token auth.
infrastructure-audit
Comprehensive infrastructure security audit framework for IaC, Docker, Kubernetes, and cloud configurations. Use for full infrastructure audits.
broken-access-control
Replay captured requests with swapped identities and bumped object IDs to surface broken access control. Use when testing for IDOR or authz flaws.
http-request-smuggling
Detect HTTP request smuggling by desynchronising front-end and back-end request parsing, using raw-socket timing and differential probes. Use when testing for HTTP desync (CL.TE, TE.CL).