Scan Report
This report was generated in Chinese. Some content may be in Chinese.
18 /100
agi-evolution-model
基于双环架构的AGI进化模型,通过意向性分析、人格层映射、元认知检测和错误智慧库实现持续自我演进
AGI进化模型技能,功能为认知架构与人格系统,无恶意行为;CLI工具声明充分,但环境变量暴露面偏宽且有eval()风险,构成轻微安全隐患。
Safe to install
建议对action_env()增加更严格的凭证关键词过滤(如OPENAI_KEY、GITHUB_TOKEN、AWS_SECRET等),并限制calculator工具的eval()使用白名单表达式或迁移至ast.literal_eval。
Findings 3 items
| Severity | Finding | Location |
|---|---|---|
| Low | 环境变量凭证过滤不足 Sensitive Access | scripts/cli_system_info.py:306 |
| Low | calculator工具使用eval()存在代码执行风险 RCE | scripts/perception_node.py:530 |
| Info | CLI工具箱安全策略声明宽松 Priv Escalation | references/cli-tools-guide.md:35 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | WRITE | WRITE | ✓ Aligned | cli_file_operations.py 完整读写删除操作,SKILL.md已声明 |
| Shell | WRITE | WRITE | ✓ Aligned | cli_executor.py:103 shell=True,SKILL.md已声明CLI工具箱 |
| Environment | READ | READ | ✓ Aligned | cli_system_info.py:306 os.environ,SKILL.md在CLI工具箱中声明 |
| Network | NONE | NONE | — | 全代码库无网络请求调用 |
| Database | NONE | NONE | — | 全代码库无数据库操作 |
4 Critical 16 findings
Critical Dangerous Command 危险 Shell 命令
rm -rf / references/cli-tools-guide.md:326 Critical Dangerous Command 危险 Shell 命令
wget xxx | sh references/cli-tools-guide.md:332 Critical Dangerous Command 危险 Shell 命令
curl xxx | sh references/cli-tools-guide.md:332 Critical Dangerous Command 危险 Shell 命令
rm -rf ~ references/troubleshooting.md:136 Medium External URL 外部 URL
https://en.wikipedia.org/wiki/Tf%E2%80%93idf references/cognitive-insight-v2-implementation.md:1220 Medium External URL 外部 URL
https://en.wikipedia.org/wiki/Cache_replacement_policies#LRU references/cognitive-insight-v2-implementation.md:1221 Medium External URL 外部 URL
https://en.wikipedia.org/wiki/Moving_average#Exponential_moving_average references/cognitive-insight-v2-implementation.md:1222 Medium External URL 外部 URL
https://www.gnu.org/licenses/agpl-3.0.html references/cognitive-insight-v2-implementation.md:1223 Medium External URL 外部 URL
https://storage.example.com/reports/report.pdf?signature=... references/tool_use_spec.md:625 Medium External URL 外部 URL
https://docs.example.com/migration/weather-v1-to-v2 references/tool_use_spec.md:956 Medium External URL 外部 URL
https://platform.openai.com/docs/guides/function-calling references/tool_use_spec.md:2137 Medium External URL 外部 URL
https://docs.anthropic.com/en/docs/tool-use references/tool_use_spec.md:2138 Medium External URL 外部 URL
https://modelcontextprotocol.io/ references/tool_use_spec.md:2139 Medium External URL 外部 URL
https://json-schema.org/ references/tool_use_spec.md:2140 Medium External URL 外部 URL
https://html.spec.whatwg.org/multipage/server-sent-events.html references/tool_use_spec.md:2141 Medium External URL 外部 URL
https://www.python.org/downloads/ references/troubleshooting.md:117 File Tree
55 files · 935.5 KB · 28170 lines Python 30f · 15979L
Markdown 24f · 12068L
JSON 1f · 123L
├─
▾
assets
│ └─
personality_template.json
JSON
├─
▾
references
│ ├─
architecture.md
Markdown
│ ├─
async-migration-progress.md
Markdown
│ ├─
c_extension_usage.md
Markdown
│ ├─
capability_boundaries.md
Markdown
│ ├─
cli-tools-guide.md
Markdown
│ ├─
cognitive-architecture-insight-module.md
Markdown
│ ├─
cognitive-insight-quick-reference.md
Markdown
│ ├─
cognitive-insight-v2-implementation.md
Markdown
│ ├─
error_wisdom_spec.md
Markdown
│ ├─
information-flow-main-loop.md
Markdown
│ ├─
information-flow-overview.md
Markdown
│ ├─
information-flow-secondary-loop.md
Markdown
│ ├─
init_dialogue_optimized_guide.md
Markdown
│ ├─
intelligence-agent-response-rules.md
Markdown
│ ├─
intentionality_architecture.md
Markdown
│ ├─
maslow_needs.md
Markdown
│ ├─
metacognition-check-component.md
Markdown
│ ├─
metacognition-enhancement-guide.md
Markdown
│ ├─
personality_mapping.md
Markdown
│ ├─
stratified-storage-design.md
Markdown
│ ├─
tool_use_spec.md
Markdown
│ ├─
troubleshooting.md
Markdown
│ └─
usage-examples.md
Markdown
├─
▾
scripts
│ ├─
advice_pool.py
Python
│ ├─
cli_executor.py
Python
│ ├─
cli_file_operations.py
Python
│ ├─
cli_process_manager.py
Python
│ ├─
cli_system_info.py
Python
│ ├─
cognitive_error_analyzer.py
Python
│ ├─
cognitive_insight.py
Python
│ ├─
concept_extraction_extension.py
Python
│ ├─
error_wisdom_manager.py
Python
│ ├─
error_wisdom_prevention.py
Python
│ ├─
error_wisdom_rule_generator.py
Python
│ ├─
error_wisdom_timeliness.py
Python
│ ├─
history_manager.py
Python
│ ├─
init_dialogue_optimized.py
Python
│ ├─
intentionality_analyzer.py
Python
│ ├─
intentionality_classifier.py
Python
│ ├─
intentionality_collector.py
Python
│ ├─
intentionality_daemon.py
Python
│ ├─
intentionality_regulator.py
Python
│ ├─
intentionality_trigger.py
Python
│ ├─
memory_store_async.py
Python
│ ├─
memory_store_pure.py
Python
│ ├─
metacognition_history.py
Python
│ ├─
objectivity_evaluator.py
Python
│ ├─
perception_node.py
Python
│ ├─
personality_core_pure.py
Python
│ ├─
personality_customizer.py
Python
│ ├─
personality_layer_pure.py
Python
│ ├─
strategy_selector.py
Python
│ └─
transcendence_keeper.py
Python
└─
SKILL.md
Markdown
Dependencies 1 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
aiofiles | >=23.0.0 | pip | No | 异步文件操作,仅用于Phase 0异步化,无已知漏洞 |
Security Positives
✓ 无网络外传行为:全代码库未发现任何HTTP请求、POST发送或C2通信模式
✓ 无凭证窃取行为:代码不包含遍历敏感路径(~/.ssh、~/.aws、.env)或凭证外传逻辑
✓ 危险命令黑名单有效:cli_executor.py内置危险命令检测,可阻止rm -rf /、wget|sh等高危操作
✓ 文档-行为基本一致:SKILL.md声明了CLI工具箱全部能力,代码无未声明的阴影功能
✓ IOC为文档引用非实际执行:预扫描标记的4个CRITICAL IOCs均出自references/*.md说明文档,非实际可执行代码
✓ 标准库依赖安全:仅依赖aiofiles,无三方依赖引入供应链风险