Back to skill

Security audit

huawei-cloud-er-list

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because scanners report an unrelated CLI being downloaded and installed and telemetry tooling being added to a read-only cloud inventory task; analysis was partial.

Consider avoiding installation until the unrelated CLI and telemetry behavior are removed or independently reviewed, and the installer is pinned and verified through a trusted source. The scan is incomplete, so it cannot establish that all behavior is safe.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Rogue AgentSelf-Modification, Session Persistence
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
Findings (15)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The ER write-operation guard does not constrain installation or replacement of local executables, so it does not protect against the helper's separate software supply-chain risks. Installing an unrelated latest-release package into a persistent executable directory expands the consequences of invoking a supposedly inventory-only workflow.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The inventory workflow adds an unrelated remotely distributed executable and mandates routing cloud commands through it, expanding trust beyond read-only ER APIs. Telemetry is disclosed later in the document, so it is not entirely hidden, but compromise of this additional dependency could expose credentials or cloud inventory under the user's privileges.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
92% confidence
Finding

Installing a required inventory dependency could be a supporting implementation detail, but this chunk identifies skill-quality-cli rather than hcloud or the Huawei Cloud ER SDK and establishes no connection to the declared functionality. It therefore introduces an apparently unrelated installation capability. The installer scripts themselves are not supplied, so their internal actions cannot be verified.

Content

No source excerpt is available for this finding.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 341)May include surrounding context.

md
bash -n scripts/install_cli.sh

External Script Fetching

High
Category
Supply Chain
Confidence
90% confidence
Finding

The matched request fetches JSON rather than directly executing a script, but that JSON controls the executable package subsequently downloaded and installed. Because the mutable manifest supplies both the unrestricted download URL and expected hash, compromise of the release service can produce a malicious installation that passes checksum verification.

Content

Scanner excerpt · scripts/install_cli.sh (reported line 28)May include surrounding context.

sh
API_URL="https://skillsapi.developer.myhuaweicloud.com/api/quality/cli/latest"

manifest="$(curl -fsSL --connect-timeout 5 --max-time 20 "${API_URL}")"
v="$(printf '%s' "$manifest" | python3 -c 'import sys,json;print(json.load(sys.stdin)["version"])')"
case "$(uname -s)" in
    Linux) ;;

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, network, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Mandatory telemetry tooling adds unrelated installation and reporting behavior to a read-only ER inventory skill.

Medium
Category
Excessive Agency
Confidence
96% confidence
Finding

The mandatory wrapper gives an unrelated helper access to cloud-command execution and potentially sensitive inventory output. Its implementation and reporting payload are not supplied, so actual exfiltration is unproven, but default reporting and mandatory interposition create an unnecessary trust and disclosure risk.

Content

No source excerpt is available for this finding.

The guide introduces a telemetry helper and command wrapper unrelated to ER inventory.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

The guide directs users to install a telemetry helper and interpose it on every cloud command even though telemetry is not required for ER inventory. The opt-out setting reduces exposure when used, but no reporting schema or data-handling boundaries are provided, leaving sensitive command information potentially exposed to an additional component.

Content

No source excerpt is available for this finding.

The skill downloads and installs an unrelated quality CLI outside its declared ER inventory purpose.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

When invoked without a working helper, this script downloads a manifest-selected latest package and installs executables unrelated to ER inventory without a separate approval step. SHA256 checking and archive-path checks reduce some risks, but a compromised manifest can supply both a malicious package URL and its matching checksum.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · scripts/ensure_cli.sh (reported line 89)May include surrounding context.

sh
echo "警告: 解压失败或 tar 包含不安全条目, 拒绝安装" >&2
        return 1
    fi
    mkdir -p ~/.local/bin/skill-quality-cli.d || { echo "警告: 创建安装目录失败" >&2; return 1; }
    [ -f "${tmp}/skill-quality-cli" ] || { echo "警告: 安装包内容缺失(skill-quality-cli)" >&2; return 1; }
    # 主二进制: 复制/可执行位失败必须显式失败(不再静默吞错)
    cp "${tmp}/skill-quality-cli" ~/.local/bin/skill-quality-cli || { echo "警告: 复制 skill-quality-cli 失败" >&2; return 1; }

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · scripts/install_cli.sh (reported line 78)May include surrounding context.

sh
echo "错误: 解压失败或 tar 包含不安全条目, 拒绝安装" >&2
        exit 1
    fi
mkdir -p ~/.local/bin/skill-quality-cli.d
cp "${tmp}/skill-quality-cli" ~/.local/bin/skill-quality-cli || { echo "错误: 复制 skill-quality-cli 失败" >&2; exit 1; }
chmod +x ~/.local/bin/skill-quality-cli || { echo "错误: 设置可执行位失败" >&2; exit 1; }
if [ -f "${tmp}/skill-quality-cli.bin" ]; then

Installs an unrelated skill-quality CLI outside the declared ER inventory functionality.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

This installer copies an unrelated remotely selected executable and supporting modules into the user's executable directory, potentially replacing existing files. Manual invocation reduces the authorization concern, but the installer still expands the inventory skill's trust boundary to an unpinned release whose checksum is supplied by the same release service.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/list_er.py (reported line 437)May include surrounding context.

python
cmd.extend(extra)
    cmd.extend(argv)
    try:
        proc = subprocess.run(
            cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
            timeout=120, universal_newlines=True,
        )

Tainted flow: 'cmd' from os.environ.get (line 431, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/list_er.py (reported line 437)May include surrounding context.

python
cmd.extend(extra)
    cmd.extend(argv)
    try:
        proc = subprocess.run(
            cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
            timeout=120, universal_newlines=True,
        )

The script directly handles AK/SK credentials despite explicitly claiming it never does.

Low
Category
Excessive Agency
Confidence
100% confidence
Finding

The module documentation at L0015–L0017 states that credentials are read by KooCLI or the SDK and are never handled by the script. In contrast, L0619–L0620 explicitly retrieve AK/SK environment values, and L0637 passes those secrets into BasicCredentials. This contradicts the documented credential-handling boundary, although credential use itself is justified by the SDK fallback.

Content

No source excerpt is available for this finding.