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.

Secret Scan — DSH Plugin for DeepSeek Harness
← Plugins
S

@deepwhale-cn/dsh-secret-scan

Secret Scan

Scan for secrets and sensitive information: find API Keys, tokens, private keys, credential files, and internal domains in code before committing or releasing. Output is redacted by default and can be used as a pre-commit / CI gate.

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

npx -y @deepseek-ai/dsh plugin --profile web add github:feely0208/dsh-secret-scan#e3df86148b87d310a7a1bac40a39ccd50d167de5
READMECompatibilityVersions

Compatibility and provenance

Secret Scan is published as @deepwhale-cn/dsh-secret-scan and currently resolves to version 0.2.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
10/16/2026

Versions

0.2.0stable
10/16/2026
0.1.0stable
10/16/2026

Related plugins

Loading related plugins…

Latest
0.2.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/16/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
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in security-access.

Cc Safety Netcc-safety-netA coding agent CLI hook - block destructive commands and secret file accessCodex Subscriptiondsh-codex-subscriptionUse ChatGPT and Codex subscriptions in DeepSeek Harness with OAuth, quota, safe resets, web search, images, and Fast modeMcp Connectordsh-mcp-connectorDeepSeek Harness MCP Connector: connect servers, search tools across active connections, and troubleshoot discovery. Includes a continuously updated catalog; supports OAuth 2.0 PKCE, API keys, Streamable HTTP/stdio, and mcpServers JSON import.Experimental Auto Review@deepseek-ai/dsh-experimental-auto-reviewPer-tool LLM authorization review for the DeepSeek Harness Auto permission preset

README

@deepwhale-cn/dsh-secret-scan

密钥与敏感信息扫描 —— 给 DeepSeek Harness 用的 skill 插件。

提交前、发布前、开源前,把不该出现在代码里的东西找出来。

这是这一组技能里唯一通用的(不限中国大陆)—— 因为"密钥进了仓库"是所有技术团队都会踩的坑。

它能扫出什么(7 条规则)

技能负责「怎么处理」,规则引擎负责「有没有」。一条命令出证据:

dsh-secret-scan --root <项目路径>   # 扫一遍
dsh-secret-scan --demo             # 看内置演示样本
dsh-secret-scan --list-rules       # 列出规则与依据
规则查什么级别
SECRET-PRIVATE-KEYPEM 私钥块(标签 + 后面真跟着密钥正文)严重
SECRET-AWS-AKIDAKIA + 16 位高
SECRET-GITHUB-TOKENgh[pousr]_ / github_pat_高
SECRET-SLACK-TOKENxox[baprs]- / xapp-高
SECRET-STRIPE-LIVEsk_live_ / rk_live_高
SECRET-CREDENTIAL-LITERAL变量名含 secret/token/password + 高熵字面量中
SECRET-STRIPE-PUBLISHABLEpk_live_ —— Stripe 官方说可公开,故单列低级别低

输出不落原值:正则只消费前缀或变量名,密钥正文放在零宽断言里, 所以报告里的证据是 AKIA / ghp_ / secretAccessKey 这种,不含密钥本身。

只写标签不写正文不报(文档里贴格式示意不误报);process.env.SECRET 这类不报。

已知边界:.pem / .key / .p12 文件本体不被引擎当文本读(core 的扩展名名单没收录), 直接放 server.pem 会漏;同样私钥写成 id_rsa 或贴进代码/文档则能命中。报告会如实列出「跳过文件」。

它查什么

类别内容
🔴 高置信令牌云厂商 Access Key(AKIA/LTAI/AKID)、GitHub/npm/Slack 令牌、Google API Key
🔴 私钥与证书id_rsa、*.pem/*.p12/*.jks,以及嵌在代码里的 PEM 私钥内容
🔴 凭据文件进了 git.env、credentials.json、.npmrc 等是否已被 git ls-files 跟踪
🟠 配置里的敏感赋值password= / token= / api_key= 这类硬编码(误报较多,逐条看)
🟠 内部信息内网 IP(10. / 192.168. / 172.16-31.)、内部域名(.corp / .internal)

退出码 1 = 有高置信命中,可直接挂到 pre-commit 或 CI 上。

两条刻意的设计

1. 输出默认打码(只留前后 4 位)。

扫描工具把完整密钥打进终端或日志,等于换个地方又泄露一次。要看全必须显式 --reveal, 而且别把输出存进文件或贴进聊天。

2. 技能正文里,处置顺序比扫描本身更重要:

1. 轮换密钥  →  2. 清理代码  →  3. 再决定要不要改写历史

删代码不会让已泄露的密钥失效 —— 它还在 git 历史、已推送的远端副本、CI 日志与缓存、 你的 shell 历史和编辑器备份里。判断标准很简单:这个密钥有没有离开过你的机器?

一个只教人"删掉就好"的工具,是在帮倒忙。

误报怎么办

文档里的示例值(your-api-key-here、sk-example-...)已自动过滤。测试用的假密钥建议 写成含 example / dummy 的明显假值,同样会被过滤。

剩下的 🟠 逐条看上下文 —— 但别因为误报多就不看报告了,那正是这类工具失效的方式。

安装

dsh plugin --profile <profile> add @deepwhale-cn/dsh-secret-scan

用法

# 脚本路径由插件注册时注入到技能正文里,或到安装目录找 skill/scan.sh
scan.sh --dir /path/to/repo          # 默认打码
scan.sh --dir /path/to/repo --reveal # ⚠️ 打印完整密钥,仅排障时用

与相邻技能的边界

包管什么
dsh-secret-scan内部信息进了代码仓库(该不该提交、提交了怎么补救)
dsh-cn-compliance 的 I 类内部文件的公网暴露面(被搜索引擎或公开链接读到)

两者的交集是"内部信息",但一个看版本控制,一个看暴露面。

许可

MIT


深鲸网安守护系列(共 31 个)

一个插件做一件事。安全问题是链式的 —— 配套用才完整。

国内合规 | 等保对照 · 日志留存 · 备案公示 · 用户同意 · 个人信息权利 · 未成年人保护 · 影响评估 · 数据分类分级 · 算法备案 · 数据出境 · 国密合规 · AI 内容标识

AI 与 Agent 治理 | AI 输出信任 · 外部内容信任 · MCP 安全 · Agent 权限 · 策略核对 · 可疑指令

数据与凭据 | 敏感数据 · 密钥轮换 · 数据留存 · 配置审计 · 密钥扫描

供应链与构建 | 开源许可 · 依赖投毒 · CI 安全 · 工具审查 · 物料清单

权限与应急 | 最小权限 · 告警外发 · 应急证据包

都在 DSH 插件市场(dsh-plugin.org)、npm 和 deepwhale.org.cn/guard.html 上。