T03 · Remote Payload Retrieval and Execution
- Location
scripts/install_koocli.py:23- Finding
Mutable Remote Executable Is Installed Without Integrity Verification
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This Huawei Cloud management skill is purpose-aligned but uses a risky local installer and cloud-admin commands that deserve review before installation.
Review this skill before installing. Only use it if you are comfortable granting a local CLI installer, persistent Huawei Cloud credential configuration, and cloud-admin command capability. Prefer manually installing KooCLI from verified Huawei Cloud instructions, use least-privilege AK/SK credentials, and require explicit confirmation before any stop, restart, delete, or other write operation.
scripts/install_koocli.py:23Mutable Remote Executable Is Installed Without Integrity Verification
scripts/install_koocli.py:82Archive Extraction Does Not Prevent Path Traversal or Unsafe Links
scripts/install_koocli.py:112Predictable Shared Temporary Directory Enables Local Pre-Placement and Race Attacks
The declared purpose is infrastructure query/audit/monitoring, but the skill also instructs the agent to install software locally, run installer scripts, initialize credentials, and modify the local environment. This hidden expansion of behavior is dangerous because a user asking about cloud resources could end up authorizing local code execution, downloads, and persistent configuration changes outside the stated scope.
The skill invokes shell commands, reads/writes configuration files, uses environment/config state, and can trigger installation, but it declares no explicit tool scope or permissions boundary. Without an allowlist, the runtime may permit broader shell, filesystem, and network actions than users expect, increasing the chance of unintended command execution or local system modification.
The trigger conditions are broad enough to match many ordinary Huawei Cloud or security-audit questions, which can cause the skill to activate unexpectedly. In this skill, accidental activation is more dangerous because activation can lead to shell execution, local installation steps, and credential/configuration workflows rather than simple text assistance.
The file includes readily executable destructive cloud operations such as deleting ECS and RDS instances, with only a generic note that write operations require confirmation. In an agent skill context, this is risky because the command reference can normalize or facilitate high-impact actions without embedding explicit per-command warnings, safeguards, or approval requirements near the dangerous commands themselves.
This file contains natural-language instructions and status output that assume Chinese as the only user language. Under the stated policy, forcing a specific language without user opt-in is a locale/language policy violation unless the constraint is explicitly justified.
subprocess module calls execute external commands. Without careful input validation, this enables command injection.
print("\n🔍 验证安装...")
try:
result = subprocess.run(
["hcloud", "version"],
capture_output=True,
text=True,