refactor
Pass
Audited by Gen Agent Trust Hub on Mar 23, 2026
Risk Level: SAFEPROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection via the
[TARGET_CODE]parameter. Malicious instructions embedded within the code being processed (e.g., in comments or string literals) could potentially override the sub-agents' instructions. - Ingestion points: The
[TARGET_CODE]variable is interpolated into prompts for thephoenix,plan-agent,kraken,plan-reviewer, andarbiteragents inSKILL.md. - Boundary markers: No specific delimiters or XML tags are used to isolate the untrusted
[TARGET_CODE]from the agent instructions. - Capability inventory: The workflow includes the
krakenagent, which performs file writes to implement code changes, and thearbiteragent, which executes commands to run tests and linters. - Sanitization: There is no evidence of input validation or sanitization for the provided code content.
- [COMMAND_EXECUTION]: The
arbiteragent is explicitly instructed to execute system commands to 'Run full test suite', 'Check type errors', and 'Run linting'. If a refactoring step introduces malicious code into a test file, or if the original test suite is compromised, the agent will execute it on the host system.
Audit Metadata