Back to skill

Security audit

huawei-cloud-obs-signed-url-generator

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because the scanners report unrelated quality-tool installation and telemetry, and the URL generator can sign requests that modify or delete objects; the overall confidence is medium.

The scanner recommends against installation. Before installing, consider whether you need a tool that may install an unrelated CLI and can create signed URLs for object changes or deletion; any such actions depend on the permissions of the credentials it uses. The review is incomplete: 14 of 15 components were scanned, one analyzer was degraded, and some references were unresolved.

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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Rogue AgentSelf-Modification, Session Persistence
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (14)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The supplied shell command performs CLI upgrade activity rather than generating OBS signed URLs. Nothing in the provided chunk establishes this tool upgrade as a supporting implementation detail required for the declared purpose.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Requiring an unrelated executable installer for URL generation introduces a persistent software dependency beyond the user's signing task. The dependency is disclosed, but automatic provisioning still creates avoidable supply-chain exposure on a credential-bearing host.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The documented contract explicitly limits methods to GET and HEAD, while the reported implementation also permits signing write and delete requests. In this download-sharing context, issuing such a URL can delegate unintended destructive capabilities when the signing identity has corresponding OBS permissions; it does not bypass IAM.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill makes automatic installation of an ancillary telemetry CLI part of a workflow that only requires local OBS signing. Although disclosed in the body, this expands the execution trust boundary to remotely supplied software in an environment containing cloud credentials; the document does not establish that telemetry actually transmits those credentials.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
92% confidence
Finding

The supplied command modifies an environment setting unrelated to the declared OBS functionality, with no evident role in URL signing or image processing. Its name suggests disabling quality reporting, although the actual downstream effect depends on software that reads the variable. This assessment is limited to the supplied code chunk.

Content

No source excerpt is available for this finding.

The skill downloads and persistently installs an unrelated quality-management CLI.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

When the ancillary CLI is absent, this readiness script downloads a mutable latest release and installs executable code into the user's persistent bin directory without an approval gate. SHA256 verification and archive-path checks help, but the same manifest controls both the package URL and expected hash, so compromise of that release authority can still supply arbitrary code for subsequent execution.

Content

No source excerpt is available for this finding.

Download-only URL generator also signs POST, PUT, and DELETE requests.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts POST, PUT, and DELETE and passes the selected method directly into the signer despite presenting the tool as a download URL generator. If the signing credentials permit these actions, an incorrectly selected method produces a shareable authorization for modification or deletion rather than read-only access; the default GET and IAM restrictions limit exposure.

Content

No source excerpt is available for this finding.

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, 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.

Automatic quality telemetry and installation of an unrelated CLI exceed the signed-URL generator's stated purpose.

Medium
Category
Excessive Agency
Confidence
95% confidence
Finding

Automatic telemetry and automatic installation are enabled as dependencies despite being unnecessary for OBS URL signing. An opt-out does not provide prior consent, and the document does not specify which data reporting collects, creating an avoidable privacy and software-trust exposure.

Content

No source excerpt is available for this finding.

The installation guide introduces an unrelated executable installer for skill-quality-cli.

Medium
Category
Excessive Agency
Confidence
93% confidence
Finding

L45 instructs running scripts/ensure_cli.sh, which L48 describes as downloading the latest skill-quality-cli when missing; L55 provides a fallback installer. Installing a skill-quality tool is unrelated to generating OBS signed URLs or performing the declared image-processing operations, and introduces an additional executable dependency outside the stated purpose.

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 98)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 OBS signed-URL generator's stated purpose.

Medium
Category
Excessive Agency
Confidence
98% confidence
Finding

When manually invoked, this script fetches a skill-quality-cli release manifest and archive (L026–L068), then installs executable files and supporting modules into ~/.local/bin (L098–L108). Installing a separate skill-quality tool is not required for OBS URL signing or image-processing URL generation and is not declared in the skill manifest; checksum verification does not resolve this purpose mismatch.

Content

No source excerpt is available for this finding.

The documented 40 MB size limit is never enforced; the check always reports PASS (L118–L120).

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The size check reports PASS on both branches, so oversized skills and measurement failures cannot fail validation. It also compares du -sm output, measured in megabytes, against 40960 rather than the documented 40 MB threshold, allowing a packaging gate to be bypassed without demonstrating code execution.

Content

No source excerpt is available for this finding.