Guía de agentes de IA
¿Mi producto o sitio está afectado? Compruébelo con un agente de IA
Muchos sitios no usan PHP directamente, sino a través de XAMPP, un panel de hosting, un NAS, una imagen Docker o un appliance. Con estos prompts de solo lectura, el agente encuentra cada PHP, lo compara con las versiones corregidas y genera una tabla, sin cambiar nada.
Última actualización
Qué hacen hacer los prompts al agente
- Inventariar el PHP del sistema, paquetes (XAMPP, MAMP, Laragon), paneles, contenedores, NAS y appliances.
- Registrar versión, origen y exposición.
- Asociar los elementos gestionados por el fabricante a las páginas de productos.
- Generar una tabla: Corregido / Vulnerable / Desconocido / Gestionado por el fabricante.
Usar un agente con seguridad
- Lea cada comando antes de aprobarlo; mantenga el agente en un modo que pregunte antes de ejecutar.
- Pruebe primero en staging o en una copia; haga copia de seguridad o snapshot antes de tocar producción.
- No dé sudo/root sin supervisión en producción; apruebe los comandos privilegiados uno a uno.
- Nunca pegue contraseñas, claves de API, tokens ni el contenido de .env en un prompt; no hacen falta.
- No pida código de explotación ni «payloads de prueba»; la verificación se hace con versiones, changelogs y registros.
- Un agente puede equivocarse: confirme usted la versión en el PHP-FPM o mod_php en uso.
Prompts para copiar y pegar
Los prompts están en inglés para que cualquier agente los siga de forma fiable; la última línea pide el informe en español. Los datos proceden de las páginas de este sitio.
Audit this machine for PHP2Shell exposure. This is a READ-ONLY audit.
Context: PHP2Shell is CVE-2026-109618 and CVE-2026-109619, two critical unauthenticated remote-code-execution bugs in the PHP runtime (advisory published 21 October 2026). Fixed upstream releases: PHP 8.2.35, 8.3.36, 8.4.27, 8.5.12 (or later on the same branch). PHP 8.1 and earlier get no upstream fix. Linux distributions may ship backported fixes under an older version string, so check the distro's security tracker / package changelog for CVE-2026-109618 and CVE-2026-109619, not only "php -v".
Rules for you (the agent):
- Read-only: do not install, upgrade, delete, restart or change any file or service. Do not use sudo unless I approve a specific read-only command.
- Do not write, download or run exploit code, and do not probe other hosts.
- Do not print secrets you see; redact them.
- Show each command before you run it.
Find every PHP runtime, including bundled ones:
1. System PHP: php -v, php-fpm*, mod_php, every binary named php* on PATH and under /usr, /opt, /usr/local.
2. Bundled stacks: XAMPP (/opt/lampp, C:\xampp), MAMP (/Applications/MAMP), WampServer, Laragon, Local, Herd, Valet.
3. Hosting panels: cPanel ea-php, Plesk plesk-php, aaPanel/宝塔 /www/server/php, DirectAdmin, CyberPanel lsphp, HestiaCP.
4. Containers: docker ps / docker images / kubectl, and php -v inside each running container.
5. Apps that run on PHP (WordPress, Magento, Drupal, Joomla, Moodle, Nextcloud, phpMyAdmin, GLPI ...) and which PHP each one uses.
6. If this is a NAS or vendor appliance (Synology, QNAP, Unraid, pfSense, OPNsense, FreePBX ...), report the product and firmware version only; such PHP is updated by the vendor firmware.
For each item record: product/location, PHP version, how it is installed (distro package / vendor bundle / container / custom build), whether it is internet-facing, and whether the version is >= the fixed release on its branch or has a distro backport.
Output a verdict table with columns: Item | PHP version | Source | Exposed? | Verdict (Fixed / Vulnerable / Unknown / Vendor-managed) | Next step. Then list the matching product pages from https://phpvulnerabilities.app/affected-products/ for anything vendor-managed.
Write your report in Spanish.I run [PRODUCT NAME AND VERSION]. Tell me whether it is affected by PHP2Shell. This is research and a READ-ONLY check.
Context: PHP2Shell is CVE-2026-109618 and CVE-2026-109619, two critical unauthenticated remote-code-execution bugs in the PHP runtime (advisory published 21 October 2026). Fixed upstream releases: PHP 8.2.35, 8.3.36, 8.4.27, 8.5.12 (or later on the same branch). PHP 8.1 and earlier get no upstream fix. Linux distributions may ship backported fixes under an older version string, so check the distro's security tracker / package changelog for CVE-2026-109618 and CVE-2026-109619, not only "php -v".
Rules: do not write or run exploit code; do not change anything; never ask for or print credentials.
Steps:
1. Find out whether this product bundles its own PHP or uses the system PHP, and which PHP version the version I named ships with.
2. Look for the vendor's official advisory, changelog or knowledge-base article about CVE-2026-109618 / CVE-2026-109619, and the matching page under https://phpvulnerabilities.app/affected-products/. Cite each source with its URL and date; if you find none, say so instead of guessing.
3. If I can give you shell access, list the read-only commands that would confirm the runtime version, and wait for me to run them or approve them.
Output a verdict table: Product | Version | Bundled PHP | Vendor status | Verdict (Fixed / Vulnerable / Unknown) | Fix path (vendor update, upgrade host PHP, or mitigate) | Sources.
Write your report in Spanish.Audit this repository (and any inventory files it contains) for PHP2Shell exposure. READ-ONLY: do not edit files, open pull requests or connect to servers unless I approve.
Context: PHP2Shell is CVE-2026-109618 and CVE-2026-109619, two critical unauthenticated remote-code-execution bugs in the PHP runtime (advisory published 21 October 2026). Fixed upstream releases: PHP 8.2.35, 8.3.36, 8.4.27, 8.5.12 (or later on the same branch). PHP 8.1 and earlier get no upstream fix. Linux distributions may ship backported fixes under an older version string, so check the distro's security tracker / package changelog for CVE-2026-109618 and CVE-2026-109619, not only "php -v".
Rules: no exploit code, no scanning of hosts, redact secrets.
1. Search Dockerfiles, compose files, Helm charts, Terraform/Ansible/Puppet/Chef code, CI workflows, .tool-versions, composer.json "config.platform.php" and "require.php" for PHP versions and base images.
2. List every place a PHP version or image is pinned, and resolve tags like php:8.3-fpm to the patch level they currently point to if you can.
3. Mark each as Fixed / Vulnerable / Unknown against 8.2.35 / 8.3.36 / 8.4.27 / 8.5.12 (or a distro backport), and flag PHP 8.1 or older.
Output a verdict table: File | Line | Image or package | PHP version | Verdict | Suggested change. Do not apply the changes; list them for my review.
Write your report in Spanish.Agentes de código de IA habituales
Sin orden de preferencia. Este sitio no está afiliado a ninguno.
| OpenAI Codex CLI | Ejecute codex en el proyecto o en el servidor y pegue el prompt; mantenga un modo de aprobación que pregunte antes de ejecutar comandos. |
|---|---|
| Claude Code | Ejecute claude en una terminal y pegue el prompt; por defecto pide permiso antes de ejecutar comandos. |
| Cursor (Agent) | Abra el repositorio o una sesión Remote-SSH, pegue en el chat de Agent y revise cada comando. |
| Cursor Cloud Agents | Para los prompts de Docker/repositorio: trabaja en una rama y usted revisa el diff; no accede a sus servidores. |
| Grok Build (xAI CLI) | Agente de código en terminal de xAI; inícielo en el proyecto o servidor. Sin shell, pegue en el chat de Grok (grok.com) y ejecute usted los comandos. |
| GitHub Copilot coding agent | Asigne a Copilot un issue con el prompt de Docker/repositorio; abre un pull request para revisión. |
| Gemini CLI | Ejecute gemini en una terminal, pegue el prompt y confirme cada comando. |
| Windsurf (Cascade) | Pegue en Cascade dentro del editor; windsurf.com redirige actualmente a Devin Desktop. |
| Cline | Extensión de VS Code; pegue en el panel de Cline y apruebe cada comando. |
| Aider | Para los prompts de Docker/repositorio: ejecute aider en el repositorio y revise sus commits. |
Preguntas frecuentes
¿Cómo sé si mi sitio está afectado por PHP2Shell?
Averigüe la versión de PHP que sirve el sitio (no solo php -v) y compárela con 8.2.35 / 8.3.36 / 8.4.27 / 8.5.12 o con el paquete con backport de su distribución. El prompt de inventario lo hace para cada PHP.
¿La auditoría cambia algo?
No. Los prompts exigen solo lectura y preguntar antes de cualquier comando con sudo.
¿Mi PHP está dentro de un NAS, panel o appliance?
Ese PHP lo actualiza el fabricante. Consulte la página del producto en la lista e instale la actualización del fabricante.