Back to skill

Security audit

huawei-cloud-vpcep-list

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rated this skill suspicious because the scanners flagged an unverified downloaded installer and environment-controlled command execution; the review is based on incomplete analysis.

Review the installer and its system changes before running it, and avoid installing if you cannot verify the installer through a trusted source. Consider whether the skill's undeclared tool scope and environment-based command overrides fit your setup. Skillspector inspected all listed components, but marked analysis partial because three local path-like references could not be resolved; the evidence is therefore 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.

The installation instructions execute a downloaded shell script without warning about its impact on the local system.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The instructions immediately execute a remotely downloaded, mutable installer without verifying its integrity or authenticity beyond HTTPS. Compromise of the distribution endpoint or artifact could execute arbitrary code with the installing user's privileges, potentially exposing cloud credentials; the read-only API restrictions do not constrain this installation step.

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_vpcep.py (reported line 373)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 367, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
84% confidence
Finding

Production execution accepts an arbitrary executable through VPCEP_LIST_HCLOUD_BIN and unchecked leading arguments through VPCEP_LIST_HCLOUD_ARGS, bypassing the read-only operation guard at the process boundary. If a less-trusted launcher or environment configuration can influence these variables, it can execute code with the agent's privileges and inherited credentials; this is conditional on environment control, not shell metacharacter injection.

Content

Scanner excerpt · scripts/list_vpcep.py (reported line 373)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 skill specifies Chinese-only diagnostic hints without offering a language choice.

Low
Category
Output Handling
Confidence
96% confidence
Finding

The workflow specifies Chinese hints for empty results, permission failures, invalid IDs, and missing credentials, regardless of the user's language. No language opt-in or justification for requiring Chinese diagnostics is provided; using Huawei Cloud alone does not justify this output-language constraint.

Content

No source excerpt is available for this finding.

Acceptance criteria require Chinese-language error hints without offering a language choice or documenting a locale-specific justification.

Low
Category
Output Handling
Confidence
98% confidence
Finding

These criteria explicitly require Chinese hints for permission failures, credential errors, and invalid resource IDs. The file provides neither user opt-in nor a documented locale-specific reason for fixing these messages to Chinese.

Content

No source excerpt is available for this finding.

Dynamic attribute access via getattr()

Low
Category
Dangerous Code Execution
Confidence
50% confidence
Finding

Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.

Content

Scanner excerpt · scripts/list_vpcep.py (reported line 662)May include surrounding context.

python
response_key = "endpoint_services"
        try:
            response = call(request)
            batch_objs = list(getattr(response, response_key) or [])
        except Exception as exc:
            low = str(exc).lower()
            if any(p in low for p in _AUTH_PATTERNS):