Gumiho12345/dsh-plugin-net-access
为DeepSeek Harness(dsh)新增Net Access模式,解决Windows沙箱内curl.exe无法访问HTTPS的问题,文件写保护保持不变。
Project Overview项目介绍
dsh-plugin-net-access is a native permission plugin built exclusively for DeepSeek Harness (DSH). It adds a new Net Access permission mode to DSH’s Windows sandbox, which fixes a common issue where the default workspace-write sandbox blocks Schannel-based HTTPS requests, rendering system curl and Invoke-WebRequest unusable. You can install the plugin either via npm with the npx @deepseek-ai/dsh command, or by downloading the source code from GitHub and running the included setup.ps1 script in PowerShell. The setup script automatically patches the DSH engine, registers the new permission preset, and downloads the OpenSSL curl binary to your user .dsh directory.
After installation completes, you must fully restart DSH for the plugin to load, because just refreshing the browser interface will not activate the new plugin. To restart, you need to terminate the running DSH process on port 3080 with Ctrl+C, then re-launch DSH with the standard start command. Once DSH restarts, you can select Net Access from the permission picker in the lower left corner of the interface, and start making HTTPS requests from the sandbox. It is intended for DSH Windows users who need HTTPS access while retaining file write protection for the sandbox.
The plugin is only compatible with Windows systems, and it does not tie to any specific DSH version, so if you upgrade your core DSH installation, you just need to re-run the setup script to re-apply the patch. There are a few known limitations: system curl and Invoke-WebRequest still cannot access HTTPS, git HTTPS requires an extra global configuration to switch the SSL backend to OpenSSL, and like the default workspace-write mode, C:\Users\Public is writable and WMI is unavailable. The project is released under the open-source MIT license, with attribution required for the patched files sourced from official DSH repositories.
这是一个专为 DeepSeek Harness (DSH) 开发的原生插件,为 DSH 的 Windows 沙箱新增了 Net Access 权限模式。DSH 默认的 workspace-write 沙箱会拦截走 Schannel 通道的 HTTPS 请求,导致系统自带的 curl 和 Invoke-WebRequest 无法正常使用。该插件保留了 workspace-write 同等的文件写保护能力,同时通过注入 OpenSSL 版 curl 恢复了沙箱内的 HTTPS 访问,支持通过 npm 或 GitHub 源码两种方式安装。
安装完成后需要完全重启 DSH 才能加载插件,仅刷新浏览器页面无法完成加载。重启后用户可以在页面左下角的权限选择器中选中 Net Access 模式,之后就可以在沙箱内使用 curl 正常访问 HTTPS 资源,同时工作区外的文件写入依旧会被拦截,和原 workspace-write 模式的权限规则保持一致。适合需要在 DSH Windows 沙箱中使用 HTTPS 请求同时保留文件写保护的开发者使用。
该插件仅支持 Windows 系统,不绑定具体 DSH 版本,升级 DSH 后重新运行安装脚本即可自动适配。它存在几个已知限制:原系统自带 curl 和 Invoke-WebRequest 仍无法使用 HTTPS,git HTTPS 需要额外配置 sslBackend,C:\Users\Public 可写、WMI 不可用。项目采用 MIT 许可,补丁目录文件原版权归属 DeepSeek,分发需保留原署名。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-plugin-net-access(Gumiho12345/dsh-plugin-net-access)
仓库:https://github.com/Gumiho12345/dsh-plugin-net-access
本站详情页:https://www.yhbd.top/plugins/gumiho12345-dsh-plugin-net-access/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 NOASSERTION · ⭐ 5 · 最近提交 2026-08-18 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 5 stars - very few users, little community feedback星标只有 5,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
npx @deepseek-ai/dsh plugin --profile web add dsh-plugin-net-access
把 Gumiho12345/dsh-plugin-net-access 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-plugin-net-access
English | 简体中文
DSH 的权限模式补丁:新增 Net Access 模式,在保持 workspace-write 文件写保护的基础上,恢复沙箱内的 HTTPS 访问。
DSH 的 Windows 沙箱(workspace-write)会拦截走 Schannel 的 HTTPS 请求(报 0x8009030E),系统自带的 curl 和 Invoke-WebRequest 都无法使用。Net Access 模式的文件写保护与 workspace-write 一致,同时让沙箱内的 HTTPS 恢复正常。仅支持 Windows,不绑定具体 DSH 版本。
作用
- 沙箱内
curl.exe可正常访问 HTTPS - 文件写保护与 workspace-write 一致:工作区外写入被拒
- 权限选择器新增 Net Access 选项
- python / node 的 HTTPS 不受影响
原理
保持 workspace-write 的沙箱令牌不变,只把 OpenSSL 版 curl 注入沙箱环境的 PATH,让 HTTPS 不再经过被拦截的 Schannel。完整技术说明见 docs/findings-zh.md。
安装
方式一:npm 安装
npx @deepseek-ai/dsh plugin --profile web add dsh-plugin-net-access
. "$env:USERPROFILE\.dsh\profiles\web\node_modules\dsh-plugin-net-access\setup.ps1"
方式二:从 GitHub 下载后运行
.\setup.ps1
setup.ps1 会做三件事:按结构锚点给引擎打补丁(不绑定 DSH 版本)、注册权限预设、从 curl.se 自动下载 OpenSSL 版 curl 工具箱到 %USERPROFILE%\.dsh\netaccess-tools\bin\。
装完必须完全重启 DSH 才能加载:在终端 Ctrl+C 停掉 3080 端口的进程,重新运行 npx @deepseek-ai/dsh web。光刷新浏览器不会加载新插件。重启后刷新页面,在左下角权限选择器里选 Net Access。
升级 DSH 后:直接重跑 setup.ps1 即可,不用等插件更新——补丁按结构锚点自动适配,不绑定版本号。如果新版 DSH 结构调整导致锚点找不到,安装器会明确报错并中止,不会改坏引擎(更新插件就好)。
验证
curl.exe -sS https://example.com
# HTTP 200
Set-Content "$env:USERPROFILE\Desktop\t.txt" x
# 拒绝访问
已知限制
- 系统自带的 curl 和
Invoke-WebRequest不能用 HTTPS:请用本插件带的curl.exe、python 或 node。 - git 的 HTTPS 需要先执行
git config --global http.sslBackend openssl。 C:\Users\Public可写(workspace-write 也一样)。- WMI 不可用(和 workspace-write 一样)。
卸载
.\uninstall.ps1
许可
MIT。patches/ 目录里的文件来自 @deepseek-ai/dsh-*(MIT,Copyright (c) 2026 DeepSeek),使用/分发时请保留相应署名。
觉得有用的话,欢迎点个 ⭐ Star 支持一下。
hashgraph-online/hol-guard
SeaOf0/dsh-redteam-model
howmp/dsh-pentest
dhicoc/dsh-reverse-skill
lire1131/dsh-undo-savepoint
MichengAI/dsh-skills-manager