dsh-sensitive-guard

版本 0.5.2发布 2026-11-21仓库 wangxy496/dsh-sensitive-guard
3/4装得上 · 启动通过

把密钥挡在模型上下文之外。 你贴进对话的 API Key、agent 读到的 .env、工具返回的 config.json 里的密码,在进入模型上下文之前就被换成 这样的占位符。

安全与审批周下载 244MIT
pnpm add dsh-sensitive-guard

安装前须知

Node 要求
>=18
package.json engines
peer 依赖
无
可独立安装
宿主服务
无需额外服务
装完由真宿主启动一次
入口 / 补丁
未声明
bundle 已声明 · patch 随包

四段检测

逐层记录
收录门槛通过
manifest 是否声明 DSH 依赖或 dsh.bundle
离线审查未通过
静态结构包内清单、补丁文件与入口声明是否完整
无 high / critical 命中
未通过
配置组合装入一次性 DSH_HOME 后配置树能否合并通过
源码审查静态阅读源码,检查危险调用与数据外发
计数单位 finding,非包数。
通过
真机安装通过
真机执行 pnpm 安装,退出码为 0 且 node_modules 生成
实测宿主版本 0.2.2-rc.5
加载实测通过
安装完成后由真实宿主启动一次,检查入口是否激活

检测结论明细

共 4 次命中
静态结构4 条规则 · 4 次命中
执行非字面量代码dynamic-exec-nonliteral
test.mjs:252new Function('window', 'globalThis', clientSrc).call(globalThis, globalThis.window, globalThis);
启动子进程child-process-spawn
index.js:156execFileSync('icacls', [file, '/inheritance:r', '/grant:r', `${user}:F`], { stdio: 'ignore', windowsHide: true });
遍历目录后批量改写mass-file-overwrite
index.js:1035for (const name of fs.readdirSync(dir)) {
代码中存在外部 URLremote-url-reference
client.js:57http://127.0.0.1:<端口>。 http://127.0.0.1:<port> https://cdn.jsdelivr.net/gh/gitleaks/gitleaks@master/config/gitleaks.toml https://alice123:alice123@exa

依赖结构

0 项

该版本未声明任何依赖,可独立安装。