vastai-sdk-patterns
Pass
Audited by Gen Agent Trust Hub on Sep 13, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
SKILL.mdfile defines anssh_execPython pattern that usessubprocess.runto invoke the systemsshclient. It explicitly uses the-o StrictHostKeyChecking=noflag, which disables the security feature that verifies the identity of the remote host, making the connection vulnerable to Man-in-the-Middle (MitM) attacks. - [INDIRECT_PROMPT_INJECTION]: The provided
ssh_execfunction pattern creates a vulnerability surface for command injection. If an agent or user adopts this code and passes untrusted strings to thecmdparameter, it would allow execution of arbitrary commands on the remote GPU instance. - Ingestion points: The
cmdparameter in thessh_execfunction definition (SKILL.md). - Boundary markers: Absent. The pattern does not suggest the use of delimiters or provide warnings regarding the execution of user-supplied commands.
- Capability inventory: The skill documents the use of
subprocess.runfor shell command execution. - Sanitization: Absent. The code pattern lacks input validation, shell escaping, or sanitization logic.
Audit Metadata