feishu-ops
发现多个本地文件操作脚本未在SKILL.md中声明,存在文档-行为不符的影子功能问题,且包含硬编码用户路径的开发遗留代码。
scripts/fix_xlsx_encoding.py 和 scripts/rebuild_xlsx.py 执行本地桌面 xlsx 文件读取/修改,但 SKILL.md 完全没有提及本地文件操作功能,只描述了飞书云端文档操作
scripts/fix_xlsx_encoding.py:2 Why this conclusion was reached
2/4 dimensions flagged2 undeclared or violating capabilities were inferred.
12 lower-risk artifacts were extracted and still need context.
The report includes 0 attack-chain steps and 3 severe findings.
2 dependency or supply-chain issues need attention.
What drove the risk score up
fix_xlsx_encoding.py、rebuild_xlsx.py 操作用户桌面文件但 SKILL.md 未声明
多处硬编码 C:/Users/10430/ 路径,包含敏感目录结构
使用 os.environ['USERPROFILE'] 访问用户主目录
lark-oapi 和 openpyxl 未指定版本范围
Most important evidence
影子功能:本地桌面文件操作未在文档声明
scripts/fix_xlsx_encoding.py 和 scripts/rebuild_xlsx.py 执行本地桌面 xlsx 文件读取/修改,但 SKILL.md 完全没有提及本地文件操作功能,只描述了飞书云端文档操作
scripts/fix_xlsx_encoding.py:2 硬编码用户敏感路径
多个脚本硬编码了开发者的完整用户路径 C:/Users/10430/,包含 .openclaw 配置目录和 Desktop 目录结构,存在信息泄露风险
scripts/fix_xlsx_encoding.py:8 遍历用户桌面查找文件
fix_xlsx_encoding.py 遍历用户桌面目录,通过文件大小匹配查找目标 xlsx 文件,具有情报收集特征
scripts/fix_xlsx_encoding.py:3 第三方依赖无版本锁定
lark-oapi 和 openpyxl 未在 requirements.txt 或代码中指定版本范围,可能引入供应链风险
SKILL.md:97 凭证文件路径硬编码
多处脚本硬编码读取凭证配置路径 C:/Users/10430/.openclaw/workspace/skills/feishu-ops/scripts/config.json
scripts/rebuild_xlsx.py:52 权限声明缺失
SKILL.md 未声明 allowed_tools,filesystem 和 network 权限的使用场景不透明
SKILL.md:1 Declared capability vs actual capability
scripts/fix_xlsx_encoding.py:2, scripts/rebuild_xlsx.py:8 SKILL.md 声明飞书 API 调用 scripts/fix_xlsx_encoding.py:2 os.environ['USERPROFILE'] Suspicious artifacts and egress
https://feishu.cn/doc/xxx SKILL.md:32
https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal references/api_ref.md:6
https://open.feishu.cn/open-apis/docx/v1/documents references/api_ref.md:15
https://open.feishu.cn/open-apis/docx/v1/documents/ references/api_ref.md:23
https://open.feishu.cn/open-apis/im/v1/messages?receive_id_type= references/api_ref.md:53
https://open.feishu.cn/open-apis/contact/v3/users/search?query= references/api_ref.md:66
https://open.feishu.cn/open-apis/im/v1/chats?search_key= references/api_ref.md:71
https://feishu.cn/docx/ scripts/feishu_doc.py:52
https://open.feishu.cn/open-apis/im/v1/files?receive_id_type=chat_id scripts/feishu_msg.py:120
https://open.feishu.cn/open-apis/im/v1/messages?container_id_type=chat&container_id= scripts/feishu_msg.py:243
https://open.feishu.cn/open-apis/im/v1/messages?receive_id_type=chat_id scripts/send_news.py:25
https://open.feishu.cn/open-apis/im/v1/files?file_name= scripts/upload_test.py:17
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| lark-oapi | * | pip | No | 无版本锁定,建议锁定版本范围 |
| openpyxl | * | pip | No | 无版本锁定,建议锁定版本范围 |
File composition
scripts/config.json scripts/feishu_msg.py scripts/feishu_doc.py SKILL.md scripts/rebuild_xlsx.py references/api_ref.md scripts/fix_xlsx_encoding.py scripts/upload_test.py scripts/send_news.py