D

dsh-sandbox

github.com/blaxel-ai/deepseek-harness-blaxel-sandbox

v0.1.4 开发与运行时 可执行外部程序R010 向其他插件注入写入文件

0.1.4 版可以把一个 DeepSeek Harness Web 会话及其当前的 Git 工作树迁移到私有 Blaxel 沙箱中一台独立的 DSH 主机上。云端页面就绪后,模型请求和工具调用会在那里继续进行,而原电脑可以离线。更早的仅工具版本则要求原主机保持运行。

作者原文(英文)

Blaxel sandbox execution plugin for DeepSeek Harness (DSH)

中文简介由 DeepSeek 模型翻译,仅供参考。

agent-sandboxblaxeldeepseekdeepseek-harnessdshdsh-pluginremote-executionsandbox
分类
dev
发布
2026-10-01
版本
v0.1.4

检测报告

关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注4需留意5一般13未命中
高关注需留意一般

能力清单

  • 可执行外部程序spawns-processes高关注7 处命中
    • dist/blaxel-capabilities.js:1import { execFile } from 'node:child_process';
    • dist/blaxel-settings.js:1import { execFile } from 'node:child_process';
    • dist/cloud/bootstrap.js:1import { execFile } from 'node:child_process';
    • dist/cli.js:2import { execFile, spawn } from 'node:child_process';
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • R010 向其他插件注入plugin-tree-injection高关注7 处命中
    • @blaxel/dsh-sandbox, @blaxel/dsh-sandbox/cloud, @blaxel/dsh-sandbox/cloud-gateway
    • 看 patch 里 insert 的包是不是本项目自己的。插入第三方代码要格外留意。
  • 写入文件writes-files需留意33 处命中
    • …session-runtime/binding-store.js:170mkdirSync(directory, { recursive: true, mode: 0o700 });
    • …session-runtime/binding-store.js:175writeFileSync(descriptor, `${JSON.stringify(document, null, 2)}\n`);
    • …session-runtime/binding-store.js:181renameSync(temporary, this.path);
    • …session-runtime/binding-store.js:185unlinkSync(temporary);
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意14 处命中
    • dist/client.cjs:45const response = await fetch(`/blaxel/api/${path}`, action2 === void 0 ? void 0 : {
    • dist/client/api.js:13const response = await fetch(`/blaxel/api/${path}`, action === undefined ? undefined : {
    • dist/blaxel-capabilities.js:175const response = await fetch('https://api.github.com/repos/blaxel-ai/agent-skills/git/trees/HEAD?recursive=1', {
    • dist/blaxel-settings.js:205const response = await fetch(`${this.apiBaseUrl(environment)}/login/device`, {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 启动伪终端spawns-pty需留意10 处命中
    • runtime/package-lock.json:3355"node-pty": "1.2.0-beta.15"
    • runtime/package-lock.json:7734"node_modules/node-pty": {
    • runtime/package-lock.json:7736"resolved": "https://registry.npmjs.org/node-pty/-/node-pty-1.2.0-beta.15.tgz",
    • …/calibrator-roundtrip-dogfood.md:49| Full sandbox check | Installed dependencies and ran the full suite in the clean sandbox | 261 passed, 3 native PTY tes…
    • 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
  • 运行时改写自身配置modifies-own-manifest需留意1 处命中
    • dist/cli.js:78await writeFile(join(temporary, 'package.json'), manifestSource);
    • 运行时改写自身配置会让下次启动的行为和你看过的源码不一致。
  • 接触凭据或密钥credentials一般337 处命中
    • dist/client.cjs:75async function saveModelCredential(sessionId, credential) {
    • dist/client.cjs:76return (await call("model-credential", "model-credential", {
    • dist/client.cjs:78credential
    • dist/client.cjs:116async function loginBlaxel(workspace, apiKey) {
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取环境变量reads-env一般43 处命中
    • …session-runtime/binding-store.js:17export function defaultBindingStorePath(env = process.env) {
    • dist/blaxel-capabilities.js:18const configHome = process.env.XDG_CONFIG_HOME ?? join(homedir(), '.config');
    • dist/blaxel-settings.js:27const configHome = process.env.XDG_CONFIG_HOME ?? join(homedir(), '.config');
    • dist/blaxel-settings.js:64const memory = Number(process.env.DSH_BLAXEL_MEMORY ?? DEFAULT_MEMORY);
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 读取文件reads-files一般27 处命中
    • …session-runtime/binding-store.js:111if (!existsSync(path))
    • …session-runtime/binding-store.js:115value = JSON.parse(readFileSync(path, 'utf8'));
    • …session-runtime/binding-store.js:184if (existsSync(temporary))
    • dist/blaxel-capabilities.js:152const value = JSON.parse(await readFile(this.path, 'utf8'));
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 动态加载模块dynamic-import一般3 处命中
    • dist/client/api.d.ts:207export declare function sessionDraft(sessionId: string, draft?: import('../cloud/draft.js').SessionDraft, revision?: str…
    • dist/filesystem/router.d.ts:10get sandboxMode(): import("@deepseek-ai/dsh-sandbox").SandboxMode | undefined;
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 文中出现远程脚本地址remote-url-reference一般3 处命中
    • runtime/package-lock.json:6217"resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.3.1.tgz",
    • runtime/package-lock.json:7190"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.5.0.tgz",
    • runtime/package-lock.json:7957"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
    • 只是文本里出现了远程脚本地址,没有看到加载它的调用。多半是文档或注释;若确实可疑,搜一下这个地址在包里的其他出现位置。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注7
R010 向其他插件注入plugin-tree-injection高关注7
写入文件writes-files需留意33
发起网络请求network需留意14
启动伪终端spawns-pty需留意10
运行时改写自身配置modifies-own-manifest需留意1
接触凭据或密钥credentials一般337
读取环境变量reads-env一般43
读取文件reads-files一般27
动态加载模块dynamic-import一般3
文中出现远程脚本地址remote-url-reference一般3

这份报告的口径

扫描读的是包里的源码,全程不执行第三方代码。 本次读了 146 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。

依赖安全公告

这个插件声明的依赖中,有 4 条已公开的安全公告 (最高等级:中):

等级依赖包编号摘要
中wsCVE-2026-45736ws: Uninitialized memory disclosure
修复版本:8.20.1 详情 →
中wsCVE-2026-48779ws: Memory exhaustion DoS from tiny fragments and data chunks
修复版本:5.2.5, 6.2.4, 7.5.11 详情 →
中yamlCVE-2023-2251Uncaught Exception in yaml
修复版本:2.2.2 详情 →
低yamlCVE-2026-33532yaml is vulnerable to Stack Overflow via deeply nested YAML collections
修复版本:1.10.3, 2.8.3 详情 →

查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0), 不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响—— 所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自 OSV.dev。

← 返回全部插件