T09 · Insecure Skill Coding Practices
- Location
scripts/compshare_client.py:226- Finding
Instance passwords can be disclosed through unredacted API responses printed to stdout
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is not clearly malicious, but it needs review because it combines GPU instance management with broad SSH administration and unsafe password handling.
Review carefully before installing. Use it only with credentials scoped to CompShare resources you are willing to let an agent manage, avoid passing passwords on the command line, verify SSH host keys independently, and treat list output and logs as sensitive because they may contain instance login material. The SSH shell and file commands should be considered full remote administration authority, not just instance lifecycle management.
scripts/compshare_client.py:226Instance passwords can be disclosed through unredacted API responses printed to stdout
scripts/ssh_client.py:88SSH host-key verification is disabled through AutoAddPolicy
scripts/compshare_client.py:96Configurable API endpoint can redirect credentials and instance passwords to an untrusted server
scripts/ssh_client.py:720Plaintext passwords are accepted and documented as command-line arguments
SKILL.md:3Third-party dependencies are installed without reproducible version and integrity controls
The manifest presents the skill as GPU instance lifecycle management, but the body also documents arbitrary remote command execution, interactive shell access, and file transfer/manipulation. This mismatch is dangerous because it can mislead users and policy systems into approving a skill with materially broader access than its stated purpose.
The documented skill expands from cloud instance lifecycle management into broad SSH remote administration, including command execution and file transfer. In context, this is more dangerous because users invoking a cloud-management skill may not expect it to gain effective root-level access to instance contents and runtime state.
Interactive shell access and arbitrary remote command execution are highly sensitive capabilities that exceed what is necessary for starting, stopping, or listing instances. If misused, they enable arbitrary code execution on customer infrastructure, data access, persistence, and destructive actions far beyond the declared lifecycle-management purpose.
The delete command triggers terminate_comp_share_instance, which is a destructive remote operation affecting user resources. Although the function docstring notes that the instance must be stopped first, the executable CLI path provides no confirmation, warning, or other user-facing disclosure before deletion.
The script advertises and implements a general-purpose SSH administration client, including remote command execution, file transfer, and shell access, which materially exceeds the declared skill purpose of cloud instance lifecycle management. In an agent skill context, this creates a dangerous capability expansion: any caller that can invoke the skill may gain broad post-provisioning access to guest systems, enabling arbitrary actions on remote instances and access to data beyond the intended API-management scope.
The execute() path exposes arbitrary remote command execution, and the CLI also supports an interactive shell, giving full operator-level access to the target instance. In a skill whose stated purpose is instance create/query/start/stop/reboot/password reset/delete, this is an unnecessary and high-risk privilege expansion that could be abused to run malware, exfiltrate secrets, or tamper with workloads on provisioned machines.
The skill documents capabilities that imply shell execution and file access, but it does not declare any explicit tool scope or permissions boundary. This is dangerous because an agent or reviewer cannot easily determine or enforce what operations are authorized, increasing the chance of over-privileged execution and abuse.
The skill documents instance deletion but does not prominently warn that deletion may be irreversible and may cause permanent data loss. In an infrastructure-management context, omission of such warnings increases the risk of accidental destructive operations by users or agents.
The skill instructs users to retrieve SSH passwords and connection details from instance listings without clear security guidance on handling secrets. This is dangerous because it encourages exposure of credentials in command lines, logs, transcripts, or agent memory, making compromise of remote hosts more likely.
The skill documents remote file deletion, chmod, rename, upload/download, and shell operations over SSH without clear safety warnings or operational guardrails. In context, these actions can directly alter or destroy remote systems and data, so presenting them without cautions increases the likelihood of harmful or unintended administrative actions.
The file uses Chinese-only natural-language instructions and points exclusively to a .cn console and China-region endpoints/region values, which imposes a specific language/locale context without opt-in. The provided content does not state that the skill is region-specific or offer any alternative locale or language choice.
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
CompShare是优云智算平台提供的GPU云服务器服务。本文档详细说明了所有API接口的参数、响应格式和使用方法。
**API基础地址**: `https://api.compshare.cn/`
**支持的GPU类型**: P40、2080、3090、3080Ti、4090、A800、A100、H20
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
CompShare是优云智算平台提供的GPU云服务器服务。本文档详细说明了所有API接口的参数、响应格式和使用方法。
**API基础地址**: `https://api.compshare.cn/`
**支持的GPU类型**: P40、2080、3090、3080Ti、4090、A800、A100、H20
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
CompShare是优云智算平台提供的GPU云服务器服务。本文档详细说明了所有API接口的参数、响应格式和使用方法。
**API基础地址**: `https://api.compshare.cn/`
**支持的GPU类型**: P40、2080、3090、3080Ti、4090、A800、A100、H20
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
CompShare是优云智算平台提供的GPU云服务器服务。本文档详细说明了所有API接口的参数、响应格式和使用方法。
**API基础地址**: `https://api.compshare.cn/`
**支持的GPU类型**: P40、2080、3090、3080Ti、4090、A800、A100、H20
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
CompShare是优云智算平台提供的GPU云服务器服务。本文档详细说明了所有API接口的参数、响应格式和使用方法。
**API基础地址**: `https://api.compshare.cn/`
**支持的GPU类型**: P40、2080、3090、3080Ti、4090、A800、A100、H20
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
CompShare是优云智算平台提供的GPU云服务器服务。本文档详细说明了所有API接口的参数、响应格式和使用方法。
**API基础地址**: `https://api.compshare.cn/`
**支持的GPU类型**: P40、2080、3090、3080Ti、4090、A800、A100、H20
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
CompShare是优云智算平台提供的GPU云服务器服务。本文档详细说明了所有API接口的参数、响应格式和使用方法。
**API基础地址**: `https://api.compshare.cn/`
**支持的GPU类型**: P40、2080、3090、3080Ti、4090、A800、A100、H20
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
CompShare是优云智算平台提供的GPU云服务器服务。本文档详细说明了所有API接口的参数、响应格式和使用方法。
**API基础地址**: `https://api.compshare.cn/`
**支持的GPU类型**: P40、2080、3090、3080Ti、4090、A800、A100、H20
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
CompShare是优云智算平台提供的GPU云服务器服务。本文档详细说明了所有API接口的参数、响应格式和使用方法。
**API基础地址**: `https://api.compshare.cn/`
**支持的GPU类型**: P40、2080、3090、3080Ti、4090、A800、A100、H20
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
CompShare是优云智算平台提供的GPU云服务器服务。本文档详细说明了所有API接口的参数、响应格式和使用方法。
**API基础地址**: `https://api.compshare.cn/`
**支持的GPU类型**: P40、2080、3090、3080Ti、4090、A800、A100、H20
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
https://api.ucloud.cn/?Action=DescribeCompShareCustomImages
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=GSIKgudm
The skill metadata says it manages GPU instance lifecycle, but the reference adds broad SSH capabilities including remote command execution, file upload/download, permission changes, and file deletion. This materially expands the skill from infrastructure management into arbitrary remote administration, increasing the chance of unsafe actions, secret access, destructive operations, and post-provisioning misuse.
The SSH section documents high-risk operations such as exec, rm, rmdir, chmod, upload, download, and interactive shell without safety guidance, confirmation requirements, or warnings about remote code execution and data loss. In an agent context, this can normalize destructive or irreversible actions and make accidental or prompt-induced misuse much more likely.
The SSH examples use root-level access patterns and include permission-changing operations such as chmod, alongside arbitrary remote administration. In this context, encouraging privileged remote actions without guardrails increases the blast radius of mistakes or prompt abuse, allowing system-wide modification or destructive changes on provisioned instances.
| cat | 查看文件内容 | `python ssh_client.py cat --ssh-command "..." --password "..." --path "/etc/hosts"` |
| stat | 获取文件信息 | `python ssh_client.py stat --ssh-command "..." --password "..." --path "/home/file.txt"` |
| rename | 重命名文件/目录 | `python ssh_client.py rename --ssh-command "..." --password "..." --old "/home/a" --new "/home/b"` |
| chmod | 修改权限 | `python ssh_client.py chmod --ssh-command "..." --password "..." --path "/home/script.sh" --mode 755` |
| upload | 上传文件 | `python ssh_client.py upload --ssh-command "..." --password "..." --local ./file.txt --remote /home/file.txt` |
| upload-dir | 上传目录 | `python ssh_client.py upload-dir --ssh-command "..." --password "..." --local ./project --remote /home/project` |
| download | 下载文件 | `python ssh_client.py download --ssh-command "..." --password "..." --remote /home/file.txt --local ./file.txt` |
No suspicious patterns detected.