DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Code Security — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

@dsh-so/dsh-code-security

Code Security

DeepSeek Harness security bundle: auto-audits newly installed plugins with the harness's own model (settings panel + batch tools), and ships the Security-Audit-Mode agent preset with the OpenAI Codex Security workflow skills and dsh_security_* scan tools. One package, one `dsh plugin add`.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add @dsh-so/dsh-code-security@0.2.1
READMECompatibilityVersions
Gate main panel

Compatibility and provenance

Code Security is published as @dsh-so/dsh-code-security and currently resolves to version 0.2.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
8/26/2026

Versions

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

Related plugins

Loading related plugins…

Latest
0.2.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
1.8 MB
Files
119
Surface
web
License
Apache-2.0
Source
npm
GitHub
★ 2
Weekly downloads
0
Last push
8/26/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in security-access.

Doctor@linxin666/dsh-doctorTransactional rescue mode for DSH profiles with a supervised launcher, isolated recovery capsule, deterministic repairs, health monitoring, and a local Web recovery consoleMobiledsh-mobileDeepSeek Harness mobile adaptation and secure access plugin, supporting LAN, remote connections, Android App, and mobile browsers.DSCODE@toddzheng024/dscode-bundleA complete DeepSeek coding agent with persistent shell, Ultra collaboration and automatic permission review.Auto Reviewdsh-auto-reviewSecond-model AI auto-review for DeepSeek Harness approval requests: a read-only reviewer subagent decides allow/deny on the approval answerer chain, with fail-closed fallback and full session-log audit.

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