CFGPU API Skill
Analysis
This skill matches its stated GPU-cloud purpose, but it handles a powerful cloud API token and includes unsafe shell construction that could execute local commands if given crafted inputs.
Findings (5)
Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.
Checks for instructions or behavior that redirect the agent, misuse tools, execute unexpected code, cascade across systems, exploit user trust, or continue outside the intended task.
local curl_cmd="curl -s -H 'Authorization: $CFGPU_API_TOKEN'" ... curl_cmd="$curl_cmd -H 'Content-Type: application/json' -d '$data'" ... eval "$curl_cmd '$CFGPU_API_BASE$endpoint'"
The script builds a shell command string from API data and endpoints, then runs it with eval. Several values used in that string come from command arguments or interactive input, so crafted quotes or shell metacharacters could turn an intended API call into local command execution.
release_instance() { ... echo "Releasing instance $instance_id..." ... api_request "POST" "/userapi/v1/instance/$instance_id/release" | jq '.' }The direct release path performs a destructive cloud operation without an in-script confirmation prompt, unlike the interactive create wizard.
"repository": { "type": "git", "url": "https://github.com/yourusername/cfgpu-api-skill.git" }The package metadata uses a placeholder repository URL, and the registry lists the source as unknown, so provenance is not well established even though the included code is available for review.
Checks whether tool use, credentials, dependencies, identity, account access, or inter-agent boundaries are broader than the stated purpose.
CFGPU_API_TOKEN="${CFGPU_API_TOKEN:-}" ... CFGPU_API_TOKEN_FILE="${CFGPU_API_TOKEN_FILE:-$HOME/.cfgpu/token}" ... POST /userapi/v1/instance/create ... /start ... /stop ... /release ... /changeImageThe helper uses a CFGPU account token to perform full lifecycle cloud-instance operations, including creating resources that may incur costs and releasing or changing existing instances.
echo "$api_token" > ~/.cfgpu/token ... chmod 600 ~/.cfgpu/token ... echo "export CFGPU_API_TOKEN=\"$api_token\"" >> "$SHELL_RC"
The setup script stores the API token persistently in a home-directory token file and may also write the plaintext token into .bashrc or .zshrc.
