D

dsh-issue-reporter

github.com/GooDAnDReaDY/dsh-issue-reporter

v0.1.13 其他 可执行外部程序写入文件发起网络请求

面向 DeepSeek Harness 的安全 GitHub 插件 Bug 报告与隐私脱敏工具

作者原文(英文)

Preview and submit actionable GitHub bug reports from DeepSeek Harness

中文简介由 DeepSeek 模型翻译,仅供参考。

分类
other
发布
2026-10-06
版本
v0.1.13

检测报告

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

能力清单

  • 可执行外部程序spawns-processes高关注2 处命中
    • lib/attachments.js:1import { execFile } from 'node:child_process'
    • lib/plugin-updater.js:1import { spawn } from 'node:child_process'
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 写入文件writes-files需留意2 处命中
    • lib/attachments.js:160await writeFile(bodyPath, draft.body || '', { encoding: 'utf8', mode: 0o600 })
    • lib/attachments.js:179await writeFile(filePath, file.data, { mode: 0o600 })
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意2 处命中
    • lib/client.js:340const res = await fetch(path, {
    • lib/plugin-updater.js:151const response = await fetch(`${registry.replace(/\/$/, '')}/${encodeURIComponent(packageName)}/latest`, {
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 接触凭据或密钥credentials一般192 处命中
    • lib/routes/agent-tool.js:3logOptionalFailure, authorizeRequest, writeJson, readJson, catalogFromLoader, credentialConfigured, credentialValue, pub…
    • lib/routes/agent-tool.js:4credentialRef, clearGitHubCredential, createGitHubClient, randomUUID, createDeviceFlowState, deviceFlows,
    • lib/routes/agent-tool.js:5forgeError, isDeviceFlowExpired, nextDevicePoll, serializeCredential, parseForgeRepository, parseGitHubRepository,
    • lib/routes/agent-tool.js:6composeIssueDraft, prefilledIssueUrl, giteaApiFor, withGitHubCredential, apiFor, findDuplicateIssues,
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取环境变量reads-env一般22 处命中
    • lib/attachments.js:84PATH: process.env.PATH || '',
    • lib/attachments.js:85HOME: process.env.HOME || '',
    • lib/attachments.js:86USERPROFILE: process.env.USERPROFILE || '',
    • lib/attachments.js:87SYSTEMROOT: process.env.SystemRoot || process.env.SYSTEMROOT || '',
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 读取文件reads-files一般5 处命中
    • lib/index.js:116const value = JSON.parse(await readFile(packagePath, 'utf8'))
    • lib/plugin-updater.js:74if (!existsSync(entry)) return undefined
    • lib/plugin-updater.js:77if (existsSync(manifestPath)) {
    • lib/plugin-updater.js:79const manifest = JSON.parse(readFileSync(manifestPath, 'utf8'))
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注2
写入文件writes-files需留意2
发起网络请求network需留意2
接触凭据或密钥credentials一般192
读取环境变量reads-env一般22
读取文件reads-files一般5

这份报告的口径

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

依赖安全公告

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

← 返回全部插件