扫描报告
20 /100
baidu-web-search
Use Baidu Qianfan web search API for real-time web retrieval
A legitimate Baidu Qianfan web search skill with clean code and strong API key protection documentation, but with minor documentation gaps and an unpinned dependency.
可以安装
Pin axios to an exact version (e.g., 1.7.7) in package.json to prevent supply chain risk, and add an explicit 'allowed-tools' declaration in SKILL.md metadata for transparency.
安全发现 2 项
| 严重性 | 安全发现 | 位置 |
|---|---|---|
| 低危 | Allowed tools not explicitly declared in metadata 文档欺骗 | SKILL.md:9 |
| 低危 | axios dependency uses loose version constraint 供应链 | package.json:4 |
| 资源类型 | 声明权限 | 推断权限 | 状态 | 证据 |
|---|---|---|---|---|
| 命令执行 | NONE | WRITE | ✓ 一致 | SKILL.md only describes 'node scripts/search.js' execution in prose without an e… |
| 文件系统 | NONE | READ | ✓ 一致 | scripts/search.js:13-18 reads config.json via fs.readFileSync |
| 网络访问 | NONE | WRITE | ✓ 一致 | scripts/search.js:7 POSTs to https://qianfan.baidubce.com/v2/ai_search/web_searc… |
4 项发现
中危 外部 URL 外部 URL
https://leiaibot.com SKILL.md:7 中危 外部 URL 外部 URL
https://cloud.baidu.com/doc/qianfan-api/s/Wmbq4z7e5 SKILL.md:80 中危 外部 URL 外部 URL
https://qianfan.baidubce.com/v2/ai_search/web_search scripts/search.js:7 提示 邮箱 邮箱地址
[email protected] SKILL.md:6 目录结构
5 文件 · 9.4 KB · 242 行 Markdown 1f · 130L
JavaScript 1f · 96L
JSON 3f · 16L
├─
▾
scripts
│ └─
search.js
JavaScript
├─
_meta.json
JSON
├─
config.example.json
JSON
├─
package.json
JSON
└─
SKILL.md
Markdown
依赖分析 1 项
| 包名 | 版本 | 来源 | 已知漏洞 | 备注 |
|---|---|---|---|---|
axios | ^1.6.0 | npm | 否 | Version not pinned — allows any 1.x.y minor/patch release |
安全亮点
✓ Clean, readable code with no obfuscation or suspicious patterns
✓ Strong API key protection documentation with explicit do-not-read/do-not-output rules
✓ API key scoped to a single, well-defined purpose (Baidu search only)
✓ No credential harvesting, data exfiltration, or hidden functionality
✓ Outputs only generic error messages, never exposing configuration or API key values
✓ Timeout set on HTTP requests (15s) preventing resource exhaustion
✓ No shell injection vulnerabilities — all user input used as structured arguments only
✓ gitignore excludes config.json to prevent accidental credential commits