portfolio-optimization

Pass

Audited by Gen Agent Trust Hub on Oct 7, 2026

Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill provides standard shell commands for environment setup in SKILL.md, including conda environment creation and the installation of reputable Python packages such as PyPortfolioOpt, cvxpy, pandas, and numpy via pip.
  • [INDIRECT_PROMPT_INJECTION]: The skill includes functions that ingest external data, creating a theoretical attack surface for indirect prompt injection.
  • Ingestion points: The plot_efficient_frontier_custom, black_litterman_optimization, and rolling_rebalance_backtest functions in SKILL.md accept asset return dataframes and investor view dictionaries.
  • Boundary markers: No explicit prompt boundary markers or instructions to ignore embedded content are present in the provided scripts.
  • Capability inventory: The skill utilizes matplotlib.pyplot.savefig across several functions to write image files to local paths provided by the user.
  • Sanitization: Ingested data is processed via numerical computation libraries (numpy, pandas, cvxpy) which naturally enforce data type constraints (e.g., float/int), effectively neutralizing embedded natural language instructions before they could reach an execution context.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 7, 2026, 07:17 AM