ssh-dev-suite/tunnel
Warn
Audited by Gen Agent Trust Hub on Oct 23, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONCREDENTIALS_UNSAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/ssh-tunnel.shconstructs and executes SSH commands using variables that are not consistently quoted. For instance, therun_sshfunction executes$ssh_optswithout quotes, which allows for word splitting and potentially arbitrary command injection if the underlying configuration source or the input parameters contain shell metacharacters. The use of# shellcheck disable=SC2086instart_tunnelconfirms that word splitting is intentionally enabled for these variables, which is a high-risk pattern when handling external inputs. - [CREDENTIALS_UNSAFE]: The script uses
sshpass -p "$password"to handle SSH authentication. This method is insecure because the password is passed as a command-line argument, making it visible to other users and processes on the same system (e.g., via thepscommand or in system logs). - [INDIRECT_PROMPT_INJECTION]: The skill processes user-supplied port forwarding specifications and profile names that are directly interpolated into shell commands. This creates an indirect prompt injection surface if the agent is instructed to use this skill on untrusted data.
- Ingestion points: Arguments like
<profile>and port specifications (<lport>:<rhost>:<rport>) inSKILL.mdandscripts/ssh-tunnel.sh. - Boundary markers: None identified in the provided files.
- Capability inventory: Subprocess calls to
ssh,sshpass, andpythonacross all functions inscripts/ssh-tunnel.sh. - Sanitization: Minimal validation is performed (basic non-empty checks), leaving the script vulnerable to maliciously crafted strings containing shell metacharacters.
Audit Metadata