浏览全部

界面与主题 · v1.1.5

dsh-browser-cdp

github.com/drscrewdriver/dsh-browser-cdp

能力可执行外部程序以 shell 执行命令发起网络请求

= 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 原文。

认证 L2已扫描 ✓健康 S/100周下载 3.5k
11 项能力
许可
MIT
发布
2026-10-08
维护者
drscrewdriver
插件 ID
1570

安装命令

dsh plugin --profile web add dsh-browser-cdp@1.1.5

已试装 · 层已挂载

已在一个隔离的 profile 里真装过:包能装上,并且插件层挂载成功。这一条是实测结果,不是作者的声明。

检测报告

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

能力清单

  • 可执行外部程序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 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。

可信度

100 健康分 S 扣分项下方逐条附证据
  • 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

返回首页