T09 · Insecure Skill Coding Practices
- Location
scripts/huawei_cloud/cce_diagnosis.py:751- Finding
CCE kubeconfig credentials are persisted to predictable temporary files
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill claims to be read-only diagnosis, but it ships runnable cloud and Kubernetes mutation capabilities plus unsafe credential handling.
Review before installing. Use only tightly scoped read-only Huawei Cloud IAM and Kubernetes RBAC credentials, do not provide admin credentials, and do not run this in production until the dispatcher is restricted to the declared diagnosis actions and the temporary credential-file and TLS verification issues are fixed.
scripts/huawei_cloud/cce_diagnosis.py:751CCE kubeconfig credentials are persisted to predictable temporary files
scripts/huawei_cloud/network.py:769Signed Huawei Cloud NAT requests disable TLS certificate verification
scripts/huawei_cloud/cce.py:1143Kubernetes API connections disable TLS verification while using client certificates
scripts/huawei_cloud/cce.py:3982Client private keys are written through race-prone and fixed temporary paths
scripts/huawei_cloud/dispatcher.py:1469Diagnosis Skill dispatcher exposes destructive cloud and Kubernetes operations
scripts/huawei_get_node_security_groups.py:128Standalone utility accepts account passwords and cloud secrets through command-line arguments
This diagnosis skill contains active remediation logic that patches Deployment replica counts and also exposes node-pool expansion elsewhere in the file. In a diagnostic context, hidden write actions against a live cluster are highly dangerous because a caller expecting read-only analysis could trigger production changes, outages, cost increases, or interfere with incident response.
The code can stop, start, and reboot ECS instances even though the skill is positioned as a CCE workload failure diagnoser. In this context, those actions are especially dangerous because they can cause production outages, data loss, or service disruption under the guise of a diagnostic workflow, violating user expectations and least privilege.
Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
---
name: workload-failure-diagnoser
description: Use this skill for CCE workload rollout failures such as release failed, rolling update stuck, replicas unavailable, Deployment new ReplicaSet not creating Pods, StatefulSet or DaemonSet update blocked, and probe-related readiness failures.
---
Querying ECS by IP, inspecting security groups, and using IAM password authentication/token acquisition are infrastructure/security inspection features outside the declared workload diagnosis scope. The added authentication modes and network-security access increase sensitivity and attack surface.
Querying ECS by IP, inspecting security groups, and using IAM password authentication/token acquisition are infrastructure/security inspection features outside the declared workload diagnosis scope. The added authentication modes and network-security access increase sensitivity and attack surface.
Querying ECS by IP, inspecting security groups, and using IAM password authentication/token acquisition are infrastructure/security inspection features outside the declared workload diagnosis scope. The added authentication modes and network-security access increase sensitivity and attack surface.
Querying ECS by IP, inspecting security groups, and using IAM password authentication/token acquisition are infrastructure/security inspection features outside the declared workload diagnosis scope. The added authentication modes and network-security access increase sensitivity and attack surface.
Querying ECS by IP, inspecting security groups, and using IAM password authentication/token acquisition are infrastructure/security inspection features outside the declared workload diagnosis scope. The added authentication modes and network-security access increase sensitivity and attack surface.
Querying ECS by IP, inspecting security groups, and using IAM password authentication/token acquisition are infrastructure/security inspection features outside the declared workload diagnosis scope. The added authentication modes and network-security access increase sensitivity and attack surface.
Querying ECS by IP, inspecting security groups, and using IAM password authentication/token acquisition are infrastructure/security inspection features outside the declared workload diagnosis scope. The added authentication modes and network-security access increase sensitivity and attack surface.
Querying ECS by IP, inspecting security groups, and using IAM password authentication/token acquisition are infrastructure/security inspection features outside the declared workload diagnosis scope. The added authentication modes and network-security access increase sensitivity and attack surface.
Querying ECS by IP, inspecting security groups, and using IAM password authentication/token acquisition are infrastructure/security inspection features outside the declared workload diagnosis scope. The added authentication modes and network-security access increase sensitivity and attack surface.
Querying ECS by IP, inspecting security groups, and using IAM password authentication/token acquisition are infrastructure/security inspection features outside the declared workload diagnosis scope. The added authentication modes and network-security access increase sensitivity and attack surface.
Querying ECS by IP, inspecting security groups, and using IAM password authentication/token acquisition are infrastructure/security inspection features outside the declared workload diagnosis scope. The added authentication modes and network-security access increase sensitivity and attack surface.
Querying ECS by IP, inspecting security groups, and using IAM password authentication/token acquisition are infrastructure/security inspection features outside the declared workload diagnosis scope. The added authentication modes and network-security access increase sensitivity and attack surface.
Querying ECS by IP, inspecting security groups, and using IAM password authentication/token acquisition are infrastructure/security inspection features outside the declared workload diagnosis scope. The added authentication modes and network-security access increase sensitivity and attack surface.
Querying ECS by IP, inspecting security groups, and using IAM password authentication/token acquisition are infrastructure/security inspection features outside the declared workload diagnosis scope. The added authentication modes and network-security access increase sensitivity and attack surface.
Querying ECS by IP, inspecting security groups, and using IAM password authentication/token acquisition are infrastructure/security inspection features outside the declared workload diagnosis scope. The added authentication modes and network-security access increase sensitivity and attack surface.
Querying ECS by IP, inspecting security groups, and using IAM password authentication/token acquisition are infrastructure/security inspection features outside the declared workload diagnosis scope. The added authentication modes and network-security access increase sensitivity and attack surface.
Querying ECS by IP, inspecting security groups, and using IAM password authentication/token acquisition are infrastructure/security inspection features outside the declared workload diagnosis scope. The added authentication modes and network-security access increase sensitivity and attack surface.
Querying ECS by IP, inspecting security groups, and using IAM password authentication/token acquisition are infrastructure/security inspection features outside the declared workload diagnosis scope. The added authentication modes and network-security access increase sensitivity and attack surface.
Querying ECS by IP, inspecting security groups, and using IAM password authentication/token acquisition are infrastructure/security inspection features outside the declared workload diagnosis scope. The added authentication modes and network-security access increase sensitivity and attack surface.
Querying ECS by IP, inspecting security groups, and using IAM password authentication/token acquisition are infrastructure/security inspection features outside the declared workload diagnosis scope. The added authentication modes and network-security access increase sensitivity and attack surface.
Querying ECS by IP, inspecting security groups, and using IAM password authentication/token acquisition are infrastructure/security inspection features outside the declared workload diagnosis scope. The added authentication modes and network-security access increase sensitivity and attack surface.
Querying ECS by IP, inspecting security groups, and using IAM password authentication/token acquisition are infrastructure/security inspection features outside the declared workload diagnosis scope. The added authentication modes and network-security access increase sensitivity and attack surface.
Detected: suspicious.exposed_secret_literal, suspicious.insecure_tls_verification