algo-expert
Warn
Audited by Gen Agent Trust Hub on Sep 17, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONCOMMAND_EXECUTION
Full Analysis
- [DYNAMIC_EXECUTION]: The Machine Learning strategy templates (
ml_logisticandml_xgb) utilize thepicklemodule to deserialize pre-trained model files from the local file system.pickle.load()is inherently insecure as it can execute arbitrary code embedded within the data. While these files are meant to be produced by the associated training scripts, loading a maliciously crafted.pklfile could lead to full system compromise. - Evidence:
rules/assets/ml_xgb/strategy.pycallspickle.load()on model files. - Evidence:
rules/assets/ml_logistic/strategy.pycallspickle.load()on model files. - [DYNAMIC_EXECUTION]: The core utility
strategy_loader.pyuses theimportliblibrary to dynamically import and execute Python files as modules. This pattern allows for the execution of arbitrary Python code based on provided file paths. - Evidence:
rules/assets/core/strategy_loader.pyusesimportlib.util.spec_from_file_locationandexec_moduleto load strategies. - [COMMAND_EXECUTION]: The
portfolio_runner.pysupervisor launches multiple strategy instances as child processes usingsubprocess.Popen. This facilitates the execution of external scripts defined in configuration files. - Evidence:
rules/assets/core/portfolio_runner.pyinvokessubprocess.Popento start child strategy processes.
Audit Metadata