Skill Trust Decision

wenzi-runse

功能正常的文章润色工具,存在硬编码公共密钥和明文凭证存储的安全问题,但均为声明行为,无阴影功能。

Install decision first Source: ClawHub Scanned: Oct 11, 2026
Files 5
Artifacts 6
Violations 0
Findings 4

Why this conclusion was reached

1/4 dimensions flagged
Pass
Declared vs actual capability

Declared resources and inferred behavior are broadly aligned.

Block
Hidden execution and egress

2 high-risk artifacts or egress signals were extracted.

Pass
Attack chain and severe findings

There is no explicit malicious chain in the report.

Review
Dependencies and supply chain hygiene

Dependency information is incomplete, so supply-chain confidence stays limited.

What drove the risk score up

硬编码公共API密钥 +10

DEFAULT_API_KEY 直接写在代码中,虽然是公共共享密钥但不符合最佳实践

明文凭证存储 +10

用户密钥以明文保存在~/.workbuddy/wenzi-runse-config.json,SKILL.md已声明但仍有风险

文本数据外传 +5

用户文本POST到外部云函数,虽声明为无状态但仍存在数据外流

Most important evidence

Medium Credential Theft

公共API密钥硬编码在源代码中

默认API密钥 'sk-16a611a2dbb9270b476c2caf29414e345f587f0548aca4a7' 直接硬编码在 scripts/runse.py 第21行,作为公共共享密钥使用。虽然这是有意设计(用于免费体验),但将密钥明文写在代码中不符合安全最佳实践,一旦代码泄露密钥即暴露。

scripts/runse.py:21
将公共密钥移至单独配置文件或环境变量,避免与代码混合存放。
Medium Credential Theft

用户密钥明文存储在本地文件系统

SKILL.md 声明用户密钥会以明文保存在 ~/.workbuddy/wenzi-runse-config.json。虽然脚本设置了0600权限(仅当前用户可读),但明文存储凭证仍有被本地其他进程或恶意软件读取的风险。

scripts/runse.py:79
使用系统密钥链(如keyring库)存储敏感凭证,避免明文文件系统存储。
Low Supply Chain

缺少依赖版本锁定

脚本仅使用标准库(argparse, json, os, sys, urllib.request),无第三方依赖,因此不存在依赖供应链风险。

N/A
无需操作,当前仅使用Python标准库。
Low Data Exfil

用户文本数据发送至外部云函数

处理文本会POST到腾讯云函数 https://1257707270-955niawhww.ap-shanghai.tencentscf.com。SKILL.md已声明'云函数无状态运行,处理完立即返回结果并丢弃',但用户文本实际离开了本地环境。

scripts/runse.py:41
确保处理的文本内容不包含敏感个人信息,或在处理敏感内容前告知用户数据将发送到外部服务。

Declared capability vs actual capability

Filesystem Pass
Declared WRITE
→
Inferred WRITE
scripts/runse.py:79-84 save_key写入配置文件
Network Pass
Declared WRITE
→
Inferred WRITE
scripts/runse.py:41-55 call_api POST到云端
Shell Pass
Declared WRITE
→
Inferred WRITE
SKILL.md: Bash工具声明,scripts/runse.py为python脚本
Environment Pass
Declared NONE
→
Inferred NONE
代码未访问os.environ

Suspicious artifacts and egress

Critical API Key
sk-16a611a2dbb9270b476c2caf29414e345f587f0548aca4a7

scripts/runse.py:21

High API Key
API_KEY = "sk-16a611a2dbb9270b476c2caf29414e345f587f0548aca4a7"

scripts/runse.py:21

Medium External URL
https://1257707270-955niawhww.ap-shanghai.tencentscf.com/bailian/chat

scripts/runse.py:19

Medium External URL
https://1257707270-955niawhww.ap-shanghai.tencentscf.com/v1/models

scripts/runse.py:20

Medium External URL
https://clawhub.ai/user/abcqq1234567

skill-card.md:9

Medium External URL
https://clawhub.ai/abcqq1234567/skills/wenzi-runse

skill-card.md:39

Dependencies and supply chain

There are no structured dependency warnings.

File composition

5 files · 454 lines
Markdown 3 files · 260 linesPython 1 files · 189 linesJSON 1 files · 5 lines
Files of concern · 2
scripts/runse.py Python · 189 lines
公共API密钥硬编码在源代码中 · 用户密钥明文存储在本地文件系统 · 用户文本数据发送至外部云函数 · sk-16a611a2dbb9270b476c2caf29414e345f587f0548aca4a7 · API_KEY = "sk-16a611a2dbb9270b476c2caf29414e345f587f0548aca4a7" · https://1257707270-955niawhww.ap-shanghai.tencentscf.com/bailian/chat · https://1257707270-955niawhww.ap-shanghai.tencentscf.com/v1/models
skill-card.md Markdown · 59 lines
https://clawhub.ai/user/abcqq1234567 · https://clawhub.ai/abcqq1234567/skills/wenzi-runse
Other files · SKILL.md · README.md · _meta.json

Security positives

代码结构清晰,无混淆或恶意代码
SKILL.md文档完整,详细说明了隐私和数据处理方式
无阴影功能,代码行为与文档描述一致
未访问敏感路径(~/.ssh、~/.aws、.env等)
凭证存储设置了0600文件权限限制
仅使用Python标准库,无第三方依赖风险
密钥优先级设计合理(本次参数 > 已保存 > 公共密钥)
支持自定义配置路径,用户可控凭证存储位置