T08 · Insecure Dependencies
- Location
install.sh:64- Finding
Unpinned Dependencies Installed Globally or Into the Active Python Environment
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This appears to be a real flowchart generator, but it needs Review because it can automatically use stored API credentials, send prompts to configurable remote endpoints, and install unpinned global dependencies.
Install only if you are comfortable with diagram prompts being sent to DeepSeek, OpenAI, or a configured custom endpoint. Avoid passing live API keys with --api-key, prefer a narrowly scoped environment variable or protected config, do not use custom base URLs unless you fully trust them, use --no-llm or --raw for private diagrams, and avoid running the installer with sudo unless you accept the system-wide dependency risk.
install.sh:64Unpinned Dependencies Installed Globally or Into the Active Python Environment
scripts/generate.py:83API Credentials Can Leak Through Command-Line Arguments and Verbose Logs
scripts/generate.py:87Stored Bearer Credentials and Prompt Data Can Be Sent to an Unvalidated Custom Endpoint
Using shell=True for a subprocess check is unnecessary and weakens execution safety by involving the system shell. In hostile or multi-user environments, PATH hijacking or shell interpretation quirks can cause execution of an unintended binary, especially on Windows.
try:
# 在Windows上使用shell=True可能更可靠
if sys.platform == "win32":
result = subprocess.run([cmd, "--version"],
capture_output=True, text=True, shell=True)
else:
result = subprocess.run([cmd, "--version"],
This is the most security-significant issue in the file: a user-driven rendering command is executed with shell=True on Windows. Because the tool accepts user-controlled output paths and processes attacker-provided Mermaid content in an agent skill context, this expands into command-injection and tool-parameter abuse risk beyond normal desktop use.
# 执行命令
# 执行命令
if sys.platform == "win32":
result = subprocess.run(cmd, capture_output=True, text=True, timeout=30, shell=True)
else:
result = subprocess.run(cmd, capture_output=True, text=True, timeout=30)
This markdown file includes a natural-language statement that the skill provides Chinese-only error messages, help documentation, and user interface. Under the language/locale policy, forcing a specific language without offering user choice or documenting justified locale scope is a policy concern.
This markdown file presents all user-facing guidance in a single language, Chinese, and does not indicate that users can select another language or that the skill is intentionally limited to a Chinese-speaking audience. Under the natural-language policy rule, forcing a specific language without opt-in is a locale-policy concern.
The skill advertises capabilities to read environment variables, read local files, access the network, and invoke shell commands, but it does not declare an explicit permission/tool scope. That creates an authorization transparency gap: users and hosting platforms cannot clearly constrain or review what the skill may access, increasing the chance of over-privileged execution and unintended data exposure.
The documentation shows passing API keys directly on the command line, which can leak secrets through shell history, process listings, terminal logs, and telemetry. Even if presented as an example, users commonly copy-paste such commands, making accidental credential disclosure likely.
The TODO explicitly describes automatic reading of DeepSeek API configuration from ~/.openclaw/openclaw.json and use of a remote LLM API, but does not mention user consent, disclosure of external data transmission, or safeguards around credential handling. In a skill that converts user natural-language prompts into diagrams, this creates a real privacy and secret-handling risk because user input may be sent to a third party and local credentials may be consumed implicitly.
Nearly all user-facing strings and comments in the script are in Chinese, with no option to select another language and no documented reason for a Chinese-only locale. This can violate a language/locale policy when a skill unconditionally forces one language for all users.
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
echo " ❌ Node.js 或 npm 未安装"
echo " 请先安装 Node.js: https://nodejs.org/"
echo " 或使用包管理器:"
echo " - Ubuntu/Debian: sudo apt install nodejs npm"
echo " - macOS: brew install node"
echo " - Arch: sudo pacman -S nodejs npm"
exit 1
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
echo " ❌ Node.js 或 npm 未安装"
echo " 请先安装 Node.js: https://nodejs.org/"
echo " 或使用包管理器:"
echo " - Ubuntu/Debian: sudo apt install nodejs npm"
echo " - macOS: brew install node"
echo " - Arch: sudo pacman -S nodejs npm"
exit 1
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
echo " ❌ Node.js 或 npm 未安装"
echo " 请先安装 Node.js: https://nodejs.org/"
echo " 或使用包管理器:"
echo " - Ubuntu/Debian: sudo apt install nodejs npm"
echo " - macOS: brew install node"
echo " - Arch: sudo pacman -S nodejs npm"
exit 1
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
echo " ❌ Node.js 或 npm 未安装"
echo " 请先安装 Node.js: https://nodejs.org/"
echo " 或使用包管理器:"
echo " - Ubuntu/Debian: sudo apt install nodejs npm"
echo " - macOS: brew install node"
echo " - Arch: sudo pacman -S nodejs npm"
exit 1
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
echo " ❌ Node.js 或 npm 未安装"
echo " 请先安装 Node.js: https://nodejs.org/"
echo " 或使用包管理器:"
echo " - Ubuntu/Debian: sudo apt install nodejs npm"
echo " - macOS: brew install node"
echo " - Arch: sudo pacman -S nodejs npm"
exit 1
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
echo " ❌ Node.js 或 npm 未安装"
echo " 请先安装 Node.js: https://nodejs.org/"
echo " 或使用包管理器:"
echo " - Ubuntu/Debian: sudo apt install nodejs npm"
echo " - macOS: brew install node"
echo " - Arch: sudo pacman -S nodejs npm"
exit 1
The script downloads packages from npm and PyPI-compatible sources without an explicit warning that external network access will occur. This is risky because dependency downloads expand the trust boundary to third-party registries and mirrors, which matters for a skill intended to be run by end users or automation.
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
LLM_CONFIG = {
"provider": "deepseek", # deepseek 或 openai
"api_key": None,
"base_url": "https://api.deepseek.com/v1", # DeepSeek默认,OpenAI会自动覆盖
"model": "deepseek-chat", # deepseek-chat 或 gpt-4o
"timeout": 30
}
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
LLM_CONFIG = {
"provider": "deepseek", # deepseek 或 openai
"api_key": None,
"base_url": "https://api.deepseek.com/v1", # DeepSeek默认,OpenAI会自动覆盖
"model": "deepseek-chat", # deepseek-chat 或 gpt-4o
"timeout": 30
}
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
LLM_CONFIG = {
"provider": "deepseek", # deepseek 或 openai
"api_key": None,
"base_url": "https://api.deepseek.com/v1", # DeepSeek默认,OpenAI会自动覆盖
"model": "deepseek-chat", # deepseek-chat 或 gpt-4o
"timeout": 30
}
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
LLM_CONFIG = {
"provider": "deepseek", # deepseek 或 openai
"api_key": None,
"base_url": "https://api.deepseek.com/v1", # DeepSeek默认,OpenAI会自动覆盖
"model": "deepseek-chat", # deepseek-chat 或 gpt-4o
"timeout": 30
}
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
LLM_CONFIG = {
"provider": "deepseek", # deepseek 或 openai
"api_key": None,
"base_url": "https://api.deepseek.com/v1", # DeepSeek默认,OpenAI会自动覆盖
"model": "deepseek-chat", # deepseek-chat 或 gpt-4o
"timeout": 30
}
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
LLM_CONFIG = {
"provider": "deepseek", # deepseek 或 openai
"api_key": None,
"base_url": "https://api.deepseek.com/v1", # DeepSeek默认,OpenAI会自动覆盖
"model": "deepseek-chat", # deepseek-chat 或 gpt-4o
"timeout": 30
}
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
# 根据provider设置默认值
if LLM_CONFIG["provider"] == "openai":
if not args.api_base_url:
LLM_CONFIG["base_url"] = "https://api.openai.com/v1"
LLM_CONFIG["model"] = "gpt-4o"
else: # deepseek
if not args.api_base_url:
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
# 根据provider设置默认值
if LLM_CONFIG["provider"] == "openai":
if not args.api_base_url:
LLM_CONFIG["base_url"] = "https://api.openai.com/v1"
LLM_CONFIG["model"] = "gpt-4o"
else: # deepseek
if not args.api_base_url:
The skill reads API credentials from ~/.openclaw/openclaw.json, which is unrelated to the stated purpose of flowchart generation and may pull secrets from another tool's trust boundary without explicit user consent. This broadens secret access and can surprise users who did not intend this script to inspect unrelated local configuration.
The Windows dependency check uses subprocess.run([cmd, "--version"], shell=True), which is unnecessary and unsafe. Even though the command names are hardcoded, shell invocation expands the attack surface through PATH/cmd.exe resolution behavior and can execute unintended programs in a compromised environment.
try:
# 在Windows上使用shell=True可能更可靠
if sys.platform == "win32":
result = subprocess.run([cmd, "--version"],
capture_output=True, text=True, shell=True)
else:
result = subprocess.run([cmd, "--version"],