ssh
Pass
Audited by Gen Agent Trust Hub on Sep 3, 2026
Risk Level: SAFECOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses Python's
subprocessmodule to executessh,scp, andssh-keygencommands. Specifically,scripts/ssh_exec.pyallows executing arbitrary shell commands on remote hosts using thesshcommand. While these are intended functions, they provide a powerful interface for command execution. scripts/ssh_exec.py: Usessubprocess.runto execute commands on remote aliases.scripts/ssh_transfer.py: Usessubprocess.runto executescpfor file transfers.scripts/ssh_tunnel.py: Usessubprocess.callto establish SSH tunnels.- [DATA_EXFILTRATION]: The skill facilitates the transfer of files between the local machine and remote servers using
scpviascripts/ssh_transfer.py. This capability can be used to move sensitive data if the agent is directed to do so without proper oversight. - [INDIRECT_PROMPT_INJECTION]: The skill processes external data (SSH configuration files and remote command outputs) and interpolates this data into the agent's context. There is a risk that malicious content in
~/.ssh/configor output from a compromised remote server could influence the agent's behavior. - Ingestion points: Reads
~/.ssh/configinscripts/ssh_config.pyand capturesstdout/stderrfrom remote commands inscripts/ssh_exec.py. - Boundary markers: The scripts return structured JSON, which helps delimit data, but the
SKILL.mddoes not specify explicit boundary markers for the AI's prompt when handling these outputs. - Capability inventory: Includes file read/write (
~/.ssh/config), network operations (SSH/SCP), and remote command execution. - Sanitization: The scripts use
json.dumpsfor output, but there is no specific sanitization of the remote command output before it is presented to the agent.
Audit Metadata