Skip to content

Quick Start

sm0k3net edited this page Nov 28, 2026 · 3 revisions

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.

Before you start

  • 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.

1. Start a lab target

mkdir -p ~/redteam-lab && cd ~/redteam-lab
printf 'hello from the lab\n' > index.html
python3 -m http.server 8899 --bind 127.0.0.1

Leave 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.

2. Start the engagement

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.

3. Accept the Rules of Engagement

This is the operator's step; the agent has no tool that can do it.

  1. Open Scope & RoE in the action row.
  2. Set Engagement name and Client / owner, confirm the target 127.0.0.1:8899, and add anything out of bounds under Exclusions.
  3. 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.

4. Run recon

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"] }

5. Read the panel

  • 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.

6. Generate a draft

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.

What good looks like

  • The header shows a DEFAULT badge and an engagement id in the RT-20261127-1A2B form.
  • 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 draft and names the engagement id.

Common first-run stumbles

  • 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 Origin header; the bridge refuses remote unauthenticated calls.
  • HOST or UNAVAILABLE badge — 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:8899 does not authorize 127.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.

Related

Clone this wiki locally