dsh-plugin-security

版本 0.5.0发布 2026-10-11仓库 dushaobindoudou/dsh-plugin-security
3/4装得上 · 启动通过

DeepSeek Harness(dsh)的插件安全门:扫描已安装插件的源码与 npm 依赖漏洞,把每个插件记为 高危 / 有风险 / 无风险,在模型调用高危插件的工具时先问你 允许一次 / 允许 / 禁用,并让 dsh

安全与审批周下载 2,211依赖 1peer 1MIT
pnpm add dsh-plugin-security

安装前须知

Node 要求
>=20
package.json engines
peer 依赖
1 个
由宿主提供,不随包安装
宿主服务
无需额外服务
装完由真宿主启动一次
入口 / 补丁
lib/index.js
bundle 已声明 · patch 随包

四段检测

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

检测结论明细

共 11 次命中
静态结构6 条规则 · 7 次命中
读取凭据/密钥文件路径×2credential-path-read
lib/rules.js:467requires login
写入开机/登录自启动位置persistence-write
lib/rules.js:464critical.push(...lineEvidence(file.text, /crontab|LaunchAgents|LaunchDaemons|\/etc\/(?:passwd|shadow|sudoers)/, file.rel
启动子进程child-process-spawn
lib/remote.js:31const child = spawn('pnpm', args, { cwd, env: process.env });
遍历目录后批量改写mass-file-overwrite
lib/disposition.js:118const chain = readdirSync(dir).filter((n) => n.startsWith('package.json.security-bak-')).sort();
代码中存在外部 URLremote-url-reference
lib/audit.js:27https://registry.npmjs.org/-/npm/v1/security/advisories/bulk https://api.osv.dev/v1/vulns/
提到凭据路径但没有读动作sensitive-path-reference
lib/behavior.js:6const SENSITIVE_PATH = /(?:\.ssh|\.aws|\.gnupg|\.npmrc|\.git-credentials|\.netrc|Login Data|Cookies|wallet\.dat)/i;
源码审查2 条规则 · 4 次命中
Package exited non-zero×2l3.nonzero-exit
state/runs/dsh-plugin-security/0.5.0/L3/result.json
Threw an uncaught exception×2l3.runtime-error
state/runs/dsh-plugin-security/0.5.0/L3/events.jsonlCannot find package '@deepseek-ai/dsh-typert-protocol' imported from E:\DSHPWeb\state\runs\dsh-plugin-security\0.5.0\L3\

依赖结构

2 项
acorn直接依赖随包安装
@deepseek-ai/dsh-typert-protocolpeer由宿主提供