扫描报告
20 /100
agent-memory
AI Agent 记忆基础设施,实现 Context Engineering 五大核心能力
合法的 AI Agent 记忆基础设施,未发现恶意行为,但文档中存在硬编码密码示例需注意
可以安装
建议移除文档中的硬编码密码示例,使用纯占位符替代;检查 export_master_key() 方法的使用场景
安全发现 2 项
| 严重性 | 安全发现 | 位置 |
|---|---|---|
| 低危 | 文档包含硬编码密码示例 | references/encryption_guide.md:157 |
| 提示 | 主密钥导出功能 | scripts/credential_manager.py:260 |
| 资源类型 | 声明权限 | 推断权限 | 状态 | 证据 |
|---|---|---|---|---|
| 文件系统 | WRITE | WRITE | ✓ 一致 | SKILL.md: 仅限 ./memory_data/ 路径 |
| 环境变量 | NONE | READ | ✓ 一致 | scripts/credential_manager.py:134 读取 MEMORY_MASTER_KEY 环境变量 |
| 网络访问 | NONE | NONE | — | 无网络请求代码 |
| 命令执行 | NONE | NONE | — | 无 shell 执行代码 |
2 高危 2 项发现
高危 API 密钥 疑似硬编码凭证
password = "user_password_123" references/encryption_guide.md:157 高危 API 密钥 疑似硬编码凭证
password="optional_password" references/encryption_guide.md:171 目录结构
68 文件 · 1.4 MB · 45450 行 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
依赖分析 4 项
| 包名 | 版本 | 来源 | 已知漏洞 | 备注 |
|---|---|---|---|---|
cryptography | >=41.0.0 | pip | 否 | 标准加密库 |
pydantic | >=2.0.0 | pip | 否 | 数据验证 |
redis | >=4.5.0 | pip | 否 | 本地缓存 |
tiktoken | >=0.5.0 | pip | 否 | Token 计数 |
安全亮点
✓ 使用 AES-256-GCM 标准加密算法保护凭证
✓ 包含完整的隐私同意管理机制
✓ 无 subprocess、eval、exec 等危险函数调用
✓ 无外部网络请求或数据外传
✓ 无访问 ~/.ssh、~/.aws、.env 等敏感路径
✓ 无 reverse shell 或 C2 通信行为
✓ 文件权限设置正确(chmod 600)
✓ 代码结构清晰,使用 pydantic 进行类型验证