Skill Trust Decision

smyx-pet-grooming-stress-behavior-analysis

技能包含未声明的subprocess执行能力和凭证存储机制,虽代码被注释但意图可疑,且通过环境变量和数据库持续追踪用户身份,发送宠物视频到外部服务器。

Install decision first Source: ClawHub Scanned: 12 days ago
Files 30
Artifacts 12
Violations 4
Findings 6
Most direct threat evidence
01
用户安装技能并上传宠物美容视频 Entry · SKILL.md
02
技能自动创建User_开头的默认身份并存储到数据库 Escalation · skills/smyx_common/scripts/util.py
03
视频和身份凭证通过HTTP发送到外部API Escalation · skills/smyx_analysis/scripts/skill.py

Why this conclusion was reached

2/4 dimensions flagged
Block
Declared vs actual capability

4 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 3 severe findings.

Pass
Dependencies and supply chain hygiene

Dependencies are present but no obvious high-risk issue stands out.

Attack Chain

01
用户安装技能并上传宠物美容视频

Entry · SKILL.md:1

02
技能自动创建User_开头的默认身份并存储到数据库

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

03
视频和身份凭证通过HTTP发送到外部API

Escalation · skills/smyx_analysis/scripts/skill.py:95

04
可选:若ai_chat方法被激活,可执行任意shell命令

Impact · skills/smyx_common/scripts/skill.py:36

What drove the risk score up

未声明的shell执行能力 +25

smyx_common/scripts/skill.py中存在ai_chat方法,可通过subprocess执行openclaw agent命令,SKILL.md未声明此能力

用户身份追踪机制 +20

OpenIdUtil自动创建/追踪User_开头的默认用户,存储token到本地SQLite数据库

凭证本地存储 +15

UserDao将用户token/open_token存储在workspace/data/smyx-common-claw.db中

环境变量读取敏感信息 +10

读取OPENCLAW_SENDER_OPEN_ID, OPENCLAW_SENDER_USERNAME, FEISHU_OPEN_ID等环境变量

外部API数据传输 +10

用户视频和身份信息发送到外部API服务器

Most important evidence

High RCE

未声明的subprocess执行能力

smyx_common/scripts/skill.py中存在ai_chat方法,包含完整的subprocess.run()代码用于执行openclaw agent命令,虽被注释但保留了完整功能结构,表明开发者有意保留此能力用于未来激活。

skills/smyx_common/scripts/skill.py:23
删除ai_chat方法或明确在SKILL.md中声明此能力
High Credential Theft

用户凭证本地存储

UserDao将用户token、open_token、username等敏感凭证存储在workspace/data/smyx-common-claw.db数据库中,攻击者可直接读取获取用户身份。

skills/smyx_common/scripts/dao.py:189
不要在本地存储凭证,使用内存临时存储或加密存储
High Doc Mismatch

身份追踪机制未声明

SKILL.md未提及技能会自动创建User_开头的默认用户、追踪用户行为、存储账户token到本地数据库。OpenIdUtil.resolve_current_open_id()在每次API调用时自动解析并关联用户身份。

skills/smyx_common/scripts/util.py:280
在SKILL.md中明确声明身份创建和追踪机制
Medium Sensitive Access

环境变量读取敏感信息

ConstantEnum.init()从环境变量读取OPENCLAW_SENDER_OPEN_ID, OPENCLAW_SENDER_USERNAME, FEISHU_OPEN_ID等敏感标识,用于追踪用户身份。

skills/smyx_common/scripts/config.py:118
明确声明需要读取的环境变量及其用途
Medium Data Exfil

视频数据外传外部API

用户上传的宠物美容视频通过HTTP POST发送到外部API服务器(api.health.com或类似地址),视频内容和用户身份信息同时传输。

skills/smyx_analysis/scripts/skill.py:95
明确告知用户视频数据的外传目的地,并在部署前获取用户同意
Medium Persistence

数据库路径强制重定向

Dao.get_db_path()强制将数据库文件重定向到workspace/data/目录,实现了跨技能的持久化存储机制,可被其他技能利用。

skills/smyx_common/scripts/dao.py:54
评估此机制是否被恶意技能滥用

Declared capability vs actual capability

Filesystem Block
Declared READ
Inferred WRITE
skills/smyx_common/scripts/util.py:168 FileUtil.mkdir()创建目录
Network Block
Declared READ
Inferred WRITE
skills/smyx_common/scripts/util.py:262 发送HTTP请求携带token/身份信息
Shell Pass
Declared NONE
Inferred WRITE
skills/smyx_common/scripts/skill.py:23-43 注释的subprocess代码
Environment Block
Declared NONE
Inferred READ
skills/smyx_common/scripts/config.py:118-122 读取多个环境变量
Database Block
Declared NONE
Inferred WRITE
skills/smyx_common/scripts/dao.py:47 存储用户凭证到SQLite

Suspicious artifacts and egress

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

SKILL.md:37

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

skill-card.md:9

Medium External URL
https://clawhub.ai/18072937735/skills/smyx-pet-grooming-stress-behavior-analysis

skill-card.md:39

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
requests >=2.28.0 pip No SKILL.md中声明但实际代码中未直接使用
pydash 8.0.6 pip No 已锁定版本
SQLAlchemy 2.0.46 pip No 已锁定版本

File composition

30 files · 2712 lines
Python 18 files · 2363 linesMarkdown 4 files · 314 linesYAML 6 files · 29 linesText 2 files · 6 lines
Files of concern · 7
skills/smyx_common/scripts/util.py Python · 718 lines
身份追踪机制未声明
skills/smyx_common/scripts/config.py Python · 399 lines
环境变量读取敏感信息
skills/smyx_common/scripts/dao.py Python · 499 lines
用户凭证本地存储 · 数据库路径强制重定向
SKILL.md Markdown · 215 lines
https://lifeemergence.com/sample.html
skills/smyx_analysis/scripts/skill.py Python · 175 lines
视频数据外传外部API
skill-card.md Markdown · 60 lines
https://clawhub.ai/user/18072937735 · https://clawhub.ai/18072937735/skills/smyx-pet-grooming-stress-behavior-analysis
skills/smyx_common/scripts/skill.py Python · 85 lines
未声明的subprocess执行能力
Other files · smyx_analysis.py · smyx_pet_grooming_stress_behavior_analysis.py · api_service.py · api_service.py · config.py

Security positives

依赖包版本已锁定(pydash==8.0.6, SQLAlchemy==2.0.46)
使用SQLAlchemy ORM而非裸SQL,减小SQL注入风险
文件上传有格式验证和大小限制(10MB)
HTTP请求有超时控制(120秒)