D

dsh-harbor-evolution

github.com/istarwyh/harbor-self-evolving

v0.10.4 会话与记忆 可执行外部程序写入文件可终止进程

DeepSeek Harness plugin and Skill for Harbor Candidate and Historical Session evaluation workflows.

该插件尚未翻译,显示作者原文。

deepseek-harnessdsh-pluginharboragent-evaluationagent-evolutioncordis
分类
session
发布
2026-10-04
版本
v0.10.4

检测报告

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

能力清单

  • 可执行外部程序spawns-processes高关注2 处命中
    • lib/bounded-process.js:1import { spawn } from 'node:child_process'
    • lib/process.js:1import { spawn } from 'node:child_process'
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 写入文件writes-files需留意34 处命中
    • lib/action-drafts.js:34if (create) await mkdir(current, { mode: 0o700 }).catch(e => { if (e.code !== 'EEXIST') throw e })
    • lib/action-drafts.js:196await writeFile(path.join(directory, `${operationId}.${event.sequence}.json`), JSON.stringify(next, null, 2), { flag: 'w…
    • lib/action-drafts.js:236await writeFile(path.join(directory, `${operationId}.${sequence}.json`), JSON.stringify(next, null, 2), { flag: 'wx', mo…
    • lib/action-drafts.js:244await writeFile(claimFile, JSON.stringify({ operationId, sessionId: owner.sessionId }), { flag: 'wx', mode: 0o600 }).cat…
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 可终止进程kills-processes需留意4 处命中
    • lib/bounded-process.js:97try { process.kill(-child.pid, 0); return true }
    • lib/bounded-process.js:105try { process.kill(-child.pid, signal); return }
    • lib/diagnostic-observation.js:109try { process.kill(-pid, 0); return 'running' }
    • lib/diagnostic-observation.js:112try { process.kill(pid, 0); return 'running' }
    • 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
  • 接触凭据或密钥credentials一般173 处命中
    • lib/candidate-runtime.js:107if (typeof entry.resolved !== 'string' || !entry.resolved.startsWith('https://') || /[\x00-\x20\x7f\\]/.test(entry.resol…
    • lib/candidate-runtime.js:108throw new Error(`package-lock.json ${location} requires an HTTPS resolved package URL without credentials, query, or fra…
    • lib/candidate.js:13const CREDENTIAL_FILES = new Set([
    • lib/candidate.js:15'credentials.json',
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取文件reads-files一般41 处命中
    • lib/action-drafts.js:54return { value: JSON.parse(await handle.readFile('utf8')), info }
    • lib/action-drafts.js:278const claim = !info.isSymbolicLink() && info.isFile() && info.size < 1024 ? JSON.parse(await readFile(claimFile, 'utf8')…
    • lib/action-drafts.js:348const ids = (await readdir(directory)).filter(name => /^hop_[a-f0-9-]{36}\.1\.json$/.test(name)).map(name => name.slice(…
    • lib/candidate-runtime.js:42return readFile(absolute)
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般15 处命中
    • lib/bounded-process.js:78env: dockerDesktopAwareEnv(options.env ?? process.env),
    • lib/diagnostic-observation.js:131environment = hostMode ? process.env : await pinDiagnosticEnvironment(runProcess, process.env)
    • lib/diagnostic-runner.js:84_environment() { return { ...process.env, HARBOR_TELEMETRY: '0', ...(this.config.pythonPath ? { PYTHONPATH: this.config.…
    • lib/evolution.js:149env: { ...process.env, ...(config.pythonPath ? { PYTHONPATH: config.pythonPath } : {}) },
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般2 处命中
    • lib/ui-context.js:232for (const field of ['baseline', 'candidate', 'comparisonDigest']) require(field)
    • lib/ui-context.js:236for (const field of ['baseline', 'candidate', 'policy', 'policyVersion', 'policyDigest', 'reportDigest']) require(field)
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 文中出现远程脚本地址remote-url-reference一般1 处命中
    • README.md:9Requirements: Node.js 22+, pnpm, and [uv](https://docs.astral.sh/uv/). Docker is not required for the default Host mode.…
    • 只是文本里出现了远程脚本地址,没有看到加载它的调用。多半是文档或注释;若确实可疑,搜一下这个地址在包里的其他出现位置。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注2
写入文件writes-files需留意34
可终止进程kills-processes需留意4
接触凭据或密钥credentials一般173
读取文件reads-files一般41
读取环境变量reads-env一般15
动态加载模块dynamic-import一般2
文中出现远程脚本地址remote-url-reference一般1

这份报告的口径

扫描读的是包里的源码,全程不执行第三方代码。 本次读了 79 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。

依赖安全公告

已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)

← 返回全部插件