setup-nas

Warn

Audited by Gen Agent Trust Hub on Jun 13, 2026

Risk Level: MEDIUMCOMMAND_EXECUTION
Full Analysis
  • [COMMAND_EXECUTION]: The reachability verification step uses ssh to execute a command on a remote host based on user input: ssh -o BatchMode=yes -o ConnectTimeout=5 <host> "test -d '<path>' && echo OK". The interpolation of the <host> and <path> variables into a shell string is a potential command injection vector if the agent does not properly sanitize shell metacharacters provided by the user.
  • [COMMAND_EXECUTION]: The skill persists user-defined ssh_opts (such as -i ~/.ssh/nas_id) to nas.json. These options are intended to be reused by other synchronization skills (pull-from-nas and push-to-nas). Maliciously crafted options could lead to arbitrary command execution when those subsequent skills are invoked.
  • [COMMAND_EXECUTION]: The allowed-tools manifest includes Bash(mount *). The mount command typically requires elevated privileges (root/sudo). While the skill's procedure does not explicitly invoke mount, its presence in the allowed tools list provides the capability for the agent to modify the filesystem's mount table if instructed by the user or a malicious prompt.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Jun 13, 2026, 03:34 PM
Security Audit — agent-trust-hub — setup-nas