Skill Trust Decision

smyx-family-conflict-aftercare-suggest-analysis

该技能存在多个未声明的敏感行为:本地SQLite数据库存储用户凭证、自动创建用户账户、将token/open_token/username等凭证外发到外部API服务器,且SKILL.md完全未提及这些行为,构成严重文档欺骗。

Install decision first Source: ClawHub Scanned: 16 days ago
Files 30
Artifacts 12
Violations 3
Findings 7
Most direct threat evidence
Critical Doc Mismatch
未声明的本地凭证数据库存储

代码通过SQLAlchemy创建本地SQLite数据库(smyx-common-claw.db),存储用户的username、token、open_token等敏感凭证。SKILL.md完全未提及此本地存储行为,用户无法知晓凭证被持久化到本地文件系统。

skills/smyx_common/scripts/dao.py:72

Why this conclusion was reached

2/4 dimensions flagged
Block
Declared vs actual capability

3 undeclared or violating capabilities were inferred.

Review
Hidden execution and egress

12 lower-risk artifacts were extracted and still need context.

Block
Attack chain and severe findings

The report includes 4 attack-chain steps and 5 severe findings.

Review
Dependencies and supply chain hygiene

1 dependency or supply-chain issues need attention.

Attack Chain

01
用户安装技能,技能自动执行初始化

Entry · skills/smyx_common/scripts/util.py:269

02
OpenIdUtil自动创建默认用户User_xxxxxx并写入本地SQLite数据库

Escalation · skills/smyx_common/scripts/dao.py:72

03
通过/sys/phoneLogin接口将自动创建的用户注册到云端

Escalation · skills/smyx_common/scripts/util.py:263

04
每次API请求将X-Access-Token/Authorization等凭证发送到外部服务器

Impact · skills/smyx_common/scripts/util.py:217

What drove the risk score up

未声明的本地凭证存储 +25

SQLite数据库(smyx-common-claw.db)存储username/token/open_token等敏感凭证,SKILL.md完全未提及

未声明的凭证外发 +25

通过RequestUtil.http_request将X-Access-Token/X-Api-Key/Authorization等凭证header发送至外部API服务器

未声明的自动用户创建 +15

OpenIdUtil自动生成User_xxxxxx格式用户并通过/sys/phoneLogin注册到云端

未声明的API端点和App ID +10

硬编码App ID(x1a3s4nwy1s2r4se)和多个外部API端点(https://lifeemergence.com等)

硬编码的凭证注释 +5

util.py:157存在注释掉的username包含ou_前缀,可能是测试凭证

Most important evidence

Critical Doc Mismatch

未声明的本地凭证数据库存储

代码通过SQLAlchemy创建本地SQLite数据库(smyx-common-claw.db),存储用户的username、token、open_token等敏感凭证。SKILL.md完全未提及此本地存储行为,用户无法知晓凭证被持久化到本地文件系统。

skills/smyx_common/scripts/dao.py:72
SKILL.md必须声明:1)本地SQLite数据库位置和用途;2)存储的凭证类型;3)数据库文件保护措施
Critical Credential Theft

未声明的凭证外部传输

RequestUtil.http_request方法将X-Access-Token、X-Api-Key、Authorization等敏感凭证header通过HTTP请求发送到外部API服务器(https://lifeemergence.com等),存在凭证拦截风险。

skills/smyx_common/scripts/util.py:217
SKILL.md必须声明:1)外部API服务器域名;2)传输的凭证类型;3)传输目的和必要性
Critical Doc Mismatch

未声明的自动用户创建机制

OpenIdUtil.resolve_current_open_id自动创建User_xxxxxx格式的默认用户名,通过/sys/phoneLogin接口注册到云端系统,形成未声明的用户账户体系。

skills/smyx_common/scripts/util.py:263
SKILL.md必须声明:1)自动创建用户的触发条件;2)用户名生成规则;3)用户数据用途
High Data Exfil

未声明的用户身份外发

HTTP请求data参数中包含pnaUserName字段,携带当前用户名发送到外部API,泄露用户身份标识。

skills/smyx_common/scripts/util.py:230
必须声明上传的用户身份数据内容和目的
High Supply Chain

硬编码的App ID和API端点

config.yaml中硬编码了App ID(x1a3s4nwy1s2r4se)和多个外部API端点域名,用户无法审核这些外部连接的安全性。

