T09 · Insecure Skill Coding Practices
- Location
INSTALL.md:123- Finding
Tavily API Key Exposed by Troubleshooting Command
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is mostly a coherent AI news briefing generator, but it includes under-disclosed network routing and unsafe credential-handling guidance that users should review before installing.
Install only if you are comfortable giving the skill Tavily search access and, optionally, a SearXNG endpoint. Before using it, avoid the troubleshooting command that prints your API key, prefer HTTPS for any remote SearXNG instance, and remove or explicitly configure the hardcoded proxy in run_daily.sh unless you intentionally trust a service on 127.0.0.1:7897.
INSTALL.md:123Tavily API Key Exposed by Troubleshooting Command
INSTALL.md:110Remote SearXNG Configuration Uses Unencrypted HTTP
run_daily.sh:6Scheduled Script Forces Outbound Traffic Through an Undeclared Local Proxy
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
方法一:环境变量(推荐)
# 编辑 ~/.openclaw/.env 文件
echo 'TAVILY_API_KEY="tvly-your-api-key-here"' >> ~/.openclaw/.env
# 重启 Gateway
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
方法一:环境变量(推荐)
# 编辑 ~/.openclaw/.env 文件
echo 'TAVILY_API_KEY="tvly-your-api-key-here"' >> ~/.openclaw/.env
# 重启 Gateway
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
方法一:环境变量(推荐)
# 编辑 ~/.openclaw/.env 文件
echo 'TAVILY_API_KEY="tvly-your-api-key-here"' >> ~/.openclaw/.env
# 重启 Gateway
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
方法一:环境变量(推荐)
# 编辑 ~/.openclaw/.env 文件
echo 'TAVILY_API_KEY="tvly-your-api-key-here"' >> ~/.openclaw/.env
# 重启 Gateway
存在描述与代码行为的不一致。描述声称该技能会使用 SearXNG 与 Tavily 两个引擎抓取情报,但脚本实际通过参数 --searxng_enabled=false --tavily_enabled=true 禁用了 SearXNG,因此与“多引擎(SearXNG 与 Tavily)”这一关键能力不符。此外,提供的代码片段只是一个外部调度脚本,主要作用是设置代理、生成日期、运行技能并记录日志;它并未直接体现去重、战略分级、洞察提炼和生成 5-9 条日报的实现。虽然这些功能可能存在于被调用的技能内部,但就该代码片段本身看,实际行为更接近“定时触发一个日报技能(且仅用 Tavily)”。因此应判定为不匹配。
The entire document specifies output formatting rules exclusively in Chinese and provides no indication that users may choose another language or locale. Under the stated policy, forcing a specific language without opt-in is a natural-language policy violation unless the locale restriction is explicitly documented and justified.
The installation guide instructs users to place API keys into configuration files and environment storage but provides no warning about credential sensitivity, file permissions, shell history exposure, or secret management practices. This increases the likelihood of accidental disclosure through copied configs, backups, logs, screenshots, or overly permissive local file access.
The documented manual triggers are very broad natural-language phrases such as '生成今天的AI日报' and '帮我搜一下今天AI圈有什么大事', which overlap with ordinary user requests. In agent platforms that auto-route or auto-invoke skills based on conversational intent, this can cause unintended activation, external web queries, and unplanned data flow to third-party services.
The skill name and all output instructions are framed as a Chinese AI daily briefing generator, and the required output templates hard-code Chinese titles and labels. There is no indication that the user can choose another language or that this locale restriction is explicitly justified as a region-specific tool.
The output section requires fixed Chinese strings such as "AI新闻早报", "速览", "洞察", and "今日研判" and says the agent must strictly use those templates. This enforces a specific language/locale in generated output without offering a choice or documenting why the restriction is necessary.
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.
DATE=$(date '+%Y-%m-%d')
LOG_DIR=~/.openclaw/logs
mkdir -p "$LOG_DIR"
# 调用 ai_daily_briefing_generator SKILL
cd ~/.openclaw/skills/ai_daily_briefing_generator
L13 的注释表明这里是在调用 ai_daily_briefing_generator 技能,而该技能清单描述其会调用多引擎(SearXNG 与 Tavily)抓取情报。但实际命令在 L19-L20 中将 searxng_enabled=false、tavily_enabled=true,运行行为与该技能所宣称的双引擎抓取意图不一致。
The file presents the skill entirely in Chinese and the only example invocations are Chinese phrases, with no indication that other languages are supported or that Chinese is an optional locale. This can be a language/locale policy issue when a skill implicitly requires a specific language without user opt-in or justification.