Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By getastra Verified Orgv1.0.0MITIn 1 marketplace
Checks PHP runtimes on a host you own for PHP2Shell remote code execution, hunts for exploitation traces and drafts a patch plan. Read-only and free of exploit code; the assessor script runs on Linux only.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
This skill helps a defender find PHP2Shell (CVE-2026-109618 and CVE-2026-109619), hunt for signs of exploitation, and fix it. These are critical, unauthenticated remote-code-execution flaws in the PHP runtime. PHP released the patch on 21 October 2026.
It is a detection-and-response skill, and it contains no exploit code. On a host that they own, it helps a defender answer three questions. Am I running a vulnerable PHP? Did anyone try to exploit it? What do I do now?
The skill lives in skills/php2shell-triage/, and the paths in the table are relative to that folder. At the repo root, .claude-plugin/ holds the plugin manifest (plugin.json) and the marketplace file (marketplace.json).
| File | Purpose |
|---|---|
SKILL.md | The skill itself. It contains the version matrix and the detection steps for each SAPI (the server API that runs PHP). It also contains the threat-hunting playbook, forensic capture, and the remediation roadmap. |
scripts/assess.sh | A read-only version assessor. It walks /proc to find the real binary behind every running web worker, and the libphp*.so inside Apache. It reads the version from the file without running it, and it classifies distro-owned builds by package revision. It compares each binary with its package manifest, and it flags workers that still run a replaced binary (STALE). It also reports containers seen from the host, and it exits 2, 1, or 0 for fleet scripts. |
scripts/test_assess.sh | Unit tests for the assessor (115 cases). They cover the version classifier, banner parsing, and static version extraction. They also cover dpkg and rpm package verdicts, with stubbed package tools. The package cases include archive against third-party builds, same-upstream sury and PPA builds, and the same upload spine (one line of archive revisions). They also include epochs, +dfsg, every vendor codename, and banner mismatch. Other tests cover the manifest-integrity override, and they test that the vendor table in the script matches references/vendor-fixes.md. The last test pipes the script into bash, as the Quick start does. |
references/vendor-fixes.md | A dated snapshot of vendor fixed-package revisions (Ubuntu USN and Debian). Distros backport the fix (apply it to the old version) without a change to the upstream number, so the banner cannot show it. This table gives that information. assess.sh has a copy of the table. If the two copies differ, the tests fail. |
Run the commands in this section from skills/php2shell-triage/. Run the assessor on the host as root, because only root can read /proc/<pid>/exe for workers that belong to other users.
bash scripts/assess.sh
For a remote host or a container, pipe the whole assessor across. Do not use php -v instead, because it can report the wrong binary.
ssh root@HOST 'bash -s' < scripts/assess.sh
docker exec -i CONTAINER bash -s < scripts/assess.sh
kubectl exec -i POD -- bash -s < scripts/assess.sh
The assessor prints one line for each PHP that it finds. It covers CLI, PHP-FPM, php-cgi, lsphp, FrankenPHP, and Apache mod_php, which it resolves from the memory map of the process. It also covers installed binaries that are idle, and workers in containers that are visible from the host. Each line has a status: SECURE, VULNERABLE, EOL_VULNERABLE, REVIEW, STALE, or INFO. A SUMMARY: line comes last.
For dpkg-owned binaries, the verdict comes from the package revision, compared against references/vendor-fixes.md. For rpm-owned binaries, a fixed upstream number reads SECURE and any other number reads REVIEW, because the table has no rpm rows. For those rows, compare the package against the RHSA or ALAS advisory yourself. Third-party packages (deb.sury.org, PPAs, a self-built .deb, Remi) and custom builds get their verdict from the upstream number. The rule holds even for a package whose upstream number matches the archive build.
STALE means that a worker still runs an old binary. An upgrade replaced the file on disk, but nobody restarted the service. For images without bash (Alpine or distroless), images that do not run, and registry scans, see SKILL.md §1.3.
The exit code gives the worst result:
VULNERABLE or EOL_VULNERABLE row. This includes a STALE worker whose in-memory version string alone reads vulnerable, for example a custom or upstream build.REVIEW row, any other STALE worker, a run without root, or a non-Linux host. A distro build that still runs after an upgrade without a restart is in this group. Its version string carries a package revision, so it reads REVIEW.SECURE.Because of these codes, one command assesses each host in a fleet:
ssh root@$h 'bash -s' < scripts/assess.sh; echo $?
Before you trust the classifier, run its tests:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub getastra/php2shell-triage --plugin php2shell-triagePlugins from other owners that cover similar ground