扫描报告
5 /100
smart-search
Intelligent web search routing across Gemini and Brave APIs with quota management, circuit breaker, and web_fetch fallback
Well-architected search routing skill with robust security controls including SSRF protection, prompt injection defense, proper API key handling, and clear documentation matching implementation.
可以安装
This skill is safe to deploy. The only flagged IOC (169.254.0.0) is a legitimate security feature - the isSafeUrl() function correctly blocks APIPA addresses as part of SSRF protection.
安全发现 1 项
| 严重性 | 安全发现 | 位置 |
|---|---|---|
| 低危 | Dependency version not strictly pinned | package.json:7 |
| 资源类型 | 声明权限 | 推断权限 | 状态 | 证据 |
|---|---|---|---|---|
| 文件系统 | READ | READ | ✓ 一致 | index.js:29 - reads openclaw.json and quota JSON |
| 网络访问 | READ | READ | ✓ 一致 | index.js:461-522 - API calls to Gemini/Brave; index.js:537 - web_fetch via tool … |
| 命令执行 | NONE | NONE | — | No subprocess/spawn calls found in index.js |
| 环境变量 | READ | READ | ✓ 一致 | index.js:29,419 - reads SEARCH_QUOTA_PATH and OPENCLAW_CONFIG_PATH |
| 技能调用 | NONE | NONE | — | No skill_invoke capability used |
| 剪贴板 | NONE | NONE | — | No clipboard access found |
| 浏览器 | NONE | NONE | — | Web fetch via harness tool protocol, not direct browser control |
| 数据库 | NONE | NONE | — | JSON file used for quota, not a database |
1 高危 6 项发现
高危 IP 地址 硬编码 IP 地址
169.254.0.0 index.js:54 中危 外部 URL 外部 URL
https://clawhub.ai .clawhub/origin.json:3 中危 外部 URL 外部 URL
https://api.search.brave.com/res/v1/web/search?q=$ index.js:512 中危 外部 URL 外部 URL
https://www.google.com/search?q=$ index.js:560 中危 外部 URL 外部 URL
https://www.bing.com/search?q=$ index.js:561 中危 外部 URL 外部 URL
https://duckduckgo.com/html/?q=$ index.js:562 目录结构
12 文件 · 64.9 KB · 1728 行 JavaScript 1f · 1006L
Markdown 6f · 581L
Shell 2f · 116L
JSON 3f · 25L
├─
▾
.clawhub
│ └─
origin.json
JSON
├─
▾
.learnings
│ ├─
ERRORS.md
Markdown
│ ├─
FEATURE_REQUESTS.md
Markdown
│ └─
LEARNINGS.md
Markdown
├─
▾
references
│ ├─
openclaw-config.md
Markdown
│ └─
quota-system.md
Markdown
├─
▾
scripts
│ ├─
reset-quota.sh
Shell
│ └─
setup.sh
Shell
├─
_meta.json
JSON
├─
index.js
JavaScript
├─
package.json
JSON
└─
SKILL.md
Markdown
依赖分析 1 项
| 包名 | 版本 | 来源 | 已知漏洞 | 备注 |
|---|---|---|---|---|
proper-lockfile | ^4.1.2 | npm | 否 | Version not strictly pinned; no known vulnerabilities |
安全亮点
✓ Comprehensive SSRF protection via isSafeUrl() checking all RFC-1918, loopback, link-local, and ULA ranges
✓ Prompt injection defense via INJECTION_PATTERN regex stripping common jailbreak attempts
✓ API keys held in memory only, never logged or written to disk
✓ Circuit breaker pattern prevents hammering failed APIs
✓ File locking (proper-lockfile) prevents quota file corruption from concurrent writes
✓ Input validation with regex sanitization for agent_id and query parameters
✓ 31-line SKILL.md with detailed documentation matching implementation
✓ No base64-encoded payloads, eval(), or dynamic code generation
✓ No credential harvesting patterns - only reads keys for legitimate API calls
✓ No curl|bash or wget|sh remote execution patterns
✓ Log injection protection via MAX_PROVIDER_LENGTH capping before logging