D

dsh-ops

github.com/T-Auto/dsh-ops

v0.3.0 工具与效率 可执行外部程序R010 向其他插件注入写入文件

Provides bash, PowerShell 7, and a suite of high-performance tools written in Rust for Windows DSH to enhance token efficiency

该插件尚未翻译,显示作者原文。

dshdsh-plugindeepseek-harnessmcpfastctxrepository-tools
分类
tools
发布
2026-10-14
版本
v0.3.0

检测报告

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

能力清单

  • 可执行外部程序spawns-processes高关注8 处命中
    • lib/binary.js:12import { spawnSync } from 'node:child_process'
    • lib/handshake.js:17import { spawn } from 'node:child_process'
    • lib/profile-install.js:6import { spawnSync } from 'node:child_process'
    • lib/rust.js:12import { spawn, spawnSync } from 'node:child_process'
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • R010 向其他插件注入plugin-tree-injection高关注4 处命中
    • dsh-ops/background, dsh-ops/file, dsh-ops/ptc
    • 看 patch 里 insert 的包是不是本项目自己的。插入第三方代码要格外留意。
  • 写入文件writes-files需留意25 处命中
    • lib/bash-ipc.js:53fs.mkdirSync(path.dirname(target),{recursive:true})
    • lib/bash-ipc.js:57fs.writeFileSync(path.join(stage,'usr/bin/msys-2.0.dll'),patched)
    • lib/bash-ipc.js:58for(const [name,data] of Object.entries(proxyBytes))fs.writeFileSync(path.join(stage,'usr/bin',name),data)
    • lib/bash-ipc.js:59fs.writeFileSync(path.join(stage,'.ops-ipc.json'),JSON.stringify({identity,source:root,msys:receipt.msysSha256,patchedSh…
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 启动伪终端spawns-pty需留意2 处命中
    • lib/profile-install.js:53result = spawnSync(process.env.ComSpec ?? 'cmd.exe', ['/d', '/s', '/c', `""${command}" ${args.join(' ')}"`], { stdio: 'i…
    • bin/build-bash-ipc.mjs:29const build=spawnSync('cmd.exe',['/d','/c',file],{stdio:'inherit',windowsHide:true})
    • 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
  • 动态执行代码dynamic-code需留意1 处命中
    • PROVENANCE.md:515(`with (ctx) { return eval(expr) }`, `vendor/loader/src/config/utils.ts:5-9`) —
    • 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
  • 读取文件reads-files一般59 处命中
    • lib/bash-ipc.js:20if(!fs.existsSync(dll))throw Error('EXECUTOR_UNAVAILABLE: Windows confined Bash requires the supported MSYS payload layo…
    • lib/bash-ipc.js:21const bytes=fs.readFileSync(dll)
    • lib/bash-ipc.js:23const receipt=JSON.parse(fs.readFileSync(path.join(proxies,'provenance.json'),'utf8'))
    • lib/bash-ipc.js:27proxyBytes[name]=fs.readFileSync(path.join(proxies,name))
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般31 处命中
    • lib/bash-ipc.js:13export function confinedBash(file, {home=process.env.DSH_HOME ?? path.join(os.homedir(),'.dsh'), platform=process.platfo…
    • lib/bash-ipc.js:64const result={file:selected,env:{PATH:[path.join(target,'usr/bin'),path.join(target,'ucrt64/bin'),path.join(target,'cmd'…
    • lib/binary.js:105export function dshHome(env = process.env) {
    • lib/binary.js:119export function managedRuntimeDir({ env = process.env } = {}) {
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 接触凭据或密钥credentials一般30 处命中
    • lib/tools.js:48/** Credential-shaped environment names the harness never forwards to a child. */
    • lib/tools.js:49const SENSITIVE_ENV_PATTERN = /KEY|PASSWORD|SECRET|TOKEN/i
    • lib/tools.js:89* The harness never forwards credential-shaped names or its own `DSH_*` facts
    • lib/tools.js:93* normally, while credentials are never inherited implicitly (`gh` and `git`
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 动态加载模块dynamic-import一般1 处命中
    • lib/index.js:76const { FastCtxTools } = await import('./tools.js')
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 文中出现远程脚本地址remote-url-reference一般1 处命中
    • lib/shells.js:154url: 'https://github.com/git-for-windows/git/releases/download/v2.56.0.windows.2/PortableGit-2.56.0.2-64-bit.7z.exe',
    • 只是文本里出现了远程脚本地址,没有看到加载它的调用。多半是文档或注释;若确实可疑,搜一下这个地址在包里的其他出现位置。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注8
R010 向其他插件注入plugin-tree-injection高关注4
写入文件writes-files需留意25
启动伪终端spawns-pty需留意2
动态执行代码dynamic-code需留意1
读取文件reads-files一般59
读取环境变量reads-env一般31
接触凭据或密钥credentials一般30
动态加载模块dynamic-import一般1
文中出现远程脚本地址remote-url-reference一般1

这份报告的口径

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

依赖安全公告

已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)

← 返回全部插件