Skill Trust Decision

smyx-aggressive-behavior-detection-analysis

合法的畜禽视频分析技能,通过外部云API完成分析,本地SQLite仅存储用户身份令牌。无恶意行为,但存在一处已注释的RCE代码路径和隐藏CLI参数的轻微文档问题。

Install decision first Source: ClawHub Scanned: 27 days ago
Files 31
Artifacts 12
Violations 1
Findings 5

Why this conclusion was reached

1/4 dimensions flagged
Block
Declared vs actual capability

1 undeclared or violating capabilities were inferred.

Review
Hidden execution and egress

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

Pass
Attack chain and severe findings

There is no explicit malicious chain in the report.

Pass
Dependencies and supply chain hygiene

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

What drove the risk score up

隐藏的CLI参数 +8

--open-id 和 --api-key 以 SUPPRESS 隐藏,未在 SKILL.md 中声明但代码中存在,用户无法通过 --help 感知

注释的RCE代码路径 +8

skills/smyx_common/scripts/skill.py 中 AgentSkill.ai_chat() 包含完整的 subprocess.run() 命令执行代码,虽已注释但未删除,若被激活可执行任意 shell 命令

外部云API依赖 +4

所有分析均依赖 lifeemergence.com 外部API,视频/图像数据上传至该服务,skill-card.md 已声明但 SKILL.md 中未明确告知

Most important evidence

Low Doc Mismatch

隐藏CLI参数未在文档中声明

--open-id 和 --api-key 参数使用 argparse.SUPPRESS 隐藏在 --help 输出中,用户无法感知这些敏感参数的存在。OpenIdUtil.resolve_current_open_id() 会静默处理这些参数,可能影响用户对身份数据外传的理解。

scripts/smyx_aggressive_behavior_detection_analysis.py:40
在 SKILL.md 的脚本参数说明表中补充 --open-id 和 --api-key 参数的说明
Low RCE

注释的subprocess命令执行代码残留

skills/smyx_common/scripts/skill.py 中的 AgentSkill.ai_chat() 包含完整的 subprocess.run() 调用逻辑(cmd 数组包含 'openclaw', 'agent', '-m', str(prompt) 等命令),虽已注释但未删除。该函数可通过 agent prompt 注入触发任意命令执行。

skills/smyx_common/scripts/skill.py:37
删除已注释的 subprocess 相关代码,或将整个 AgentSkill 类移除
Low Supply Chain

外部云服务依赖未充分披露

SKILL.md 未在「隐私与数据安全声明」中明确告知用户:输入的视频/图像将被上传至 lifeemergence.com 云服务进行 AI 分析。仅在 skill-card.md 的 Known Risks 中有所提及。

SKILL.md:170
在 SKILL.md 隐私声明中明确列出数据上传目标域名(lifeemergence.com)和上传数据类型
Info Sensitive Access

本地数据库存储用户令牌

skills/smyx_common/scripts/dao.py 在 workspace/data/ 目录创建 smyx-common-claw.db SQLite 数据库,存储 sys_user 表包含 username/token/open_token 等认证凭据。SKILL.md 完全未提及任何本地数据库操作。

skills/smyx_common/scripts/dao.py:75
在 SKILL.md 中说明本地数据库用途和数据保留策略
Info Priv Escalation

Agent工作区自动检测逻辑

AgentContextUtil.detect_current_agent_workspace() 自动检测当前运行在 Main Agent 还是子 Agent,并动态重定向数据库路径到正确的工作区 data 目录。逻辑本身安全,但增加了追踪数据存储位置的难度。

skills/smyx_common/scripts/util.py:103
无需修改,属于正常的多租户隔离设计

Declared capability vs actual capability

Filesystem Pass
Declared READ
→
Inferred WRITE
scripts/smyx_aggressive_behavior_detection_analysis.py:76 - 写入结果到 --output 文件;skills/smyx_common/scripts/dao.py - 创建 SQLite 数据库文件于 data/ 目录
Network Pass
Declared READ
→
Inferred WRITE
所有 API 调用均发往 lifeemergence.com(prod)、192.168.1.234(dev/test),SKILL.md 仅模糊描述为「服务端 API」,未精确列举所有目标端点
Shell Pass
Declared NONE
→
Inferred ADMIN
skills/smyx_common/scripts/skill.py:37-65 - AgentSkill.ai_chat() 中的 subprocess.run() 被注释但代码完整存在,涵盖 agent prompt 执行逻辑
Database Block
Declared NONE
→
Inferred WRITE
skills/smyx_common/scripts/dao.py - 创建并读写 smyx-common-claw.db,存储用户 username/token/open_token,SKILL.md 完全未提及本地数据库操作

Suspicious artifacts and egress

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

SKILL.md:29

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

skill-card.md:9

Medium External URL
https://clawhub.ai/18072937735/skills/smyx-aggressive-behavior-detection-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 版本锁定
PyYAML 6.0.3 pip No 版本锁定

File composition

31 files · 2762 lines
Python 18 files · 2363 linesMarkdown 4 files · 359 linesYAML 6 files · 29 linesText 2 files · 6 linesJSON 1 files · 5 lines
Files of concern · 6
skills/smyx_common/scripts/util.py Python · 718 lines
Agent工作区自动检测逻辑
skills/smyx_common/scripts/dao.py Python · 499 lines
本地数据库存储用户令牌
SKILL.md Markdown · 261 lines
外部云服务依赖未充分披露 · https://lifeemergence.com/sample.html
scripts/smyx_aggressive_behavior_detection_analysis.py Python · 102 lines
隐藏CLI参数未在文档中声明
skills/smyx_common/scripts/skill.py Python · 85 lines
注释的subprocess命令执行代码残留
skill-card.md Markdown · 59 lines
https://clawhub.ai/user/18072937735 · https://clawhub.ai/18072937735/skills/smyx-aggressive-behavior-detection-analysis
Other files · config.py · skill.py · smyx_analysis.py · api_service.py · api_service.py · config.py

Security positives

代码结构清晰,无混淆、base64执行或反分析特征
无硬编码凭证,所有密钥从 config.yaml 加载(config.yaml 中均为 null)
依赖版本已锁定:pydash==8.0.6, SQLAlchemy==2.0.46, PyYAML==6.0.3
数据库路径强制重定向到 workspace/data/,禁止写入技能目录
无 ~/.ssh、~/.aws、.env 等敏感路径访问
API 调用有超时保护(timeout=120s)
SKILL.md 文档结构完整,能力范围描述清晰
历史报告查询强制走云端API,不从本地记忆获取