Repository navigation
Quick Start
Ten minutes, one authorized lab target, no exploitation. By the end you have a running engagement, facts and assets in the graph, hashed evidence and a draft report — the smallest complete loop.
- The plugin installed and the Red Team tab visible (Installation).
- A terminal for the lab target, and a machine you own to test. Docker is optional; without it the toolbox runs host tools in degraded mode.
mkdir -p ~/redteam-lab && cd ~/redteam-lab
printf 'hello from the lab\n' > index.html
python3 -m http.server 8899 --bind 127.0.0.1Leave it running. Every step below uses 127.0.0.1:8899; substitute a host you own if you prefer.
If your toolbox runs in the Kali container, a container cannot reach the host loopback: bind the lab
with --bind 0.0.0.0 on a trusted machine and scope the bridge address (172.17.0.1:8899) instead.
Give the agent this prompt:
Start a DEFAULT-mode engagement named "Local lab" for 127.0.0.1:8899 and scope it to that host and
port only. Run pre-engagement and recon, record every real observation as a fact and every host,
service and endpoint as an asset, then stop before exploitation and generate a Markdown draft report.
The agent starts with two calls:
pentest_start_engagement { name: "Local lab", client: "Self", targets: ["127.0.0.1:8899"] }
pentest_state
pentest_start_engagement activates the engagement (status: active), starts pre-engagement, seeds
the nine PTES phases and requires at least one of targets, cidrs or domains. pentest_state
returns the phase, progress, pending approvals and the gate reason on the next phase. The panel opens
itself once per session per page load.
This is the operator's step; the agent has no tool that can do it.
- Open Scope & RoE in the action row.
- Set Engagement name and Client / owner, confirm the target
127.0.0.1:8899, and add anything out of bounds under Exclusions. - Fill the RoE fields — emergency contact and the rules or constraints you are working under — then tick the confirmation box and press Accept and start.
Acceptance is recorded in the audit trail and in the report. It unlocks the gated phases and the mode switch: this engagement already runs in DEFAULT, so the header button offers SAFE, and switching back to DEFAULT is what the RoE gates. Scope can be edited later; acceptance survives an edit and both changes are audited.
The agent now works the engagement. This is the sequence it typically makes:
| Call | What it does |
|---|---|
pentest_add_goal { title: "Validate the local lab", detail } |
Puts the outcome at the top of the graph. |
pentest_set_phase { phase: "pre-engagement", status: "done" } |
Closes the setup phase; forward movement is one step at a time. |
pentest_set_phase { phase: "recon" } |
Starts recon; with pre-engagement done, progress reads 17 percent. |
pentest_exec { tool: "nmap", args: ["-sV", "-Pn", "-p", "8899", "127.0.0.1"], target: "127.0.0.1:8899" } |
Scoped execution; nmap is a recon category, so no approval card. |
pentest_add_fact { title, detail, toolRunId, asset, phase: "recon" } |
Records one real observation, linked to the run that produced it. |
pentest_add_asset { title, kind: "service", host: "127.0.0.1", port: 8899, service: "http", factId } |
Turns that fact into a typed asset node. |
pentest_resolve_wordlist { id: "dir-medium" } |
Returns the path valid in the active runtime. |
pentest_exec { tool: "gobuster", args: ["dir", "-u", "http://127.0.0.1:8899", "-w", "<path>"], target: "http://127.0.0.1:8899" } |
Content discovery inside scope. |
pentest_web_assess { url: "http://127.0.0.1:8899" } |
Headers, cookies, CSRF heuristics, technology and safe probes; records a fact with evidence. |
Add an intent when a fact answers a specific test:
pentest_add_intent { title: "Fingerprint the lab service", goalId: "<goal id>", phase: "recon",
wstgIds: ["WSTG-INFO-02"] }
- Flow — the graph grows as nodes are added. Click a fact to see the tool run behind it: command, exit code, output excerpt, linked evidence and the edges in and out.
- Activity — one row per execution with target, category, runtime, exit code and duration.
- Evidence — executions and the web assessment are captured automatically, each with a SHA-256 you can copy.
pentest_report { format: "md", lang: "en" }
The Report tab lists the artifact for download. A report generated before closure is marked as a draft — closing is a separate, gated step described in Engagement and graph.
- The header shows a
DEFAULTbadge and an engagement id in theRT-20261127-1A2Bform. - The status line reads RoE accepted, the current phase and a progress percentage.
- Facts cite the tool run they came from, and findings cite a fact; no node is hand-waved.
- Assets are typed (
service,host,url, …) and carry port or technology where it is known. - The Flow tab has a goal, at least one intent and a connected chain to the facts.
- The Evidence drawer holds the same captures the report cites, each with a hash.
- The report says
draftand names the engagement id.
-
No Red Team tab after install — reload, then restart
dsh --profile web; see Troubleshooting. -
Health route fails — run the curl on the DSH host and with no foreign
Originheader; the bridge refuses remote unauthenticated calls. -
HOSTorUNAVAILABLEbadge — Docker is not reachable; recon still works with host tools, install and remove do not. See Kali toolbox. -
A command is refused as out of scope — a scope entry with a port matches only that port, so
127.0.0.1:8899does not authorize127.0.0.1. See Scope and safety. - An approval expired, or switching to DEFAULT is refused — approvals time out after five minutes, and DEFAULT needs an accepted RoE (SAFE does not). See FAQ and Troubleshooting.
- Installation — install routes and verification
- Panel tour — every tab and drawer
- Engagement and graph — phases, edges and closure
- Scope and safety — modes and approvals
- 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