dsh-deeptutor
github.com/TecFancy/dsh-deeptutor
v0.1.9
技能包
可执行外部程序以 shell 执行命令写入文件
Learning assistant extension for DeepSeek Harness (dsh): DeepTutor tutoring for your agent — deep explanations, self-test questions, learning paths, personal knowledge-base search (RAG), and note archiving (HTTP/WS first, CLI fallback; auto-adapts local/r
该插件尚未翻译,显示作者原文。
dshdsh-plugindsh-bundledeeptutortutoringragagent
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注2需留意3一般17未命中
高关注需留意一般
能力清单
- 可执行外部程序
spawns-processes高关注7 处命中lib/cli-exec.js:5import { execFile, spawn } from "node:child_process";lib/html-render.js:6import { execFile } from "node:child_process";lib/http-api.js:4import { spawn } from "node:child_process";scripts/install-profile.mjs:27import { spawnSync } from 'node:child_process';- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 以 shell 执行命令
shell-exec高关注1 处命中scripts/install-profile.mjs:71* Note: with `shell: true` Node does not quote the command itself, so ascripts/install-profile.mjs:87return { file: `"${file}"`, args: [], shell: true, describe: file };- 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
- 写入文件
writes-files需留意13 处命中lib/cli-exec.js:155writeFileSync(tmp, content, "utf8");lib/cli-exec.js:157rmSync(tmp, { force: true });lib/html-render.js:31mkdirSync(dirname(htmlPath), { recursive: true });lib/html-render.js:32writeFileSync(mdPath, answer || "(no answer)", "utf8");- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意4 处命中lib/http-api.js:19const res = await fetch(`${API_BASE}/api/v1/system/status`, {lib/http-api.js:84const res = await fetch(`${API_BASE}${path}`, { ...init, signal: controller.signal });src/http-api.ts:21const res = await fetch(`${API_BASE}/api/v1/system/status`, {src/http-api.ts:90const res = await fetch(`${API_BASE}${path}`, { ...init, signal: controller.signal });- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 读取环境变量
reads-env一般26 处命中lib/cli-exec.js:54env: opts.env ? { ...process.env, ...opts.env } : process.env,lib/config.js:11export const SSH_HOST = process.env.DEEPTUTOR_SSH_HOST ?? "";lib/config.js:12export const API_BASE = process.env.DEEPTUTOR_API_BASE ?? "http://127.0.0.1:8001";lib/config.js:14export const LOCAL_BIN = process.env.DEEPTUTOR_LOCAL_BIN ?? "deeptutor";- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 读取文件
reads-files一般16 处命中lib/html-render.js:28if (!existsSync(HTML_DOC_SCRIPT)) {scripts/md-to-html.js:336md = fs.readFileSync(inputFile, "utf8");scripts/md-to-html.js:339md = fs.readFileSync(0, "utf8"); // stdinscripts/md-to-html.js:358const templatePath = templateCandidates.find((p) => fs.existsSync(p));- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 接触凭据或密钥
credentials一般3 处命中lib/config.js:46" Verify passwordless SSH login works (ssh alias + BatchMode)\n" +skills/deeptutor/README.md:96| Connection timeout / host resolution failure | ① Check `DEEPTUTOR_SSH_HOST` is set and SSH passwordless login works ② …src/config.ts:54" Verify passwordless SSH login works (ssh alias + BatchMode)\n" +- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 7 |
| 以 shell 执行命令 | shell-exec | 高关注 | 1 |
| 写入文件 | writes-files | 需留意 | 13 |
| 发起网络请求 | network | 需留意 | 4 |
| 读取环境变量 | reads-env | 一般 | 26 |
| 读取文件 | reads-files | 一般 | 16 |
| 接触凭据或密钥 | credentials | 一般 | 3 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 29 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)