smyx-crop-specific-disease-analysis
经济作物病害识别技能,代码结构清晰,但存在未声明的本地凭证存储机制和环境变量访问行为。
Why this conclusion was reached
1/4 dimensions flagged2 undeclared or violating capabilities were inferred.
10 lower-risk artifacts were extracted and still need context.
There is no explicit malicious chain in the report.
1 dependency or supply-chain issues need attention.
What drove the risk score up
SKILL.md未声明使用SQLite存储用户token/open_token
读取OPENCLAW_SENDER_OPEN_ID等环境变量未在文档中声明
OpenIdUtil自动创建User_开头的默认用户并注册登录
requests>=2.28.0使用浮动版本
Most important evidence
本地SQLite数据库存储敏感凭证
dao.py将用户token、open_token等敏感凭证明文存储在SQLite数据库中。虽然路径被重定向到工作区data目录,但数据库文件本身未经加密。
skills/smyx_common/scripts/dao.py:49 未声明的自动用户创建与注册行为
OpenIdUtil.resolve_current_open_id()在未提供open_id时,自动生成User_开头的用户名,调用/sys/phoneLogin接口注册并登录系统。SKILL.md未声明此行为。
skills/smyx_common/scripts/util.py:296 未声明的环境变量读取行为
config.py的init()方法读取多个环境变量(OPENCLAW_SENDER_OPEN_ID, OPENCLAW_SENDER_USERNAME, FEISHU_OPEN_ID),但SKILL.md未声明此行为。
skills/smyx_common/scripts/config.py:98 依赖包无版本锁定
smyx_analysis/requirements.txt中requests>=2.28.0使用浮动版本,可能引入依赖安全风险。
skills/smyx_analysis/requirements.txt:1 API密钥明文配置
config.yaml中存储明文App-Id和API密钥。虽然这是框架设计模式的一部分,但建议使用环境变量或密钥管理服务。
skills/smyx_common/scripts/config.yaml:5 Declared capability vs actual capability
skills/smyx_analysis/scripts/smyx_analysis.py:63 读取本地文件用于分析 skills/smyx_common/scripts/util.py:200 HTTP请求调用外部API skills/smyx_common/scripts/config.py:98 读取OPENCLAW_SENDER_OPEN_ID等变量 skills/smyx_common/scripts/dao.py:49 创建SQLite存储用户凭证 Suspicious artifacts and egress
https://lifeemergence.com/sample.html SKILL.md:29
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 | 无版本锁定 |
| pydash | 8.0.6 | pip | No | 已锁定版本 |
| SQLAlchemy | 2.0.46 | pip | No | 已锁定版本 |
| PyYAML | 6.0.3 | pip | No | 已锁定版本 |
File composition
skills/smyx_common/scripts/util.py skills/smyx_common/scripts/config.py skills/smyx_common/scripts/dao.py SKILL.md