Back to skill

Security audit

Huawei Cloud Cce Storage Failure Diagnoser

Security checks for vulnerabilities and agentic risk

Overview

The skill is described as read-only storage diagnosis, but its shipped dispatcher exposes broad cloud and Kubernetes administration actions plus secret-reading paths that users would not reasonably expect.

Review before installing. Only use this skill with tightly read-only Huawei IAM and Kubernetes RBAC credentials, and preferably after removing or hard-blocking non-storage actions, Secret data return, kubeconfig export, and all mutation handlers from the dispatcher. Do not provide credentials that can delete clusters, drain nodes, mutate workloads, read Secret values, or manage ECS/EIP/AOM resources.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
Findings (4)

T05 · Unauthorized Access and Privilege Escalation

Error
Location
scripts/huawei_cloud/dispatcher.py:1469
Finding

Read-only storage Skill exposes destructive and unrelated cloud administration actions

Content
View full analysis
Remediation
View remediation

T05 · Unauthorized Access and Privilege Escalation

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

Dispatcher can return Kubernetes Secret values across namespaces

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 "huawei_list_cce_secrets": (("region", "cluster_id"), _list_cce_secrets), ``` ```python # 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 accepts `include_data=true` and forwards it to `list_cce_secrets`. When no namespace is supplied, the implementation requests Secrets from all namespaces accessible to the generated Kubernetes credentials. It then places `secret.data` directly into the JSON response. Kubernetes Secret values are normally represented as base64 strings. Base64 encoding does not provide confidentiality and can be decoded without a key. C ...[truncated 1558 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
scripts/huawei_cloud/storage.py:410
Finding

Authenticated Huawei Cloud and Kubernetes requests disable TLS certificate verification

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

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

Kubernetes client private keys are written to predictable temporary files

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (450)

Context-Inappropriate Capability

Critical
Category
Not specified by scanner
Confidence
99% confidence
Finding

The compatibility alias map includes destructive and mutating operations such as delete_cce_cluster, delete_cce_node, delete_cce_workload, resize_node_pool, and scale_cce_workload, which are unjustified for a diagnosis skill. Even if some operations use confirmation logic elsewhere, exposing them through this wrapper enables accidental or malicious destructive changes under the guise of troubleshooting.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Critical
Category
Not specified by scanner
Confidence
99% confidence
Finding

The skill can enumerate Kubernetes Secrets and, when include_data=true, return secret contents directly to the caller. For a storage diagnosis skill this is unjustified credential exposure that can leak database passwords, API keys, tokens, and certificates, enabling lateral movement or full cluster/application compromise.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Critical
Category
Not specified by scanner
Confidence
99% confidence
Finding

The skill can stop, start, and reboot ECS instances even though its manifest presents it as a storage failure diagnoser. These actions can directly disrupt workloads, cause downtime, and potentially lead to data loss, and their presence in a diagnostic skill makes accidental or adversarial invocation much more dangerous because users and orchestrators may not expect destructive compute actions.

Content

No source excerpt is available for this finding.

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · SKILL-CN.md (reported line 1)May include surrounding context.

