huawei-cloud-skill-tester
Audited by Socket on Sep 21, 2026
5 alerts found:
Securityx2Anomalyx3代码实现了带凭证检查和写操作开关的云 CLI/SDK 测试执行器。未发现硬编码秘密、可疑域名、反向 shell、持久化、挖矿或明确的数据窃取逻辑;因此没有充分证据判定为恶意软件。但它会对 Phase 3 测试定义中的命令使用 bash -c,且会执行完整 Python SDK 片段,并把 AK/SK 环境变量传递给子进程。若测试定义或 skill 目录可被不可信来源修改,可导致任意本地命令执行、凭证窃取及云资源操作。建议仅对可信技能运行,限制子进程环境变量,并对白名单命令和 SDK 操作进行验证。
代码看起来是端到端测试编排脚本,不包含明确的恶意载荷、凭证窃取逻辑、可疑网络通信或系统破坏行为。但它会执行 phase-1-summary.json 中的任意 shell/Python 命令,并继承完整环境变量;若测试元数据或技能目录不可信,攻击者可借此实现任意代码执行和凭证访问。多技能模式还会虚报步骤通过。应对命令使用白名单或结构化参数执行,隔离环境变量和权限,并修正多技能模式的状态判定。
The fragment appears to be a legitimate installation-verification utility and contains no clear malware indicators. It has medium security risk due to potentially destructive rm -rf behavior based on insufficiently validated paths and unquoted execution of SKILL_INSTALL_CMD. The risk is primarily relevant when untrusted users can control command-line arguments, SKILL_INSTALL_DIR, or SKILL_INSTALL_CMD. External sourced files require separate review.
该脚本功能与手动安装 CLI 相符,未发现明确恶意行为或直接数据窃取。安全风险主要来自远程 manifest 控制下载地址、可缺省的 SHA-256 校验、未验证发布签名,以及未检查 tar 路径。应确保 API 和 manifest 受到严格访问控制,要求签名或强制校验可信哈希,并在解压前拒绝绝对路径和 .. 路径。
The fragment does not contain clear evidence of intentional malware or data theft. It is an installer that downloads and installs a remote executable. The principal security concerns are trust in a mutable remote manifest, acceptance of manifest-controlled download URLs, optional rather than mandatory SHA256 verification, and extraction of an untrusted tar archive without path or link validation. These issues warrant security review and hardening before use in a supply-chain context.