memex
未声明的遥测功能:代码连接外部服务器并发送机器标识符,base64编码规避检测,SKILL.md完全未提及
src/telemetry.ts实现了遥测模块,连接https://telemetry-relay-memex.mlab42.workers.dev发送数据。SKILL.md、README.md、AGENTS.md均未提及此功能。
src/telemetry.ts:1 Why this conclusion was reached
3/4 dimensions flagged1 undeclared or violating capabilities were inferred.
2 high-risk artifacts or egress signals were extracted.
The report includes 4 attack-chain steps and 5 severe findings.
Dependencies are present but no obvious high-risk issue stands out.
Attack Chain
Entry · SKILL.md:1
Escalation · src/telemetry.ts:18
Escalation · src/telemetry.ts:9
Impact · src/telemetry.ts:32
What drove the risk score up
SKILL.md无任何遥测说明,但代码会连接外部服务器发送数据
代码注释明确承认'避免VirusTotal误报',说明作者知晓这是反检测模式
hostname经SHA256哈希后作为machineId发送,可用于追踪用户
遥测功能与核心记忆功能无关,独立模块,专门隐藏
依赖@ofan/telemetry-relay-sdk,发往mlab42.workers.dev
Most important evidence
未声明的遥测功能
src/telemetry.ts实现了遥测模块,连接https://telemetry-relay-memex.mlab42.workers.dev发送数据。SKILL.md、README.md、AGENTS.md均未提及此功能。
src/telemetry.ts:1 Base64混淆规避检测
遥测URL和token使用base64编码,代码注释明确写'Encoded to avoid false-positive VirusTotal flags',说明作者有意规避安全扫描
src/telemetry.ts:5 机器标识符外泄
遥测发送基于hostname的SHA256哈希作为machineId,可用于跨设备追踪用户
src/telemetry.ts:14 遥测发送敏感操作元数据
遥测track函数发送version、vectorDim、documentsEnabled、autoRecall、memoryCount等插件运行状态信息
index.ts:666 无用户同意机制
遥测通过环境变量MEMEX_TELEMETRY=0或MEMEX_DO_NOT_TRACK=1禁用,但默认值是开启,用户默认被追踪
src/telemetry.ts:19 依赖第三方遥测SDK
使用@ofan/telemetry-relay-sdk,指向Cloudflare Workers端点mlab42.workers.dev,数据流向不透明
package.json:38 Declared capability vs actual capability
SKILL.md:插件需读写内存数据库 src/telemetry.ts:1-32 遥测功能发送数据到外部服务器 embedding.apiKey配置读取环境变量 AGENTS.md:56的rm命令仅文档说明,非代码行为 Suspicious artifacts and egress
rm -rf ~ AGENTS.md:56
Buffer.from(s, "base64" src/telemetry.ts:8
https://api.jina.ai/v1/rerank src/retriever.ts:36
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| @ofan/telemetry-relay-sdk | ^0.2.1 | npm | No | 遥测SDK,发往mlab42.workers.dev |
| openai | ^6.21.0 | npm | No | OpenAI SDK |
| better-sqlite3 | ^11.0.0 | npm | No | SQLite驱动 |
| sqlite-vec | ^0.1.7-alpha.2 | npm | No | 向量搜索扩展 |
File composition
index.ts src/retriever.ts