- Home
- Plugins
- Security & Permissions
- dsh-security-audit
dsh-security-audit
maxisoft-git/dsh-security-audit
Read-only security auditor agent preset plus the subagent_security tool, with no write, edit or shell tools: it maps the attack surface and proves findings from the code.
Install
dsh plugin --profile web add github:maxisoft-git/dsh-security-auditREADME
Security audit
A read-only security-audit agent for DeepSeek Harness, plus the tool that starts it from any other session. The bundle adds an agent preset named Security Audit (id security-audit), which reads files and searches them, composes the audit skill and compacts its context, and cannot write, edit or apply a patch; its composition adds no shell and no network tool. The bundle also adds the host-level tool subagent_security, which always spawns that preset. The preset is listed in Settings → Agent presets and in the agent-preset control on the New Session screen; subagent_security is in the tool list of every session. The audit skill ships inside the package under skills/security-audit/ with its reference library. The preset reports findings and changes nothing; it cannot run external scanners, install dependencies, reproduce a bug at runtime or apply a fix.
What it adds
| Row | Effect |
|---|---|
preset-security-audit | Declares the agent preset security-audit, shown as Security Audit (order 20). Its plugins: persona, time context, file read (read: true, readImage: false, write/edit/applyPatch: false), file search, one skill provider, the skill tool, and context compaction. |
tool-subagent-security | Registers subagent_security at Host level with provider: spawn and agentPreset: security-audit. Every preset sees the tool; the caller cannot choose another preset. |
skills/security-audit/ | The audit skill: SKILL.md, 19 class references, two language guides and a Docker guide, derived from the OWASP Cheat Sheet Series. The preset resolves the directory from the installed package. |
The preset's skill provider contributes only this package's pack (includeDefaultRoots: false); skill providers mounted at Host level still add their own skills to every agent's catalog, so the audit agent can see those too. The preset's own file tools are read-only by configuration. Tools registered at Host level by other rows are inherited by every preset and cannot be removed per preset, so the persona forbids the ones that can change state or reach the network — browser, MCP servers, team tools, terminals — instead of the composition removing them (see Security for why).
Install
DSH 0.2.2-rc.1 or newer.
In DSH. Plugins → Add plugin with the installation spec github:maxisoft-git/dsh-security-audit. The plugin manager installs it for the whole profile; a new session picks it up.
From a checkout. git clone https://github.com/maxisoft-git/dsh-security-audit.git, then install that absolute directory with Plugins → Add plugin.
Use
-
Choose the preset: open Settings → Agent presets and pick Security Audit, or use the agent-preset control on the New Session screen. The preset's description reads “Read-only vulnerability audit. Maps the attack surface, proves findings, changes nothing.”
-
Ask for the audit in the new session:
Audit
path/to/projectwith the security-audit skill. Read-only, max 6 findings. -
The agent loads the skill with the skill tool when it needs the method:
skill { "name": "security-audit" } -
It maps the attack surface, traces each lead from attacker-controlled input to a harmful sink, and reports most severe first, one block per finding:
### [High] Unparameterized report query (A03:2025) Location: app/reports.py:88 Attack: a signed-in user passes `sort` from the query string into the SQL text Impact: reads other tenants' report rows Fix: build the ORDER BY from an allowlist, never from the request valueThe report ends with Needs verification, Checked, not a problem and Not covered. “No high-confidence vulnerabilities identified” plus an honest “Not covered” list is a valid result.
-
Delegate from any other session: the model calls
subagent_securitywith the task and gets the report back. The working directory and the task are its inputs, and there is no preset field.subagent_security { "description": "Audit plugin repo", "cwd": "/Users/me/projects/example", "prompt": "Audit this repository with the security-audit skill. Read-only, max 6 findings." } -
A child started this way cannot delegate further:
maxDepthis not set, so the Host subagent depth setting applies (default 1).
Configuration
Both rows are fixed in the bundle's cordis.patch.yml; there are no user-facing keys. Changing the composition means editing that file and reinstalling the bundle.
| Key | Default | Meaning | Where it is stored |
|---|---|---|---|
preset-security-audit | id: security-audit, name: Security Audit, order: 20, plus the one-line description | The preset declaration: display name, roster position, description and the plugin list above. | cordis.patch.yml in the package |
preset-security-audit → tool-fs | read: true, readImage: false, write: false, edit: false, applyPatch: false | The file tools the preset owns; read-only, no image reading. | same |
preset-security-audit → tool-fs-search | sampleOverCapGlobResults: false | File search without sampling over-cap glob results. | same |
preset-security-audit → skill-filesystem | includeDefaultRoots: false, customSkillDirs: [<resolved from the installed package>/skills], watch: true | Contributes only this package's skill pack; the directory is resolved from the installed package, and the provider watches it. | same |
preset-security-audit → compaction | tool-result-pruner: thresholdChars: 8192, headChars: 4096, tailChars: 1024 | Context compaction and result pruning for a long audit. | same |
tool-subagent-security | provider: spawn, toolName: subagent_security, agentPreset: security-audit | The host-level delegation tool and its fixed child preset. | same |
Data and network
- The bundle makes no network request of its own. It has no HTTP client, no telemetry and no service; it declares two rows and one skill directory.
- The audit reads files locally. File read and file search run in the DSH process under the user's rights, limited to what that process can read. There is no shell, so nothing is executed, and dependencies are never installed.
- The audit text reaches the model provider. Everything the agent reads, and the report it writes, is part of the session conversation and is sent to the model provider configured in DSH, exactly like any other session. Auditing a repository therefore uploads the parts the agent reads to that provider.
- Host tools can still reach the network. Tools registered at Host level are inherited by the preset; a default profile registers the browser, MCP servers and team tools there, and a composition may put terminals there too. The persona instructs the agent not to use any of them. That is an instruction-level boundary, not a sandbox.
- On disk. The bundle writes nothing. The skill files are read from the installed package; the provider watches that directory, so editing a skill there is picked up without reinstalling the bundle. Session transcripts are stored by DSH under
$DSH_HOME/sessions. - Turning it off. Removing the bundle removes both rows, the preset and the
subagent_securitytool. The installed package directory (with the skill) is removed with it.
Security
The full record is in SECURITY.md and SECURITY-AUDIT.md; report vulnerabilities through GitHub Security Advisories.
- Read-only is structural for files. The preset mounts
tool-fswithwrite,editandapplyPatchoff and no shell row, so a write attempt has no tool to reach.readImageis off too. - No shell and no network by design. The auditor reads untrusted repository text; giving it an exfiltration channel would reproduce the “lethal trifecta” it is meant to find. This is the same Rule of Two that the skill applies to the systems it audits.
- Host-level tools are forbidden by instruction, not removed. The loader patch dialect can only append into rows declared
group: true, and a preset row is not one; overriding the shippedpreset-standardrow would shadow its whole config and freeze it against upstream updates. Tools registered at Host level are therefore visible to the preset — browser, MCP servers and team tools in a default profile, terminals where a composition puts them there — and the persona states which ones are not part of the audit and that a finding needing one must be reported as a lead with the tool named. A model that ignored the instruction would still have them — treat the boundary as a guardrail, not a sandbox. - Repository text is untrusted, including text written for agents.
AGENTS.md, comments, skills and tool descriptions can contain instructions aimed at the model; the persona says to report them instead of following them, and the skill treats a hidden instruction as an agent-supply-chain finding. - Secrets. The skill reports the file, line and type of a credential, never its value. The agent cannot send repository content anywhere itself; what it reads still reaches the model provider as part of the conversation.
Requirements
- DSH 0.2.2-rc.1 or newer, with the skill service and the
spawnsubagent provider composed (@deepseek-ai/dsh-subagentwith a spawn provider, for example@deepseek-ai/dsh-subagent-spawn-in-process). The shipped DSH Web composition mounts both. - Node.js 22.19.0 or newer (the version DSH ships).
- A configured model route; the preset inherits the session's model defaults and exposes no model-selection field.
- No external tools: the audit cannot run
semgrep,gitleaks,osv-scanner,npm auditorpip-audit, and that limitation is stated in every report under Not covered.
Development
No dependencies and no build step; the package is a patch, a skill directory, an icon and locale files.
scripts/verify-bundle.mjs performs the bundle self-check (manifest shape, patch file, locale files, icon, referenced files); it is plain Node with no dependencies.
Layout: cordis.patch.yml declares both rows; skills/security-audit/ holds SKILL.md, references/ (one file per class), languages/ (javascript.md, python.md), infrastructure/docker.md and the attribution LICENSE; locale/ holds meta.title and meta.description for en, ru and zh.
License
MIT © 2026 maxisoft-git
Related plugins
dsh-purge
hunyisage/dsh-purge
dsh-infinite-gen-4
minglink/dsh-infinite-gen-4
dsh-purge
mmparko/dsh-purge
cc-safety-net
kenryu42/cc-safety-net