dsh-plugin-appshot
github.com/TaurusWood/dsh-plugin-appshot
v0.4.2
会话与记忆
可执行外部程序含混淆或编码代码写入文件
1. 打开「插件」→「添加插件」 2. 输入 `dsh-plugin-appshot` 3. 安装后重启
作者原文(英文)
dsh-plugin-appshot — a DeepSeek Harness plugin for macOS and Windows context screenshot capture.
中文简介由 DeepSeek 模型翻译,仅供参考。
deepseekdeepseek-harnessdshdsh-pluginappshotscreenshotscreencapturekitmacos
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
1高关注4需留意3一般16未命中
高关注需留意一般
能力清单
- 可执行外部程序
spawns-processes高关注2 处命中dist/index.js:123import { spawn } from "node:child_process";dist/index.js:1150import { spawn as spawn2 } from "node:child_process";- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 含混淆或编码代码
obfuscated-code需留意27 处命中dist/client.js:392input.notify("error", "\u622A\u56FE\u5E27\u7F3A\u5C11\u56FE\u50CF\u5B57\u8282\uFF0C\u65E0\u6CD5\u6302\u8F7D\u8349\u7A3F"…dist/client.js:404input.notify("info", "Composer \u7E41\u5FD9\uFF0C\u622A\u56FE\u5DF2\u4FDD\u5B58\u4E3A\u9644\u4EF6\uFF0C\u672A\u6302\u516…dist/client.js:591isWin ? "\u6309\u4E0B\u5FEB\u6377\u952E\uFF0C\u622A\u53D6\u9F20\u6807\u6240\u5728\u5C4F\u5E55\u6700\u524D\u9762\u7684\u7…dist/client.js:622h("div", { style: { fontSize: "12px", color: "var(--dsw-alias-label-secondary, #71717a)" } }, "\u5728\u4EFB\u4F55\u5E94\…- 混淆本身不是恶意,但公开源码里出现大段混淆值得问一句为什么。
- 写入文件
writes-files需留意12 处命中dist/index.js:16await unlink(join(dir, entry));dist/index.js:1385await fs.unlink(realImage).catch(() => {dist/index.js:1390await fs.unlink(realImage).catch(() => {dist/index.js:1402await fs.unlink(realImage).catch(() => {- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意8 处命中dist/client.js:137const res = await fetch(appshotUrl("/plugins/appshot/session").toString(), {dist/client.js:177const res = await fetch(appshotUrl("/plugins/appshot/delivery-result").toString(), {dist/client.js:297const res = await fetch(url.toString(), { method: "GET" });dist/client.js:474fetch("/plugins/appshot/config").then((res) => res.json()).then((data) => {- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 可终止进程
kills-processes需留意1 处命中dist/index.js:1437process.kill(pid, 0);- 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
- 读取文件
reads-files一般8 处命中dist/index.js:11const entries = await readdir(dir);dist/index.js:109const data = await readFile(imagePath);dist/index.js:162const stats = statSync(filePath);dist/index.js:280if (existsSync(candidate)) {- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般6 处命中dist/index.js:323if (process.env.DSH_DISABLE_AGENT_SPAWN !== "1") {dist/index.js:1220env: { ...process.env }dist/index.js:1506const appdata = process.env.APPDATA;dist/index.js:1508const home = process.env.HOME ?? tmpdir();- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 动态加载模块
dynamic-import一般2 处命中dist/index.js:1690void import("node:fs/promises").then(dist/index.js:1700void import("node:fs/promises").then(- 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 2 |
| 含混淆或编码代码 | obfuscated-code | 需留意 | 27 |
| 写入文件 | writes-files | 需留意 | 12 |
| 发起网络请求 | network | 需留意 | 8 |
| 可终止进程 | kills-processes | 需留意 | 1 |
| 读取文件 | reads-files | 一般 | 8 |
| 读取环境变量 | reads-env | 一般 | 6 |
| 动态加载模块 | dynamic-import | 一般 | 2 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 8 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)