Scan Report
45 /100
self-evolution-engine
自我进化引擎 - 让AI Skill具备自我分析、自我改进、自我学习的能力
发现硬编码API密钥和未声明的系统目录写入操作,技能文档未完整披露实际能力范围。
Use with caution
1. 移除payment.py中的硬编码API密钥,改用环境变量注入;2. 在SKILL.md中明确声明filesystem:WRITE权限及目标目录;3. 审查对/root/.openclaw/workspace的访问必要性
Attack Chain 4 steps
◎
Entry 通过SKILL.md伪装成合法的自我进化工具
SKILL.md:1⬡
Escalation 利用硬编码API密钥冒充合法服务发起请求
payment.py:12⬡
Escalation 写入/root/.openclaw/workspace系统目录创建隐蔽文件
evolution_generator.py:20◉
Impact 通过备份机制持久化恶意代码到目标Skill目录
version_manager.py:50Findings 4 items
| Severity | Finding | Location |
|---|---|---|
| High | 硬编码API密钥泄露 | payment.py:12 |
| High | 未声明的系统目录写入 | evolution_generator.py:20 |
| Medium | 支付模块文档缺失 | payment.py:1 |
| Low | 依赖版本未锁定 | requirements.txt:1 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | NONE | WRITE | ✗ Violation | evolution_generator.py:20 workspace_dir='/root/.openclaw/workspace/skills'; vers… |
| Network | NONE | READ | ✓ Aligned | payment.py:27-35 requests.get/post to BILLING_API_URL |
| Shell | NONE | NONE | — | 无subprocess/shell调用 |
1 High 2 findings
High API Key 疑似硬编码凭证
API_KEY = "sk_f03aa8f8bbcf79f7aa11c112d904780f22e62add1464e3c41a79600a451eb1d2" payment.py:12 Medium External URL 外部 URL
https://skillpay.me payment.py:11 File Tree
9 files · 56.0 KB · 1662 lines Python 5f · 1300L
Markdown 2f · 329L
JSON 1f · 19L
Text 1f · 14L
├─
▾
references
│ └─
architecture.md
Markdown
├─
▾
scripts
│ ├─
error_analyzer.py
Python
│ ├─
evolution_generator.py
Python
│ ├─
performance_monitor.py
Python
│ └─
version_manager.py
Python
├─
_meta.json
JSON
├─
payment.py
Python
├─
requirements.txt
Text
└─
SKILL.md
Markdown
Dependencies 6 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
requests | * | pip | No | 无版本锁定 |
python-dateutil | >=2.8.0 | pip | No | 范围版本 |
pandas | >=2.0.0 | pip | No | 无版本锁定 |
numpy | >=1.24.0 | pip | No | 无版本锁定 |
psutil | >=5.9.0 | pip | No | 范围版本 |
matplotlib | >=3.7.0 | pip | No | 范围版本 |
Security Positives
✓ 代码结构清晰,使用类封装功能逻辑
✓ 无shell命令注入风险,未发现subprocess/shell调用
✓ 网络请求仅限于官方BILLING_API_URL(https://skillpay.me),无恶意IP连接
✓ 进化方案需人类审核确认后应用,体现安全设计