trade-hypothesis-ideator
Warn
Audited by Gen Agent Trust Hub on Sep 28, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The script
scripts/pipeline/strategy_exporter.pydynamically loads and executes a Python module from a calculated relative path (../../../../edge-candidate-agent/scripts/candidate_contract.py). The function_load_candidate_contract_validatorusesimportlib.util.spec_from_file_locationandspec.loader.exec_module(module)to run code from a location outside the skill's own folder structure, which is a significant security risk if the environment's directory structure is manipulated. - [INDIRECT_PROMPT_INJECTION]: The skill takes an external JSON input bundle and processes fields like
journal_snippetsandobservationswhich are directly interpolated into the prompt templates. Specifically,scripts/pipeline/evidence_extractor.pyformats this data, and it is then injected intoprompts/developer_prompt_template.mdusing the{{evidence_summary}}tag. - Ingestion points: The
--inputJSON bundle parsed inscripts/run_hypothesis_ideator.py. - Boundary markers: The prompt uses Markdown headers to separate sections, but does not provide specific delimiters or instructions to ignore embedded commands within the user-provided data.
- Capability inventory: The skill has the capability to write various JSON, YAML, and MD files to the output directory and execute local code via dynamic loading.
- Sanitization: The
_as_list_of_strfunction ensures data is in string format and stripped of whitespace, but no active filtering or sanitization against prompt injection techniques is performed.
Audit Metadata