Scan Report
20 /100
xhs-crawler
小红书关键词爬取工具,支持浏览器模拟搜索和飞书推送
小红书爬虫技能功能正常,无恶意行为发现。存在权限声明不完整和硬编码凭证的轻微瑕疵,但不影响安全性。
Safe to install
建议补充 allowed-tools 声明(shell:WRITE, filesystem:WRITE, network:WRITE),将飞书凭证移至环境变量。
Findings 3 items
| Severity | Finding | Location |
|---|---|---|
| Low | 权限声明缺失 Priv Escalation | SKILL.md:1 |
| Low | 凭证硬编码 Sensitive Access | config.py:90 |
| Info | User-Agent占位符 Doc Mismatch | config.py:50 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | NONE | WRITE | ✓ Aligned | cookie.txt, xhs_chrome_profile写入 |
| Network | NONE | WRITE | ✓ Aligned | 小红书API、飞书API调用 |
| Shell | NONE | WRITE | ✓ Aligned | index.js:140 exec()执行Python |
| Browser | NONE | WRITE | ✓ Aligned | Playwright浏览器自动化 |
1 High 14 findings
High IP Address 硬编码 IP 地址
143.0.0.0 config.py:50 Medium External URL 外部 URL
https://www.xiaohongshu.com/explore auto_login_with_qrcode.py:96 Medium External URL 外部 URL
https://edith.xiaohongshu.com/api/sns/web/v1/search/notes config.py:30 Medium External URL 外部 URL
https://edith.xiaohongshu.com/api/sns/web/v1/feed config.py:31 Medium External URL 外部 URL
https://www.xiaohongshu.com config.py:40 Medium External URL 外部 URL
https://www.xiaohongshu.com/ config.py:43 Medium External URL 外部 URL
https://www.xiaohongshu.com/user/profile cookie_manager.py:82 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal feishu_app_bot.py:67 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/im/v1/messages feishu_app_bot.py:109 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/im/v1/images feishu_app_bot.py:222 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/im/v1/chats feishu_app_bot.py:368 Medium External URL 外部 URL
https://www.xiaohongshu.com/explore/ xhs_crawler.py:181 Medium External URL 外部 URL
https://www.xiaohongshu.com/search_result?keyword= xhs_search_with_browser.py:86 Medium External URL 外部 URL
https://open.feishu.cn/ 使用文档.md:67 File Tree
15 files · 94.0 KB · 3138 lines Python 10f · 2525L
Markdown 2f · 420L
JavaScript 1f · 175L
JSON 1f · 17L
Text 1f · 1L
├─
__init__.py
Python
├─
auto_login_with_qrcode.py
Python
├─
config.py
Python
├─
cookie_manager.py
Python
├─
cookie.txt
Text
├─
example_openclaw_skill.py
Python
├─
feishu_app_bot.py
Python
├─
feishu_bot.py
Python
├─
index.js
JavaScript
├─
login.py
Python
├─
package.json
JSON
├─
SKILL.md
Markdown
├─
xhs_crawler.py
Python
├─
xhs_search_with_browser.py
Python
└─
使用文档.md
Markdown
Dependencies 2 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
playwright | * | pip | No | 无版本锁定 |
requests | * | pip | No | 无版本锁定 |
Security Positives
✓ 功能与文档描述一致,无阴影功能
✓ 无凭证外传行为,Cookie仅本地使用和发送到飞书
✓ 无反向shell、数据窃取或C2通信
✓ 使用标准库和知名依赖(requests、playwright)
✓ 有日志记录功能便于审计