Scan Report
5 /100
CXM Neural Memory
基于 RAG 的代码语义搜索引擎,支持依赖图构建、上下文推断和提示词增强
CXM Neural Memory 是一个合法的 RAG 代码语义搜索工具,预扫描标记的7个「硬编码IP」实为 NVIDIA CUDA 包版本号(如 nvidia-cublas-cu12==12.8.4.1),属误报。代码无恶意行为,subprocess 调用均使用安全列表参数,所有操作均在文档声明范围内。
Safe to install
该技能可安全使用。建议审查 requirements.txt 中的 editable-git 依赖来源(git+ssh:// 和 git+https://),确保来源可信。
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | WRITE | WRITE | ✓ Aligned | SKILL.md 声明 'indexing files';代码在 RAGEngine.index_directory 中递归读写文件 |
| Network | READ | READ | ✓ Aligned | SKILL.md 声明首次从 HuggingFace Hub 下载模型;sentence_transformers.SentenceTransformer 在初… |
| Shell | WRITE | WRITE | ✓ Aligned | 代码使用 subprocess.run(['git', 'ls-files', ...], shell=False) 等安全列表调用,符合声明的 git/fin… |
| Environment | READ | READ | ✓ Aligned | gather_shell_context() 读取 USER/SHELL 环境变量,gather_all() 返回 system_context,均在文档声明范… |
| Clipboard | WRITE | WRITE | ✓ Aligned | cli.py:147 使用 pyperclip.copy(enhanced_prompt) 将结果复制到剪贴板,已声明 |
7 High 11 findings
High IP Address 硬编码 IP 地址
5.2.18.0 requirements.txt:91 High IP Address 硬编码 IP 地址
12.8.4.1 requirements.txt:107 High IP Address 硬编码 IP 地址
9.10.2.21 requirements.txt:111 High IP Address 硬编码 IP 地址
11.3.3.83 requirements.txt:112 High IP Address 硬编码 IP 地址
1.13.1.3 requirements.txt:113 High IP Address 硬编码 IP 地址
11.7.3.90 requirements.txt:115 High IP Address 硬编码 IP 地址
12.5.8.93 requirements.txt:116 Medium External URL 外部 URL
https://www.python.org/downloads/ docs/install.md:45 Medium External URL 外部 URL
https://git-scm.com/ docs/install.md:46 Medium External URL 外部 URL
https://visualstudio.microsoft.com/visual-cpp-build-tools/ docs/install.md:50 Info Email 邮箱地址
[email protected] requirements.txt:25 File Tree
48 files · 200.3 KB · 5548 lines Python 31f · 4425L
Markdown 7f · 561L
Text 2f · 248L
YAML 3f · 173L
JSON 4f · 103L
TOML 1f · 38L
├─
▾
docs
│ ├─
▾
cxm-neural-memory
│ │ └─
SKILL.md
Markdown
│ ├─
agent_skill.json
JSON
│ ├─
agent_skill.md
Markdown
│ ├─
cli-reference.md
Markdown
│ ├─
install.md
Markdown
│ ├─
README_SKILL.md
Markdown
│ └─
visions.md
Markdown
├─
▾
src
│ ├─
▾
core
│ │ ├─
__init__.py
Python
│ │ ├─
architect.py
Python
│ │ ├─
audit.py
Python
│ │ ├─
context_store.py
Python
│ │ ├─
diagnostics.py
Python
│ │ ├─
enhancer.py
Python
│ │ ├─
factory.py
Python
│ │ ├─
grapher.py
Python
│ │ ├─
interfaces.py
Python
│ │ ├─
patcher.py
Python
│ │ ├─
pattern_optimizer.py
Python
│ │ ├─
rag.py
Python
│ │ ├─
reranker.py
Python
│ │ ├─
retriever.py
Python
│ │ └─
watcher.py
Python
│ ├─
▾
engines
│ │ ├─
claude-opus.json
JSON
│ │ ├─
gemini-pro.json
JSON
│ │ └─
gpt-alpha.json
JSON
│ ├─
▾
locales
│ │ ├─
de.yaml
YAML
│ │ └─
en.yaml
YAML
│ ├─
▾
ml
│ │ ├─
__init__.py
Python
│ │ ├─
context_evaluator.py
Python
│ │ ├─
intent_analyzer.py
Python
│ │ ├─
prompt_assembler.py
Python
│ │ └─
prompt_refiner.py
Python
│ ├─
▾
resources
│ │ ├─
▾
diagnostic-templates
│ │ │ └─
probe-gemini.txt
Text
│ │ └─
▾
patterns
│ │ └─
math-precision.yaml
YAML
│ ├─
▾
tools
│ │ ├─
context_gatherer.py
Python
│ │ └─
github_cloner.py
Python
│ ├─
▾
utils
│ │ ├─
i18n.py
Python
│ │ ├─
logger.py
Python
│ │ └─
paths.py
Python
│ ├─
cli.py
Python
│ ├─
config.py
Python
│ ├─
dashboard.py
Python
│ ├─
gui.py
Python
│ ├─
main.py
Python
│ └─
skill_exporter.py
Python
├─
pyproject.toml
TOML
├─
requirements.txt
Text
└─
SKILL.md
Markdown
Dependencies 5 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
sentence-transformers | 5.2.3 | pip | No | 下载 HuggingFace 模型,约 80-400MB |
faiss-cpu | 1.13.2 | pip | No | 向量检索库 |
context_engine | git+ssh://[email protected]/Joeavaib/llm.git | editable | No | Editable git 依赖,来源为 GitHub 私有仓库 |
contextmachine | git+https://github.com/Joeavaib/partner.git | editable | No | Editable git 依赖 |
maestro | git+https://github.com/Joeavaib/maestro.git | editable | No | Editable git 依赖 |
Security Positives
✓ RAGEngine.SECRET_PATTERNS 自动检测并掩码 API key、AWS 凭证、GitHub Token、Private Key 等敏感信息
✓ GitHub 克隆器实现了 URL 白名单验证(仅允许 github.com HTTPS)和路径遍历防护
✓ subprocess 调用全部使用 shell=False + 列表参数,防止命令注入
✓ index_directory 实现了 .gitignore 兼容性和 .cxm.yaml 路径守卫机制
✓ index_file 对索引内容进行敏感信息脱敏(_mask_secrets)
✓ FAISS 索引使用 FileLock 并发保护,防止数据损坏
✓ 文档完整声明了所有能力(本地索引、模型下载、凭证读取范围),无阴影功能