smyx-aggressive-behavior-detection-analysis
合法的畜禽视频分析技能,通过外部云API完成分析,本地SQLite仅存储用户身份令牌。无恶意行为,但存在一处已注释的RCE代码路径和隐藏CLI参数的轻微文档问题。
为什么得出这个结论
1/4 个维度触发发现 1 项声明之外的能力或越权行为。
提取到 12 个一般风险产物,需要结合上下文判断。
没有形成明确的恶意路径。
依赖结构存在,但暂未看到明显高危告警。
风险分是怎么被拉高的
--open-id 和 --api-key 以 SUPPRESS 隐藏,未在 SKILL.md 中声明但代码中存在,用户无法通过 --help 感知
skills/smyx_common/scripts/skill.py 中 AgentSkill.ai_chat() 包含完整的 subprocess.run() 命令执行代码,虽已注释但未删除,若被激活可执行任意 shell 命令
所有分析均依赖 lifeemergence.com 外部API,视频/图像数据上传至该服务,skill-card.md 已声明但 SKILL.md 中未明确告知
最关键的证据
隐藏CLI参数未在文档中声明
--open-id 和 --api-key 参数使用 argparse.SUPPRESS 隐藏在 --help 输出中,用户无法感知这些敏感参数的存在。OpenIdUtil.resolve_current_open_id() 会静默处理这些参数,可能影响用户对身份数据外传的理解。
scripts/smyx_aggressive_behavior_detection_analysis.py:40 注释的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 外部云服务依赖未充分披露
SKILL.md 未在「隐私与数据安全声明」中明确告知用户:输入的视频/图像将被上传至 lifeemergence.com 云服务进行 AI 分析。仅在 skill-card.md 的 Known Risks 中有所提及。
SKILL.md:170 本地数据库存储用户令牌
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 Agent工作区自动检测逻辑
AgentContextUtil.detect_current_agent_workspace() 自动检测当前运行在 Main Agent 还是子 Agent,并动态重定向数据库路径到正确的工作区 data 目录。逻辑本身安全,但增加了追踪数据存储位置的难度。
skills/smyx_common/scripts/util.py:103 声明能力 vs 实际能力
scripts/smyx_aggressive_behavior_detection_analysis.py:76 - 写入结果到 --output 文件;skills/smyx_common/scripts/dao.py - 创建 SQLite 数据库文件于 data/ 目录 所有 API 调用均发往 lifeemergence.com(prod)、192.168.1.234(dev/test),SKILL.md 仅模糊描述为「服务端 API」,未精确列举所有目标端点 skills/smyx_common/scripts/skill.py:37-65 - AgentSkill.ai_chat() 中的 subprocess.run() 被注释但代码完整存在,涵盖 agent prompt 执行逻辑 skills/smyx_common/scripts/dao.py - 创建并读写 smyx-common-claw.db,存储用户 username/token/open_token,SKILL.md 完全未提及本地数据库操作 可疑产物与外联
https://lifeemergence.com/sample.html SKILL.md:29
https://clawhub.ai/user/18072937735 skill-card.md:9
https://clawhub.ai/18072937735/skills/smyx-aggressive-behavior-detection-analysis skill-card.md:39
http://192.168.1.234:9601/smyx-open-api skills/smyx_common/scripts/config-dev.yaml:2
http://192.168.1.234:4100 skills/smyx_common/scripts/config-dev.yaml:3
http://192.168.1.234:7070/jeecg-boot-xzgz skills/smyx_common/scripts/config-dev.yaml:4
https://livemonitortest.lifeemergence.com/smyx-open-api skills/smyx_common/scripts/config-test.yaml:2
http://livemonitortest.lifeemergence.com skills/smyx_common/scripts/config-test.yaml:3
https://healthtest.lifeemergence.com/jeecg-boot-xzgz skills/smyx_common/scripts/config-test.yaml:4
https://lifeemergence.com/jeecg-boot-xzgz skills/smyx_common/scripts/config.yaml:4
https://open.lifeemergence.com/smyx-open-api skills/smyx_common/scripts/config.yaml:5
http://livemonitor.lifeemergence.com skills/smyx_common/scripts/config.yaml:6
依赖与供应链
| 包名 | 版本 | 来源 | 漏洞 | 备注 |
|---|---|---|---|---|
| requests | >=2.28.0 | pip | 否 | SKILL.md 中声明,版本要求宽泛 |
| pydash | 8.0.6 | pip | 否 | 版本锁定 |
| SQLAlchemy | 2.0.46 | pip | 否 | 版本锁定 |
| PyYAML | 6.0.3 | pip | 否 | 版本锁定 |
文件构成
skills/smyx_common/scripts/util.py skills/smyx_common/scripts/dao.py SKILL.md scripts/smyx_aggressive_behavior_detection_analysis.py skills/smyx_common/scripts/skill.py skill-card.md