Scan Report
20 /100
agi-evolution-model
基于双环架构的AGI进化模型,通过意向性分析、人格层映射和元认知检测实现持续自我演进
Legitimate AGI evolution model with CLI tools; dangerous commands in docs are blocked by SecurityChecker, not executed. Minor documentation inconsistencies about file paths exist.
Safe to install
Fix documentation inconsistencies (cli_file_operations.py etc. don't exist, actual files are in perception/tools/). Consider removing dangerous command examples from documentation to avoid confusion.
Findings 3 items
| Severity | Finding | Location |
|---|---|---|
| Medium | Documentation references non-existent files Doc Mismatch | SKILL.md:237 |
| Low | Dangerous command examples in documentation Doc Mismatch | references/cli-tools-guide.md:326 |
| Low | Shell execution with shell=True RCE | scripts/perception/tools/executor.py:55 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | NONE | WRITE | ✓ Aligned | scripts/perception/tools/file_ops.py - FileWriteTool, FileDeleteTool, FileMoveTo… |
| Shell | NONE | WRITE | ✓ Aligned | scripts/perception/tools/executor.py:18-21 - BashExecuteTool with shell=True (ma… |
| Network | NONE | READ | ✓ Aligned | scripts/perception/tools/system_info.py:167-192 - NetworkInfoTool connects to 8.… |
| Environment | NONE | READ | ✓ Aligned | scripts/perception/tools/system_info.py:269-289 - EnvInfoTool reads os.environ w… |
| process | NONE | ADMIN | ✓ Aligned | scripts/perception/tools/process.py:210-262 - ProcessKillTool can terminate arbi… |
6 Critical 1 High 19 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 Critical Dangerous Command 危险 Shell 命令
wget | sh scripts/perception/tools/base.py:176 Critical Dangerous Command 危险 Shell 命令
curl | sh scripts/perception/tools/base.py:177 High IP Address 硬编码 IP 地址
8.8.8.8 scripts/perception/tools/system_info.py:220 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
57 files · 782.2 KB · 23804 lines Python 33f · 12844L
Markdown 23f · 10837L
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
│ ├─
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
│ ├─
▾
perception
│ │ ├─
▾
_core
│ │ │ └─
__init__.py
Python
│ │ ├─
▾
tools
│ │ │ ├─
__init__.py
Python
│ │ │ ├─
base.py
Python
│ │ │ ├─
basic.py
Python
│ │ │ ├─
executor.py
Python
│ │ │ ├─
file_ops.py
Python
│ │ │ ├─
process.py
Python
│ │ │ └─
system_info.py
Python
│ │ ├─
__init__.py
Python
│ │ ├─
context.py
Python
│ │ ├─
node.py
Python
│ │ ├─
registry.py
Python
│ │ └─
response.py
Python
│ ├─
advice_pool.py
Python
│ ├─
cognitive_insight.py
Python
│ ├─
concept_extraction_extension.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
│ ├─
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 2 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
aiofiles | >=23.0.0 | pip | No | Version requirement is pinned, minimum specified |
Python standard library only | N/A | builtin | No | No external dependencies besides aiofiles |
Security Positives
✓ SecurityChecker class implements blacklist for dangerous commands (rm -rf /, wget|sh, curl|sh, mkfs, fork bomb, etc.)
✓ Shell execution has timeout controls (default 30s, max 300s)
✓ File operations implement path validation to prevent directory traversal
✓ Process kill tool protects PID 1, current process, and system processes (init, systemd, kernel)
✓ Environment variable access filters sensitive keys (PASSWORD, SECRET, TOKEN, API_KEY, etc.)
✓ Dangerous tools are properly marked with dangerous=True flag
✓ Uses only Python standard library (no supply chain risk from external dependencies)
✓ aiofiles dependency is version-pinned (>=23.0.0)