Repository navigation
Installation
dsh-redteam is a DeepSeek Harness bundle: a Host plugin (index.js, lib/host/) and a Web client
artifact (client.js) that registers the Red Team tab. There are no npm dependencies and no build step,
so a checkout runs as-is. Read Scope and safety before the first engagement.
| Component | Version or state | Needed for |
|---|---|---|
| DeepSeek Harness |
0.2.2-rc.3 or newer |
Everything; the plugin is verified against that release. |
| Node.js | 20+ | The Host half and the test suite. |
| Docker Engine | Optional, reachable by the DSH process user | The Kali toolbox: container, install and remove. |
You need the DSH profile that serves your Web UI; the examples use web. $DSH_HOME defaults to
~/.dsh, and every state path here is relative to it.
git clone https://github.com/sm0k3net/dsh-redteam.git
cd dsh-redteam
dsh plugin --profile web add "$PWD"Because the package declares dsh.bundle.patch, that one call initialises the profile if needed,
records a link: dependency on your checkout and appends the bundle to dsh.profile.bundles. The
install is a link, not a copy: moving or deleting the checkout breaks the plugin until you re-add it.
Reload the page, press + in the right sidebar and choose Red Team; if the entry is missing,
restart dsh --profile web and reload — see Troubleshooting.
Releases attach dsh-redteam-<tag>.tar.gz and a SHA256SUMS file. Download both from the
releases page, then:
sha256sum -c SHA256SUMS
tar -xzf dsh-redteam-v1.3.0.tar.gz
dsh plugin --profile web add "$PWD/dsh-redteam-v1.3.0"The directory you add must contain package.json, cordis.patch.yml and index.js; no npm release.
| Check | Expected result |
|---|---|
| Tab registered | The + menu lists Red Team; the panel opens with its eight tabs. |
| Health route |
GET /dsh-redteam/health answers ok: true with the plugin version and route list. |
| Agent tools | The agent can call pentest_state; a first engagement starts from it. |
curl -s http://127.0.0.1:3080/dsh-redteam/healthUse the port your DSH Web server listens on. The payload carries ok, version, revision, the route
list and the effective mode, container, image and phase ids. Run it on the DSH host: remote
unauthenticated calls are rejected and a foreign Origin is refused.
The Tool manager and the toolbox lifecycle (setup, install, remove and package search) need a Docker
daemon the DSH process can reach; when the probe fails, the snapshot reports docker.available: false
and execution falls back to host tools.
sudo ./scripts/enable-docker-access.sh "$USER"Run from the checkout as root. The helper adds the user to the docker group, installs acl when
setfacl is absent, grants rw on the live socket, writes a systemd drop-in that re-applies that ACL
when the daemon recreates the socket, and reloads systemd. The ACL applies immediately, so a running DSH
process can use Docker at once; group membership needs new logins.
Without socket access the plugin stays in degraded host mode (allowHostFallback defaults to true);
setting it to false makes pentest_exec fail with docker-unavailable. Install and remove never touch
the host with apt. See Kali toolbox and Configuration.
Optional: Chromium for the browser drawers and OSINT keys for the connectors — the discovery order, key resolution and defaults are in Configuration, with the connectors in OSINT.
Host code and client code reload differently:
-
Linked checkout:
git pull. The committedclient.jsmatches the sources; if you editedsrc-client/, runnode scripts/build-client.mjsfirst. - Tarball install: replace the extracted directory and re-add it from its path.
-
Host half: restart
dsh --profile web; a replaced package is not hot-reloaded. - Client half: reload the page; client-only changes are served without a Host restart.
Confirm the revision in /dsh-redteam/health changed. Stored state survives upgrades; the schema is
additive.
Disable the plugin first (Plugin Manager, or disabled: true for its row), then:
dsh plugin --profile web remove dsh-redteamReload: the tab disappears and the pentest_* tools are unregistered. Nothing under $DSH_HOME/redteam/
is deleted, and osint-keys.env is left alone — that state is the record of work that may already have
been reported. Remove it explicitly when the record is no longer needed:
rm -rf "${DSH_HOME:-$HOME/.dsh}/redteam" and docker rm -f dsh-redteam-kali (only containers carrying
the dsh.redteam=1 label are ever removed).
Back up the state root, and the key file when you use the file fallback:
tar -czf redteam-backup.tar.gz -C "${DSH_HOME:-$HOME/.dsh}" redteam osint-keys.env
tar -xzf redteam-backup.tar.gz -C "${DSH_HOME:-$HOME/.dsh}"
chmod -R go-rwx "${DSH_HOME:-$HOME/.dsh}/redteam"
chmod 600 "${DSH_HOME:-$HOME/.dsh}/osint-keys.env"State is written as the user running DSH, with 0700 directories and 0600 files.
- Quick start — the first ten-minute engagement
- Panel tour — tabs, drawers and the header
- Configuration — loader row, defaults and environment
- Troubleshooting — a missing tab, Docker access and logs
- Field manual: getting started
dsh-redteam is MIT licensed. Use it only against systems you are authorized to test. — Report a vulnerability · Issues
dsh-redteam
Start here
Reference
- Agent tools
- Configuration
- Kali toolbox
- Wordlists
- OSINT
- Web and API testing
- Exploitation loop
- Team and planning
- Evidence and reports
- Scope and safety
- Resources
- Architecture
Operations
Project