eresus-php-audit

eresus-php-audit is a skill for Claude Code, Codex from EresusSecurity/appsec-skills. It costs 92 tokens per session (2,911 once invoked), scanned A, original, Apache-2.0.

A detailed security review method for PHP code, including common web vulnerabilities and patterns specific to Laravel, WordPress, Symfony, and other PHP applications.

In plain words
What is it for?
Use it to audit PHP applications, CMS installations, routes, controllers, REST or AJAX endpoints, command-line entry points, and Composer dependencies for security problems.
Why use it?
It helps find unsafe input handling, authentication weaknesses, dangerous file operations, insecure deserialization, and vulnerable dependencies before they can be exploited.

Skill for Claude CodeCodex

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

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 skills/eresussecurity/appsec-skills/eresus-php-audit
Any agent
npx skills add EresusSecurity/appsec-skills --skill eresus-php-audit
Clone the repo
git clone --depth 1 https://github.com/EresusSecurity/appsec-skills

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 eresus-php-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/eresussecurity/appsec-skills/eresus-php-audit.svg)](https://agentmods.dev/skills/eresussecurity/appsec-skills/eresus-php-audit)
Your own site
<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>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,911 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.1 $0.00092 $0.02911
Opus 5 $0.00046 $0.01456
Sonnet 5 $0.00018 $0.00582
Haiku 4.5 $0.00009 $0.00291

Measured 6d ago against content hash afcf8a7305a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

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.

skills/eresus-php-audit/SKILL.md · 372 lines

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

  1. Identify the PHP framework/CMS (Laravel, WordPress, Symfony, CodeIgniter, raw PHP)
  2. Check composer.json / composer.lock for known vulnerable dependencies
  3. Map entry points: routes, controllers, REST endpoints, admin pages, AJAX handlers
  4. Identify the autoloader and class loading mechanism
  5. Check PHP version requirements (php constraint in composer.json)

Phase 2: Entry Point Discovery

Inspired by Kunlun-M's EntranceFinder plugin — systematically find all user-facing entry points:

  1. Direct file access — find all .php files that can be accessed directly (not included/required)
  2. Route definitions — check framework routing files
  3. AJAX handlers — WordPress wp_ajax_*, Laravel API routes, custom handlers
  4. CLI entry — Artisan commands, WP-CLI commands, custom scripts
  5. 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.yaml definitions

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

Read the full file on GitHub · 372 lines

Files

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.

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. 6d ago First seen · 372 lines · 92 tokens per session scan A afcf8a7305a1

Subscribe to this mod's changes

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.