snr-php-auditor

snr-php-auditor is an agent for Claude Code from Kin9Zeus/senior-engineer-skills. It costs 111 tokens per session (762 once invoked), scanned A, original, MIT.

A read-only security review for PHP applications and the PHP runtime that serves them. PHP is a programming language commonly used for web servers; the review also checks its server configuration and deployment environment.

In plain words
What is it for?
Use it to inspect PHP versions and server modes, configuration, deserialization, file includes, uploads, injection risks, and proposed code or configuration fixes.
Why use it?
It helps identify outdated runtimes, unsafe PHP settings, and PHP-specific flaws without exploiting the system. It also separates verified facts from claims that must be checked against official advisories.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the senior-engineer-skills plugin — 20 skills, 14 commands, 8 agents shipped together

Good fit Use it to inspect PHP versions and server modes, configuration, deserialization, file includes, uploads, injection risks, and proposed code or configuration fixes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kin9zeus/senior-engineer-skills/snr-php-auditor
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.

Clone the repo
git clone --depth 1 https://github.com/Kin9Zeus/senior-engineer-skills

Made for: Claude Code.

Or install senior-engineer-skills, the plugin that ships this one along with the rest of its 20 skills, 14 commands, 8 agents.

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 snr-php-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/kin9zeus/senior-engineer-skills/snr-php-auditor/github.svg)](https://agentmods.dev/agents/kin9zeus/senior-engineer-skills/snr-php-auditor)
Your own site
<a href="https://agentmods.dev/agents/kin9zeus/senior-engineer-skills/snr-php-auditor"><img src="https://agentmods.dev/badge/agents/kin9zeus/senior-engineer-skills/snr-php-auditor/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 snr-php-auditor

Your own site · 80×15
<a href="https://agentmods.dev/agents/kin9zeus/senior-engineer-skills/snr-php-auditor"><img src="https://agentmods.dev/badge/agents/kin9zeus/senior-engineer-skills/snr-php-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 762 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.00111 $0.00762
Opus 5.5 $0.00044 $0.00305
Sonnet 5.5 $0.00022 $0.00152
Haiku 4.5 $0.00011 $0.00076

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

Security

Grade A, and why

snr-php-auditor 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 2d 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.

agents/snr-php-auditor.md · 57 lines

How it starts

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

You are a senior PHP security engineer. You review code and configuration; you do not exploit anything and you do not send traffic to hosts you were not given.

You are read-only: report findings and propose diffs.

Load the skill

Read php-hardening/SKILL.md and its references. The incident facts are dated 2026-10-23 — for any version or advisory claim, say "per the advisory as reported by CISA/Tenable; verify against the official PHP advisory and the distribution's tracker". Never assert a CVE or fixed version from memory.

Method

  1. Inventory — run php-hardening/scripts/php-check.sh and read its output as leads. Then find the truth: which PHP serves requests (FPM, mod_php, container, platform build)? Resolve floating tags to the running build. Note bundled PHP (panels, appliances, CI images) and EOL branches.
  2. Runtime status — is each runtime at or above the fixed release for its branch, or a vendor-fixed build? Were workers restarted? Is the running build verified? If not: P0, with the interim mitigations from references/php2shell-response.md and the compromise-assessment steps.
  3. Configuration — compare with references/php-ini-baseline.md: errors off, expose_php, remote-inclusion flags, session settings, upload and request limits, FPM pool isolation, clear_env, code not writable by the PHP user, uploads non-executable, mod_php use.
  4. Code — references/php-code-security.md classes in yield order: SQL injection, unserialize, file inclusion/traversal, command execution, uploads, authentication/sessions/CSRF, type juggling, SSRF, dangerous features. Read each grep hit; grep for the mitigating control before declaring a finding.
  5. Ecosystem — composer.lock committed and composer audit run by the user (you do not contact the network), plugin/script review; WordPress plugin and hardening checklist; Laravel/Symfony production settings.
  6. Secrets reachable by the PHP process — list them; if the runtime was exposed and unpatched, recommend rotation (security-incident-response).

Read the full file on GitHub · 57 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. 2d ago First seen · 57 lines · 111 tokens per session scan A 5ae2a658bf01

Subscribe to this mod's changes

snr-php-auditor is an agent published in the GitHub repository Kin9Zeus/senior-engineer-skills (3 stars, last pushed 2d ago), licensed MIT. It adds 111 tokens to every session and 762 once invoked, about $0.0004 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-10-24.

Related

Other agents, from other repositories

wp-template

PHP/WordPress template specialist — generates template parts, page templates, header, footer using WordPress best practices and project i18n helpers.

yojahny55/claude-wp-builder · 31 tokens

php-expert

Use when: composer.json present WITHOUT an artisan file. Do NOT use for: Laravel apps (composer.json + artisan → laravel-expert), frontend (framework experts).

fusengine/agents · 38 tokens

php-pro

Use this agent when working with PHP 8.3+ projects that require strict typing, modern language features, and enterprise framework expertise (Laravel or Symfony). Use when building scalable applications, optimizing performance, or requiring async/Fiber patterns.

alexmmatos/essentials-claude-code · 50 tokens

laravel-specialist

Use when building Laravel 10+ applications, architecting Eloquent models with complex relationships, implementing queue systems for async processing, or optimizing API performance.

alexmmatos/essentials-claude-code · 35 tokens

php-developer

Write idiomatic PHP code with design patterns, SOLID principles, and modern best practices. Implements PSR standards, dependency injection, and comprehensive testing. Use PROACTIVELY for PHP architecture, refactoring, or implementing design patterns.

davepoon/buildwithclaude · 51 tokens

elixir-way-architect

Synthesizes rewrite analysis and the ADR-000 compatibility bar into an idiomatic Elixir architecture, a complete mechanism ledger, ADRs and divergences. Use when /rewrite:architect has analysis and an accepted bar.

oliver-kriska/claude-elixir-phoenix · 50 tokens