dsh-hidden-paths
github.com/Gabrip780/dsh-hidden-paths
v1.0.1
市场与管理
写入文件
Deny an AI agent access to .env files, credential stores, keys and any path you hide — across file tools, shell commands, search selectors and run_code. A DeepSeek Harness (dsh) plugin.
该插件尚未翻译,显示作者原文。
dshdsh-plugindeepseekdeepseek-harnesscordissecuritysecretsenv
检测报告
有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
1需留意4一般19未命中
高关注需留意一般
能力清单
- 写入文件
writes-files需留意8 处命中test.js:165mkdirSync(vault);test.js:166writeFileSync(join(vault, "note.txt"), "secret\n");test.js:168mkdirSync(publicDir);test.js:169writeFileSync(join(publicDir, "ok.txt"), "fine\n");- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 接触凭据或密钥
credentials一般204 处命中lib/index.js:5* Deny an AI agent access (reads *and* writes) to secret-bearing files —lib/index.js:6* `.env` files, credential stores, key material — and to any folder or filelib/index.js:32* symlink with an innocent name pointing at a secret is not caughtlib/index.js:36* Pair it with the DSH sandbox, keep critical secrets outside the workspace,- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取环境变量
reads-env一般4 处命中lib/index.js:816* ordinary source code such as `const api_key = process.env.API_KEY`, so thetest.js:270"const api_key = process.env.API_KEY",README.md:100- The credential patterns never match assignment shapes like `api_key = ...`, because that fires on ordinary source code…README.zh.md:100- 凭据模式永远不会匹配 `api_key = ...` 这样的赋值形态,因为那会在普通源代码(`const api_key = process.env.API_KEY`)上触发,并把一个可能被写回的损坏文件交给模型。- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 动态加载模块
dynamic-import一般3 处命中test.js:142const { hiddenPathList, createHiddenPathFilter } = await import("./lib/index.js");test.js:228const { redactText, redactBlocks, createRedactionHandler, default: plugin } = await import("./lib/index.js");test.js:392} = await import("./lib/index.js");- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 读取文件
reads-files一般1 处命中test.js:479assert.notEqual(fx(ctx("run_code", { code: "fs.readFileSync('/srv/vault/note.txt')" })), undefined, "code naming a hidde…- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 写入文件 | writes-files | 需留意 | 8 |
| 接触凭据或密钥 | credentials | 一般 | 204 |
| 读取环境变量 | reads-env | 一般 | 4 |
| 动态加载模块 | dynamic-import | 一般 | 3 |
| 读取文件 | reads-files | 一般 | 1 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 9 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)