dsh-lanmode
github.com/GooDAnDReaDY/dsh-lanmode
v0.8.41
界面与主题
可执行外部程序发起网络请求写入文件
浏览器插件的异步初始化会保留其 await 生命周期。
作者原文(英文)
LAN and reverse-proxy access for the DeepSeek Harness Web UI: returns the settings service on pages that are not localhost, fills in the Web APIs the browser withholds on plain HTTP, and can open a listener of its own so nothing else is needed. Requires D
中文简介由 DeepSeek 模型翻译,仅供参考。
dshdsh-plugindeepseek-harnesssettingslanremoteproxynginx
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
1高关注3需留意4一般16未命中
高关注需留意一般
能力清单
- 可执行外部程序
spawns-processes高关注4 处命中lib/firewall.js:8import { execFile } from 'node:child_process'lib/plugin-updater.js:4import { spawn } from 'node:child_process'lib/tls.js:11import { execFile } from 'node:child_process'lib/tunnel.js:13import { spawn } from 'node:child_process'- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 发起网络请求
network需留意36 处命中…lient-parts/01-remote-helpers.js:55var nativeFetch = win.fetch.bind(win)…lient-parts/01-remote-helpers.js:154var nativeFetch = target.fetch.bind(target)lib/client-parts/04-card.js:60fetch('/dsh-lanmode/devices', { cache: 'no-store' })lib/client-parts/04-card.js:63var outcome = loadOutcome(got.response, got.body)- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 写入文件
writes-files需留意16 处命中lib/bans.js:86fsImpl.writeFileSync(bakTmp, content, 'utf8')lib/bans.js:87fsImpl.renameSync(bakTmp, bakPath)lib/bans.js:131fsImpl.mkdirSync(path.dirname(filePath), { recursive: true })lib/bans.js:134fsImpl.writeFileSync(tmpPath, body, 'utf8')- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 可终止进程
kills-processes需留意1 处命中lib/plugin-updater.js:18process.kill(Number(pid), 0)- 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
- 接触凭据或密钥
credentials一般368 处命中…lient-parts/01-remote-helpers.js:73pass.name = 'password'…lient-parts/01-remote-helpers.js:74pass.type = 'password'…lient-parts/01-remote-helpers.js:75pass.autocomplete = 'current-password'…lient-parts/01-remote-helpers.js:76pass.setAttribute('placeholder', translate('reauthPassword'))- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取文件
reads-files一般40 处命中lib/bans.js:70hasBakFile = Boolean(fsImpl.existsSync(bakPath))lib/bans.js:78if (fsImpl.existsSync(filePath)) {lib/bans.js:80const content = fsImpl.readFileSync(filePath, 'utf8')lib/bans.js:104if (hasBakFile || fsImpl.existsSync(bakPath)) {- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般13 处命中lib/bridge-local.js:211const caPem = (options.tls && options.tls.caCert) || readRootCA(process.env.DSH_HOME || path.join(os.homedir(), '.dsh'))lib/devices.js:107return process.env.DSH_HOME || path.join(os.homedir(), '.dsh')lib/dsh-auth-cookie.js:120if (process.env.DEBUG_DSH_AUTH && ctx?.logger?.warn) {lib/index.js:75const home = process.env.DSH_HOME- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 动态加载模块
dynamic-import一般1 处命中lib/routes/config.js:81const { Config } = await import('../config-schema.js')- 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 4 |
| 发起网络请求 | network | 需留意 | 36 |
| 写入文件 | writes-files | 需留意 | 16 |
| 可终止进程 | kills-processes | 需留意 | 1 |
| 接触凭据或密钥 | credentials | 一般 | 368 |
| 读取文件 | reads-files | 一般 | 40 |
| 读取环境变量 | reads-env | 一般 | 13 |
| 动态加载模块 | dynamic-import | 一般 | 1 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 61 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)