Scan Report
15 /100
feishu-integration
飞书开放平台完整对接方案,支持文档管理、知识库操作、文件上传、Markdown导入、消息解析、OCR识别、群欢迎机器人等功能
飞书开放平台集成工具包,代码功能明确为 API 封装和消息处理,无恶意行为,但存在配置文件凭证明文存储的安全实践问题。
Safe to install
建议将 config/feishu.env 中的 FEISHU_APP_SECRET 移除出代码仓库,使用环境变量替代。代码本身功能正常,可正常使用。
Findings 2 items
| Severity | Finding | Location |
|---|---|---|
| Medium | 配置文件包含明文凭证 Sensitive Access | config/feishu.env:1 |
| Low | 文档中示例凭证暴露 Doc Mismatch | SKILL.md:72 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Network | READ | READ | ✓ Aligned | 所有脚本仅通过 HTTPS 调用飞书官方 API |
| Filesystem | NONE | READ | ✓ Aligned | 仅读取本地配置文件和临时缓存文件 |
| Shell | NONE | WRITE | ✓ Aligned | group-welcome.py 调用 feishu-auth.sh 获取 token,属于工具正常调用 |
33 findings
Medium External URL 外部 URL
https://uniquecapital.feishu.cn/docx/BZTvd4SMSo6OzsxodHnckHh8nZb CHANGELOG.md:91 Medium External URL 外部 URL
https://open.feishu.cn/document/ CHANGELOG.md:148 Medium External URL 外部 URL
https://docs.openclaw.ai/ CHANGELOG.md:149 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal SKILL.md:176 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/ SKILL.md:196 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/NEW_API_PATH SKILL.md:291 Medium External URL 外部 URL
https://dotenvx.com reference-feishu-common/package-lock.json:76 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/im/v1/messages/$ reference-feishu-message/get.js:45 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/im/v1/p2p_chats reference-feishu-message/get_latest_file.js:38 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/im/v1/messages?container_id_type=chat&container_id=$ reference-feishu-message/get_latest_file.js:53 Medium External URL 外部 URL
https://www.patreon.com/feross reference-feishu-message/package-lock.json:475 Medium External URL 外部 URL
https://feross.org/support reference-feishu-message/package-lock.json:479 Medium External URL 外部 URL
https://buymeacoffee.com/borewit reference-feishu-message/package-lock.json:564 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/im/v1/files reference-feishu-message/send-audio.js:68 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/im/v1/messages?receive_id_type=$ reference-feishu-message/send-audio.js:134 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/drive/v1/medias/upload_all references/import-workflow.md:28 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/drive/v1/import_tasks references/import-workflow.md:56 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/drive/v1/import_tasks/7605680347254590654 references/import-workflow.md:90 Medium External URL 外部 URL
https://moxunkeji.feishu.cn/docx/V4mYdLUc3oIAklxG1ducsbTQnKc references/import-workflow.md:102 Medium External URL 外部 URL
https://open.feishu.cn/document/server-docs/im-v1/message/message-content references/message-parsing.md:237 Medium External URL 外部 URL
https://open.feishu.cn/document/server-docs/ai/optical_char_recognition-v1/image/recognize_basic references/message-parsing.md:238 Medium External URL 外部 URL
https://config-center/api/feishu/token references/token-management.md:44 Medium External URL 外部 URL
https://open.feishu.cn references/token-management.md:94 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/docx/v1/documents/$ scripts/feishu-api.sh:21 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/wiki/v2/spaces scripts/feishu-api.sh:137 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/wiki/v2/spaces/$ scripts/feishu-api.sh:146 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/drive/v1/files scripts/feishu-api.sh:172 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/drive/v1/files/upload_all scripts/feishu-api.sh:190 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/drive/v1/import_tasks/$ scripts/feishu-api.sh:248 Medium External URL 外部 URL
https://open.feishu.cn/open-apis scripts/feishu-message-parser.py:19 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/optical-char-recognition/v1/image/recognize_basic scripts/feishu-ocr.py:41 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/im/v1/chats/ scripts/group-welcome.py:317 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/im/v1/messages scripts/group-welcome.py:459 File Tree
35 files · 149.4 KB · 5242 lines Markdown 8f · 1384L
JSON 6f · 1179L
Python 3f · 1156L
JavaScript 12f · 978L
Shell 5f · 540L
Env 1f · 5L
├─
▾
config
│ └─
feishu.env
Env
├─
▾
examples
│ ├─
ocr_image.sh
Shell
│ ├─
parse_rich_text.sh
Shell
│ └─
parse_text.sh
Shell
├─
▾
reference-feishu-common
│ ├─
_meta.json
JSON
│ ├─
feishu-client.js
JavaScript
│ ├─
index.js
JavaScript
│ ├─
package-lock.json
JSON
│ ├─
package.json
JSON
│ └─
SKILL.md
Markdown
├─
▾
reference-feishu-message
│ ├─
_meta.json
JSON
│ ├─
create_chat.js
JavaScript
│ ├─
disband_chat.js
JavaScript
│ ├─
get_chat_info.js
JavaScript
│ ├─
get_latest_file.js
JavaScript
│ ├─
get.js
JavaScript
│ ├─
index.js
JavaScript
│ ├─
list_pins_v2.js
JavaScript
│ ├─
list_pins.js
JavaScript
│ ├─
package-lock.json
JSON
│ ├─
package.json
JSON
│ ├─
send-audio.js
JavaScript
│ ├─
send.js
JavaScript
│ └─
SKILL.md
Markdown
├─
▾
references
│ ├─
api-reference.md
Markdown
│ ├─
import-workflow.md
Markdown
│ ├─
message-parsing.md
Markdown
│ └─
token-management.md
⚠
Markdown
├─
▾
scripts
│ ├─
feishu-api.sh
Shell
│ ├─
feishu-auth.sh
Shell
│ ├─
feishu-message-parser.py
Python
│ ├─
feishu-ocr.py
Python
│ └─
group-welcome.py
Python
├─
CHANGELOG.md
Markdown
└─
SKILL.md
Markdown
Dependencies 3 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
requests | * | pip | No | Python 脚本使用 requests 库,无版本锁定 |
axios | * | npm | No | JavaScript 依赖,无版本锁定 |
commander | * | npm | No | CLI 参数解析库 |
Security Positives
✓ 代码结构清晰,功能与文档描述一致
✓ 仅使用飞书官方 API,无未声明的网络行为
✓ Token 缓存机制合理,包含过期前 60 秒刷新策略
✓ 消息解析器功能完整,支持富文本、图片、引用等多种消息类型
✓ 群欢迎机器人功能包含夜间模式和冷却机制,设计考虑周全
✓ 错误处理完善,包含重试机制和超时控制