Back to directory

dsh-defend

In a curated listMaintenance: Active

perrylink/dsh-defend

Prompt-injection, jailbreak and secret-leak defense for DeepSeek Harness: Aho-Corasick detection with allow/ask/block interception and sanitized audit events. Maintenance status: FROZEN since 2026-10-05.

View on GitHubHomepage
$ dsh plugin --profile web add "github:PerryLink/dsh-defend#main"

25

stars

1

forks

TypeScript

Language

Apache-2.0

License

2026-08-16

Created

2026-11-01

Last push

A DSH host plugin for destructive-delete checks, prompt-injection, jailbreak, and secret-leak detection.

DSH integration

Native runtime

Author-claimed

Safety audit

Unaudited

Last verified

2026-09-29

License

Apache-2.0

01What can it help you accomplish?

  • Guard DeepSeek Harness messages, tool arguments, results, and recursive delete commands against documented detection families.

    Allow, ask, block, deny, or corrective-feedback decisions through official DSH seams, with a `/defend` summary and `defend_report` tool.

    DeepSeek Harness operators who want deterministic safeguards around agent interactions and destructive shell commands.

  • Review detection activity without exposing matched text.

    In-memory report totals and recent-match metadata without matched content.

    Users who need a DSH command or tool surface for recent defense activity.

02How to install into DeepSeek Harness

Prerequisites

  • Node.js `^22.19.0 || >=24.0.0`.

Installation steps

  1. 01

    Run `dsh plugin --profile web add "github:PerryLink/dsh-defend#main"` or `dsh plugin --profile web add dsh-defend`.

    $ dsh plugin --profile web add "github:PerryLink/dsh-defend#main"

  2. 02

    Restart and run `dsh --profile web --dump-config | grep -A3 'id: dsh-defend'`.

    $ dsh --profile web --dump-config | grep -A3 'id: dsh-defend'

Verify the integration

  • Use `dsh --profile web --dump-config | grep -A3 'id: dsh-defend'` to verify the profile row.

Rollback

  • Run `dsh plugin --profile web remove dsh-defend`.

03DSH integration and capability boundaries

DSH integrationNative runtime

Pure-host DeepSeek Harness plugin with destructive-delete and detection layers on official interception points.

  • Destructive-delete guard

    Recursive delete shell commands at `tools/pre-execute`.→Refusal unless documented path conditions are met; dry-run markers pass.

    Can deny or ask for guarded destructive shell commands.
  • Detection layer

    Inbound messages, tool arguments, and tool results.→Allow, ask, or block decisions at three documented interception points.

    Can reject steps, deny tool execution, or provide corrective feedback.

04Who is it for? When not to use it?

Good for

  • DeepSeek Harness operators who want deterministic safeguards around agent interactions and destructive shell commands.
  • Users who need a DSH command or tool surface for recent defense activity.

Not for

  • The plugin produces decisions on official seams but does not replace the sandbox or approval systems as enforcement authorities.
  • Novel phrasing, lookalike-Unicode encodings, and multi-step attacks can evade the documented rule library.
  • The documented opt-in unmarked session audit can make a session unresumable on affected hosts.

05Compatibility, maintenance and safety notes

  • The plugin produces decisions on official seams but does not replace the sandbox or approval systems as enforcement authorities.
  • Novel phrasing, lookalike-Unicode encodings, and multi-step attacks can evade the documented rule library.
  • The documented opt-in unmarked session audit can make a session unresumable on affected hosts.
2026-08-162026-09-25v0.3.16

Apache-2.0 · README-backed author documentation

06Frequently asked questions

Does dsh-defend replace DSH sandbox or approvals?

No. The README says it only produces deny, ask, and block decisions on official seams; sandbox and approval systems remain the enforcement authorities.

What does dsh-defend scan?

The documented interception points cover inbound user messages, tool arguments, and tool results; the delete guard runs before guarded tool execution.

Can the detector catch every attack?

No. The README explicitly lists novel phrasing, lookalike-Unicode encodings, and multi-step attacks as possible detection gaps.

08Data and sources

  • Author-claimedgithub.com85473a6b67c8…

    **Prompt-injection, jailbreak, and secret-leak defense for DeepSeek Harness.**

This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-09-29. Found an error? Submit a correction.

🏆

Best DeepSeek Harness Plugins

Twelve plugins worth installing first — picked from the whole catalog, across every category.

DSH Plugins is an independent community directory of DeepSeek Harness plugins. Not affiliated with or endorsed by DeepSeek. Third-party plugins are not security-audited — review the source before installing.

New DeepSeek Harness plugins, weekly. No spam.