Scan Report
20 /100
agent-memory
AI Agent 记忆基础设施,实现 Context Engineering 五大核心能力
合法的 AI Agent 记忆基础设施,未发现恶意行为,但文档中存在硬编码密码示例需注意
Safe to install
建议移除文档中的硬编码密码示例,使用纯占位符替代;检查 export_master_key() 方法的使用场景
Findings 2 items
| Severity | Finding | Location |
|---|---|---|
| Low | 文档包含硬编码密码示例 | references/encryption_guide.md:157 |
| Info | 主密钥导出功能 | scripts/credential_manager.py:260 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | WRITE | WRITE | ✓ Aligned | SKILL.md: 仅限 ./memory_data/ 路径 |
| Environment | NONE | READ | ✓ Aligned | scripts/credential_manager.py:134 读取 MEMORY_MASTER_KEY 环境变量 |
| Network | NONE | NONE | — | 无网络请求代码 |
| Shell | NONE | NONE | — | 无 shell 执行代码 |
2 High 2 findings
High API Key 疑似硬编码凭证
password = "user_password_123" references/encryption_guide.md:157 High API Key 疑似硬编码凭证
password="optional_password" references/encryption_guide.md:171 File Tree
68 files · 1.4 MB · 45450 lines Python 50f · 36715L
Markdown 17f · 8236L
JSON 1f · 499L
├─
▾
assets
│ └─
▾
templates
│ └─
memory_schemas.json
JSON
├─
▾
references
│ ├─
activation_mechanism.md
Markdown
│ ├─
agent_loops_advanced.md
Markdown
│ ├─
agent_loops_integration.md
Markdown
│ ├─
api_class_reference.md
Markdown
│ ├─
api_enums.md
Markdown
│ ├─
architecture_execution_model.md
Markdown
│ ├─
architecture_overview.md
Markdown
│ ├─
chain_reasoning_guide.md
Markdown
│ ├─
encryption_guide.md
Markdown
│ ├─
index_sync_guide.md
Markdown
│ ├─
insight_design.md
Markdown
│ ├─
memory_types.md
Markdown
│ ├─
module_index.md
Markdown
│ ├─
privacy_guide.md
Markdown
│ ├─
short_term_insight_guide.md
Markdown
│ └─
usage_guide.md
Markdown
├─
▾
scripts
│ ├─
__init__.py
Python
│ ├─
async_writer.py
Python
│ ├─
batched_writer.py
Python
│ ├─
bloom_filter.py
Python
│ ├─
cache_consistency.py
Python
│ ├─
cache_layer.py
Python
│ ├─
causal_chain_extractor.py
Python
│ ├─
chain_reasoning.py
Python
│ ├─
cognitive_model_builder.py
Python
│ ├─
conflict_resolver.py
Python
│ ├─
context_lazy_loader.py
Python
│ ├─
context_orchestrator.py
Python
│ ├─
context_reconstructor.py
Python
│ ├─
credential_manager.py
⚠
Python
│ ├─
cross_session_memory_linker.py
Python
│ ├─
encryption.py
Python
│ ├─
fallback_manager.py
Python
│ ├─
heat_manager.py
Python
│ ├─
importance_scorer.py
Python
│ ├─
incremental_sync.py
Python
│ ├─
insight_module.py
Python
│ ├─
knowledge_gap_identifier.py
Python
│ ├─
long_term.py
Python
│ ├─
memory_conflict.py
Python
│ ├─
memory_forgetting_mechanism.py
Python
│ ├─
memory_index.py
Python
│ ├─
monitoring.py
Python
│ ├─
multi_source_coordinator.py
Python
│ ├─
noise_filter.py
Python
│ ├─
observability_manager.py
Python
│ ├─
perception.py
Python
│ ├─
permission_boundary_controller.py
Python
│ ├─
prefetch_manager.py
Python
│ ├─
privacy.py
Python
│ ├─
progressive_compressor.py
Python
│ ├─
redis_adapter.py
Python
│ ├─
result_compressor.py
Python
│ ├─
retrieval_decision_engine.py
Python
│ ├─
retrieval_organizer.py
Python
│ ├─
retrieval_quality_evaluator.py
Python
│ ├─
short_term_insight.py
Python
│ ├─
short_term_redis.py
Python
│ ├─
short_term.py
Python
│ ├─
smart_allocator.py
Python
│ ├─
state_capture.py
Python
│ ├─
state_consistency_validator.py
Python
│ ├─
state_inference_engine.py
Python
│ ├─
task_progress.py
Python
│ ├─
token_budget.py
⚠
Python
│ └─
type_defs.py
Python
└─
SKILL.md
Markdown
Dependencies 4 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
cryptography | >=41.0.0 | pip | No | 标准加密库 |
pydantic | >=2.0.0 | pip | No | 数据验证 |
redis | >=4.5.0 | pip | No | 本地缓存 |
tiktoken | >=0.5.0 | pip | No | Token 计数 |
Security Positives
✓ 使用 AES-256-GCM 标准加密算法保护凭证
✓ 包含完整的隐私同意管理机制
✓ 无 subprocess、eval、exec 等危险函数调用
✓ 无外部网络请求或数据外传
✓ 无访问 ~/.ssh、~/.aws、.env 等敏感路径
✓ 无 reverse shell 或 C2 通信行为
✓ 文件权限设置正确(chmod 600)
✓ 代码结构清晰,使用 pydantic 进行类型验证