Skip to content

Troubleshooting

sm0k3net edited this page Nov 28, 2026 · 5 revisions

Troubleshooting

Almost every failure is environmental: a row that never activated, a Docker socket the DSH user cannot open, a Chromium binary the plugin cannot find, or a key that was never configured. This page maps symptoms to causes and fixes by area. The repository document has the same material with longer code-path explanations: docs/TROUBLESHOOTING.md.

On this page: reading a failure · install · panel · Docker · approvals · browser · OSINT keys · AI wordlists · reports · state and permissions · assurance and team · diagnostics.

How to read a failure

  • Every plugin log line starts with [dsh-redteam]; the startup line is [dsh-redteam] ready (dsh-redteam, mode <default|safe>, state …).
  • A guarded subsystem that failed logs <name> failed to initialize: … and the panel opens degraded instead of crashing. A working tab can hide a dead subsystem, so read the log.
  • The same event is usually in the audit trail ($DSH_HOME/redteam/audit/<session>.jsonl) and in the panel's Audit tab.
  • Expected operational failures are results ({ ok: false, error, detail }), not exceptions. The error code is the stable part; the detail is for humans.

Install and activation

Symptom Cause Fix
No Red Team entry under the sidebar + Page not reloaded, bundle not selected, or the row disabled Reload; check dsh --profile web --dump-config | grep dsh-redteam for the # == dsh-redteam layer and no disabled: true.
Installed but no layer in the composed config A raw pnpm add added a dependency without selecting the bundle Re-add with dsh plugin --profile web add <dir> so dsh.profile.bundles includes it.
Activation line absent from startup output The bundle never mounted, or the Host API is incompatible Read $DSH_HOME/logs/startup-*.log, restart once, check the Plugin Manager state.
Panel opens with subsystems "unavailable" One guarded factory failed The [dsh-redteam] log names the module; fix that dependency.
Two tabs or two panels Bundle selected twice, or a manual insert row alongside the bundle Keep one path and one insert row; remove dsh-redteam and re-add.
Tab missing after a DSH upgrade Host API changed Install a plugin release that supports the new DSH, or roll DSH back. This package does not pin engines.dsh.

Panel and session

Symptom Cause Fix
Tab appears, body is empty No engagement in this session yet Start one with the agent or from Scope & RoE; auto-open happens once per session per page load.
Panel is missing on Settings or Plugin Manager Global pages hide the sidebar; the panel is per-session Return to a chat session.
Agent actions do not appear live SSE unavailable and polling lag The client falls back to /state every 5 s; check /dsh-redteam/health and the server log.
Approval banner appears but drawer is empty The approval was already resolved or expired Check the Audit tab for approval_requested / approval_expired; the record is not a current request.
Clicking a drawer does nothing Stale client artifact after an upgrade Reload the page; a dev checkout needs node scripts/build-client.mjs.

Docker and the Kali toolbox

Symptom Cause Fix
Badge UNAVAILABLE, or HOST with a degraded notice docker version failed: socket permission, missing daemon or wrong binary docker info --format '{{.Server.Version}}' as the DSH user; run sudo ./scripts/enable-docker-access.sh "$USER" or start the daemon.
Tool manager install buttons disabled Runtime is not docker Fix Docker access; install and remove never fall back to the host.
image-pull-failed after minutes Registry slow, proxy or firewall; the pull budget is 900 s Pre-pull kalilinux/kali-rolling, fix the daemon proxy, retry setup.
container-create-failed Invalid Docker arguments or a name collision The detail carries Docker's first stderr line; inspect with docker ps -a, remove a stale container.
apt-get errors in the container No egress, broken mirror, full disk or a dpkg lock docker exec -i dsh-redteam-kali apt-get update; check df -h /; avoid parallel installs (the plugin serialises its own).
Install fails with a permission hint Missing apt/dpkg capabilities Ensure capAdd includes CHOWN, DAC_OVERRIDE, FOWNER, FSETID, SETGID, SETUID, MKNOD (the defaults).
Tool exits 126 / 127 Binary absent in the active runtime, or the catalog name maps elsewhere pentest_tool_inventory; install the package; remember metasploit-framework runs msfconsole.
Run hangs Long scan, no per-call timeout Activity tab kill, or pass a smaller timeoutMs; the hard ceiling is one hour.
docker-unavailable with host fallback off allowHostFallback: false Re-enable Docker access, or set the option back to true knowingly.

Approvals

Symptom Cause Fix
A gated command returns denied without a card Mode is default, or the category is not gated Default mode does not ask; recon and enumeration never ask. Check the header badge.
No new card for a later gated call in the same phase "Approve for the phase" granted the category for that phase Expected; the phase grant is audited.
Command never runs, run stays blocked Approval expired after approvalTimeoutMs (5 min) Re-run after approving; raise the timeout if review takes longer.
Agent keeps retrying a blocked call It should not; the result says denial Resolve the card in Approvals; retrying never grants.
Approval exists in audit, not in the drawer Stale snapshot Refresh; /state carries pending approvals.

Browser

Symptom Cause Fix
Browser drawer reports no Chromium No executable found or configured Set browser.executable, or export DSH_REDTEAM_CHROMIUM=/usr/bin/chromium before starting DSH.
Launch fails mentioning sandbox, zygote or SUID Chromium's sandbox needs user namespaces or a SUID helper The launcher retries once with --no-sandbox; if it still fails set browser.noSandbox: true.
Navigation blocked as out of scope Host not in scope, excluded, or a metadata/scheme refusal Add the target in Scope & RoE as the operator; check exclusions; only http(s) is accepted.
Session closed by itself Idle timeout (10 min default) or the concurrent-session cap Relaunch; raise browser.idleTimeoutMs or browser.maxSessions.
Session limit error maxSessions reached (default 3) Close a session; the cap is clamped to 1–5.
Screenshot missing The record failed to write, or the session was closed first Check the [dsh-redteam] log and the Evidence drawer; screenshots are also under artifacts/<session>/browser/.

