Backtest Engine - Run Backtests
Analysis
The tool mostly matches its backtesting purpose, but it includes a user-provided Python strategy loader that can execute local code and is not clearly disclosed in the main workflow.
Findings (2)
Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.
Checks for instructions or behavior that redirect the agent, misuse tools, execute unexpected code, cascade across systems, exploit user trust, or continue outside the intended task.
def load_custom_strategy(strategy_file: str, strategy_fn: str) -> Callable:
"""Load a user-defined strategy function from an external file."""
spec = importlib.util.spec_from_file_location("user_strategy", strategy_file)
mod = importlib.util.module_from_spec(spec)
spec.loader.exec_module(mod)Importing a user-specified Python file with exec_module runs that file's top-level code. This is not clearly disclosed in the YAML-focused SKILL.md workflow and can execute arbitrary local code if an untrusted strategy file is used.
pip install yfinance pandas numpy scipy
The setup instructions install public Python packages without version pins. This is purpose-aligned for a Python backtesting tool, but package provenance and version drift matter.
