wenzi-runse
硬编码有效API密钥暴露于源码中,且用户文本发送至腾讯云函数端点无法验证数据是否真正丢弃,存在数据外泄隐患。
Why this conclusion was reached
3/4 dimensions flagged1 undeclared or violating capabilities were inferred.
2 high-risk artifacts or egress signals were extracted.
The report includes 3 attack-chain steps and 0 severe findings.
Dependencies are present but no obvious high-risk issue stands out.
Attack Chain
Escalation · scripts/runse.py:21
Impact · scripts/runse.py:40
Impact · scripts/runse.py:40
What drove the risk score up
DEFAULT_API_KEY = sk-16a611a2dbb9270b476c2caf29414e345f587f0548aca4a7 硬编码于 scripts/runse.py:21,任何查看源码者均可获取
所有处理文本POST至腾讯云函数(tencentscf.com),声称'无状态运行丢弃数据'但无技术验证手段
用户提供的个人密钥以明文JSON存储于 ~/.workbuddy/wenzi-runse-config.json,文档虽有提示但仍为风险
filesystem:WRITE(临时文件)、shell:WRITE(运行脚本) 均在文档中声明,使用场景合理
Most important evidence
硬编码API密钥于源码中
DEFAULT_API_KEY 硬编码为有效格式的sk-密钥,存储于公开源码中。任何获取此技能的用户可提取该密钥用于其他用途,或该密钥被滥用于API配额消耗。
scripts/runse.py:21 文本数据发送至外部端点且无法验证处理
用户提交的文本通过POST请求发送至 https://1257707270-955niawhww.ap-shanghai.tencentscf.com/bailian/chat 。文档声称'云函数无状态运行,处理完立即返回结果并丢弃,不存储原文',但代码中无任何验证机制证明数据实际被丢弃,端点行为完全由第三方控制。
scripts/runse.py:40 用户密钥明文存储于本地
当用户选择保存个人密钥时,密钥以明文JSON格式写入本地配置文件(~/.workbuddy/wenzi-runse-config.json)。虽然代码设置了0o600权限限制其他用户访问,但文件内容本身未加密。
scripts/runse.py:75 网络请求权限未在allowed-tools中声明
SKILL.md声明 allowed-tools: [Read, Write, Bash],但代码实际进行了网络请求操作。network:WRITE权限未被声明。
SKILL.md:11 Declared capability vs actual capability
scripts/runse.py:89 创建临时文件写入待处理文本 scripts/runse.py:40 urllib.request.urlopen 向腾讯云函数POST数据,SKILL.md未声明网络WRITE权限 SKILL.md声明Bash工具,脚本通过python3执行命令 Suspicious artifacts and egress
sk-16a611a2dbb9270b476c2caf29414e345f587f0548aca4a7 scripts/runse.py:21
API_KEY = "sk-16a611a2dbb9270b476c2caf29414e345f587f0548aca4a7" scripts/runse.py:21
https://1257707270-955niawhww.ap-shanghai.tencentscf.com/bailian/chat scripts/runse.py:19
https://1257707270-955niawhww.ap-shanghai.tencentscf.com/v1/models scripts/runse.py:20
https://clawhub.ai/user/abcqq1234567 skill-card.md:9
https://clawhub.ai/abcqq1234567/skills/wenzi-runse skill-card.md:39
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| urllib | stdlib | Python内置 | No | 使用Python标准库,无第三方依赖风险 |
File composition
SKILL.md scripts/runse.py skill-card.md