Most failures here are environmental: a socket the user cannot open, a browser that is not installed, a key nobody configured, a directory owned by another account.
Where the evidence is
Every plugin log line starts with [dsh-redteam]. The activation line starts with [dsh-redteam] ready; if absent, the bundle never mounted. When startup fails, the Host writes $DSH_HOME/logs/startup-<timestamp>-<uuid>.log; each subsystem is guarded and logs <name> failed to initialize: …, so a tab can open while a service is dead.
The bridge exposes a health route:
BASE=http://127.0.0.1:<port>
curl -s "$BASE/dsh-redteam/health" | jq .
# { "ok": true, "version": "1.3.0",
# "revision": "2026-11-28.1",
# "routes": [...],
# "config": { "defaultMode": "default",
# "allowHostFallback": true, ... } }
The audit trail is append-only JSONL at $DSH_HOME/redteam/audit/<session>.jsonl; the session document is sessions/<session>.json. Records carry ts, actor, type, detail.
Docker unavailable or denied
The probe runs docker version --format '{{.Server.Version}}' with a five-second budget. available: false means the CLI is missing or the daemon refused; the first stderr line is the reason. With allowHostFallback: true (the default), pentest_exec still runs binaries on the PATH and the panel marks the runtime host, but installation and removal stay impossible until the daemon answers.
Permission denied on /var/run/docker.sock is the common case: run sudo ./scripts/enable-docker-access.sh "$USER". The ACL applies immediately; a running server recovers without re-login. If the binary is not named docker, set dockerBin; for a remote or rootless daemon, point DOCKER_HOST at it.
apt failures inside the container
The controller runs apt-get update before the first install, then install or remove with DEBIAN_FRONTEND=noninteractive, then apt-get clean and deletes /var/lib/apt/lists. The failure is therefore in the container: no egress or DNS, an unreachable mirror, a full disk, or a concurrent dpkg lock.
C=dsh-redteam-kali
docker exec -i "$C" apt-get update
docker exec -i "$C" df -h /
docker rm -f "$C" # state lives outside
After recreating the container, run Set up Kali container again. Installed tools are lost, engagement state is not.
Chromium missing, or the sandbox refuses
Discovery tries browser.executable, DSH_REDTEAM_CHROMIUM, the Playwright cache ($PLAYWRIGHT_BROWSERS_PATH, then ~/.cache/ms-playwright) and the PATH names chromium, chromium-browser, google-chrome and chrome. Each is probed with --version; the drawer's reason names the failures. Set an absolute path or export it before starting DSH; status is cached for a minute.
If launch mentions sandbox, zygote or SUID, the environment lacks user namespaces or a SUID helper. The launcher retries once with --no-sandbox; if that also fails, set browser.noSandbox: true in the row. Prefer fixing the seccomp profile — --no-sandbox removes Chromium's process isolation, and a headless server needs a full build.
Approvals that expire, or never appear
Approvals exist only in SAFE mode, only for gated categories, while the call waits. “Approve for the phase” records a phase grant, so later runs in that phase and category are not gated again. An unanswered request expires after approvalTimeoutMs (300000 ms by default) and the run stays blocked.
Expiry is not a denial. The audit records approval_requested, then approval_granted, approval_denied or approval_expired; a denial also produces tool_denied naming the operator. An empty drawer with a pending audit record means the drawer is stale. Re-run after deciding — never treat an expired approval as permission.
Out-of-scope refusals
Scope is checked at the moment of action, with exclusions winning even against a matching target or an overlapping CIDR. Metadata endpoints are refused regardless of scope, and when the active runtime is Docker, a loopback target (localhost, 127.0.0.0/8, ::1) is refused because inside the container it would address the container, not the Host. An empty scope means no active testing, not everything allowed.
Only the operator can change scope; the agent receives a refusal by design. Add the host in Scope & RoE, check exclusions, and look for scope_denied in the audit — it names the target and the refused action.
OSINT: missing key, blocked leak lookup
not-configured means the key was not found in any layer: the DSH credential service, the process environment, $DSH_HOME/osint-keys.env, then the row's keys object. The drawer shows which layer answered. Services that need two credentials (Censys, FOFA, DeHashed) need both.
Breach and leak connectors return leak-approval-required until osint.approveLeakLookups is enabled; osintAllowlist can restrict queries further and hourly budgets apply. A 404 from HIBP means “no known breach”, not proof; on a domain it can mean “unverified”. Dark-web fetch is off by default and, when enabled, loopback-Tor only.
Model route unavailable
AI wordlist enhancement reports one of four states: disabled (the feature is off), no-llm (no Host model route is mounted), no-model (a route exists but no provider and model are selected) or ready. A separate consent-required comes from a generation call that would send engagement context without consent. Select a default model, or set aiEnhancement.provider and aiEnhancement.model in the row. The non-AI wordlists keep working regardless.
Report, DOCX and PDF failures
Report engine unavailable means the module failed its guard; the reason is in the [dsh-redteam] startup log. The PDF writer fails with PDF font not found at …; install fonts-dejavu-core or set fontPath. A short PDF is usually an accurate report of a thin engagement — check the size, then pdftotext -layout report.pdf -.
For DOCX, Word populates the TOC field on open: an empty contents list in a previewer is expected. Images are capped at 24 and only PNG evidence is embedded. Reports are write-once; a repeat generation adds a numeric suffix.
Bundle checksum mismatch
If sha256sum -c fails, the bytes changed after export: a truncated download, an edited report, or a rebuilt archive. Verify the ZIP's own hash first, then the listed files, then cross-check manifest.json. The sums cover content files only — 21 in the published sample — not manifest.json, README.txt or sha256sums.txt, so a 24-entry archive legitimately has 21 lines. If the export reported skipped evidence, the archive is incomplete; fix the vault and export again rather than editing checksums.
Plan and team blocked states
A plan step cannot jump from pending to done, and a team task cannot start while a dependency is not done; both refusals name the step or dependency. A blocking critic verdict usually means an exploited finding without evidence, a budget overrun or an unsafe scope flag — fix the evidence, record the limitation, or close the finding honestly. Closing refuses while steps or tasks are in_progress (or review); use blocked with a note when work cannot continue.
State directory permissions
EACCES or EPERM on $DSH_HOME/redteam usually means DSH ran once as root, or the tree came from another machine. Directories are 0700 and files 0600 as the DSH user; if that user changes, the tree is no longer writable.
sudo chown -R "$USER":"$USER" "${DSH_HOME:-$HOME/.dsh}/redteam"
chmod -R go-rwx "${DSH_HOME:-$HOME/.dsh}/redteam"
Running DSH as root to “fix” permissions writes new root-owned state and hides the real problem. Fix ownership as the DSH user, then restart. The Kali container never writes into the state tree, so a root-owned file there came from a root-run DSH process.
On filesystems without POSIX modes the 0700/0600 intent is best effort.
What to attach to an issue
| Item | Where |
|---|---|
| Versions | dsh --version, node --version, docker version --format '{{.Server.Version}}' |
| Plugin log | The terminal running DSH — every line prefixed [dsh-redteam] |
| Startup diagnostics | $DSH_HOME/logs/startup-<timestamp>-<uuid>.log |
| Health | curl -s http://127.0.0.1:<port>/dsh-redteam/health |
| Composed row | dsh --profile web --dump-config, the # == dsh-redteam layer |
| Audit tail | $DSH_HOME/redteam/audit/<session>.jsonl, last 50 lines |
Redact targets, client names, keys and vault content before posting; audit records contain real commands. Report security problems privately as described in SECURITY.md.
What the plugin will not do
The safeguards are structural and the refusals are permanent. It will not self-propagate: no worm behaviour, and no lateral movement without a scoped action and, in SAFE, an approval. It will not install persistence — no scheduled task, service, SSH key or backdoor exists in the tool set. It will not run internet-wide unattended scanning: every execution needs an in-scope target, a session and an accepted RoE.
Mass exploitation, credential dumping beyond authorized proof, exfiltration beyond agreed data types, loopback from the container, metadata endpoints and non-HTTP schemes are refused too. There is no telemetry; reports and evidence stay local until you move them.
Deep reference: documentation, troubleshooting, wiki, sample artefacts, resources.
What good looks like
- Health, log prefix and audit tail checked before changing anything — and quoted in the issue.
- Environment fixed at the cause: socket ACL, font package, browser path, credential layer.
- Expired approvals treated as “not decided”, never as consent.
- Scope widened by the operator, never worked around by the agent.
- Checksums re-verified from a fresh export instead of edited to match.