其他 · v3.5.7
dsh-daily-flashcard
StudyHub: turn your lecture slides into questions that each link back to their page; finish a round and see yourself getting it.
该插件尚未翻译,显示作者原文。
studyhubdsh-plugindeepseek-harnessspaced-repetitionflashcardsactive-recallquiz-generatorexam-prep
仅 GitHub
认证 未评级已扫描 ✓健康 C/78星 —
18 项能力安装命令
dsh plugin --profile web add git+https://github.com/ericwang1358/dsh-web-studyhub
实测:这条命令在隔离环境里装得上,并且已经挂载。
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
4高关注8需留意6一般6未命中
高关注需留意一般
能力清单
- 可执行外部程序
spawns-processes高关注44 处命中lib/groq.js:1import { spawn } from "node:child_process";lib/local-command.js:1import { spawn } from 'node:child_process';scripts/prepare.mjs:8import { spawnSync } from 'node:child_process';scripts/qa/dsh-e2e.mjs:17import { spawn, spawnSync } from "node:child_process";- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 以 shell 执行命令
shell-exec高关注3 处命中scripts/qa/perf-probe.mjs:143const out = execFileSync(process.execPath, ["--max-old-space-size=6144", fileURLToPath(import.meta.url), "--summarize", …tests/extract-release.test.mjs:12const git = (cwd, ...args) => execFileSync('git', ['-c', 'user.name=t', '-c', 'user.email=t@example.invalid', '-c', 'com…tests/fixtures/extract-release.mjs:11const git = (args, env = {}) => execFileSync('git', args, { cwd: repo, encoding: 'utf8', env: { ...process.env, ...env }…- 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
- 访问原生绑定
native-access高关注1 处命中tests/calculation-check.test.mjs:44const expressions = ['process.exit()', 'globalThis.x=1', 'constructor.constructor("return 1")()', '2;3', 'Math.sqrt(4)',…- 访问原生绑定或走 constructor 链,等于绕开 JS 层的一切限制。确认这是插件的核心机制,而不是顺手拿到的便利。
- 改写用户 profile
profile-tamper高关注1 处命中- release-alpha.mjs
- 看它改的是自己那一段还是别人的。改用户 profile 通常应由用户手动做。
- 写入文件
writes-files需留意1032 处命中lib/application-messages-en.js:628"课程改名请使用「改名」(course.rename),以便同步更新题组和资料": "Use Rename (course.rename) to rename a course so its decks and materials foll…lib/atomic-json.js:20try { return await rename(from, to); }lib/atomic-json.js:30await writeFile(temporary, JSON.stringify(value), 'utf8');lib/audio-batch-runtime-store.js:94await mkdir(dirname(file), { recursive: true }); await atomicJson(file, value);- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 动态执行代码
dynamic-code需留意198 处命中tests/ai-helper-note.test.mjs:16new Function('require', 'module', 'exports', compiled.outputFiles[0].text)(createRequire(import.meta.url), module, modul…tests/annotation-ui.test.mjs:27new Function('require', 'module', 'exports', compiled.outputFiles[0].text)(require, module, module.exports);tests/app-render.test.mjs:13new Function("require", "module", "exports", compiled.outputFiles[0].text)(createRequire(import.meta.url), module, modul…tests/appearance-prefs.test.mjs:191new Function('require', 'module', 'exports', out.outputFiles[0].text)(createRequire(import.meta.url), mod, mod.exports);- 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
- 发起网络请求
network需留意105 处命中lib/audio-dashboard.js:151if (!kind) return fetch(input, init);lib/audio-dashboard.js:162try { response = await fetch(input, init); }lib/audio-gateway.js:15try { response = await fetch(input, { ...init, signal, awaitPhysicalClose: true }); }lib/gemini.js:40/** Google calls go through the long-deadline client; a replaced global fetch (a test or preview standing in for Google)…- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 可终止进程
kills-processes需留意9 处命中lib/contexts/notes/daily.js:29try { if (generation.pid) { process.kill(generation.pid, 0); return true; } } catch { return false; }lib/jobs/executor.js:22try { process.kill(witness.pid, 0); }lib/local-command.js:13else { try { process.kill(-child.pid, 'SIGKILL'); } catch { child.kill('SIGKILL'); } }scripts/qa/test-lock.mjs:18const alive = pid => { try { process.kill(pid, 0); return true; } catch (error) { return error.code === 'EPERM'; } };- 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
- 运行时改写自身配置
modifies-own-manifest需留意6 处命中scripts/qa/dsh-e2e.mjs:95if (!await exists(join(cli, "package.json"))) await writeFile(join(cli, "package.json"), JSON.stringify({ name: "studyhu…scripts/release-alpha.mjs:49await writeFile(join(staging, 'package.json'), JSON.stringify({scripts/release-alpha.mjs:57await writeFile(join(staging, 'cordis.patch.yml'), `- insert:\n - id: study-${domain}\n name: '${name}'\n config: {}\n`)…scripts/release-alpha.mjs:67await writeFile(join(staging, 'package.json'), JSON.stringify({ ...companion, version: manifest.version }, null, 2) + '\…- 运行时改写自身配置会让下次启动的行为和你看过的源码不一致。
- 启动伪终端
spawns-pty需留意2 处命中tests/store.test.mjs:115const child = spawn("powershell.exe", ["-NoProfile", "-NonInteractive", "-Command",tests/wp16-usage-ui.test.mjs:109assert.doesNotMatch(/aria-label="([^"]*)"/.exec(full.match(/<div class="sh-stacked__bar"[^>]*>/)[0])[1], han);- 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
- 含混淆或编码代码
obfuscated-code需留意1 处命中tests/audio.test.mjs:63const id3 = Buffer.concat([Buffer.from("ID3\x03\x00\x00\x00\x00\x00\x10", "latin1"), Buffer.alloc(16)]);- 混淆本身不是恶意,但公开源码里出现大段混淆值得问一句为什么。
- 安装时执行脚本
install-scripts需留意1 处命中- 安装脚本:prepare
- 读取环境变量
reads-env一般1041 处命中lib/audio-dashboard.js:8const ledgerDir = () => join(process.env.DSH_HOME?.trim() || join(homedir(), '.dsh'), 'study', 'audio-usage');lib/audio-settings.js:21export const audioSettingsPath = () => join(process.env.DSH_HOME?.trim() || join(homedir(), ".dsh"), "study", "audio.jso…lib/audio-settings.js:63for (const { keyField, envVar } of AUDIO_PROVIDERS) merged[keyField] = String(file[keyField] || process.env[envVar] || "…lib/board.js:30const boardPath = () => join(process.env.DSH_HOME?.trim() || join(homedir(), ".dsh"), "study", "board.json");- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 读取文件
reads-files一般987 处命中lib/atomic-json.js:15export const readJsonFile = file => readFile(file, 'utf8').then(parseStoredJson);lib/audio-batch-members.js:41try { saved = parseStoredJson(await readFile(file, 'utf8')); }lib/audio-batch-runtime-store.js:42const bytes = await readFile(await checkpointFile(directory, checkpoint.ref));lib/audio-batch.js:38const names = await readdir(join(root, 'audio-batches')).catch(() => []), batches = [];- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 动态加载模块
dynamic-import一般373 处命中CHANGELOG.md:21- **What the tutor promises.** It still looks in the StudyHub library first and asks one short question when a request i…CHANGELOG.md:57- **Old PowerPoint files (.ppt) import (#436).** PowerPoint 97–2003 decks import page by page like .pptx (titles, text b…docs/performance.md:51Memory and growth. After the first snapshot the host held 100 MB of heap, the library twice: 32 MB of JSON text plus its……runtime/s1-3-provider-permits.md:14| 旧入口 | 实际 `audio.import(path/uploadId)` 与单文件 retry 在原 worker 开始执行时取得同类租约,交给原 audio-job / GeminiTiers,结束等待物理工作清理后释放租约。音频…- 动态导入本身无害,但会让依赖关系难以静态审阅。
- 文中出现远程脚本地址
remote-url-reference一般67 处命中README.md:431. **Install DSH** (skip this if you have it). Use the official [Windows x64 installer](https://download.deepseek.com/de…README.zh-CN.md:431. **安装 DSH**(已装可跳过):下载官方的 [Windows 64 位安装器(.exe)](https://download.deepseek.com/desktop/dsh-latest-windows-x64.exe)或 [m…docs/install.md:26| Windows x64 | [Download the .exe installer](https://download.deepseek.com/desktop/dsh-latest-windows-x64.exe), run it …docs/install.zh-CN.md:26| Windows 64 位 | [下载 .exe 安装器](https://download.deepseek.com/desktop/dsh-latest-windows-x64.exe),安装后启动 DeepSeek Harness。…- 只是文本里出现了远程脚本地址,没有看到加载它的调用。多半是文档或注释;若确实可疑,搜一下这个地址在包里的其他出现位置。
- 接触凭据或密钥
credentials一般65 处命中…studyhub-3.0-standalone-notes.md:66| 共享插件 | 全部学习功能、学习模式预设、通用顶级 StudyHub 页面、不依赖会话的学习库通道、读取外壳配置行、音频密钥通过 `ctx.credentials` 读取(一个硅基流动 Key 同时用于对话和转写) |…studyhub-3.0-standalone-notes.md:86- **测试隔离(重要)。** DSH 读取凭据时,继承的环境变量优先于 `$DSH_HOME/.credentials.yaml`。在 Windows 上用 `--host 127.0.0.1` 会弹出系统原生的文件夹选择框。测试时必须清…lib/adapters/csdn-public.js:7!/^\/[\w-]+\/?$/.test(url.pathname) || url.username || url.password || url.port)lib/jev-providers.js:50if (!url.hostname || url.username || url.password || url.search || url.hash) return null;- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 使用 vm 模块做隔离
uses-vm-module一般3 处命中scripts/qa/perf-probe.mjs:8import { runInNewContext } from "node:vm";tests/client-boundaries.test.mjs:5import vm from 'node:vm';tests/live-client.test.mjs:3import { runInNewContext } from 'node:vm';- 用 node:vm 是在建立隔离,不是在突破它。本身不是顾虑,但值得知道这个插件会执行动态代码。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 44 |
| 以 shell 执行命令 | shell-exec | 高关注 | 3 |
| 访问原生绑定 | native-access | 高关注 | 1 |
| 改写用户 profile | profile-tamper | 高关注 | 1 |
| 写入文件 | writes-files | 需留意 | 1032 |
| 动态执行代码 | dynamic-code | 需留意 | 198 |
| 发起网络请求 | network | 需留意 | 105 |
| 可终止进程 | kills-processes | 需留意 | 9 |
| 运行时改写自身配置 | modifies-own-manifest | 需留意 | 6 |
| 启动伪终端 | spawns-pty | 需留意 | 2 |
| 含混淆或编码代码 | obfuscated-code | 需留意 | 1 |
| 安装时执行脚本 | install-scripts | 需留意 | 1 |
| 读取环境变量 | reads-env | 一般 | 1041 |
| 读取文件 | reads-files | 一般 | 987 |
| 动态加载模块 | dynamic-import | 一般 | 373 |
| 文中出现远程脚本地址 | remote-url-reference | 一般 | 67 |
| 接触凭据或密钥 | credentials | 一般 | 65 |
| 使用 vm 模块做隔离 | uses-vm-module | 一般 | 3 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 2568 个文件,扫描于 2026-10-22。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
可信度
这个插件只在 GitHub 上发布,没有走过 npm 的分发链路。下面的梯子按 GitHub 通道的证据计算:补丁审计、钉在 commit 上的源码快照、隔离试装;L2 的「宿主启动」这一层还没有对 git 通道跑过,所以等级停在 L1。
78
健康分 C
扣分项下方逐条附证据
- -10声明与实物不符:entry-missingmajor:['./lib/client.js']
- -10声明与实物不符:client-present-undeclaredmajor:['scripts/qa/ui-motion.mjs', 'scripts/qa/ui-profile.mjs', 'tests/client-boundaries.test.mjs', 'tests/client-bundle.test.mjs']
- -2没有 READMEminor
认证等级 未评级
- L0静态结构与契约—契约不符:entry-missing
- L1配置组合与依赖图✓跨包无 entry id 冲突,插入模块可解析,目录内 peer 满足(前一级未通过,本项不计入等级)前一级未通过,不计入等级
- L2隔离沙箱冒烟—还没有宿主启动记录
- L3运行时健康监控—未抽样(本层是抽样检测:没有会话不等于干净)
评分口径与作者信息
从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分
- 维护者
- —
- 仓库
- https://github.com/ericwang1358/dsh-web-studyhub
- 许可
- MIT
- 最后发布
- —
- 周下载
- —
- star
- —
扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。
认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。
| DSH peer 依赖 | 2 个dsh-llmdsh-tools均为 @deepseek-ai/ 下的包 |
|---|---|
| Node 要求 | >=22.19 |
| 第三方依赖 | 0 个(纯自包含) |
| 依赖安全公告 | 已查询全部依赖,没有匹配到已公开的安全公告(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。) |
元数据
| 主页 | https://github.com/EricWang1358/dsh-web-studyhub#readme |
|---|
DSH