cat-viking-memory
Hardcoded private IP address (192.168.5.110) used for Ollama embedding API calls across multiple scripts sends memory content to an undeclared network endpoint, creating potential data exfiltration risk.
为什么得出这个结论
2/4 个维度触发发现 3 项声明之外的能力或越权行为。
提取到 1 个一般风险产物,需要结合上下文判断。
报告包含 3 步攻击链,另有 0 项高危或严重发现。
发现 2 项需要关注的依赖或供应链线索。
攻击链
初始入口 · SKILL.md:1
权限提升 · memory-pipeline/memory-embed.sh:9
最终危害 · simple-viking/lib.sh:142
风险分是怎么被拉高的
SKILL.md does not mention HTTP requests to external/private Ollama endpoint; text content (memories, sessions) is sent to this service
Multiple scripts hardcode OLLAMA_HOST=http://192.168.5.110:11434 across memory-embed.sh, lib.sh, mp_mention_detect.sh - unusual to use private IP instead of localhost
Skill uses extensive bash scripts but SKILL.md does not explicitly declare shell:WRITE capability
write.sh performs file writes; filesystem:WRITE capability implied but not documented
最关键的证据
Undeclared network communication to private IP
SKILL.md declares vector similarity detection but does not document that text content is sent via HTTP POST to http://192.168.5.110:11434/api/embeddings. Memory content and session data could be transmitted to this endpoint.
memory-pipeline/memory-embed.sh:9 Memory content sent to hardcoded private IP endpoint
get_embedding() function in multiple scripts sends text content to a hardcoded private IP address. Session summaries, memory files, and conversation content are transmitted. If this endpoint is attacker-controlled, sensitive data could be exfiltrated.
simple-viking/lib.sh:142 Implicit shell:WRITE capability not declared
Skill uses bash scripts throughout but SKILL.md does not declare shell execution capability
simple-viking/write.sh:1 Python dependencies not pinned
Scripts rely on python3 but do not specify version requirements. Standard library json/math modules are used, which is safe.
multiple 声明能力 vs 实际能力
simple-viking/write.sh:14 - echo "$content" > "$target_path" memory-pipeline/memory-embed.sh:9, simple-viking/lib.sh:8 - curl requests to OLLAMA_HOST (http://192.168.5.110:11434) All scripts in memory-pipeline/ and simple-viking/ are bash scripts executing commands 可疑产物与外联
http://192.168.5.110:11434 memory-pipeline/memory-embed.sh:9
依赖与供应链
| 包名 | 版本 | 来源 | 漏洞 | 备注 |
|---|---|---|---|---|
| python3 | * | system | 否 | Standard library only - json, math, os modules used |
| ollama | * | external | 否 | No version pinning; connects to http://192.168.5.110:11434 |
文件构成
config.json simple-viking/lib.sh memory-pipeline/memory-embed.sh