swanlab-setup
Audited by Socket on Sep 20, 2026
2 alerts found:
Securityx2SUSPICIOUS:技能目的与其主要能力基本匹配,但数据流和默认目标存在明显问题。它从本地/交互读取 SwanLab API Key,安装第三方 `swanlab` 包后将凭据转交给该 CLI,并默认把认证流量发往一个无法验证归属的私有 IP 主机;再加上未固定版本的 PyPI 安装和容器内重复执行,使整体风险升高。未见明显恶意窃密或隐藏执行迹象,因此更适合判定为高风险可疑技能而非确认恶意。
The code appears to be a legitimate SwanLab setup helper, not intentionally malicious. It contains a significant command-injection vulnerability in swanlab_setup_for_container because untrusted host and API-key values are embedded into bash -c without escaping. It also has moderate supply-chain and credential-disclosure risks from unpinned pip installation, unrestricted host configuration, HTTP transport, and command-string interpolation. Use shell-safe argument passing, validate the host, pin and verify the package version, and avoid placing secrets in generated shell text.