md
---
name: storage-failure-diagnoser
description: Use this skill for CCE Kubernetes storage failures such as PVC Pending, provisioning failures, PV/PVC binding issues, EVS topology conflicts, VolumeAttachment attach failures, FailedMount, SFS/SFS Turbo NFS timeout, OBS 403 or credential errors, runtime IO errors, read-only filesystem, capacity or inode exhaustion, subPath mount deadlocks, and PVC Terminating protection. The skill must produce a complete Markdown diagnosis report with process, evidence, conclusion, confidence, and remediation guidance.
---

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill is presented as a read-only storage diagnoser, but the analysis indicates the underlying package may expose broad cloud administration, Kubernetes mutation, secret access, report writing, and arbitrary infrastructure operations well beyond the declared purpose. That mismatch is a serious trust-boundary violation: users or orchestrators may invoke the skill expecting narrow diagnostic behavior while actually granting a general-purpose privileged cloud operator with access to sensitive resources and destructive actions.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill is presented as a read-only storage diagnoser, but the analysis indicates the underlying package may expose broad cloud administration, Kubernetes mutation, secret access, report writing, and arbitrary infrastructure operations well beyond the declared purpose. That mismatch is a serious trust-boundary violation: users or orchestrators may invoke the skill expecting narrow diagnostic behavior while actually granting a general-purpose privileged cloud operator with access to sensitive resources and destructive actions.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill is presented as a read-only storage diagnoser, but the analysis indicates the underlying package may expose broad cloud administration, Kubernetes mutation, secret access, report writing, and arbitrary infrastructure operations well beyond the declared purpose. That mismatch is a serious trust-boundary violation: users or orchestrators may invoke the skill expecting narrow diagnostic behavior while actually granting a general-purpose privileged cloud operator with access to sensitive resources and destructive actions.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill is presented as a read-only storage diagnoser, but the analysis indicates the underlying package may expose broad cloud administration, Kubernetes mutation, secret access, report writing, and arbitrary infrastructure operations well beyond the declared purpose. That mismatch is a serious trust-boundary violation: users or orchestrators may invoke the skill expecting narrow diagnostic behavior while actually granting a general-purpose privileged cloud operator with access to sensitive resources and destructive actions.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill is presented as a read-only storage diagnoser, but the analysis indicates the underlying package may expose broad cloud administration, Kubernetes mutation, secret access, report writing, and arbitrary infrastructure operations well beyond the declared purpose. That mismatch is a serious trust-boundary violation: users or orchestrators may invoke the skill expecting narrow diagnostic behavior while actually granting a general-purpose privileged cloud operator with access to sensitive resources and destructive actions.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill is presented as a read-only storage diagnoser, but the analysis indicates the underlying package may expose broad cloud administration, Kubernetes mutation, secret access, report writing, and arbitrary infrastructure operations well beyond the declared purpose. That mismatch is a serious trust-boundary violation: users or orchestrators may invoke the skill expecting narrow diagnostic behavior while actually granting a general-purpose privileged cloud operator with access to sensitive resources and destructive actions.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill is presented as a read-only storage diagnoser, but the analysis indicates the underlying package may expose broad cloud administration, Kubernetes mutation, secret access, report writing, and arbitrary infrastructure operations well beyond the declared purpose. That mismatch is a serious trust-boundary violation: users or orchestrators may invoke the skill expecting narrow diagnostic behavior while actually granting a general-purpose privileged cloud operator with access to sensitive resources and destructive actions.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill is presented as a read-only storage diagnoser, but the analysis indicates the underlying package may expose broad cloud administration, Kubernetes mutation, secret access, report writing, and arbitrary infrastructure operations well beyond the declared purpose. That mismatch is a serious trust-boundary violation: users or orchestrators may invoke the skill expecting narrow diagnostic behavior while actually granting a general-purpose privileged cloud operator with access to sensitive resources and destructive actions.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill is presented as a read-only storage diagnoser, but the analysis indicates the underlying package may expose broad cloud administration, Kubernetes mutation, secret access, report writing, and arbitrary infrastructure operations well beyond the declared purpose. That mismatch is a serious trust-boundary violation: users or orchestrators may invoke the skill expecting narrow diagnostic behavior while actually granting a general-purpose privileged cloud operator with access to sensitive resources and destructive actions.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill is presented as a read-only storage diagnoser, but the analysis indicates the underlying package may expose broad cloud administration, Kubernetes mutation, secret access, report writing, and arbitrary infrastructure operations well beyond the declared purpose. That mismatch is a serious trust-boundary violation: users or orchestrators may invoke the skill expecting narrow diagnostic behavior while actually granting a general-purpose privileged cloud operator with access to sensitive resources and destructive actions.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill is presented as a read-only storage diagnoser, but the analysis indicates the underlying package may expose broad cloud administration, Kubernetes mutation, secret access, report writing, and arbitrary infrastructure operations well beyond the declared purpose. That mismatch is a serious trust-boundary violation: users or orchestrators may invoke the skill expecting narrow diagnostic behavior while actually granting a general-purpose privileged cloud operator with access to sensitive resources and destructive actions.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill is presented as a read-only storage diagnoser, but the analysis indicates the underlying package may expose broad cloud administration, Kubernetes mutation, secret access, report writing, and arbitrary infrastructure operations well beyond the declared purpose. That mismatch is a serious trust-boundary violation: users or orchestrators may invoke the skill expecting narrow diagnostic behavior while actually granting a general-purpose privileged cloud operator with access to sensitive resources and destructive actions.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill is presented as a read-only storage diagnoser, but the analysis indicates the underlying package may expose broad cloud administration, Kubernetes mutation, secret access, report writing, and arbitrary infrastructure operations well beyond the declared purpose. That mismatch is a serious trust-boundary violation: users or orchestrators may invoke the skill expecting narrow diagnostic behavior while actually granting a general-purpose privileged cloud operator with access to sensitive resources and destructive actions.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill is presented as a read-only storage diagnoser, but the analysis indicates the underlying package may expose broad cloud administration, Kubernetes mutation, secret access, report writing, and arbitrary infrastructure operations well beyond the declared purpose. That mismatch is a serious trust-boundary violation: users or orchestrators may invoke the skill expecting narrow diagnostic behavior while actually granting a general-purpose privileged cloud operator with access to sensitive resources and destructive actions.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill is presented as a read-only storage diagnoser, but the analysis indicates the underlying package may expose broad cloud administration, Kubernetes mutation, secret access, report writing, and arbitrary infrastructure operations well beyond the declared purpose. That mismatch is a serious trust-boundary violation: users or orchestrators may invoke the skill expecting narrow diagnostic behavior while actually granting a general-purpose privileged cloud operator with access to sensitive resources and destructive actions.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill is presented as a read-only storage diagnoser, but the analysis indicates the underlying package may expose broad cloud administration, Kubernetes mutation, secret access, report writing, and arbitrary infrastructure operations well beyond the declared purpose. That mismatch is a serious trust-boundary violation: users or orchestrators may invoke the skill expecting narrow diagnostic behavior while actually granting a general-purpose privileged cloud operator with access to sensitive resources and destructive actions.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill is presented as a read-only storage diagnoser, but the analysis indicates the underlying package may expose broad cloud administration, Kubernetes mutation, secret access, report writing, and arbitrary infrastructure operations well beyond the declared purpose. That mismatch is a serious trust-boundary violation: users or orchestrators may invoke the skill expecting narrow diagnostic behavior while actually granting a general-purpose privileged cloud operator with access to sensitive resources and destructive actions.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill is presented as a read-only storage diagnoser, but the analysis indicates the underlying package may expose broad cloud administration, Kubernetes mutation, secret access, report writing, and arbitrary infrastructure operations well beyond the declared purpose. That mismatch is a serious trust-boundary violation: users or orchestrators may invoke the skill expecting narrow diagnostic behavior while actually granting a general-purpose privileged cloud operator with access to sensitive resources and destructive actions.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill is presented as a read-only storage diagnoser, but the analysis indicates the underlying package may expose broad cloud administration, Kubernetes mutation, secret access, report writing, and arbitrary infrastructure operations well beyond the declared purpose. That mismatch is a serious trust-boundary violation: users or orchestrators may invoke the skill expecting narrow diagnostic behavior while actually granting a general-purpose privileged cloud operator with access to sensitive resources and destructive actions.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill is presented as a read-only storage diagnoser, but the analysis indicates the underlying package may expose broad cloud administration, Kubernetes mutation, secret access, report writing, and arbitrary infrastructure operations well beyond the declared purpose. That mismatch is a serious trust-boundary violation: users or orchestrators may invoke the skill expecting narrow diagnostic behavior while actually granting a general-purpose privileged cloud operator with access to sensitive resources and destructive actions.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill is presented as a read-only storage diagnoser, but the analysis indicates the underlying package may expose broad cloud administration, Kubernetes mutation, secret access, report writing, and arbitrary infrastructure operations well beyond the declared purpose. That mismatch is a serious trust-boundary violation: users or orchestrators may invoke the skill expecting narrow diagnostic behavior while actually granting a general-purpose privileged cloud operator with access to sensitive resources and destructive actions.

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