backtest
Pass
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill uses unvalidated user input from
$ARGUMENTS(specificallystrategyandsymbol) to construct file system paths (backtesting/{strategy_name}/and{symbol}_{strategy}_backtest.py) and to select template assets. - Ingestion points: The
$ARGUMENTSvariable parses user input which is directly interpolated into directory creation and file writing operations withinSKILL.md. - Boundary markers: No delimiters or safety instructions are provided to ensure that inputs do not contain path traversal sequences (e.g.,
../). - Capability inventory: The skill utilizes
Write,Edit, andBashtools, which allow for file system modifications and script execution. - Sanitization: There is no mention of sanitizing the
$ARGUMENTSor validating that the resulting paths remain within the intendedbacktesting/directory. - [DYNAMIC_EXECUTION]: The skill is designed to generate complete, executable Python scripts (
.pyfiles) based on user-provided parameters. - The generation process involves reading local assets and assembling code that includes external library calls and data fetching logic.
- While this is the intended purpose of the backtesting skill, the generation of executable code from user-influenced strings increases the potential impact of injection attacks.
- [COMMAND_EXECUTION]: The skill includes
Bashin itsallowed-toolsand provides instructions that require directory creation and file manipulation. - This capability, combined with the dynamic generation of scripts, provides a significant surface for command execution if the agent is misled by malicious input provided in the
$ARGUMENTSfield.
Audit Metadata