浏览全部

其他 · v0.2.4

dsh-unrestricted

github.com/yexi-by/dsh-unrestricted

能力可执行外部程序以 shell 执行命令写入文件

Toggleable unrestricted mode for DeepSeek Harness: fuses execution rules into the active standard, ptc, cordis, minimal, and subagent prompts

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

仅 GitHub
认证 L1已扫描 ✓健康 B/88星 —
7 项能力
许可
MIT

安装命令

dsh plugin --profile web add git+https://github.com/yexi-by/dsh-unrestricted

实测:这条命令在隔离环境里装得上,并且已经挂载。

检测报告

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

能力清单

  • 可执行外部程序spawns-processes高关注1 处命中
    • tools/dump-prompts.mjs:14import { execSync } from 'node:child_process'
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 以 shell 执行命令shell-exec高关注1 处命中
    • tools/dump-prompts.mjs:112commit = execSync('git rev-parse HEAD', { cwd: repo, encoding: 'utf8' }).trim()
    • 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
  • 写入文件writes-files需留意10 处命中
    • tools/dump-prompts.mjs:51await mkdir(workspace)
    • tools/dump-prompts.mjs:79await mkdir(profileDir, { recursive: true })
    • tools/dump-prompts.mjs:88await writeFile(rootConfig, '[]\n')
    • tools/dump-prompts.mjs:108await mkdir(out, { recursive: true })
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意8 处命中
    • tests/fixtures/original-ptc.md:327/** The HTTP(S) URL to fetch. */
    • …/fixtures/sections-ptc-plan.json:76"text": "## Writing code for run_code\n\n`run_code` takes two required arguments: `description`, a short summary of what…
    • tests/fixtures/sections-ptc.json:76"text": "## Writing code for run_code\n\n`run_code` takes two required arguments: `description`, a short summary of what…
    • …/fixtures/tools-cordis-plan.json:946"description": "The HTTP(S) URL to fetch."
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 读取文件reads-files一般8 处命中
    • tests/manifest.spec.mjs:5const manifest = JSON.parse(await readFile(new URL('../package.json', import.meta.url), 'utf8'))
    • tests/rules.spec.mjs:20await readFile(join(FIXTURES, 'meta.json'), 'utf8'),
    • tests/rules.spec.mjs:24return JSON.parse(await readFile(join(FIXTURES, `sections-${label}.json`), 'utf8'))
    • tests/rules.spec.mjs:28return await readFile(join(FIXTURES, `original-${label}.md`), 'utf8')
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般6 处命中
    • tests/fixtures/tools-ptc-plan.json:4"description": "Execute a TypeScript program against the available tools. Takes two required arguments: `description`, a…
    • tests/fixtures/tools-ptc.json:4"description": "Execute a TypeScript program against the available tools. Takes two required arguments: `description`, a…
    • tsdown.config.ts:39'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV ?? 'production'),
    • tsdown.config.ts:40'import.meta.env.MODE': JSON.stringify(process.env.NODE_ENV ?? 'production'),
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般6 处命中
    • tests/fixtures/tools-ptc-plan.json:4"description": "Execute a TypeScript program against the available tools. Takes two required arguments: `description`, a…
    • tests/fixtures/tools-ptc.json:4"description": "Execute a TypeScript program against the available tools. Takes two required arguments: `description`, a…
    • tests/rules.spec.mjs:306const { createHash } = await import('node:crypto')
    • tools/dump-prompts.mjs:37return import(pathToFileURL(join(repo, relativeDir, entry)).href)
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注1
以 shell 执行命令shell-exec高关注1
写入文件writes-files需留意10
发起网络请求network需留意8
读取文件reads-files一般8
读取环境变量reads-env一般6
动态加载模块dynamic-import一般6

这份报告的口径

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

可信度

这个插件只在 GitHub 上发布,没有走过 npm 的分发链路。下面的梯子按 GitHub 通道的证据计算:补丁审计、钉在 commit 上的源码快照、隔离试装;L2 的「宿主启动」这一层还没有对 git 通道跑过,所以等级停在 L1。

88 健康分 B 扣分项下方逐条附证据
  • -10声明与实物不符:client-present-undeclaredmajor:['lib/client.js', 'lib/client.js.map', 'src/client/UnrestrictedCard.tsx', 'src/client/controller.ts']
  • -2没有 READMEminor

认证等级 L1

  • L0静态结构与契约✓源码快照钉在 commit 7beb2d25,补丁与入口齐备,另有 1 项声明不一致(计入健康扣分)
  • L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足
  • L2隔离沙箱冒烟—还没有宿主启动记录
  • L3运行时健康监控—未抽样(本层是抽样检测:没有会话不等于干净)
评分口径与作者信息

从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分

维护者
—
仓库
https://github.com/yexi-by/dsh-unrestricted
许可
MIT
最后发布
—
周下载
—
star
—

扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。

认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。

声明 DSH 版本>=0.2.0-rc.2 <0.2.2-0
第三方依赖0 个(纯自包含)
依赖安全公告已查询全部依赖,没有匹配到已公开的安全公告(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)

元数据

主页https://github.com/yexi-by/dsh-unrestricted#readme

返回首页