Scan Report
42 /100
feishu-ops
飞书文档与消息操作技能
发现多个本地文件操作脚本未在SKILL.md中声明,存在文档-行为不符的影子功能问题,且包含硬编码用户路径的开发遗留代码。
Use with caution
1) 清理所有硬编码用户路径的开发遗留代码;2) 将本地文件操作脚本从技能包中移除或补充完整文档声明;3) 添加明确的权限声明说明 filesystem:READ/WRITE 用途
Findings 6 items
| Severity | Finding | Location |
|---|---|---|
| High | 影子功能:本地桌面文件操作未在文档声明 Doc Mismatch | scripts/fix_xlsx_encoding.py:2 |
| High | 硬编码用户敏感路径 Sensitive Access | scripts/fix_xlsx_encoding.py:8 |
| High | 遍历用户桌面查找文件 Sensitive Access | scripts/fix_xlsx_encoding.py:3 |
| Medium | 第三方依赖无版本锁定 Supply Chain | SKILL.md:97 |
| Medium | 凭证文件路径硬编码 Credential Theft | scripts/rebuild_xlsx.py:52 |
| Low | 权限声明缺失 Priv Escalation | SKILL.md:1 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | NONE | WRITE | ✗ Violation | scripts/fix_xlsx_encoding.py:2, scripts/rebuild_xlsx.py:8 |
| Network | WRITE | WRITE | ✓ Aligned | SKILL.md 声明飞书 API 调用 |
| Environment | NONE | READ | ✗ Violation | scripts/fix_xlsx_encoding.py:2 os.environ['USERPROFILE'] |
12 findings
Medium External URL 外部 URL
https://feishu.cn/doc/xxx SKILL.md:32 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal references/api_ref.md:6 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/docx/v1/documents references/api_ref.md:15 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/docx/v1/documents/ references/api_ref.md:23 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/im/v1/messages?receive_id_type= references/api_ref.md:53 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/contact/v3/users/search?query= references/api_ref.md:66 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/im/v1/chats?search_key= references/api_ref.md:71 Medium External URL 外部 URL
https://feishu.cn/docx/ scripts/feishu_doc.py:52 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/im/v1/files?receive_id_type=chat_id scripts/feishu_msg.py:120 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/im/v1/messages?container_id_type=chat&container_id= scripts/feishu_msg.py:243 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/im/v1/messages?receive_id_type=chat_id scripts/send_news.py:25 Medium External URL 外部 URL
https://open.feishu.cn/open-apis/im/v1/files?file_name= scripts/upload_test.py:17 File Tree
14 files · 48.3 KB · 1305 lines Python 11f · 1041L
Markdown 2f · 260L
JSON 1f · 4L
├─
▾
references
│ └─
api_ref.md
Markdown
├─
▾
scripts
│ ├─
config.json
⚠
JSON
│ ├─
feishu_doc.py
Python
│ ├─
feishu_msg.py
Python
│ ├─
fetch_chat_messages.py
Python
│ ├─
fix_xlsx_encoding.py
Python
│ ├─
rebuild_xlsx.py
Python
│ ├─
send_news.py
Python
│ ├─
test_blocks.py
Python
│ ├─
test_blocks2.py
Python
│ ├─
upload_sdk.py
Python
│ ├─
upload_test.py
Python
│ └─
write_news.py
Python
└─
SKILL.md
Markdown
Dependencies 2 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
lark-oapi | * | pip | No | 无版本锁定,建议锁定版本范围 |
openpyxl | * | pip | No | 无版本锁定,建议锁定版本范围 |
Security Positives
✓ 代码结构清晰,功能模块化良好
✓ 使用标准库 urllib 而非 subprocess 执行命令
✓ 所有网络请求都指向官方飞书 API 域名 open.feishu.cn
✓ 凭证存储在本地配置文件,未硬编码在代码中(主代码路径正确,但遗留脚本有问题)