subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
else: cmd = ['ssh'] + ssh_opts + [f'{user}@{host}', 'true'] result = subprocess.run(cmd, capture_output=True, text=True, timeout=15) if result.returncode != 0: return None- Confidence
- 94% confidence
- Finding
- The code invokes sshpass with the password supplied on the command line (`sshpass -p <password>`), which exposes credentials to local process inspection mechanisms such as `ps`, `/proc`, audit logs, or other monitoring on the machine running the skill. In a remote-connect skill handling privileged infrastructure access, this directly undermines the claim that passwords remain only in memory and can leak root credentials to other local users or logging systems.
