kage-bunshin
Fail
Audited by Gen Agent Trust Hub on Oct 3, 2026
Risk Level: HIGHCOMMAND_EXECUTIONPRIVILEGE_ESCALATIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill provides scripts (
spawn.py,monitor.py,health.py) that construct and execute shell commands fortmux,claude, andgitusing thesubprocessmodule. It allows an agent to inject arbitrary text into a persistenttmuxsession via thesendsubcommand, which usestmux send-keysto deliver input to the process REPL. - [PRIVILEGE_ESCALATION]: The
spawncommand inscripts/spawn.pyis hardcoded to include the--dangerously-skip-permissionsflag when launching the Claude CLI. This flag bypasses the platform's requirement for manual user approval of tool executions (such as file writes or shell commands), effectively stripping away the security sandbox for all background sub-agents spawned by this skill. - [INDIRECT_PROMPT_INJECTION]: The skill implements a monitoring loop in
scripts/monitor.pythat captures raw terminal output from sub-agent sessions viatmux capture-pane. This text, which could contain malicious instructions from external data processed by the sub-agent, is returned to the orchestrating agent without sanitization or boundary markers. This creates a high-risk feedback loop where a compromised sub-agent session can influence or steer the parent agent's actions. - Ingestion points: The
_capture_panefunction inmonitor.pyreads raw terminal output from activetmuxsessions. - Boundary markers: Absent. The captured content is joined and sent back to the agent in a JSON payload with no delimiters or warnings.
- Capability inventory: The orchestrator has access to
spawn.pysubcommands (spawn, send, stop, kill) which allow full control over the lifecycle and input of the child session. - Sanitization: Absent. Only ANSI formatting codes are stripped; the underlying text content is returned as-is.
- [DYNAMIC_EXECUTION]: The skill dynamically constructs and executes command-line arguments for the Claude CLI at runtime. It also uses the
uvtool shebang for script execution, which manages the Python environment dynamically.
Recommendations
- AI detected serious security threats
Audit Metadata