DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

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

dsh-security-scan

Security Scan

用于 DeepSeek Harness 的机密信息和危险模式扫描器——security_scan 工具,可查找泄露的 API 密钥、令牌、私钥和凭据文件,并进行完整脱敏。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:ben7am1n/dsh-security-scan#b212b9af646b2c4417172d712cab46d3ea851a9c
README兼容性版本

兼容性与来源证明

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

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/8/21

版本

0.1.0stable
2026/8/21

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
查看源码 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Doctor@linxin666/dsh-doctorDSH 配置档案的事务性救援模式,配备受监督的启动器、隔离的恢复容器、确定性修复、健康监控以及本地 Web 恢复控制台Pocketdsh-pocket把 DeepSeek Harness 装进你的口袋:一个包、一个设置页,手机扫码即同步访问电脑上的 DSH(局域网 + 公网,实时同屏)。DSCODE@toddzheng024/dscode-bundle完整的 DeepSeek 编码代理,支持持久化 shell、Ultra 协作和自动权限审查。Auto Reviewdsh-auto-review针对 DeepSeek Harness 审批请求的第二模型 AI 自动审查:只读审查子代理在审批应答链上决定允许或拒绝,并采用故障关闭回退机制和完整的会话日志审计。

README

dsh-security-scan

Secret & dangerous-pattern scanner for DeepSeek Harness — one security_scan tool that walks your files and reports leaked API keys, tokens, private keys, and credential-bearing connection strings. Zero runtime dependencies (pure Node built-ins).

Overview

dsh-security-scan gives the harness a model-facing security hygiene tool. Point it at a checkout (or your whole workspace) and it finds secrets that should never have been committed — then reports them redacted, so raw key material never reaches the model context or the logs.

Who is it for?

  • Anyone who has ever pushed a .env or pasted a token into a config file.
  • Teams that want a cheap, built-in secret gate before commits or before handing a repo to an agent.
  • Developers who want a readable reference for writing a model-facing tool plugin (bare ToolDefinition, no framework).

What it detects

KindPattern (examples)
AWS access keyAKIA + 16 base62 chars
GitHub tokenghp_ + 36 chars
OpenAI-style keysk- + 20+ chars
Bearer tokengeneric Bearer inline credentials
Private key-----BEGIN ... PRIVATE KEY----- blocks
DB connection stringmysql:// / postgres:// / mongodb:// with an embedded password
Dangerous file.env with suspicious values; *.pem / *.key / *.p12 artifacts

What it does not do (yet)

  • No git-history scan, no remediation, no network checks. This is a filesystem scanner, not a full security audit suite.
  • No tools/pre-execute enforcement gate (planned: block writes that would re-introduce a known secret). See Development.

Compatibility

  • Requires Node.js ≥ 22.19 (uses node:fs/promises and global fetch-free built-ins only).
  • Built and verified against @deepseek-ai/dsh@0.1.0-rc.6 / @deepseek-ai/cordis@^4.0.1.
  • Last verified: 2026-08-14.
  • dsh is in developer preview; re-verify after harness updates. The plugin only depends on ctx.tools.register (a stable extension point) and @deepseek-ai/dsh-tools types.

Install / Uninstall

Install into a dsh profile (local checkout):

cd /path/to/deepseek-harness
pnpm dsh plugin --profile web add /path/to/dsh-security-scan

From GitHub (source install — pnpm runs the prepare script, so allow it once):

pnpm dsh plugin --profile web add github:<you>/dsh-security-scan
# pnpm ≥10 blocks the build script on first install; copy the printed package key
# into <profile>/pnpm-workspace.yaml under allowBuilds, then re-run.

Uninstall:

pnpm dsh plugin --profile web remove dsh-security-scan

Quick start

Install the bundle, then ask the agent:

Run security_scan on this repository and summarize the high-severity findings.

Or trigger it directly through the harness tools. Default behavior: scan . (relative to the harness cwd), skip node_modules/.git/dist/build, skip files over 1 MB, and cap 10 findings per file.

Example output shape (secrets redacted):

[HIGH] github-token        config/keys.ts:12  ghp_ab12****yz
[HIGH] private-key         deploy/keys.pem (file artifact)
[LOW]  db-connection-string src/db.ts:88      postgres://user:****@host/db
Scan complete: 412 files scanned, 3 findings (HIGH: 2, LOW: 1)

Configuration

All keys live under the dsh-security-scan row's config:

KeyTypeDefaultMeaning
pathsstring[]['.']Directories to scan (relative to harness cwd).
ignoredstring[]['node_modules','.git','dist','build']Directory basenames skipped during traversal.
maxFileSizeBytesnumber1048576Files larger than this are skipped.
maxMatchesPerFilenumber10Max findings reported per file.

Permissions & data

  • Read-only: the scanner only reads files; it never writes, edits, or deletes.
  • Redaction: every matched secret is masked before it leaves the scanner (first 4 / last 2 characters shown). Raw key material does not reach the model context or logs.
  • Scope: scanning is bounded to the configured paths and respects the ignore list; it does not follow symlinks out of the tree.
  • No network: detection is purely local regex scanning; nothing is uploaded or sent anywhere.

Troubleshooting

SymptomCauseFix
Tool reports zero files scannedpaths points at a non-existent directory relative to harness cwdUse an absolute path or run from the intended directory
False positives on example keysTest fixtures often contain placeholder keys (AKIAIOSFODNN7EXAMPLE is AWS's documented example)Review findings manually; the tool reports, it does not judge intent
Slow scan on huge reposRegex over many filesRaise ignored coverage (e.g. add vendor, third_party) or reduce paths
security_scan not visible to the modelPlugin loaded without the tools serviceVerify inject: ['tools'] is present in the installed lib/index.js (rebuild after edits)

Development

pnpm install
pnpm run typecheck     # tsc --noEmit
pnpm run build         # tsc → lib/
pnpm run test          # vitest (19 tests)

Structure:

  • src/index.ts — plugin entry, scanner, and the security_scan tool; detection regexes and the redaction helper are exported for unit tests.
  • tests/ — redaction, ignore-directory, and detection-vocabulary coverage.
  • cordis.patch.yml — the bundle patch layer that mounts the plugin row.

Design notes:

  • Detection is intentionally regex-based and conservative — better to flag a false positive than to miss a real secret. Add patterns as new SecretKinds and pin them in tests.
  • Roadmap: a tools/pre-execute enforcement gate (reject writes that reintroduce a known secret) and git-history scanning.

License & security

MIT. Report security issues privately via the repository's security advisory (or open an issue without secrets). The scanner runs entirely on the operator's machine with read-only access; it sends nothing anywhere.