T09 · Insecure Skill Coding Practices
- Location
scripts/PansModel-Manager.py:216- Finding
API Credentials Exposed Through Command-Line Arguments and Unprotected Plaintext Storage
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This model-management skill appears purpose-aligned, but it handles API keys in a way users should review carefully before installing.
Review this before installing if you will use real provider keys. Prefer disposable or restricted API keys, rotate any key entered on the command line, check permissions on ~/.openclaw-pansclaw/openclaw.json, and back up the config before using delete or switch commands.
scripts/PansModel-Manager.py:216API Credentials Exposed Through Command-Line Arguments and Unprotected Plaintext Storage
The skill clearly describes functionality that reads and writes a persistent configuration file, but it does not declare any explicit tool scope or permissions boundaries. That omission increases the risk of over-broad file access and makes it harder for users or the host platform to constrain what the skill may modify.
The documentation instructs users to enter API keys and modify model settings without warning that credentials will be stored persistently in a local config file. This can lead to accidental secret exposure, unsafe file permissions, or users making destructive configuration changes without understanding the persistence and side effects.
The delete command removes a provider from the persisted configuration and saves the change immediately. Although there is a warning when deleting the current default provider, there is no explicit confirmation step before this irreversible config change.
The script takes the API key as a positional command-line argument and persists it directly into the JSON config file. Command-line arguments can be exposed through shell history, process listings, logs, and screenshots, which can leak long-lived credentials to other local users or monitoring systems.
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
示例:
# 添加 DeepSeek 模型
python3 model-manager.py add deepseek https://api.deepseek.com/v1 sk-xxx deepseek-chat
# 切换到指定模型
python3 model-manager.py switch deepseek/deepseek-chat
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
示例:
# 添加 DeepSeek 模型
python3 model-manager.py add deepseek https://api.deepseek.com/v1 sk-xxx deepseek-chat
# 切换到指定模型
python3 model-manager.py switch deepseek/deepseek-chat
User-facing natural-language strings, help text, and documentation in this file are exclusively in Chinese. Under the stated policy, forcing a specific language without opt-in or justification is a locale-policy concern.
No suspicious patterns detected.