Back to skill

Security audit

Huawei Cloud Cce Pressure Test

Security checks for vulnerabilities and agentic risk

Overview

This load-testing skill is aligned with its stated purpose in many places, but it exposes undisclosed high-risk Kubernetes and cloud actions, including cluster-wide secret export, so it should be reviewed before installation.

Install only in isolated test Huawei projects and CCE clusters using least-privilege IAM and Kubernetes RBAC. Do not provide production or root credentials. Before use, remove or block non-pressure-test dispatcher actions such as secret export and destructive cluster/workload operations, enable TLS certificate verification, fix temporary key handling, and pin dependencies. Treat ELB creation, traffic generation, scaling, and APM injection as explicit approval-only actions with a known test window and rollback plan.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (4)

T05 · Unauthorized Access and Privilege Escalation

Error
Location
scripts/huawei_cloud/cce.py:3313
Finding

Dispatcher Can Return Cluster-Wide Kubernetes Secret Contents

Content
View full analysis
Dict[str, Any]: return cce.list_cce_secrets(params["region"], params["cluster_id"], params.get("namespace"), _to_int(params.get("limit"), 100), params.get("include_data", "false").lower() == "true", params.get("ak"), params.get("sk"), params.get("project_id")) ``` ```python # scripts/huawei_cloud/dispatcher.py:1694 "huawei_list_cce_secrets": (("region", "cluster_id"), _list_cce_secrets), ``` ```python # scripts/huawei_cloud/cce.py:3404-3422 # List secrets core_v1 = k8s_client.CoreV1Api() if namespace: secrets = core_v1.list_namespaced_secret(namespace, limit=limit) else: secrets = core_v1.list_secret_for_all_namespaces(limit=limit) secret_list = [] for secret in secrets.items: secret_info = { "name": secret.metadata.name, "namespace": secret.metadata.namespace, "type": secret.type, "created": str(secret.metadata.creation_timestamp) if secret.metadata.creation_timestamp else None, "labels": secret.metadata.labels, "annotations": secret.metadata.annotations, "data_keys": list(secret.data.keys()) if secret.data else [] } if include_data and secret.data: secret_info["data"] = secret.data secret_list.append(secret_info) ``` ### Technical Analysis The public dispatcher registers `huawei_list_cce_secrets` and permits the caller to set `include_data=true`. When enabled, the implementation copies the complete `Secret.data` object into the returned JSON structure. The dispatcher subsequently serializes this structure to standard output. Kubernetes Secret values are base64-encoded rather than encrypted for AP ...[truncated 1932 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
scripts/huawei_cloud/cce.py:3353
Finding

Kubernetes API TLS Certificate Verification Is Disabled

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
scripts/huawei_cloud/cce.py:1161
Finding

Cluster Client Private Keys Are Written to Predictable Temporary Paths

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
SKILL.md:70
Finding

Runtime Dependencies Are Installed Without Version or Hash Pinning

Content
View full analysis
= 3.6 installed - Required packages: `huaweicloudsdkcore`, `huaweicloudsdkcce`, `huaweicloudsdkvpc`, `huaweicloudsdkvpcep`, `huaweicloudsdkaom`, `huaweicloudsdkelb`, `kubernetes`, `matplotlib` - Verify: `python3 --version` - Install packages: `pip3 install huaweicloudsdkcore huaweicloudsdkcce huaweicloudsdkvpc huaweicloudsdkvpcep huaweicloudsdkaom huaweicloudsdkelb kubernetes matplotlib` ``` ### Technical Analysis The installation instruction resolves package versions dynamically from the configured Python package index. No exact versions, integrity hashes, lock file, or trusted-index restrictions are provided. Python packages and their transitive dependencies may execute code during build or installation. A compromised upstream release, malicious package-index configuration, or unexpected future version can therefore execute code in the environment where the Skill is installed. Dynamic dependency resolution also reduces reproducibility and can introduce incompatible or newly vulnerable versions after the Skill has been reviewed. No evidence was found that the listed package names are intentional typosquats or currently malicious. The confirmed issue is the unsafe, unpinned installation process. ### Attack Path 1. An operator follows the mandatory installation instruction. 2. `pip` queries its configured package index and selects the latest compatible direct and transitive dependencies. 3. A compromised or malicious release is selected, or index configuration redirects resolution to an untrusted source. 4. Package build or installation code executes with the operator's local privileges. 5. The installed package later runs inside the dispatcher process. 6. It can access Huawei credentials in environment variable ...[truncated 634 chars]
Remediation
View remediation
Vulnerability Patterns
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (450)

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill explicitly supports creating billable ELB resources and inspecting ELB backends and metrics. While relevant to the test path, this is still cloud resource management with financial and operational consequences, and it goes beyond what users may assume from a simple load-test helper.

Content

No source excerpt is available for this finding.

Static analysis

Detected: suspicious.exposed_secret_literal, suspicious.insecure_tls_verification

File appears to expose a hardcoded API secret or token.

Critical
Code
suspicious.exposed_secret_literal
Location
scripts/huawei_cloud/cce_nodepool.py:456

HTTPS certificate verification is disabled.

Warn
Code
suspicious.insecure_tls_verification
Location
scripts/huawei_cloud/network.py:781

HTTPS certificate verification is disabled.

Warn
Code
suspicious.insecure_tls_verification
Location
scripts/huawei_cloud/storage.py:416