T09 · Insecure Skill Coding Practices
- Location
scripts/cfgpu-helper.sh:27- Finding
Arbitrary Command Execution Through eval-Based curl Construction
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill does what it claims, but its helper scripts handle credentials and shell commands unsafely while controlling billable cloud resources.
Install only if you are comfortable reviewing and hardening the shell scripts first. Avoid running setup-env.sh as-is, do not store real tokens in shell startup files, rotate any token entered into this skill, and require explicit confirmation before create, stop, release, or change-image operations.
scripts/cfgpu-helper.sh:27Arbitrary Command Execution Through eval-Based curl Construction
scripts/verify-clean.sh:9Credential-Like UUID Embedded in Repository and Self-Matching Secret Verification
scripts/setup-env.sh:24API Token Exposed During Input and Persisted in Shell Startup Files
scripts/package-for-github.sh:27Packaging Script Claims to Sanitize Secrets but Performs Only No-Op Replacements
The skill is presented as an API management utility but also includes repository scanning, cleanliness verification, secret-pattern scanning, permission auditing, and large-file detection. Even if intended for hygiene, these behaviors extend access into the local workspace and can expose or process files outside what users expect from a cloud-instance management skill.
The skill is presented as an API management utility but also includes repository scanning, cleanliness verification, secret-pattern scanning, permission auditing, and large-file detection. Even if intended for hygiene, these behaviors extend access into the local workspace and can expose or process files outside what users expect from a cloud-instance management skill.
YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).
---
name: cfgpu-api
description: A powerful OpenClaw skill for managing and automating GPU container instances on CFGPU cloud platform. Designed for AI/ML developers, researchers, and content creators, providing full lifecycle management of GPU cloud resources.
---
# CFGPU API Skill
**CFGPU API Skill** - Your Intelligent GPU Cloud Management Assistant
Tired of complex GPU cloud management processes? Want to utilize GPU resources more efficiently? CFGPU API Skill is your perfect solution!
## 🚀 Why Choose This Skill?
✅ **One-Click Deployment**: Say goodbye to tedious configuration, create GPU instances in
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
*.token
*.key
*.secret
.env
.env.local
.env.*.local
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
*.key
*.secret
.env
.env.local
.env.*.local
# System files
Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.
if ! command -v jq &> /dev/null; then
echo "jq is not installed. Installing..."
if command -v apt-get &> /dev/null; then
sudo apt-get update && sudo apt-get install -y jq
elif command -v yum &> /dev/null; then
sudo yum install -y jq
elif command -v brew &> /dev/null; then
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
Clone the repository
Install dependencies:
sudo apt-get install jq curl
Set up test environment:
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
export CFGPU_API_TOKEN="YOUR_API_TOKEN"
echo "YOUR_API_TOKEN" > ~/.cfgpu/token chmod 600 ~/.cfgpu/token
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
echo "YOUR_API_TOKEN" > ~/.cfgpu/token chmod 600 ~/.cfgpu/token
### 3. Basic Usage
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
echo "YOUR_API_TOKEN" > ~/.cfgpu/token chmod 600 ~/.cfgpu/token
### 3. Basic Usage
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
### 1. Get Your API Token
1. Visit [CFGPU Platform](https://cfgpu.com)
2. Create an account or login
3. Generate an API token from your account settings
### 2. Configure Authentication
This markdown file includes a direct example for releasing (deleting) an instance, which is a destructive operation affecting user resources. Although the README mentions confirmation prompts in general, the usage example itself does not warn that release may permanently remove the instance and potentially any data on it.
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
./cfgpu-helper.sh list-regions
./cfgpu-helper.sh quick-create --dry-run
### Integration Tests
The skill advertises and demonstrates shell-based operations but does not declare an explicit tool scope or permissions boundary. In an agent ecosystem, that increases the chance the skill is invoked with broader shell capability than users expect, enabling unintended command execution paths and reducing auditability.
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
## 🚀 Why Choose This Skill?
✅ **One-Click Deployment**: Say goodbye to tedious configuration, create GPU instances in 30 seconds
✅ **Cost Transparency**: Real-time expense monitoring, avoid unexpected bills
✅ **Intelligent Scheduling**: Automatically optimizes resource usage, saves up to 40% cost
✅ **Full Compatibility**: Supports all mainstream GPU types and system images
The documentation normalizes instance creation, stopping, and releasing resources without prominent warnings that these are billable or potentially irreversible operations. In agent-driven contexts, insufficient warnings can lead to accidental spend, service interruption, or unexpected deletion of running resources.
The activation phrases are broad and can match generic GPU-related requests, increasing the likelihood this skill is selected when a user did not specifically ask to manage CFGPU resources. Because the skill supports billable and destructive operations, overbroad activation materially raises the risk of unintended cloud actions.
The skill sends an authentication token in outbound requests to an external service, which is expected for API use but still constitutes sensitive data transmission. If logs, shell history, proxies, or misconfigured environments capture these requests, the token could be exposed and abused to manage cloud resources.
# List available regions
curl -H "Authorization: $CFGPU_API_TOKEN" https://api.cfgpu.com/userapi/v1/region/list
# List available GPU types
curl -H "Authorization: $CFGPU_API_TOKEN" https://api.cfgpu.com/userapi/v1/gpu/list
The skill sends an authentication token in outbound requests to an external service, which is expected for API use but still constitutes sensitive data transmission. If logs, shell history, proxies, or misconfigured environments capture these requests, the token could be exposed and abused to manage cloud resources.
# List available regions
curl -H "Authorization: $CFGPU_API_TOKEN" https://api.cfgpu.com/userapi/v1/region/list
# List available GPU types
curl -H "Authorization: $CFGPU_API_TOKEN" https://api.cfgpu.com/userapi/v1/gpu/list
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
curl -H "Authorization: $CFGPU_API_TOKEN" https://api.cfgpu.com/userapi/v1/region/list
# List available GPU types
curl -H "Authorization: $CFGPU_API_TOKEN" https://api.cfgpu.com/userapi/v1/gpu/list
# Create a GPU instance
curl -X POST -H "Authorization: $CFGPU_API_TOKEN" -H "Content-Type: application/json" \
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
curl -H "Authorization: $CFGPU_API_TOKEN" https://api.cfgpu.com/userapi/v1/region/list
# List available GPU types
curl -H "Authorization: $CFGPU_API_TOKEN" https://api.cfgpu.com/userapi/v1/gpu/list
# Create a GPU instance
curl -X POST -H "Authorization: $CFGPU_API_TOKEN" -H "Content-Type: application/json" \
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
curl -H "Authorization: $CFGPU_API_TOKEN" https://api.cfgpu.com/userapi/v1/region/list
# List available GPU types
curl -H "Authorization: $CFGPU_API_TOKEN" https://api.cfgpu.com/userapi/v1/gpu/list
# Create a GPU instance
curl -X POST -H "Authorization: $CFGPU_API_TOKEN" -H "Content-Type: application/json" \
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
curl -H "Authorization: $CFGPU_API_TOKEN" https://api.cfgpu.com/userapi/v1/region/list
# List available GPU types
curl -H "Authorization: $CFGPU_API_TOKEN" https://api.cfgpu.com/userapi/v1/gpu/list
# Create a GPU instance
curl -X POST -H "Authorization: $CFGPU_API_TOKEN" -H "Content-Type: application/json" \
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
curl -H "Authorization: $CFGPU_API_TOKEN" https://api.cfgpu.com/userapi/v1/region/list
# List available GPU types
curl -H "Authorization: $CFGPU_API_TOKEN" https://api.cfgpu.com/userapi/v1/gpu/list
# Create a GPU instance
curl -X POST -H "Authorization: $CFGPU_API_TOKEN" -H "Content-Type: application/json" \
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
curl -H "Authorization: $CFGPU_API_TOKEN" https://api.cfgpu.com/userapi/v1/region/list
# List available GPU types
curl -H "Authorization: $CFGPU_API_TOKEN" https://api.cfgpu.com/userapi/v1/gpu/list
# Create a GPU instance
curl -X POST -H "Authorization: $CFGPU_API_TOKEN" -H "Content-Type: application/json" \
No suspicious patterns detected.