omdsh-dev/sandbox-micro

Plugin插件 Native原生 ⭐ 3 Approval & Security审批与安全

microsandbox 支持

Project Overview项目介绍

This repository is a native DSH plugin bundle that adds fail-closed microVM sandbox capability to DeepSeek Harness. It ships with a valid DSH bundle manifest at the package root, and contains the ctx.microsandbox provider that exports dedicated model-facing tools. By default, both the provider and tool entry points are disabled in the bundle, so users must explicitly enable them in their DSH profile configuration to activate the capability. This intentional default prevents implicit activation of the microVM service and accidental exposure of sensitive model-facing tools.

The sandbox provides an environment-consistent isolated microVM service that never degrades to unconfined execution on the host machine. It uses the pinned microsandbox@0.6.7 SDK and includes package-owned resolution for all sandbox binaries. It exposes two core tools for model use: microsandbox_exec runs exact commands with full output captured, while microsandbox_fs handles guest file read, write, and directory listing operations. A legacy compatibility patch for older DSH snapshots that lack modern provider/tool catalog support is kept in the legacy/ directory.

To develop this plugin locally, you need to check out both this repository and the main DeepSeek Harness repository as sibling directories under the same parent folder. You can then install all dependencies with pnpm install, run full type checking with pnpm run typecheck, execute all tests with pnpm test, and build the production plugin bundle with pnpm run build. This plugin has several known limitations: Linux hosts require /dev/kvm access to run the microVM, macOS running on Apple Silicon is not supported in the initial release, and advanced features like secrets management are still deferred work. You must only install pinned, trusted checkouts of this package to avoid unexpected security issues.

这是一个原生DeepSeek Harness (DSH)插件包,提供故障关闭模式的微沙箱虚拟机能力。它包含ctx.microsandbox供应端,导出面向模型的工具,根目录带有标准DSH bundle清单,维护了两个默认禁用的Cordis入口点。用户需要在配置文件中显式启用供应端和工具,才能激活该能力。

该插件为DSH提供环境一致的隔离微VM服务,不会降级到无限制的主机执行环境。它对外暴露了两个核心工具:microsandbox_exec用于执行带输出捕获的精确命令,microsandbox_fs用于读写访客文件和列出目录。主要面向需要对模型操作做安全隔离的DSH开发者和普通使用者。

该插件依赖固定版本的microsandbox@0.6.7 SDK,只支持Linux主机且要求系统存在/dev/kvm设备,暂不支持苹果芯片的macOS。部分能力如密钥管理、网络策略、镜像生命周期管理仍未开放,安装需要pnpm允许包的prepare脚本执行。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 2 warnings2 项注意
  • No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
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命令行安装

dsh plugin --profile web add github:omdsh-dev/sandbox-micro

把 omdsh-dev/sandbox-micro 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

@deepseek-ai/dsh-sandbox-microsandbox

English | 中文

A DSH profile bundle for the fail-closed microsandbox microVM capability. The root package contains the ctx.microsandbox provider and exports the model-facing tools as @deepseek-ai/dsh-sandbox-microsandbox/tool.

Repository shape

package.json              # provider/tool package and dsh.bundle manifest
cordis.patch.yml          # dormant provider and tool rows
src/                      # provider, runtime, resolver, and tool subpath
lib/                      # generated install artifacts
legacy/                   # source-compatible host integration patch for older DSH snapshots
docs/                     # detailed provider/tool references
tests/provider/            # provider, resolver, SDK, and host tests
tests/tool/                # model-tool and renderer tests

The single root artifact keeps Git/profile installation self-contained while preserving two Cordis entry points:

- id: microsandbox
  name: '@deepseek-ai/dsh-sandbox-microsandbox'

- id: tool-microsandbox
  name: '@deepseek-ai/dsh-sandbox-microsandbox/tool'

Both rows are disabled by the bundle. To enable the capability, a profile must explicitly enable the provider with config.enabled: true and enable the tool row separately. This prevents installation from starting a microVM capability or exposing model-facing tools implicitly.

Capability boundary

ctx.microsandbox is an environment-coherent microVM service, not a dsh-sandbox same-world provider. It uses the pinned microsandbox@0.6.7 SDK, package-owned msb resolution, bounded functional qualification, and fail-closed platform checks. It never degrades to unconfined host execution.

The tool entry exposes:

microsandbox_exec  exact argv execution with captured output
microsandbox_fs    guest file read, write, and directory listing

The old host integration patch remains under legacy/ for DSH snapshots that do not yet provide the provider/tool catalog and composition seams. A new bundle layer does not modify DSH host source.

Development

A full typecheck expects sibling checkouts:

~/git/deepseek-harness
~/git/sandbox-micro

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-llm-vision-bridge 下一个 Next dock-git →