dsh-web-search-pro
github.com/anweat/dsh-web-search-pro
Enhanced, persistent web search plugin for DeepSeek Harness — multi-engine routing (DeepSeek/Exa/DDG/Bing/Jina + GitHub/B站/YouTube/V2EX/小红书/Twitter/Reddit/RSS), SQLite+LRU cache, userscript-style extraction, and Playwright rendering.
该插件尚未翻译,显示作者原文。
检测报告
能力清单
- 可执行外部程序
spawns-processes高关注2 处命中lib/util.js:8import { execFileSync } from 'node:child_process';scripts/save-login.mjs:14import { execFileSync } from 'node:child_process'- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 以 shell 执行命令
shell-exec高关注2 处命中lib/util.js:69cachedNpmRoot = execFileSync('npm', ['root', '-g'], { encoding: 'utf8', windowsHide: true, timeout: 15000 }).trim();scripts/save-login.mjs:30try { return execFileSync('npm', ['root', '-g'], { encoding: 'utf8', windowsHide: true }).trim() }- 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
- 发起网络请求
network需留意14 处命中lib/actions/history.js:70summary: 'Return the saved sources (search/platform) or the saved page (fetch/snapshot) of one history record; page text…lib/index.js:24import { FetchService } from "./fetch.js";lib/provider.js:86async fetch(request, signal) {lib/provider.js:90const out = await deps.fetch.fetchPage(request.url, {- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 写入文件
writes-files需留意8 处命中lib/actions/history.js:143fs.mkdirSync(outDir, { recursive: true });lib/actions/history.js:153fs.writeFileSync(exportPath, JSON.stringify(payload, null, 2), 'utf8');lib/index.js:43fs.mkdirSync(path.dirname(dbPath), { recursive: true });lib/index.js:124fs.appendFileSync(markerPath, JSON.stringify({- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 含混淆或编码代码
obfuscated-code需留意2 处命中…peline/judges/protocols/llm.d.ts:19export declare const LLM_SYSTEM = "\u4F60\u662F\u8BC1\u636E\u76F8\u5173\u6027\u8BC4\u5206\u5668\u3002\u53EA\u8F93\u51FA\…- 混淆本身不是恶意,但公开源码里出现大段混淆值得问一句为什么。
- 动态加载模块
dynamic-import一般904 处命中…pes/providers/baidu-qianfan.d.ts:68export declare const BAIDU_DESCRIPTOR: import("./registry.ts").ProviderDescriptor;…pes/providers/baidu-qianfan.d.ts:69export declare const baiduAdapter: import("./registry.ts").ProviderAdapter;lib/types/providers/brave.d.ts:39export declare const BRAVE_DESCRIPTOR: import("./registry.ts").ProviderDescriptor;lib/types/providers/brave.d.ts:40export declare const braveAdapter: import("./registry.ts").ProviderAdapter;- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 接触凭据或密钥
credentials一般50 处命中lib/client.js:435if (url.username || url.password) out.push("baseUrl must not carry credentials: use keyRef");lib/client.js:604return (url.protocol === "https:" || url.protocol === "http:") && !url.username && !url.password && !url.hash;lib/client.js:2822const response = await this.ctx.remote.credentials.describe([...new Set(Object.values(refs))]);lib/client.js:3033if (!(await this.ctx.remote.credentials.set(ref, value)).ok) return false;- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取环境变量
reads-env一般33 处命中lib/config.js:165const home = process.env.DSH_HOME ?? path.join(os.homedir(), '.dsh');lib/engines.js:61const key = () => deps.exaApiKey || process.env.EXA_API_KEY;lib/engines.js:205const key = () => deps.jinaApiKey || process.env.JINA_API_KEY;lib/engines.js:247return deps.githubToken || process.env.GITHUB_TOKEN || process.env.GH_TOKEN || undefined;- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 读取文件
reads-files一般7 处命中lib/catalog/load.js:27return cached ??= parseCatalog(fs.readFileSync(CATALOG_URL, 'utf8'));lib/cli/probe.js:30const stat = fs.statSync(file);lib/cli/runner.js:55return fs.existsSync(file);lib/skill.js:32return parseSkillFile(fs.readFileSync(dir + 'SKILL.md', 'utf8'));- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 2 |
| 以 shell 执行命令 | shell-exec | 高关注 | 2 |
| 发起网络请求 | network | 需留意 | 14 |
| 写入文件 | writes-files | 需留意 | 8 |
| 含混淆或编码代码 | obfuscated-code | 需留意 | 2 |
| 动态加载模块 | dynamic-import | 一般 | 904 |
| 接触凭据或密钥 | credentials | 一般 | 50 |
| 读取环境变量 | reads-env | 一般 | 33 |
| 读取文件 | reads-files | 一般 | 7 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 264 个文件,扫描于 2026-10-16。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
这个插件声明的依赖中,有 6 条已公开的安全公告 (最高等级:中):
| 等级 | 依赖包 | 编号 | 摘要 |
|---|---|---|---|
| 中 | js-yaml | CVE-2026-84375 | js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources 修复版本:3.15.2, 4.3.2 详情 → |
| 中 | js-yaml | CVE-2026-59869 | js-yaml: YAML merge-key chains can force quadratic CPU consumption 修复版本:3.15.0, 4.3.0 详情 → |
| 中 | js-yaml | GHSA-5p4m-2wfm-xmqj | JS-YAML: Quadratic CPU consumption in !!omap resolution (3.x and 4.x) — CVE-2026-59870 fix not backported 修复版本:3.15.1, 4.3.1 详情 → |
| 低 | js-yaml | CVE-2026-53550 | JS-YAML: Quadratic-complexity DoS in merge key handling via repeated aliases 修复版本:3.15.0, 4.2.0 详情 → |
| 低 | js-yaml | CVE-2025-64718 | js-yaml has prototype pollution in merge (<<) 修复版本:3.14.2, 4.1.1 详情 → |
| 低 | js-yaml | GHSA-r3ph-w7gj-g6xm | js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources 修复版本:5.4.1 详情 → |
查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0),
不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响——
所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自
OSV.dev。
可信度
- 0没有可扣分的项
认证等级 L3
- L0内容完整性✓sha512-4UkxsYLsinSXGEoB… 与本地 tarball 复算一致
- L1来源✓维护者 anweat,仓库 anweat/dsh-web-search-pro(未做仓库审计)
- L2发行✓隔离 profile 安装成功,4.9s,层已挂载
- L3生态✓契约一致,宿主带它启动成功
- L4多方独立验证—本站不做第三方独立背书
评分口径与作者信息
从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分
- 维护者
- anweat
- 仓库
- https://github.com/anweat/dsh-web-search-pro
- 许可
- MIT
- 最后发布
- 2026-10-07
- 周下载
- 2.2k
- star
- 77
扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。
认证等级核验的是这个包本身(内容指纹、来源、能否安装、声明是否属实);依赖漏洞是独立标注的,两者正交、不互相掩盖。可信 ≠ 无漏洞,上架 ≠ 推荐。
DSH