dsh-redteam-model
SeaOf0
基于dsh web实现的多种模式,目的是服务于redteam进行授权的安全研究,覆盖渗透测试、红队评估、代码审计等范围领域,请勿用于非法行为。(允许二开,赋予模块各位自己的业务逻辑,方法论只有自己熟练的才好用,好的方法论=好的生态)
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:zayyehtut/dsh-secret-ask
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Your agent needs an API key, token or password. Instead of asking you to paste it into the chat, it calls ask_secret and a masked card appears in the conversation. You type the value once; it goes straight into the local credential store through a loopback request and never appears in the message, the model's context, or the session log. Later the agent can run one command with that secret injected as an environment variable.

Illustration with example data — not a live screenshot.
ask_secret (ask and store), run_with_secret (use it for one command), forget_secret (remove it). The model only ever sees the secret's name and whether it is configured.***.agent ask_secret(name, purpose)
│
├─ masked card in the conversation (value stays in the card, in memory)
│ │ POST /api/secret-ask (loopback only, custom header, 64 KiB cap)
│ ▼
│ local credential store ($DSH_HOME/.credentials.yaml)
│ │
└─ tool result: { ok: true, name } (never the value)
│
run_with_secret(command, secrets)
│ env: NAME=value for that child process only
▼
output with exact secret values replaced by ***
Open Plugins in the left sidebar.
Click Add plugin, paste this into the package field:
github:zayyehtut/dsh-secret-ask
Click Install, then Enable now.
Reload the window once so the client half (the card) is loaded.
dsh web (command line)dsh plugin --profile web add github:zayyehtut/dsh-secret-ask
Restart dsh web afterwards. Replace web with your profile name if you use a custom one.
Using the DeepSeek Harness desktop app? Use Option 1. The desktop app manages its own profile, so a CLI install into
profiles/webwill not show up there.
The plugin is submitted to the community dsh-market catalog. Once it appears there, search for Secret Ask and install it with one click.
Clone the repository anywhere on the machine:
git clone https://github.com/zayyehtut/dsh-secret-ask.git
In your DSH profile's package.json, add the package as a linked dependency and to the bundle list:
{
"dependencies": {
"dsh-secret-ask": "link:/absolute/path/to/dsh-secret-ask"
},
"dsh": {
"profile": {
"bundles": [
"@deepseek-ai/dsh-base",
"@deepseek-ai/dsh-web-app",
"dsh-secret-ask"
]
}
}
}
Let the profile install its dependencies, then reload the Harness window.
| Requirement | Check |
|---|---|
DeepSeek Harness 0.2.1 or newer (tested on 0.2.1-rc.5) |
dsh --version or the About dialog |
| A profile that includes the Web UI | The desktop app, or dsh web |
| Nothing else — no CLI, no token, no extra service | The credential store ships with the base composition |
ask_secret; a card titled Secret requested appears with the variable name and a one-line purpose.run_with_secret when it needs the value, for example a command that reads $env:GITHUB_TOKEN.If the request already has a stored value, ask_secret is a no-op unless the agent asks with replace: true.
| Tool | What it does | What the model sees |
|---|---|---|
ask_secret |
Asks you for a named secret and stores it. No-op when already configured unless replace: true. |
the name + a configured flag |
run_with_secret |
Runs a PowerShell command with named secrets as environment variables for that process only. | redacted output + exit code |
forget_secret |
Removes a stored secret by name. | the name + a configured flag |
Calls that need a secret fail with a clear not configured: NAME error, which tells the agent to call ask_secret first.
The bundle inserts one row with card mode on. To change it, add a matching patch to your profile's cordis.patch.yml:
- id: secret-ask
config:
entryMode: card # card = masked card (default); question = stock question card
timeoutMs: 600000 # how long the card may wait, in ms; capped at 1 hour
# enabled: false # mount the row but register no tools
entryMode: question uses the stock question card instead of the masked card. It stores the same way, but the stock card keeps a draft in the Web UI, so card mode is recommended.enabled: false is a staged-install switch: the row mounts and registers nothing./api/secret-ask accepts loopback POSTs only, requires the x-dsh-secret-ask: 1 header, checks the same origin, caps the body at 64 KiB, and never logs or echoes the value.localStorage, no draft store, no conversation entry; the input is cleared on unmount and after submit.***; a command that transforms or encodes the secret can still print the result.run_with_secret runs one command under the normal sandbox policy; it cannot keep a process alive after the tool returns.| Symptom | Fix |
|---|---|
| The card never appears and the tool waits | The page was open before the plugin loaded. Reload the window; or set entryMode: question and let the agent ask again. |
| "No value was entered before the request timed out" | The card waited 10 minutes (default). Reload the window, then call the tool again. |
not configured: GITHUB_TOKEN |
The agent must call ask_secret for that name before run_with_secret. |
The output shows *** |
That is the redaction working — the exact value is never returned to the model. |
| A secret leaks in a transformed form | Redaction only matches the exact stored value. Avoid commands that encode or re-format the secret. |
| Install succeeded but nothing registers | Confirm the bundle is enabled on the Plugins page and your DSH is 0.2.1 or newer. |
0.2.1-rc.5.dsh web). The card is plain web UI.There is no build step: the bundle is plain ESM JavaScript.
index.js Host half — tools, the masked card's loopback route, credential store calls
client.js Client half — the masked card (React) registered as the ask_secret tool view
cordis.patch.yml The DSH bundle patch that inserts the plugin row (card mode)
icon.svg Source icon
assets/ Generated preview illustration and storefront icon
screenshots.json Declares the preview for marketplace cards
tools/ Generators for the illustration and icon (Pillow)
Regenerate the art from code (requires Pillow):
python tools/make-preview.py # rewrites assets/preview.png
python tools/make-icon.py # rewrites assets/icon-180.png
Link the repository into a DSH profile as shown under Manual profile setup, reload the window, and the card shows up on the next ask_secret. Client edits need a window reload; host edits need the plugin re-enabled or the app restarted.
Shared as-is. This project is not actively maintained: issues are not triaged and no response time is promised.
If something breaks or you need a change, point your AI agent at this repository and have it diagnose and patch your own copy or fork. Upstream pull requests may sit unreviewed.
MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: security。