Back to skill

Security audit

huawei-cloud-rds-list

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because the scanner found a risky remote installer and an environment-controlled command override that could run another program with cloud credentials; this is a review warning, not a finding of malicious intent.

Review the installation instructions and avoid running the downloaded installer until you can verify it through a trusted source. Install only if you trust the package and can protect the environment variables that select the CLI executable and add its arguments. Skillspector inspected all listed components but marked analysis partial because several local path-like references could not be resolved, so the evidence is incomplete.

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
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (7)

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

Markdown exports require Chinese headers without a language choice or documented locale justification.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The acceptance criterion explicitly requires Chinese headers in exported Markdown files. Selecting Markdown export is not a language opt-in, and the file provides no justification for imposing this locale.

Content

No source excerpt is available for this finding.

The installation instructions execute a downloaded shell script without warning that it can modify the local system.

Medium
Category
Output Handling
Confidence
92% confidence
Finding

The guide instructs users to execute a mutable remote installer without verifying a signature or independently trusted digest. HTTPS protects transport but not against compromise of the distribution endpoint; a substituted installer could execute with the user's privileges and access local cloud credentials, despite the inventory operation itself being read-only.

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_rds.py (reported line 280)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 274, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
87% confidence
Finding

Production execution accepts an arbitrary executable through RDS_LIST_HCLOUD_BIN and prepends unvalidated RDS_LIST_HCLOUD_ARGS before the fixed RDS arguments, outside the write-intent guard. If an attacker can influence these environment variables, they can substitute a program or interpreter invocation that executes arbitrary code with inherited cloud credentials; this is conditional on environment control, not shell injection through normal CLI filters.

Content

Scanner excerpt · scripts/list_rds.py (reported line 280)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,
        )

Markdown exports require Chinese titles and column headers without a user language choice.

Low
Category
Output Handling
Confidence
96% confidence
Finding

The export layout explicitly fixes the title and table headers in Chinese without offering a language option or documenting a locale-specific justification. Opting into Markdown export selects a file format, not a language.

Content

No source excerpt is available for this finding.

The export test requires Chinese-language table headers without user language opt-in.

Low
Category
Output Handling
Confidence
94% confidence
Finding

The expected result explicitly requires a Chinese header row in the generated Markdown, enforcing a specific output language through the test specification. The file provides no language choice or documented justification for that requirement; selecting a cloud region does not itself establish a user language preference.

Content

No source excerpt is available for this finding.