kingcharleslzy-ai/dsh-purge
C3dsh-purge Community · DeepSeek Harness 社区维护版:宿主兼容、状态诊断、提示词管理、更新与本机备份回滚。基于小杨 / YuJunZhiXue 的 dsh-purge。
★ 5.8k · kingcharleslzy-ai/dsh-purge source on GitHub · this plugin in the registry
kingcharleslzy-ai/dsh-purge is a DeepSeek Harness plugin rated C3 — powerful capability combined with sensitive behavior. It patches the dsh runtime, can rewrite the system prompt, gates tool execution, executes system commands.
Installable plugin — declares a dsh.bundle manifest
What it can do
| Capability | Flag | Evidence |
|---|---|---|
| patches the dsh runtime | runtime_patch | ./cordis.patch.yml |
| can rewrite the system prompt | prompt_surface | systemPrompt, webServer, system-prompt/assemble, tools/pre-execute |
| gates tool execution | tool_gate | hook: tools/pre-execute |
| executes system commands | exec | ×107 in authored code, e.g. bin/community.js:4, bin/community.js:4 |
| uses eval / new Function | eval | ×1 in authored code, e.g. scripts/check-preset-runtime.mjs:26 |
| base64 decoding in build output only | base64_decode_bundled | ×5 in build output only, e.g. lib/index.js:2767, lib/skills.js:705 |
| starts a network server | net_server | ×2 in authored code, e.g. scripts/check-status-runtime.mjs:36, scripts/check-status-runtime.mjs:37 |
| reads credential-class env vars | token_env | GH_TOKEN |
Tool registrations
67 confirmed registration point(s); analysis is incomplete.
lib/index.js:1740tools.registerlib/index.js:1761tools.registerlib/index.js:1797tools.registerlib/redteam/tools.js:418tools.registerlib/redteam/tools.js:447tools.registerlib/redteam/tools.js:480tools.registerlib/redteam/tools.js:496tools.registerlib/redteam/tools.js:739tools.registerlib/redteam/tools.js:794tools.registerlib/redteam/tools.js:879tools.registerlib/redteam/tools.js:905tools.registerlib/redteam/tools.js:937tools.registerlib/redteam/tools.js:953tools.registerlib/redteam/tools.js:964tools.registerlib/redteam/tools.js:988tools.registerlib/redteam/tools.js:1010tools.registerlib/redteam/tools.js:1023tools.registerlib/redteam/tools.js:1047tools.registerlib/redteam/tools.js:1073tools.registerlib/redteam/tools.js:1094tools.registerlib/redteam/tools.js:1117tools.registerlib/redteam/tools.js:1143tools.registerlib/redteam/tools.js:1169tools.registerlib/redteam/tools.js:1187tools.registerlib/redteam/tools.js:1201tools.registerlib/redteam/tools.js:1216tools.registerlib/redteam/tools.js:1238tools.registerlib/redteam/tools.js:1252tools.registerlib/redteam/tools.js:1272tools.registerlib/redteam/tools.js:1297tools.registerlib/redteam/tools.js:1320tools.registerlib/redteam/tools.js:1335tools.registerlib/redteam/tools.js:1354tools.registerlib/redteam/tools.js:1380tools.registerlib/redteam/tools.js:1394tools.registerlib/redteam/tools.js:1416tools.registerlib/redteam/tools.js:1437tools.registerlib/redteam/tools.js:1467tools.registerlib/redteam/tools.js:1491tools.registerlib/redteam/tools.js:1504tools.registerlib/redteam/tools.js:1540tools.registerlib/redteam/tools.js:1584tools.registerlib/redteam/tools.js:1605tools.registerlib/redteam/tools.js:1627tools.registerlib/redteam/tools.js:1651tools.registerlib/redteam/tools.js:1687tools.registerlib/redteam/tools.js:1698tools.registerlib/redteam/tools.js:1722tools.registerlib/redteam/tools.js:1737tools.registerlib/redteam/tools.js:1756tools.registerlib/redteam/tools.js:1785tools.registerlib/redteam/tools.js:1806tools.registerlib/redteam/tools.js:1830tools.registerlib/redteam/tools.js:1865tools.registerlib/redteam/tools.js:1894tools.registerlib/redteam/tools.js:1915tools.registerlib/redteam/tools.js:1939tools.registerlib/redteam/tools.js:1954tools.registerlib/redteam/tools.js:1981tools.registerlib/redteam/tools.js:1998tools.registerlib/redteam/tools.js:2025tools.registerlib/redteam/tools.js:2084tools.registerlib/redteam/tools.js:2099tools.registerlib/redteam/tools.js:2150tools.registerlib/redteam/tools.js:2168tools.registerlib/redteam/tools.js:2191tools.registerlib/redteam/tools.js:2208tools.registerscripts/export-engagement-report.mjs:2Cannot parse source: Unexpected token (2:0)
Services it injects
customService locale redteam slots systemPrompt tools webServer
Hooks it attaches
agent-preset/selected agent/inbox/claimed agent/pre-step agent/request llm/stream session/created session/event subagent/end system-prompt/assemble tools/pre-execute
Outbound domains
api.github.com codeload.github.com fofa.info cdn.jsdelivr.net kingcharleslzy-ai.github.io registry.npmmirror.com gh-proxy.org avatars.githubusercontent.com oa.example.com oa.demo.com
Environment variables it reads
DSH_HOME DSH_PERMISSION_MODE SystemRoot DSH_BASE PURGE_ELECTRON_EXEC PURGE_TEST_HOST PURGE_DSH_CLI TEMP LOCALAPPDATA DSH_DESKTOP_INSTALL
How to read this
Levels measure capability surface and transparency, not maliciousness. A C3 plugin can be entirely legitimate — a desktop shell genuinely needs subprocesses. The point is that you can see this before installing. See the levels explained and how dsh plugins work.
Findings come from static analysis of shipped code; nothing is executed. Think a flag is wrong? Open an issue — every flag cites the file and line it came from.