Scan Report
This report was generated in Chinese. Some content may be in Chinese.
45 /100
search
Multi-engine web search (SearXNG default, Tavily, Multi-engine)
SKILL.md声明仅使用web_fetch进行网络搜索,但代码实际通过api.exec()执行本地Python脚本,且硬编码了Tavily API密钥,存在声明-行为不符的阴影功能。
Use with caution
删除未声明的api.exec()调用,使用纯HTTP API调用替代。移除硬编码的API密钥,改用环境变量配置。
Attack Chain 3 steps
◎
Entry 用户通过SKILL.md了解此技能为网络搜索工具
SKILL.md:1⬡
Escalation 调用search_web时实际执行api.exec()运行本地脚本
plugin.ts:64◉
Impact 通过api.exec()可执行任意命令,绕过web_fetch的网络隔离
plugin.ts:64Findings 5 items
| Severity | Finding | Location |
|---|---|---|
| High | 未声明的本地脚本执行 Doc Mismatch | plugin.ts:64 |
| High | 硬编码API密钥泄露风险 Credential Theft | providers/tavily.ts:25 |
| Medium | 声明权限与实际能力不符 Priv Escalation | plugin.ts:1 |
| Medium | 无依赖版本锁定 Supply Chain | cache.ts:20 |
| Low | 代码结构混乱 Doc Mismatch | plugin.ts:108 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Network | READ | READ | ✓ Aligned | SKILL.md声明web_fetch用于搜索 |
| Shell | NONE | WRITE | ✗ Violation | plugin.ts:64 api.exec()调用本地Python脚本 |
| Filesystem | NONE | READ | ✗ Violation | api.exec()执行本地路径D:\winopenclaw\workspace\skills\_legacy\tavily\search_tavily_new… |
5 findings
Medium External URL 外部 URL
http://127.0.0.1:8080 plugin.ts:74 Medium External URL 外部 URL
https://www.baidu.com/s?wd=$ plugin.ts:147 Medium External URL 外部 URL
https://cn.bing.com/search?q=$ plugin.ts:148 Medium External URL 外部 URL
https://www.google.com/search?q=$ plugin.ts:149 Medium External URL 外部 URL
https://api.tavily.com/search providers/tavily.ts:12 File Tree
8 files · 14.8 KB · 465 lines TypeScript 5f · 389L
YAML 1f · 46L
Markdown 1f · 25L
JSON 1f · 5L
├─
▾
providers
│ ├─
multi.ts
TypeScript
│ ├─
searxng.ts
TypeScript
│ └─
tavily.ts
TypeScript
├─
_meta.json
JSON
├─
cache.ts
TypeScript
├─
plugin.ts
TypeScript
├─
SKILL.md
Markdown
└─
skill.yaml
YAML
Dependencies 1 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
crypto | built-in | nodejs | No | Node.js内置模块 |
Security Positives
✓ 使用fetch进行网络请求,行为可追踪
✓ 代码中有中文注释便于理解意图
✓ 包含SearchCache实现,有基本的性能优化意识
✓ 使用环境变量SEARXNG_URL配置,无硬编码服务器地址