improvement-generator
Pass
Audited by Gen Agent Trust Hub on Oct 13, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted content from SKILL.md files and failure traces to generate improvement candidates, creating an injection surface.
- Ingestion points: In
scripts/propose.py, the skill reads the content of the targetSKILL.md(lines 205, 272) and failure traces (line 182) to construct prompts for the LLM. - Boundary markers: The ingested content is wrapped in triple-backtick markdown blocks within the prompt (lines 212, 274), which provides insufficient isolation between instructions and untrusted data.
- Capability inventory: The skill uses
subprocess.runto call theclaudeCLI and writes the generated improvement candidates to JSON files for later execution. - Sanitization: There is no evidence of sanitization, escaping, or filtering of the ingested content before it is interpolated into the analysis prompt.
- [COMMAND_EXECUTION]: The script interacts with the local environment by executing a command-line utility.
- Evidence:
scripts/propose.pyusessubprocess.runto invoke theclaudebinary (lines 228, 297). This pattern relies on the integrity of the local path and theclaudeinstallation to process data safely. - [DYNAMIC_EXECUTION]: The skill generates structured execution plans from the output of an external LLM call.
- Evidence: Functions like
_llm_analyze_and_propose(line 261) parse JSON output from theclaudeCLI into anexecution_plan(lines 337-341). If the LLM analysis is compromised via injection, the generated execution plan could include unauthorized file modifications or deletions.
Audit Metadata