edge-candidate-agent
Warn
Audited by Gen Agent Trust Hub on Oct 12, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/auto_detect_candidates.pyscript accepts an optional--llm-ideas-cmdargument which allows for the execution of an arbitrary external command. This command is invoked usingsubprocess.runand receives JSON data via stdin. Whileshlex.splitis used to prevent shell injection, the capability itself allows for arbitrary binary execution if the command string is influenced by an attacker. - [DYNAMIC_EXECUTION]: The
scripts/validate_candidate.pyscript dynamically constructs a Python code snippet at runtime and executes it usinguv run python -c. The snippet is used to perform validation against an external repository's schema. Although the script usesrepr()to escape interpolated values like the strategy path and validation stage, the execution of runtime-generated code is a high-risk pattern. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process data from external OHLCV files (Parquet), hint files (YAML), and news tables (CSV/Parquet). These files act as ingestion points for untrusted data. Descriptive fields such as 'observation', 'rationale', or 'hypothesis' could be used to embed malicious instructions. If the agent later reads these generated artifacts, it could be susceptible to indirect prompt injection.
- [COMMAND_EXECUTION]: Multiple scripts, including
scripts/validate_candidate.pyandscripts/auto_detect_candidates.py, utilizesubprocess.runto call external tools (uv,python, and user-defined commands). This reliance on subprocess calls to external binaries increases the potential impact of command injection if arguments are not strictly validated.
Audit Metadata