OSINT keys

Symptom Cause Fix
not-configured Key absent from credentials, env, $DSH_HOME/osint-keys.env and keys Save it in the OSINT drawer, or export the variable before starting DSH.
Two-credential service still not configured Only one half was supplied Censys, FOFA and DeHashed need both; enter first:second.
unauthorized Provider rejected the credential Re-enter the key; check the plan is active.
rate-limited Quota exhausted Wait for retryAfter, or lower the lookup rate; the plugin does not retry a 429.
tool-missing for ExploitDB searchsploit is not installed in the container Install the exploitdb package, or use the local host mode.
Drawer shows configured, lookups fail Key valid but the provider is unreachable Check egress/DNS from the DSH host.
Enrichment returns out-of-scope Target outside every supplied scope entry Add the target as the operator, or pass allowOutOfScope: true with written authorization.
Enrichment returns scope-required osint.enforceOsintScope: true and no scope supplied Pass {targets,cidrs,domains,exclusions} or turn the gate off.
Enrichment returns cidr-too-large IPv6 block wider than /120 Enrich one address or a narrower prefix.
OSINT tab stays empty after lookups Nothing was recorded for this session, or the lookup hit no recording connector Run pentest_osint/pentest_osint_enrich for an in-scope target and reload; the tab never pads with placeholders.
Old findings reappear after Restart from scratch Stale page state; restart archives rather than deletes Reload the page; the archive is at $DSH_HOME/redteam/archives/<session>/.

AI wordlists

Symptom Cause Fix
available: false, reason disabled aiEnhancement.enabled is false Set it to true.
no-llm No Host model route is mounted Select a model route in DSH.
no-model A route exists but no provider/model selected Select a default model, or set aiEnhancement.provider and .model.
consent-required The call would send target/technology/path context without consent Pass consent: true, tick the drawer box, or set allowRemoteContext: true.
invalid-model-output / no-candidates The model returned prose or only duplicates Retry with a clearer instruction; lower the count.
invalid-category Unknown category for the base list Use dir, dns, passwords, usernames, lfi, sqli, xss, api or ad, or pass a valid listId.
no-input on adapt No hits, observed paths, tool output or base list Supply toolOutput from gobuster/ffuf/nmap, or hits.
Generated list is short Dedupe removed overlap with the base and existing AI lists Expected; the response reports overlap.

Reports and PDF

Symptom Cause Fix
Report engine unavailable The report module failed its guard Read the startup log; reports need a readable store.
PDF generation fails with a font path DejaVu is missing Install fonts-dejavu-core, or set fontPath in the plugin row.
PDF is blank or very short The engagement is genuinely thin, or the report is a draft Check the file size, inspect with pdftotext -layout, compare with the JSON format.
Completion refused A non-reporting phase is not done or skipped with a reason, or reporting is blocked pentest_state lists the open phases; add a note when skipping.
Report download 404 Wrong id, or the file was pruned Regenerate; the Report tab lists what exists.
Report is marked draft The engagement is not completed Use pentest_complete_engagement after the checklist passes.

State and permissions

Symptom Cause Fix
EACCES writing $DSH_HOME/redteam Files created by another user, often root sudo chown -R "$USER":"$USER" "${DSH_HOME:-$HOME/.dsh}/redteam" and tighten modes. Do not run DSH with sudo.
Session state lost Different DSH_HOME, or a different session id Check echo $DSH_HOME; state is keyed by session under redteam/sessions/.
Audit file empty No audited action yet, or the wrong session The file is created on the first entry; check the session id.
Evidence manifest heals on open Corrupt or missing manifest.json The vault rebuilds from meta.json and logs it; verify hashes after a heal.
Disk full during evidence Per-record and package caps still need free space Free space; caps are 32 MiB per record and 256 MiB per package, not quotas.

Assurance and team

Symptom Cause Fix
Team tab empty, Plan team does nothing No plan yet, or the guarded planner failed Create the plan via pentest_plan/pentest_team; if the log says Planner is unavailable, restart and read the import error.
publish: true warns "Agent Teams unavailable" Native Team mode is off or the service is not registered The local board is saved; enable Agent Teams or keep the local plan.
OOB canary never fires Target cannot reach DSH, wrong origin, closed/expired canary, or the token was not embedded Set publicBaseUrl to a target-reachable origin, create a new canary, keep the token out of logs and reports.
pentest_verify always inconclusive No recognized CWE, or no probative stored evidence Record the CWE and the evidence, then re-run; the verifier does not guess from a title.
pentest_retest refuses to run No replayable HTTP/curl evidence, unsupported method, destructive path, out-of-scope URL or missing confirm Read the plan result; fix evidence/scope and pass confirm: true only after review.
SARIF export is empty or truncated No findings, or more than 1000 results The log records truncated: true; use the bundle for the full finding set.

The callback route is intentionally unauthenticated — the token is the capability — so treat a canary URL like a credential. The verifier never sends a request, and a retest never changes a finding's status to exploited.

Collect diagnostics

Attach these to an issue; they answer most questions without a round trip.

Item Where
Versions dsh --version, node --version, docker version --format '{{.Server.Version}}'
Plugin log The terminal running DSH; every line starts with [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 Last 50 lines of $DSH_HOME/redteam/audit/<session>.jsonl
State paths ls -la "$DSH_HOME/redteam" and the misbehaving session directory
Browser discovery The reason in the Browser drawer status

Redact target hostnames, client names, API keys and anything from the evidence vault before posting. Security problems go through SECURITY.md, not a public issue.

Related

Clone this wiki locally