php2shell-check

php2shell-check is a skill for Claude Code from anton-abyzov/vskill. It costs 261 tokens per session (2,380 once invoked), scanned A, original, MIT.

A read-only check for two October 2026 PHP security vulnerabilities that can allow remote code execution through web-serving PHP. It checks installed PHP versions and related project or configuration files, then gives a fix plan.

In plain words
What is it for?
Use it on the machine or container serving PHP to identify affected binaries, possible configuration stopgaps, and required updates.
Why use it?
It helps determine whether a PHP web server may be exposed without changing the system. It distinguishes web-facing PHP from CLI-only PHP, which is not the described attack surface.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the security plugin — 1 skill shipped together

Good fit Use it on the machine or container serving PHP to identify affected binaries, possible configuration stopgaps, and required updates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anton-abyzov/vskill/php2shell-check
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.

Any agent
npx skills add anton-abyzov/vskill --skill php2shell-check
Clone the repo
git clone --depth 1 https://github.com/anton-abyzov/vskill

Made for: Claude Code.

Or install security, the plugin that ships this one along with the rest of its 1 skill.

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 php2shell-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/anton-abyzov/vskill/php2shell-check/github.svg)](https://agentmods.dev/skills/anton-abyzov/vskill/php2shell-check)
Your own site
<a href="https://agentmods.dev/skills/anton-abyzov/vskill/php2shell-check"><img src="https://agentmods.dev/badge/skills/anton-abyzov/vskill/php2shell-check/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 php2shell-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/anton-abyzov/vskill/php2shell-check"><img src="https://agentmods.dev/badge/skills/anton-abyzov/vskill/php2shell-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 261 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,380 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.00261 $0.02380
Opus 5.5 $0.00104 $0.00952
Sonnet 5.5 $0.00052 $0.00476
Haiku 4.5 $0.00026 $0.00238

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

Security

Grade A, and why

php2shell-check 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 16d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/check.sh, tests/run.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/security/skills/php2shell-check/SKILL.md · 102 lines

How it starts

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

php2shell-check

php2shell is two critical bugs in PHP's request handling, disclosed and fixed on 2026-10-21 (CVSS v4.0 9.2 each):

  • CVE-2026-109618 (GHSA-w8hw-w9fx-j79w): memory corruption when PHP runs out of memory while setting up request data; multipart parsing can trigger it. Unauthenticated RCE, shown on mod_php with the default config; FPM, FrankenPHP and LSAPI are likely exposed.
  • CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp): use-after-free of request state across requests on the same worker. Unauthenticated RCE or memory disclosure; shown on mod_php (8.5 fatal_error_backtraces) and PHP-FPM via session upload progress, which is on by default. No app code needed.

Every web SAPI is affected (FPM, mod_php, php-cgi, FrankenPHP, LiteSpeed). CLI-only use is not the attack surface. Exploit attempts were seen on 2026-10-21 (Cloudflare, watchTowr). Not in CISA KEV as of 2026-10-21.

Sources: php.net, the two GitHub advisories above, NCSC, CERT-EU 2026-018.

Run it

Run on the machine (or inside the container) that serves PHP, from the project root. SKILL_DIR is the folder holding this SKILL.md; use the script's full path so --repo defaults to the project, not the skill folder:

sh "$SKILL_DIR/scripts/check.sh"                 # binaries + repo in cwd + ini stopgaps
sh "$SKILL_DIR/scripts/check.sh" --repo ./app    # scan another project dir
sh "$SKILL_DIR/scripts/check.sh" --php /usr/sbin/php-fpm8.2   # one binary only
sh "$SKILL_DIR/scripts/check.sh" --version 8.4.26             # judge a version string
sh "$SKILL_DIR/scripts/check.sh" --url https://your-own-site.example   # X-Powered-By only
sh "$SKILL_DIR/scripts/check.sh" --json          # machine-readable
docker run --rm your-image php -v   # containers: check the image, not the host

Read the full file on GitHub · 102 lines

Files

What ships with it

3 files 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. 16d ago First seen · 102 lines · 261 tokens per session scan A b05423708388

Subscribe to this mod's changes

php2shell-check is a skill published in the GitHub repository anton-abyzov/vskill (47 stars, last pushed 3d ago), licensed MIT. It adds 261 tokens to every session and 2,380 once invoked, about $0.0010 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-22.

Related

php2shell-check compared with skills from other repositories

php2shell-check next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
php2shell-checkanton-abyzov/vskillSkill473d agoMITA261Claude Code
start-coding-taskedgar-durand/codeagent-mobile-clientsSkill88d agoMITA33Claude Code, Codex
agent-config-setupofershap/create-agent-configSkill2yesterdayMITA43Claude Code, Codex
continue-with-codeagent-creditsedgar-durand/codeagent-mobile-clientsSkill88d agoMITA29Claude Code, Codex
review-agent-workedgar-durand/codeagent-mobile-clientsSkill88d agoMITA25Claude Code, Codex
supervise-sessionedgar-durand/codeagent-mobile-clientsSkill88d agoMITA17Claude Code, Codex
prereviewsinghharsh1708/kitbashSkill1020d agoApache-2.0A0Claude Code, Codex