php-modernization
Pass
Audited by Gen Agent Trust Hub on Dec 4, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The skill uses Python subprocess calls in
scripts/modernize_loop.py,scripts/verify_php_project.py, andscripts/introspect.pyto execute local binaries such asphp,composer,rector, andphpstan. This capability is consistent with the skill's modernization purpose but allows the agent to run code on the host system. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted project data (PHP source code,
composer.json, and tool configurations) through its analysis scripts. - Ingestion points:
scripts/introspect.py,scripts/verify_php_project.py, andscripts/modernize_loop.pyread project-level files to build profiles and run checks. - Boundary markers: Absent; the scripts process raw file content.
- Capability inventory: The skill has
Writepermissions to modify source code andBashexecution rights for PHP-related tools. - Sanitization: Absent; the logic relies on the underlying LLM to interpret file contents. However, the skill includes a specific security reference (
references/reading-php-config-safely.md) instructing how to read PHP configurations via AST parsing to avoid unsafe execution. - [EXTERNAL_DOWNLOADS]: The provided GitHub Actions template (
templates/github-actions/php-modernization.yml) references well-known service actions fromshivammathur/setup-phpandastral-sh/setup-uvfor environment preparation.
Audit Metadata