界面与主题 · v1.1.5
dsh-browser-cdp
= 0.2.0-rc.1"> = 0.12.2 (optional)"> = 22"> 仓库:github.com/drscrewdriver/dsh-browser-cdp(原名 dsh-ego-browser,源自上游 Fisfzy/dsh-ego-browser)|版本历史见 CHANGELOG.md。
作者原文(英文)
dsh-browser-cdp: DSH browser plugin — attach to a running Chrome/Edge over CDP (no bundled browser needed); structured browser-automation tools (30+ bcdp_*) that drive the vendored ego runtime through ctx.subprocess, plus a realtime watch panel (live SSE
简介取自插件自己的 README 原文。
安装命令
dsh plugin --profile web add dsh-browser-cdp@1.1.5
已试装 · 层已挂载
已在一个隔离的 profile 里真装过:包能装上,并且插件层挂载成功。这一条是实测结果,不是作者的声明。
检测报告
能力清单
- 可执行外部程序
spawns-processes高关注7 处命中lib/index.js:8import { execFile, spawn } from "node:child_process";…me/ego-browser/dist/out/index.js:7import { spawn } from 'node:child_process';lib/launcher-BadIUjAx.js:3import { spawn } from "node:child_process";bin/cdp-cast-worker.mjs:7import { execFile, execFileSync, spawn } from "node:child_process";- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 以 shell 执行命令
shell-exec高关注3 处命中bin/cdp-cast-worker.mjs:6725const output = execFileSync("powershell.exe", [bin/cdp-cast-worker.mjs:6735execFileSync("taskkill", [bin/cdp-cast-worker.mjs:6746const output = execFileSync("ps", ["-eo", "pid=,ppid=,args="], {- 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
- 发起网络请求
network需留意63 处命中lib/client.js:472return fetch(path, {lib/client.js:739fetch(VIDEO_ROUTE + "?generation=" + encodeURIComponent(generation), { signal: abort.signal }).then(function(res) {lib/client.js:1028return fetch(path, {lib/client.js:2405fetch(INPUT_ROUTE$1, {- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 写入文件
writes-files需留意40 处命中lib/index.js:354await mkdir(dir, { recursive: true });lib/index.js:3058await mkdir(dir, { recursive: true });lib/index.js:3064await writeFile(target, block, "utf8");lib/index.js:3848await mkdir(platformRoot, { recursive: true });- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 可终止进程
kills-processes需留意16 处命中lib/index.js:326process.kill(pid, "SIGTERM");lib/index.js:1741process.kill(state.pid, "SIGTERM");lib/index.js:1744process.kill(state.pid, "SIGKILL");lib/index.js:2021process.kill(pid, 0);- 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
- 启动伪终端
spawns-pty需留意2 处命中bin/cdp-cast-worker.mjs:6725const output = execFileSync("powershell.exe", [- 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
- 读取环境变量
reads-env一般84 处命中lib/index.js:105function chromiumCandidates(env = process.env, platform = process.platform) {lib/index.js:186function detectSystemBrowsers(env = process.env, platform = process.platform) {lib/index.js:245function resolveEgoStateDir(env = process.env, platform = process.platform) {lib/index.js:512env: { ...process.env },- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 读取文件
reads-files一般59 处命中lib/index.js:191return existsSync(b.exePath) && existsSync(join(b.userDataDir, "Local State"));lib/index.js:351if (!existsSync(src)) return null;lib/index.js:360const markers = countEncryptionMarkers(await readFile(src));lib/index.js:381if (countEncryptionMarkers(await readFile(src)) > 0) return false;- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 动态加载模块
dynamic-import一般13 处命中lib/index.js:355const { copyFile: copyFile$1, readdir: readdir$1 } = await import("node:fs/promises");lib/index.js:382const { copyFile: copyFile$1 } = await import("node:fs/promises");lib/index.js:2004const { readFile: readFile$1 } = await import("node:fs/promises");lib/index.js:7587const { localBrowserInfo, stopLocalBrowser: stopLocalBrowser$1 } = await import("./launcher-h0Ca5NV1.js");- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 文中出现远程脚本地址
remote-url-reference一般12 处命中lib/index.js:3159lightpanda: "Lightpanda 作为后端(无头文本渲染引擎,beta):设置面板「添加 Lightpanda(受管)」——受管 serve 行(本机单例,插件负责拉起/复用/停止;win32 经 WSL2,linux/mac…lib/index.js:8656if (attachNow.engine === "lightpanda" || process.platform === "win32") lines.push(process.platform === "win32" ? "lightp…lib/launcher-BadIUjAx.js:253message: "wsl.exe not found — Lightpanda has no native Windows build. Install WSL2 (`wsl --install` as admin), then insi…lib/launcher-BadIUjAx.js:311message: `${engineName} exited before opening the debugging port (pid ${pid})${engine === "lightpanda" && platform === "…- 只是文本里出现了远程脚本地址,没有看到加载它的调用。多半是文档或注释;若确实可疑,搜一下这个地址在包里的其他出现位置。
- 接触凭据或密钥
credentials一般6 处命中lib/client.js:1630type: f.kind === "secret" ? "password" : "text",lib/index.js:3537if (parsed.protocol !== "https:" || parsed.username || parsed.password || parsed.search || parsed.hash) throw codedError…lib/index.js:4462if (this.config.apiKey.trim() === "") return {lib/index.js:4488authorization: `Bearer ${this.config.apiKey}`- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 7 |
| 以 shell 执行命令 | shell-exec | 高关注 | 3 |
| 发起网络请求 | network | 需留意 | 63 |
| 写入文件 | writes-files | 需留意 | 40 |
| 可终止进程 | kills-processes | 需留意 | 16 |
| 启动伪终端 | spawns-pty | 需留意 | 2 |
| 读取环境变量 | reads-env | 一般 | 84 |
| 读取文件 | reads-files | 一般 | 59 |
| 动态加载模块 | dynamic-import | 一般 | 13 |
| 文中出现远程脚本地址 | remote-url-reference | 一般 | 12 |
| 接触凭据或密钥 | credentials | 一般 | 6 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 52 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
可信度
- 0没有可扣分的项
认证等级 L2
- L0静态结构与契约✓sha512-Wdx3vYOCl47TFdWR… 与本地 tarball 复算一致,补丁与入口齐备
- L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足
- L2隔离沙箱冒烟✓隔离 profile 安装成功,3.6s,层已挂载;宿主带它启动(booted)
- L3运行时健康监控—运行时观测到异常:spawns
评分口径与作者信息
从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分
- 维护者
- drscrewdriver
- 仓库
- https://github.com/drscrewdriver/dsh-browser-cdp
- 许可
- MIT
- 最后发布
- 2026-10-08
- 周下载
- 3.5k
- star
- 1
扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。
认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。
| DSH peer 依赖 | 6 个dsh-client-localedsh-client-storedsh-client-ui-settings-pluginsdsh-client-ui-slotsdsh-settingsdsh-tools均为 @deepseek-ai/ 下的包 |
|---|---|
| 声明 DSH 版本 | >=0.1.0-0 <0.3.0-0 |
| Node 要求 | >=22 |
| 第三方依赖 | 1 个 |
| bundle patch | ./cordis.patch.yml |
| 依赖安全公告 | 已查询全部依赖,没有匹配到已公开的安全公告(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。) |
元数据
| 主页 | https://github.com/drscrewdriver/dsh-browser-cdp#readme |
|---|---|
| 仓库最近提交 | 2026-10-15 |
| 仓库创建 | 2026-09-22 |
DSH