agent-swarm
Pass
Audited by Gen Agent Trust Hub on May 24, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/swarm_run.pyutility utilizessubprocess.runto orchestrate parallel tasks by invoking CLI agents (Claude, Gemini, or Copilot). The implementation correctly uses argument lists andshlex.splitto mitigate common shell injection risks when handling file paths and user variables. - [COMMAND_EXECUTION]: The framework allows for arbitrary shell command execution via
post_cmdandcheck_cmdtemplates defined in Markdown-based job files. This is a core feature enabling post-processing and result caching within the swarm orchestration workflow. - [EXTERNAL_DOWNLOADS]: The documentation in
personas/README.mdrecommends the configuration of Model Context Protocol (MCP) servers. These references target official and well-known organizations, including Microsoft (@playwright), Upstash (@upstash), and the official Model Context Protocol organization. These are considered safe, well-known services. - [PROMPT_INJECTION]: The skill processes untrusted files through a 'Parallel Agent' pattern. In
scripts/swarm_run.py, it implements boundary markers (e.g., prepending 'Instruction:' to the content) to help sub-agents distinguish between system instructions and data, reducing the surface for indirect prompt injection. - [COMMAND_EXECUTION]: The
hooks/closure-guard.shscript usessedandjqfor session state management, preventing the agent from exiting a session before completing the required 'Seal' and 'Persist' operations. This ensures process integrity for long-running multi-agent loops.
Audit Metadata