article-optimizer
Warn
Audited by Gen Agent Trust Hub on Jun 13, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [PROMPT_INJECTION]: The script
scripts/run_single_score.pyis vulnerable to indirect prompt injection. It ingests article content from a user-specified file and interpolates it directly into a prompt with minimal boundary markers (---) and no sanitization. This untrusted data is processed alongside capabilities such as command execution (subprocess.run) and file writing. A malicious article could contain instructions to override the scoring logic or influence the agent's subsequent rewrite steps. - [COMMAND_EXECUTION]: The script
scripts/run_single_score.pyexecutes external commands viasubprocess.run. It specifically calls thecodexCLI, with the executable path potentially determined by an environment variable (CODEX_CLI_PATH), which could be leveraged to execute arbitrary binaries. - [PROMPT_INJECTION]: The instructions in
references/optimize_program.mdcommand the agent to act with high autonomy, explicitly telling it not to stop for user input for up to 10 iterations. This instruction to bypass human-in-the-loop checkpoints increases the potential impact of indirect prompt injection attacks. - [EXTERNAL_DOWNLOADS]: The skill documentation in
README.mdreferences thecodexCLI as a requirement and provide a link to the official OpenAI repository. This external dependency is used for the core scoring functionality of the skill.
Audit Metadata