Back to skill

Security audit

huawei-cloud-flexus-l-server-scripts-excute

Security checks for vulnerabilities and agentic risk

Overview

This skill needs review because it can automatically select a script to run with full server privileges, and its smoke test requires access keys in command-line arguments.

Before installing, require explicit script selection and content review, restrict credentials to intended instances and operations, and use a less privileged execution account where possible. Change the smoke test to accept credentials safely and disclose its cloud mutation. Correct the installation instructions and remove test scripts afterward. All eight bundled files were inspected statically; resolved dependency versions and live IAM restrictions remain unverified.

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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (6)

Dependency Source Redirection

High
Category
Supply Chain
Confidence
100% confidence
Finding

Dependency resolution is redirected away from a canonical default, adds another source, or uses a destination that cannot be resolved statically.

Content

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

md
pip install -r {baseDir}/requirements.txt -i https://pypi.org/project/huaweicloudsdkcoc/

Dependency Source Redirection

High
Category
Supply Chain
Confidence
100% confidence
Finding

Dependency resolution is redirected away from a canonical default, adds another source, or uses a destination that cannot be resolved statically.

Content

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

md
pip install -r {baseDir}/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/

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 581)May include surrounding context.

md
- [Verification Method](references/verification-method.md)

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

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.

Routing keywords are not restricted to Huawei Cloud COC or Flexus L instances.

Medium
Category
Trigger Abuse
Confidence
90% confidence
Finding

The routing list includes broad phrases such as "custom script", "script execution", and "cloud operations", which also describe unrelated scripting and cloud tasks. Although the overview identifies Huawei Cloud as the intended platform, the activation instructions do not require that context or provide exclusions, allowing unintended routing to this skill.

Content

No source excerpt is available for this finding.

Unverifiable Dependency: setuptools has 11 known advisory(ies) (CVE-2013-1633 (Setuptools vulnerable to Man-in-the-middle attacks); CVE-2025-47273 (setuptools has a path traversal vulnerability in PackageIndex.download that lead); CVE-2024-6345 (setuptools vulnerable to Command Injection via package URL) +8 more), but the manifest does not pin a version, so it is unknown whether the installed release is affected

Low
Category
Supply Chain
Confidence
40% confidence
Finding

OSV returned advisories for this package, but its resolved version is unknown. A package-name lookup does not establish whether the installed release is affected by those advisories.

Content

No source excerpt is available for this finding.