optimize
Warn
Audited by Gen Agent Trust Hub on Jul 18, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONCREDENTIALS_UNSAFEREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes shell commands specified in optimization YAML files via helper scripts
measure.shandmeasure.ps1. These scripts invokebash -corcmd.exe /cto run the measurement harness, representing a risk if the specification files are untrusted. Users should carefully review themeasurement.commandfield in any spec before execution. - [CREDENTIALS_UNSAFE]: The
experiment-worktree.shandexperiment-worktree.ps1scripts automatically copy all files matching.env*(excluding.env.example) from the repository root to newly created experiment worktrees. This practice can expose sensitive secrets and API keys to the subagents or sandbox environments used during the optimization process. It is recommended to use restricted, non-sensitive credentials for optimization tasks. - [REMOTE_CODE_EXECUTION]: The optimization loop allows for the dynamic addition and installation of new software dependencies if approval is granted during the setup phase. These dependencies are then executed as part of the measurement and evaluation cycle, which could lead to the execution of malicious code if the requested packages are untrusted.
- [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection by reading repository documentation, such as
docs/solutions/andCONCEPTS.md, via thelearnings-researcherandrepo-research-analystagents. Malicious or deceptive instructions placed in these files could influence the hypotheses and code changes generated by the autonomous agent.
Audit Metadata