dsh-workflows
v0.1.0-rc.6
工具与效率
写入文件动态执行代码
`@zaalipro/dsh-workflows@0.1.0-rc.6` 是一个可安装的 DeepSeek Harness bundle,用于保存的 JavaScript 工作流、受监管的后台运行、保留式检查、斜杠命令以及 Web 仪表盘。它面向官方 DeepSeek Harness `0.1.5-rc.1`,并附带一个由该包自有的 MIT 兼容性求值器,用于可安全重放的后台执行;它不包含任何 Grok CLI 代码、账户、配额、二进制
作者原文(英文)
Installable saved-workflow and supervised-run product for DeepSeek Harness
中文简介由 DeepSeek 模型翻译,仅供参考。
检测报告
有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
2需留意5一般17未命中
高关注需留意一般
能力清单
- 写入文件
writes-files需留意23 处命中…pervisor/storage/bounded-file.js:121await mkdir(parent, { recursive: true, mode: 0o700 });…pervisor/storage/bounded-file.js:164await unlink(temp);…pervisor/storage/bounded-file.js:167await rename(temp, path);…pervisor/storage/bounded-file.js:183await unlink(temp).catch(() => undefined);- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 动态执行代码
dynamic-code需留意2 处命中lib/compat-engine/worker.cjs:533this.context = node_vm.createContext({}, { name: `workflow:${meta.name}` });lib/client.js:150new Function("");- 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
- 接触凭据或密钥
credentials一般52 处命中lib/types/supervisor/cursors.js:11const PROCESS_SECRET = randomBytes(32);lib/types/supervisor/cursors.js:16function secretBytes(value) {lib/types/supervisor/cursors.js:18throw new TypeError('workflow cursor secret must be exactly 32 bytes');lib/types/supervisor/cursors.js:80function encodeWithSecret(secret, payload) {- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取文件
reads-files一般24 处命中lib/compat-engine/index.js:1199for (const entry of await readdir(dir, { withFileTypes: true })) {lib/compat-engine/index.js:1356const bytes = await handle.readFile({ signal: this.scratchController.signal });lib/types/commands/index.js:126const text = await fs.readFile(candidate, 'utf8');lib/types/commands/index.js:141const text = readFileSync(candidate, 'utf8');- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 动态加载模块
dynamic-import一般9 处命中lib/compat-engine/index.js:531`await import(${JSON.stringify(workerEntry.href)})`lib/types/commands/index.js:122const fs = await import('node:fs/promises');lib/types/index.js:330const module = await import(asset.href);lib/types/registry/index.js:207const native = await import('fs-native-extensions');- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 读取环境变量
reads-env一般5 处命中lib/compat-engine/index.js:537env: workerSpawnEnv(void 0, process.env.TSX_TSCONFIG_PATH),lib/types/index.js:207const fromEnv = process.env.DSH_HOME;lib/types/registry/index.js:494const homeValue = supplied.dshHome ?? process.env.DSH_HOME ?? (typeof process.env.HOME === 'string' ? `${process.env.HOM…- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 使用 vm 模块做隔离
uses-vm-module一般3 处命中lib/compat-engine/worker.cjs:29let node_vm = require("node:vm");…es/supervisor/canned-validate.js:1import { Script, createContext } from 'node:vm';lib/compat-engine/index.js:3import * as vm from "node:vm";- 用 node:vm 是在建立隔离,不是在突破它。本身不是顾虑,但值得知道这个插件会执行动态代码。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 写入文件 | writes-files | 需留意 | 23 |
| 动态执行代码 | dynamic-code | 需留意 | 2 |
| 接触凭据或密钥 | credentials | 一般 | 52 |
| 读取文件 | reads-files | 一般 | 24 |
| 动态加载模块 | dynamic-import | 一般 | 9 |
| 读取环境变量 | reads-env | 一般 | 5 |
| 使用 vm 模块做隔离 | uses-vm-module | 一般 | 3 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 124 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。