staff-absence-detection-analysis
技能声称仅用于人员离岗监测,但代码包含大量未声明的用户身份管理、凭证存储和自动注册功能,存在文档欺骗和阴影功能问题。
SKILL.md声称'用户身份参数由系统内部自动处理,不得向用户展示',但代码在util.py:315-360实现了完整的自动用户创建逻辑,包括生成User_xxxxxx格式用户名、写入本地SQLite数据库、持久化存储。
skills/smyx_common/scripts/util.py:315 Why this conclusion was reached
2/4 dimensions flagged4 undeclared or violating capabilities were inferred.
10 lower-risk artifacts were extracted and still need context.
The report includes 0 attack-chain steps and 2 severe findings.
Dependencies are present but no obvious high-risk issue stands out.
What drove the risk score up
SKILL.md未声明自动创建本地用户(User_xxxxxx)的机制
在data/目录创建SQLite数据库存储API token和open_token
文档强调'系统自动处理身份不暴露',但代码实际创建持久化本地用户记录
requirements.txt使用精确版本,但smyx_common等依赖未声明来源和版本
自动手机号登录(/sys/phoneLogin)流程未在文档说明
Most important evidence
未声明的本地用户自动创建机制
SKILL.md声称'用户身份参数由系统内部自动处理,不得向用户展示',但代码在util.py:315-360实现了完整的自动用户创建逻辑,包括生成User_xxxxxx格式用户名、写入本地SQLite数据库、持久化存储。
skills/smyx_common/scripts/util.py:315 未声明的凭证本地持久化存储
代码在data/目录下创建SQLite数据库(smyx-common-claw.db)存储API token、open_token等敏感凭证,文档未提及此行为。
skills/smyx_common/scripts/dao.py:40 外部API自动注册流程未披露
RequestUtil.http_request中存在自动用户注册逻辑,当本地无凭证时调用/sys/phoneLogin注册新用户,用户未被告知。
skills/smyx_common/scripts/util.py:265 环境变量读取行为未声明
config.py从环境变量读取OPENCLAW_SENDER_OPEN_ID、OPENCLAW_SENDER_USERNAME、FEISHU_OPEN_ID等身份信息。
skills/smyx_common/scripts/config.py:127 共享库(smyx_common)行为未披露
技能依赖skills/smyx_common共享库,包含完整的API服务、数据库、工具函数,但SKILL.md资源索引中未提及该依赖库的存在和作用。
skills/smyx_common/scripts/util.py:1 共享库依赖无版本锁定
smyx_analysis和smyx_common技能互为依赖,但requirements.txt中未列出对smyx_common的依赖关系。
skills/smyx_analysis/requirements.txt:1 Declared capability vs actual capability
dao.py:98-145 创建本地SQLite数据库 util.py:265-285 自动注册用户到外部API config.py:127-131 读取OPENCLAW_SENDER_OPEN_ID等环境变量 dao.py:40-50 持久化用户凭证到本地SQLite Suspicious artifacts and egress
https://lifeemergence.com/sample.html SKILL.md:41
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
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| requests | >=2.28.0 | pip | No | 声明于SKILL.md前置准备 |
| pydash | 8.0.6 | pip | No | 精确版本锁定 |
| SQLAlchemy | 2.0.46 | pip | No | 精确版本锁定 |
| smyx_common | 未知 | 内部技能 | No | 跨技能依赖,未在requirements.txt中声明 |
File composition
skills/smyx_common/scripts/util.py skills/smyx_common/scripts/config.py skills/smyx_common/scripts/dao.py SKILL.md