team-swarm
Warn
Audited by Gen Agent Trust Hub on Sep 3, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [DYNAMIC_EXECUTION]: The
ScriptScorerclass inscripts/scoring.py(lines 53-61) usesimportlib.utilto dynamically load and execute Python code from a file path at runtime. The path is resolved inscripts/aco.py(lines 191-201) based on thescoring.script_pathvalue provided in theswarm-config.jsonconfiguration file. This allows for arbitrary code execution if an attacker can influence the configuration file and place a malicious script in the filesystem. - [INDIRECT_PROMPT_INJECTION]: The skill exhibits an indirect prompt injection surface by ingesting and processing structured data from sub-agents (ants).
- Ingestion points: Ant artifacts (
ant-*.json) are loaded byscripts/aco.py(line 166) and theanalystrole (Phase 2). These files contain natural language fields likerationale,summary, andnotes. - Boundary markers: The
_validate_artifactfunction inscripts/aco.py(line 179) enforces schema and range validation (e.g., scores between 0 and 1), and role specifications instruct ants to self-validate. - Capability inventory: The skill has access to powerful tools including
Bash,Agent(worker spawning),Write, andTeamCreate. - Sanitization: While numeric and structural validation is present, there is no explicit sanitization of natural language content that is eventually synthesized by the
analystrole into the finalbest-solution.mdreport. - [COMMAND_EXECUTION]: The test suite
scripts/test_aco.py(line 34) usessubprocess.run()to execute theaco.pyscript. While it uses a list of arguments rather than a shell string, it represents runtime command execution. Furthermore, thecoordinatorrole frequently invokes the Python CLI scripts using theBashtool to perform numeric calculations and state updates.
Audit Metadata