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, and scripts/introspect.py to execute local binaries such as php, composer, rector, and phpstan. 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, and scripts/modernize_loop.py read project-level files to build profiles and run checks.
  • Boundary markers: Absent; the scripts process raw file content.
  • Capability inventory: The skill has Write permissions to modify source code and Bash execution 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 from shivammathur/setup-php and astral-sh/setup-uv for environment preparation.
Audit Metadata
Risk Level
SAFE
Analyzed
Dec 4, 2026, 02:49 PM