edge-candidate-agent
Warn
Audited by Gen Agent Trust Hub on May 9, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/auto_detect_candidates.pyallows the execution of an arbitrary external command via the--llm-ideas-cmdparameter. Evidence:command_parts = shlex.split(llm_command)followed bysubprocess.run(command_parts, ...)inscripts/auto_detect_candidates.py. - [REMOTE_CODE_EXECUTION]: The
validate_with_pipeline_uvfunction inscripts/validate_candidate.pygenerates and executes Python code at runtime. Evidence: A multi-line Python script is constructed as a stringsnippetand executed viasubprocess.run(["uv", "run", "python", "-c", snippet], ...). - [PROMPT_INJECTION]: The skill ingests untrusted data from multiple file formats which are then used in analysis or passed to external commands, creating a surface for indirect prompt injection. Ingestion points:
scripts/auto_detect_candidates.py(OHLCV, hints, news, and futures files) andscripts/export_candidate.py(ticket YAML files). Boundary markers: None identified in the processing logic for external data. Capability inventory:subprocess.runfor external commands and dynamic Python execution. Sanitization: Employsyaml.safe_loadfor parsing andrepr()for escaping string literals in generated scripts.
Audit Metadata