DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Code Security — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

@dsh-so/dsh-code-security

Code Security

DeepSeek Harness 安全套件:使用 harness 自有模型自动审计新安装的插件(设置面板 + 批处理工具),并附带包含 OpenAI Codex Security 工作流技能和 dsh_security_* 扫描工具的 Security-Audit-Mode agent 预设。一个包,一条 `dsh plugin add`。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add @dsh-so/dsh-code-security@0.2.1
README兼容性版本
Gate main panel

兼容性与来源证明

Code Security 以 @dsh-so/dsh-code-security 发布,当前版本为 0.2.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/8/26

版本

0.2.1stable
2026/8/26
0.2.0stable
2026/8/25

相关插件

正在加载相关插件…

最新版
0.2.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
1.8 MB
文件数
119
Surface
web
许可证
Apache-2.0
发布源
npm
GitHub
★ 2
周下载
0
最近提交
2026/8/26
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 security-access 分类下经过校验的插件。

Doctor@linxin666/dsh-doctorDSH 配置档案的事务性救援模式,配备受监督的启动器、隔离的恢复容器、确定性修复、健康监控以及本地 Web 恢复控制台Mobiledsh-mobileDeepSeek Harness 移动端适配与安全访问插件,支持局域网、远程连接、Android App 和手机浏览器。DSCODE@toddzheng024/dscode-bundle完整的 DeepSeek 编码代理,支持持久化 shell、Ultra 协作和自动权限审查。Auto Reviewdsh-auto-review针对 DeepSeek Harness 审批请求的第二模型 AI 自动审查:只读审查子代理在审批应答链上决定允许或拒绝,并采用故障关闭回退机制和完整的会话日志审计。

README

@dsh-so/dsh-code-security — Security audit for DSH

English | 中文

Audit what enters your profile; arm the sessions that scan your code.

Two independent layers, one package:

  • Gate (process-level, always-on): every newly installed plugin is automatically static-audited with the harness's own model — zero external credentials. Findings land in a bilingual settings panel and on-disk reports before you ever launch a session with them.
  • Security Audit Mode (session-level, opt-in): a selectable agent preset that arms conversations with the 13 OpenAI Codex Security workflow skills plus 5 native dsh_security_* scan tools.

Honest boundary: the gate audits plugins entering your profile; it does not police your own source code at runtime. The preset only adds capabilities when you pick it for a session. Neither layer blocks or rewrites anything by itself.

Wraps OpenAI codex-security (Apache-2.0) into DeepSeek Harness (DSH). Not an official OpenAI product and not affiliated with OpenAI (Codex / Codex Security are OpenAI trademarks; this project uses neutral naming).

  • 🛡 Gate configuration table: docs/gate.en.md (中文版:docs/gate.zh.md)
  • 🔎 Related: dsh-plugin-vet — deterministic static rule scans at install time; dsh-code-security adds model-based behavioral audits plus an in-session deep scanning mode. The two are complementary defense-in-depth layers.

Architecture

One package, two layers living at different levels of the harness:

dsh-code-security architecture: one package feeding a process-level always-on gate layer and an opt-in session-level Security Audit Mode preset
  • The gate rides the profile bundle channel: one command registers it permanently; every boot re-applies its patch layer.
  • The preset is discovered from the user preset root (~/.dsh/.agent-presets/) — currently the only placement point DSH exposes for presets, hence the manual copy.

Installation

Two steps — step 2 is optional: whether you want the in-session security scanning capability is up to you.

1. Mount the gate (required)

Process-level protection takes effect immediately: auto static audit of newly installed plugins, the "Settings → Security Audit" panel, audit reports.

# From a local checkout (current stage; run inside the project directory)
dsh plugin --profile web add .

Once the npm package is published, use the package name instead (no clone needed):

dsh plugin --profile web add @dsh-so/dsh-code-security

Requires pnpm. Activate chain: pnpm install → the manifest records dsh.profile.bundles → next boot composes the bundle layer and mounts the plugin (row id dsh-security-gate).

2. Unlock "Security Audit Mode" (optional)

Adds a selectable session capability for new sessions: 13 Codex Security workflow skills + 5 dsh_security_* session tools. The gate keeps every feature without it — add whenever needed.

Place preset/ into the user preset root (source matches your install method):

# Windows — source A: local checkout
Copy-Item -Recurse .\preset "$env:USERPROFILE\.dsh\.agent-presets\dsh-security"
# source B: in-package copy after npm install
Copy-Item -Recurse "$env:USERPROFILE\.dsh\profiles\web\node_modules\@dsh-so\dsh-code-security\preset" "$env:USERPROFILE\.dsh\.agent-presets\dsh-security"
# macOS / Linux — source A
cp -R preset ~/.dsh/.agent-presets/dsh-security
# source B
cp -R ~/.dsh/profiles/web/node_modules/@dsh-so/dsh-code-security/preset ~/.dsh/.agent-presets/dsh-security

