dsh-plugin-fly-mode
github.com/ethanchen669/dsh-plugin-fly-mode
v0.1.5
工具与效率
R010 向其他插件注入写入文件
Fly 模式作为一个可安装的包:**两个 preset** —— Fly 安全模式(preset-fly,7 个安全工具内联 + smart)与 Fly 标准模式(preset-fly-standard,上游 standard 的行表 + smart,无安全工具);依赖单独发布的 dsh-plugin-fly-smart。
该插件尚未翻译,显示作者原文。
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
1高关注1需留意2一般20未命中
高关注需留意一般
能力清单
- R010 向其他插件注入
plugin-tree-injection高关注2 处命中- dsh-plugin-fly-smart/tools/index.js
- 看 patch 里 insert 的包是不是本项目自己的。插入第三方代码要格外留意。
- 写入文件
writes-files需留意5 处命中…dsh-plugin-fly-blackbox/index.js:463mkdirSync(join(root, '.fly-blackbox'), { recursive: true })…dsh-plugin-fly-blackbox/index.js:464writeFileSync(path, `${JSON.stringify(state, null, 2)}\n`, 'utf8')…dsh-plugin-fly-blackbox/index.js:469rmSync(statePath(root), { force: true })…dsh-plugin-fly-blackbox/index.js:1037mkdirSync(join(root, '.fly-blackbox'), { recursive: true })- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 读取环境变量
reads-env一般10 处命中…dsh-plugin-fly-blackbox/index.js:405const explicit = process.env.FLY_BLACKBOX_WORKSPACE…dsh-plugin-fly-blackbox/index.js:527const configured = process.env.FLY_MITM_BIN…dsh-plugin-fly-blackbox/index.js:573const port = state?.port ?? Number(process.env.FLY_PROXY_PORT ?? 8080)…dsh-plugin-fly-blackbox/index.js:927if (isGated(exec.name, action) && process.env.FLY_ALLOW_INTERCEPT !== '1') {- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 读取文件
reads-files一般4 处命中…dsh-plugin-fly-blackbox/index.js:453return JSON.parse(readFileSync(statePath(root), 'utf8'))…dsh-plugin-fly-blackbox/index.js:877const { description } = skillDescription(readFileSync(locator, 'utf8'), locator)…dsh-plugin-fly-blackbox/index.js:893const raw = readFileSync(file, { encoding: 'utf8', signal: options?.signal })…dsh-plugin-fly-blackbox/index.js:913if (!statSync(path).isFile()) throw new Error('not a file')- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| R010 向其他插件注入 | plugin-tree-injection | 高关注 | 2 |
| 写入文件 | writes-files | 需留意 | 5 |
| 读取环境变量 | reads-env | 一般 | 10 |
| 读取文件 | reads-files | 一般 | 4 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 25 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)