T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:50- Finding
Unverified Remote Installer Retrieved from a Mutable URL and Executed
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a coherent read-only Huawei Cloud ECS query tool, but its installation and credential guidance create review-worthy security risk.
Review this skill before installing. Use a pinned and verified Huawei Cloud CLI installer if available, run installers without elevated privileges, prefer least-privilege read-only IAM credentials, avoid placing long-lived AK/SK values directly in shell history, and understand that hcloud configuration may persist credentials locally.
SKILL.md:50Unverified Remote Installer Retrieved from a Mutable URL and Executed
Mixing characters from multiple Unicode scripts in a single identifier is a common technique to create visually ambiguous tool names.
Mixing characters from multiple Unicode scripts in a single identifier is a common technique to create visually ambiguous tool names.
Mixing characters from multiple Unicode scripts in a single identifier is a common technique to create visually ambiguous tool names.
Mixing characters from multiple Unicode scripts in a single identifier is a common technique to create visually ambiguous tool names.
Code enumerates, copies, or searches environment variables for secrets. Bulk environment access can collect credentials unrelated to the skill's stated purpose.
def _load_credentials():
ak, sk = "", ""
for k, v in os.environ.items():
u = k.upper()
if not (u.startswith("HUAWEI") or u.startswith("HW") or u.startswith("HWC")):
continue
The skill declares shell and environment-variable dependent behavior but does not define any explicit tool scope such as allowed-tools or permissions. In an agent setting, this can cause overbroad execution authority, making it easier for the skill to invoke shell commands or access sensitive environment data beyond what is necessary for read-only ECS queries.
The documentation instructs users to download and immediately execute a remote shell installer via bash without any integrity verification, signature check, pinning, or explicit trust warning. If the download source, transport, hosting bucket, or script content is compromised, this leads directly to arbitrary code execution on the user's machine.
This markdown file presents all acceptance criteria in Chinese and does not indicate that the language choice is optional, user-selectable, or required for a region-specific use case. Under the policy, forcing a specific language without opt-in is a natural-language policy violation.
The guide instructs users to place long-lived Access Key and Secret Key values directly on the command line and in environment variables without warning that these secrets may be exposed through shell history, process inspection, terminal logging, CI logs, or persisted CLI configuration. In the context of a cloud ECS administration skill, compromised AK/SK credentials could let an attacker enumerate, modify, or destroy cloud resources depending on the account's permissions.
The script's description, help text, and user-visible messages are written only in Chinese, which imposes a fixed language choice on users. The file does not indicate that the tool is intentionally region- or language-specific, nor does it provide any opt-in or alternative locale handling.
subprocess module calls execute external commands. Without careful input validation, this enables command injection.
def _run_hcli(args, timeout=30):
try:
result = subprocess.run(["hcloud"] + args, capture_output=True, text=True, timeout=timeout)
raw = result.stdout.strip()
brace_start = raw.find("{")
brace_end = raw.rfind("}")
This markdown file presents all user-facing content exclusively in Chinese, which can constitute a language/locale policy violation when no user opt-in or justification is provided. The policy explicitly allows locale constraints only when documented and justified, which is not present here.
This JSON manifest contains multiple natural-language descriptions entirely in Chinese, but there is no indication that the skill is region-specific or that users can choose their preferred language. For a general skill file, forcing a single language in descriptions can violate language/locale policy expectations and reduce accessibility for users who did not opt in.
This markdown file presents all user-facing instructions exclusively in Chinese, which imposes a specific language on users without indicating any opt-in or alternative locale. The policy for natural-language violations applies to all file types and specifically includes forced language or locale choices.
The file forces a specific language for all instructions without indicating that this is a region-specific or opt-in localization choice. Under the policy, natural-language content should not impose a language or locale without user choice unless the constraint is clearly documented and justified.
This code scans environment variables for AK/SK-style credentials and uses them to authenticate cloud API requests. Although credential use is functionally necessary, there is no explicit disclosure in the code comments, help text, or printed output that the tool will read sensitive environment variables.
The file’s natural-language content is entirely in Chinese, including headings and usage explanations, and there is no indication that users may choose another language. Under the policy for natural-language violations, forcing a specific language without user opt-in can be a locale/language policy issue.