Usage

Mode 1 — Security Audit Mode sessions (deep audits)

Security Audit Mode

Pick the preset in a new session, then ask for whole-repo scans, diff scans, finding triage, threat models, hardening proposals… The 5 dsh_security_* tools execute the @openai/codex-security CLI behind strict rails (literal argument quoting, workdir confinement, sub-command whitelist, timeouts).

Mode 2 — Gate auto-audit (process-level)

Gate main panel Audit report summary Finding details

Configuration

The gate row ships with sensible defaults and needs no config to work. To tune it, append an id-targeted override to ~/.dsh/profiles/web/cordis.patch.yml (whole-row replacement; takes effect after a DSH restart):

# ~/.dsh/profiles/web/cordis.patch.yml
- id: dsh-security-gate
  config:
    autoScan: true        # process-level auto audit (default true)
    intervalMs: 60000     # re-audit sweep interval
    progressLogMs: 15000  # console scan heartbeat; 0 = silent (default)

progressLogMs controls the console heartbeat printed while an LLM scan is streaming ([dsh-security-gate] scan <key> in progress: 45s, …). It is off by default so a busy console stays readable; set it to a millisecond value (e.g. 15000) to log a liveness line roughly that often. Scan start / completion / failure lines are always printed regardless. Full option table: docs/gate.en.md.


Security design (highlights)

  • Zero-auth by default: both paths use the host llm service (same session model routing); no external API keys. Optional engine: 'cli' delegates to the official scanner (its own auth).
  • Fail-closed payload integrity: the bundled payload carries a 107-entry SHA-256 manifest; any mismatch disables the tools instead of loading them.
  • Path confinement: scan/findings targets must canonicalize inside the session working directory (symlink-aware); file:// and remote URLs rejected; absolute-path exposure off by default (dsh_security_resources returns a path-free virtual listing).
  • Injection-safe CLI calls: literal argument quoting, admin-only cliCommand character whitelist, sub-command whitelist, 5-minute foreground timeout cap.
  • Triage memory: an audit baseline suppresses previously reviewed false positives across rounds.
  • Accessible panel: bilingual UI following DSH theme tokens; all status pills meet WCAG AA.

Full analysis: docs/gate.en.md.


Uninstall

Two reverse commands:

# Windows
dsh plugin --profile web remove @dsh-so/dsh-code-security
Remove-Item -Recurse -Force "$env:USERPROFILE\.dsh\.agent-presets\dsh-security"
# macOS / Linux
dsh plugin --profile web remove @dsh-so/dsh-code-security
rm -rf ~/.dsh/.agent-presets/dsh-security

Legacy leftovers (two-package / script installs): dsh plugin --profile web remove dsh-security-gate dsh-security-tools; old state dir <DSH_HOME>/dsh-security and old cache <DSH_HOME>/cache/dsh-code-security can be deleted manually.


Project structure

dsh-code-security/
├── index.js                  # gate host plugin (zero-dep cordis plugin, row id: dsh-security-gate)
├── client.js                 # Settings "Security Audit" panel (bilingual)
├── audit-baseline.json       # triage memory across audit rounds
├── cordis.patch.yml          # bundle patch (auto-mounted by dsh plugin add)
├── preset/                   # the Security-Audit-Mode preset tree
│   ├── agent.cordis.yml      #   preset composition (standard + dsh-security-tools row)
│   ├── preset.yml            #   preset metadata
│   ├── skills/dsh-security/  #   DSH adapter entry skill
│   ├── bundled/              #   upstream payload copy (skills/references/schemas/scripts/mcp)
│   └── plugins/dsh-security/index.js  # 5 dsh_security_* tools
├── docs/                     # gate.en/zh.md detailed gate docs
├── assets/                   # README images
└── README.md / README.zh.md

Development & publishing

Single npm package since 0.2.0 (Apache-2.0): one artifact carries the gate host plugin, the settings panel, the Security-Audit-Mode preset and the full bundled payload (107 files; the in-package integrity check keeps passing). package.json declares dsh.bundle.patch, so dsh plugin add appends it to the profile bundles layer stack automatically; the preset still goes into ~/.dsh/.agent-presets/ per platform convention (see step 2 above).

Legacy packages dsh-security-gate / dsh-security-tools are retired; installs migrate by removing them and adding this package.


License & naming

  • This project's structure/wrapper code: Apache-2.0.
  • preset/bundled/ content copyright OpenAI, Apache-2.0, from openai/codex-security.
dsh.so  dsh-code-security · © 2026 dsh.so · Apache-2.0