skills/smyx_common/scripts/config.yaml:6
App ID和API端点应从环境变量或配置文件读取,避免硬编码
Medium Doc Mismatch

未声明的API Key文件读写

OpenIdUtil.get_api_key_file_open_id读取data/smyx-api-key.txt文件获取API Key,该文件操作未在SKILL.md中声明。

skills/smyx_common/scripts/util.py:249
声明API Key文件的存储位置、用途和保护方式
Low RCE

被注释的测试凭证

util.py:157存在注释掉的username变量(ou_86fdd8e0d5f116c18a9dd550abefe6d2),可能是测试用凭证遗留。

skills/smyx_common/scripts/util.py:157
删除遗留的测试凭证代码

Declared capability vs actual capability

Filesystem Block
Declared READ
Inferred WRITE
skills/smyx_common/scripts/dao.py:72 创建SQLite数据库写入token/open_token
Network Block
Declared READ
Inferred WRITE
skills/smyx_common/scripts/util.py:217-220 将X-Access-Token/Authorization等凭证发送到外部API
Environment Block
Declared NONE
Inferred READ
skills/smyx_common/scripts/config.py:63-65 读取OPENCLAW_SENDER_OPEN_ID等环境变量

Suspicious artifacts and egress

Medium External URL
https://lifeemergence.com/sample.html

SKILL.md:34

Medium External URL
https://clawhub.ai/user/smyx-sunjinhui

skill-card.md:9

Medium External URL
https://clawhub.ai/smyx-sunjinhui/skills/smyx-family-conflict-aftercare-suggest-analysis

skill-card.md:43

Medium External URL
http://192.168.1.234:9601/smyx-open-api

skills/smyx_common/scripts/config-dev.yaml:2

Medium External URL
http://192.168.1.234:4100

skills/smyx_common/scripts/config-dev.yaml:3

Medium External URL
http://192.168.1.234:7070/jeecg-boot-xzgz

skills/smyx_common/scripts/config-dev.yaml:4

Medium External URL
https://livemonitortest.lifeemergence.com/smyx-open-api

skills/smyx_common/scripts/config-test.yaml:2

Medium External URL
http://livemonitortest.lifeemergence.com

skills/smyx_common/scripts/config-test.yaml:3

Medium External URL
https://healthtest.lifeemergence.com/jeecg-boot-xzgz

skills/smyx_common/scripts/config-test.yaml:4

Medium External URL
https://lifeemergence.com/jeecg-boot-xzgz

skills/smyx_common/scripts/config.yaml:4

Medium External URL
https://open.lifeemergence.com/smyx-open-api

skills/smyx_common/scripts/config.yaml:5

Medium External URL
http://livemonitor.lifeemergence.com

skills/smyx_common/scripts/config.yaml:6

Dependencies and supply chain

PackageVersionSourceKnown vulnNotes
pydash 8.0.6 requirements.txt No 版本已锁定
SQLAlchemy 2.0.46 requirements.txt No 版本已锁定
PyYAML 6.0.3 requirements.txt Yes YAML反序列化漏洞(CVE-2020-14343等),建议升级
requests >=2.28.0 SKILL.md依赖说明 No 无版本上限,存在引入恶意版本风险

File composition

30 files · 2779 lines
Python 18 files · 2363 linesMarkdown 4 files · 381 linesYAML 6 files · 29 linesText 2 files · 6 lines
Files of concern · 4
skills/smyx_common/scripts/util.py Python · 718 lines
未声明的凭证外部传输 · 未声明的自动用户创建机制 · 未声明的用户身份外发 · 未声明的API Key文件读写 · 被注释的测试凭证
skills/smyx_common/scripts/dao.py Python · 499 lines
未声明的本地凭证数据库存储
SKILL.md Markdown · 194 lines
https://lifeemergence.com/sample.html
skill-card.md Markdown · 63 lines
https://clawhub.ai/user/smyx-sunjinhui · https://clawhub.ai/smyx-sunjinhui/skills/smyx-family-conflict-aftercare-suggest-analysis
Other files · config.py · api_doc.md · skill.py · smyx_analysis.py · smyx_family_conflict_aftercare_suggest_analysis.py · api_service.py +2

Security positives

代码结构清晰,使用标准SQLAlchemy ORM
用户身份参数由系统内部自动处理,不要求用户输入
敏感header打印时进行了截断处理(safe_headers)
支持通过config.yaml配置外部API地址
实现了文件格式验证( mp4/avi/mov)和大小限制(10MB)