Scan Report
25 /100
cxm-neural-memory
Localized Neural Memory and architectural mapping tool for semantic code search and dependency analysis
CXM Neural Memory is a legitimate code indexing and semantic search tool with solid security practices, but has incomplete disclosure in SKILL.md regarding shell history and AI CLI session data access.
Safe to install
Update SKILL.md to explicitly declare reading of .bash_history and AI CLI session directories (Claude Code/Gemini) as part of the context gathering feature.
Findings 3 items
| Severity | Finding | Location |
|---|---|---|
| Medium | Undeclared shell history access | src/tools/context_gatherer.py:85 |
| Medium | Undeclared AI CLI session access | src/tools/context_gatherer.py:139 |
| Low | Pre-scan false positive: Hardcoded IPs | requirements.txt:107 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | READ | READ | ✓ Aligned | File indexing declared in SKILL.md |
| Network | READ | READ | ✓ Aligned | HuggingFace model download declared |
| Shell | NONE | READ | ✓ Aligned | Reads .bash_history without declaration |
| Environment | NONE | READ | ✓ Aligned | Reads Claude/Gemini CLI session files |
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 4 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
sentence-transformers | 5.2.3 | pip | No | ML embeddings library |
faiss-cpu | 1.13.2 | pip | No | Vector search index |
torch | 2.10.0 | pip | No | ML framework |
GitPython | 3.1.46 | pip | No | Git operations |
Security Positives
✓ Secret masking implemented in RAG engine (SECRET_PATTERNS for API keys, AWS credentials, GitHub tokens)
✓ Path traversal protection in github_cloner.py with proper validation
✓ Subprocess calls use list arguments instead of shell=True for security
✓ File size limits (10MB) prevent indexing of large files/models
✓ Sensitive config keys (api_key, github_token, secret) filtered from disk persistence
✓ Skip lists exclude .git, __pycache__, node_modules, and other sensitive directories
✓ No external data exfiltration detected - all data stays local in ~/.cxm/