DeepSeek Harness plugin

dsh-plugin-security-audit

DeepSeek Harness plugin: run a live security health check on the deployment (credential file permissions, process-env secrets, permission/approval mode, telemetry, anonymous id, LAN exposure, sandbox

Jump to install

Source facts

Repository
truelove-dreamer/dsh-plugin-security-audit
Latest update
Aug 15, 2026
Category
Development & Runtime
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/truelove-dreamer/dsh-plugin-security-audit
Plugin: dsh-plugin-security-audit
Author: truelove-dreamer

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer2 files
README.mdSource · read only

dsh-plugin-security-audit

DeepSeek Harness 插件:对当前部署运行实时安全体检,输出 PASS/WARN/FAIL 报告。

背景

我们审计 DeepSeek Harness 0.1.0-rc.6 时发现了 2 条 critical + 17 条 major(凭据保密边界、Windows 沙箱语义、审批可被 LAN 旁路、glob/grep 绕过沙箱、匿名 ID 外发等)。这个插件把那些发现变成可重复运行的健康检查:对任意部署跑一遍,逐项给出严重级、详情,以及对应的上游讨论帖链接。

检查项

id检查对应发现
credential_file_permissions凭据文件 0600(POSIX)/ACL 继承(Windows,SB3)讨论 962
process_env_secrets进程环境中的 API key(C2:/proc/<pid>/environ 可读)讨论 962
permission_mode / approval_policy权限模式与审批策略(danger-full-access → never)
telemetry_mode遥测模式(FULL 原始导出无脱敏,L3)讨论 962
anonymous_id.anonymous-user-id 存在性(telemetry 关闭仍外发,M14)讨论 952
lan_exposurewebserver 绑定(0.0.0.0 → critical;trustedHosts → warn,W1/W3)讨论 950
sandbox_backend当前平台的沙箱后端是否挂载

每条检查还附 recommendations(安装 search-gate / credential-guard、收紧 ACL、scrub 环境变量等可执行建议)。

安装

dsh plugin --profile web add dsh-plugin-security-audit

挂载(profile cordis.patch.yml 或 agent preset):

- id: security-audit
  name: dsh-plugin-security-audit

使用

  • 模型工具security_audit(无参数)
  • 斜杠命令/security-audit

示例输出:

# Security audit — FAIL (3/8)
critical=1 warn=2 info=0 ok=5
[CRITICAL] credential_file_permissions: "/home/alice/.dsh/.credentials.yaml" is group/other-readable (mode 644)...
         ref: https://github.com/deepseek-ai/deepseek-harness/discussions/962
[WARN] process_env_secrets: API keys are present in the harness process environment (DEEPSEEK_API_KEY)...
...
Recommendations:
  1. Mount dsh-plugin-search-gate to stop glob/grep reading outside the workspace (discussion 951).
  2. Mount dsh-plugin-credential-guard to deny model reads of credential stores and .env (mitigates discussion 962).
  ...

设计说明

  • 检查逻辑全部在 lib/checks.js 的纯函数 runAudit(facts) 里,插件只负责从 ctx + node 收集 facts 快照——可单测、确定性npm test)。
  • 报告把每条发现映射到已发布的上游讨论帖,方便用户与维护者跟进。
  • 不修改任何配置;纯只读体检。

边界

  • 检测不了"是否已挂载 search-gate / credential-guard"(guard 注册不可枚举),只在建议里提示安装。
  • 检查基于进程可见的事实(env、文件、ctx 服务);不含跨进程/内核级探测。