PerryLink DSH Plugin Family

Defend

Prompt-injection, jailbreak, and secret-leak defense for DeepSeek Harness: Aho-Corasick detection with allow/ask/block interception, sanitized audit events, and a recursive-delete pre-execution gate.

npm package
dsh-defend
Category
Development & quality
Version
0.3.20 from package.json
Licence
Apache-2.0 from package.json
Runtime
Node ^22.19.0 || >=24.0.0, DeepSeek Harness >=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0
Repository
PerryLink/dsh-defend

What it is

Defend is a DeepSeek Harness plugin in the development & quality group, published to npm as `dsh-defend`. Prompt-injection, jailbreak, and secret-leak defense for DeepSeek Harness: Aho-Corasick detection with allow/ask/block interception, sanitized audit events, and a recursive-delete pre-execution gate.

Version 0.3.20, licensed Apache-2.0, Node ^22.19.0 || >=24.0.0, DSH >=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0.

The repository is available as a local checkout, so the version and licence above are read from the package manifest that is actually published rather than from a registry copy.

Other plugins in the same group: Observe, Plugin Doctor, Plugin Kit, Plugin Upgrade, Score, Test Drive.

Install

Install through the dsh plugin command; the two shells differ only in how the second line confirms the result.

bash / sh

dsh plugin --profile default add dsh-defend
dsh --profile default --dump-config | grep 'dsh-defend'

PowerShell

dsh plugin --profile default add dsh-defend
dsh --profile default --dump-config | Select-String 'dsh-defend'

Substitute your own profile name for default, then restart the session — installation alone does not hot-load the plugin.

Full documentation

This page covers what the plugin is, how to install it, and where it comes from. Configuration keys, tool schemas and the full manual live in the repository.

Full documentation → GitHub · 中文说明

More