vllm-ascend-deploy
Audited by Socket on Sep 20, 2026
5 alerts found:
AnomalySecurityx4该技能总体目的与能力基本一致:面向昇腾 NPU 的远程 vLLM 部署、监控和验证。未见明显恶意外传或第三方拦截端点,也没有下载执行链。但它要求处理 SSH 密码、读取本地公钥、自动写入远程 authorized_keys,并在示例中关闭主机密钥校验,属于中等风险的远程运维自动化技能。另有未充分验证的文档源(gitcode/modelers)带来少量供应链不确定性,因此结论偏可疑而非恶意。
The script has a legitimate service-monitoring and notification purpose, and there is no clear evidence of intentionally malicious behavior. However, remote mode contains a material command-injection vulnerability because user-controlled configuration and log-derived message content are interpolated into remote shell commands without safe quoting. The script also sends AUTH_TOKEN and logs over unencrypted HTTP and constructs JSON without escaping. Use strict shell quoting or SSH argument passing, a JSON encoder such as jq, HTTPS with certificate validation, least-privileged SSH accounts, and validation of all configuration values before deployment.
该代码是用于 vLLM/NPU 服务部署和监控的运维示例,没有明确证据表明包含恶意软件或数据窃取行为。存在重要安全风险:自动接受未知 SSH 主机密钥、使用 root 密码登录、通过 shell 拼接公钥以及可能未经验证地执行远程命令。应改用密钥认证、固定并验证 known_hosts、禁止不必要的 root 登录、使用安全文件传输/API 写入 authorized_keys,并对所有命令参数进行严格验证和转义。
代码的主要问题是将未验证、未转义的环境变量和命令行参数拼接进本地及远程 `bash -c` 命令,形成潜在的本地和远程命令注入及文件覆盖风险。脚本未表现出明确的凭据窃取或恶意外联行为,但 `--trust-remote-code` 和默认 root/Docker/SSH 执行环境显著提高了受污染模型或恶意参数造成影响的可能性。应使用 shell 数组、严格参数校验和安全的 SSH 参数传递,避免动态 `bash -c` 字符串。
The script appears to be a legitimate local/remote NPU Docker deployment utility and contains no clear malware, exfiltration, or backdoor behavior. However, it has high-impact command-injection risk because untrusted environment or command-line values are embedded in a command string executed with eval locally or through a remote shell. Its use of --privileged, host networking, host filesystem mounts, and direct device mappings also gives the container extensive host access. Use shell argument arrays, strict validation, and safe SSH argument handling before deployment.