dsh-doc
v0.1.1
其他
可执行外部程序以 shell 执行命令写入文件
Local PDF, Office, image, and OCR document intelligence for DeepSeek Harness.
该插件尚未翻译,显示作者原文。
deepseek-harnessdsh-plugindocument-intelligencexbergocrpdfoffice
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注2需留意4一般16未命中
高关注需留意一般
能力清单
- 可执行外部程序
spawns-processes高关注3 处命中lib/engine/python-stdio-client.js:2import { spawn as spawnChildProcess } from 'node:child_process';…ipts/build-runtime-win32-x64.mjs:16import { execFileSync } from 'node:child_process'…ipts/fetch-runtime-win32-x64.mjs:15import { execFileSync } from 'node:child_process'- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 以 shell 执行命令
shell-exec高关注2 处命中…ipts/build-runtime-win32-x64.mjs:183execFileSync(pythonExe, [smokePath], {…ipts/fetch-runtime-win32-x64.mjs:60execFileSync(process.execPath, [join(scriptDir, 'verify-runtime-win32-x64.mjs'), output], { stdio: 'inherit' })- 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
- 写入文件
writes-files需留意29 处命中package.json:83"build": "node -e \"require('node:fs').rmSync('lib', { recursive: true, force: true })\" && tsc -p tsconfig.build.json",…ipts/build-runtime-win32-x64.mjs:148mkdirSync(dirname(path), { recursive: true })…ipts/build-runtime-win32-x64.mjs:149writeFileSync(path, content, { encoding: 'utf8' }) // no BOM…ipts/build-runtime-win32-x64.mjs:182mkdirSync(cacheRoot, { recursive: true })- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意2 处命中…ipts/build-runtime-win32-x64.mjs:134const metadata = await (await fetch(`https://pypi.org/pypi/xberg/${lock.version}/json`)).json()scripts/lib/runtime-common.mjs:22const response = await fetch(uri, { redirect: 'follow' })- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 读取文件
reads-files一般33 处命中lib/engine/create.js:8return paths.find(path => existsSync(path));lib/engine/create.js:30return existsSync(candidate) ? candidate : undefined;lib/engine/create.js:49if (!existsSync(workerPath))lib/security/local-path.js:107const bytes = await handle.readFile();- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 接触凭据或密钥
credentials一般4 处命中lib/config.js:33apiKey: Schema.string().min(1)README.md:223Older `baseUrl`, `apiKey`, `enableRemoteUrls`, and `allowPrivateUrls` profileREADME.zh-CN.md:190旧 profile 中的 `baseUrl`、`apiKey`、`enableRemoteUrls`、`allowPrivateUrls` 仅为迁移lib/config.d.ts:45apiKey?: string;- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 动态加载模块
dynamic-import一般4 处命中lib/tools/convert-file.d.ts:3export declare function createConvertFileTool(engine: DocumentEngine, config: Config): import("@deepseek-ai/dsh-tools").…lib/tools/convert-url.d.ts:1export declare function createConvertUrlTool(): import("@deepseek-ai/dsh-tools").ToolDefinition;lib/tools/extract.d.ts:3export declare function createExtractTool(engine: DocumentEngine, config: Config): import("@deepseek-ai/dsh-tools").Tool…lib/tools/health.d.ts:2export declare function createHealthTool(engine: DocumentEngine): import("@deepseek-ai/dsh-tools").ToolDefinition;- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 读取环境变量
reads-env一般2 处命中lib/engine/create.js:56...process.env,…ipts/build-runtime-win32-x64.mjs:186...process.env,- 环境变量里常混有密钥。看它是否把整个 env 都读走。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 3 |
| 以 shell 执行命令 | shell-exec | 高关注 | 2 |
| 写入文件 | writes-files | 需留意 | 29 |
| 发起网络请求 | network | 需留意 | 2 |
| 读取文件 | reads-files | 一般 | 33 |
| 接触凭据或密钥 | credentials | 一般 | 4 |
| 动态加载模块 | dynamic-import | 一般 | 4 |
| 读取环境变量 | reads-env | 一般 | 2 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 46 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)