Repository navigation
Agent Tools
All 51 pentest_* tools, grouped by area with a one-line purpose and the gate that applies to the
group. Parameters, side effects and result contracts are in
docs/TOOLS.md, which is the
reference the agent works from.
On this page: how a call is governed · engagement and graph · execution and toolbox · wordlists · web and API testing · evidence · knowledge and reporting · assurance · planning and team · worked sequences.
Every tool passes the same pipeline: resolve the engagement from the calling session, require the Rules of Engagement for acting tools, check the target against the scope with exclusions winning, apply the Safe-mode category gate, then write the decision and outcome to the audit trail.
| Gate | Meaning |
|---|---|
| — | No engagement gate beyond a valid session. |
| RoE | Requires an accepted Rules of Engagement. |
| RoE + scope | Also validates the target against the engagement scope. |
| RoE + scope + approval | Also passes the Safe-mode category gate. |
| Operator-only | The agent is refused by design. |
Expected failures return { ok: false, error, detail } rather than throwing. A refusal is a result,
not an invitation to retry: approval loops are unsupported, and the operator resolves the card in the
panel.
-
pentest_start_engagement— create and start the engagement for this session (scope required). -
pentest_scope— replace the scope (operator-only, the agent is refused) or safely expand it withtarget: applied automatically inside an authorized target/CIDR/domain root with its discovering fact/evidence, and aproposedentry outside every root. Exclusions and metadata endpoints never expand. -
pentest_state— read phase, progress, mode, scope, approvals and the next gate reason. -
pentest_graph— return nodes and labeled edges, filtered by type and bounded bylimit. -
pentest_add_goal— add the outcome the engagement proves. -
pentest_add_intent— add a test under a goal, with WSTG ids for coverage. -
pentest_add_fact— record one real observation, linked to the run that produced it. Never guess. -
pentest_add_asset— record a typed host, service, URL, account or data store. -
pentest_add_finding— record a finding with CVSS/CWE/OWASP/WSTG, evidence and remediation. -
pentest_set_phase— move a phase or change its status, subject to PTES order and notes. -
pentest_update_engagement— edit name, client, notes and RoE metadata; cannot accept the RoE. -
pentest_complete_engagement— close the engagement and generate the final report set.
-
pentest_exec— run one tool with an argv array and wait for the real exit code. The target is scope-checked first; gated categories wait for an operator approval. -
pentest_setup_toolbox— create and start the Kali container, runapt-get update, sync wordlists. -
pentest_tool_inventory— installed state, versions and the active runtime per tool. -
pentest_install_tool— install one Kali package inside the container, never on the host. -
pentest_remove_tool— remove a package, refusing when another catalog tool depends on it. -
pentest_tool_search— search the Kali package index for installable tools.
-
pentest_wordlists— list bundled, uploaded and AI lists with line counts and runtime paths. -
pentest_resolve_wordlist— resolve an id or category to the path the active runtime will accept. -
pentest_enhance_wordlist— generate validated candidates into a newsource:"ai"list. -
pentest_wordlist_feedback— record hits and misses so the next generation is better. -
pentest_wordlist_adapt— derive variants from real gobuster/ffuf/nmap output, locally or with the model.
-
pentest_browser— drive an isolated Chromium session; launch and navigation are scope-checked. -
pentest_web_assess— bounded HTTP pass: headers, cookies, CSRF heuristics, technology, safe probes. -
pentest_api_discover— OpenAPI/Swagger, GraphQL introspection, observed traffic, JS bundles and a bounded path probe. -
pentest_api_request— one scoped request with credential redaction and same-origin redirects. -
pentest_api_fuzz— one parameter at a time across nine payload categories, rate-limited with anomaly detection. -
pentest_nuclei— scoped, rate-limited Nuclei template scan; matches become a fact plus structured template results.
-
pentest_evidence_list— id, kind, title, target, size, SHA-256 and linked findings. -
pentest_evidence_add— add text, JSON or a note, hashed and stored write-once. -
pentest_evidence_get— read one record with a bounded text preview. -
pentest_evidence_package— build the vault-only ZIP with manifest, README andsha256sums.txt. -
pentest_export_bundle— export one deterministic ZIP with reports, evidence, findings CSV/JSON and SARIF, state, audit and tool runs. -
pentest_attach_evidence— link an existing record to a finding, fact or asset.
-
pentest_skills— list, inspect or get context-aware recommendations from the 20-playbook offensive-security library (phase, steps, tools, evidence requirements, ATT&CK/WSTG references). -
pentest_osint— one lookup across 39 connectors; results become facts, keys never surface. Leak lookups need explicit approval, dark-web fetch is opt-in and illegal categories are refused. -
pentest_osint_enrich— passive enrichment for one in-scope IP, CIDR, domain or hostname: ASN, country/ISP, PTR, hostnames, related domains, certificate subdomains, third-party ports, reputation, per-source records and confidence. Never scans or connects; refuses an out-of-scope target and caps CIDR sampling. -
pentest_osint_report— write the standalone OSINT deliverable (md,html,json) from the recorded data; deterministic, secret-scrubbed and never overwrites an existing file. -
pentest_methodology— query PTES, WSTG, OWASP, CWE, ATT&CK or NIST, or recommend tests for an asset type. -
pentest_report— render a draft inmd,html,json,pdf,slidesordocx, English or Russian; HTML and DOCX embed evidence screenshots. -
pentest_approvals— list pending approval cards; resolution stays with the operator. -
pentest_audit— the newest audit records, bounded bylimit(default 100, max 400).
-
pentest_verify— deterministic, evidence-only check of one finding:confirmed,refutedorinconclusivewith named checks and confidence. Never setsexploited;apply: truemay promoteunverified → verifiedon a confirmed verdict. -
pentest_identity— accounts, roles, auth/MFA and per-asset access;add,remove,list,matrix,gapsandrecordTest. Secrets are never stored; mutations need an accepted RoE. -
pentest_oob— create/check/close/prune a local callback canary (/dsh-redteam/canary/<token>) for SSRF/XXE/blind proof. The token is the capability and is redacted everywhere else. -
pentest_sarif— write SARIF 2.1.0 for the findings (CWE rules, OWASP/WSTG tags, CVSS score/vector in result properties, stable fingerprints). Metadata only; capped at 1000 results. -
pentest_retest—plana replay from stored raw-HTTP/curlevidence, thenrunone GET/HEAD/POST withconfirm: trueagainst an in-scope URL. Verdictsfixed/still-vulnerable/inconclusive; the finding is never set toexploited. -
pentest_exploitation— bounded exploitation loop:plancandidates (searchsploit/Exploit-DB, CVE/NVD, Metasploit, nuclei, NSE, sqlmap, custom),recordeach real observation so it is classified and the next action returned,delegatethe researcher/operator/verifier roles, orstatus. Caps: 6 rounds default (12 max), 3 attempts per candidate (5 max), 20 candidates.
-
pentest_plan— one plan with objective, steps, dependencies,maxParalleland tool/token/minute budgets;status,update,consume,criticandclose. The critic is deterministic and returnspass/warn/blockwith checks and a score. -
pentest_team— plan a nine-role team, add/update tasks, focus read-only helpers, reassign or hand off with a note, and build the nativesubagentprompt.publish: truecreates real DSH Agent Teams tasks when enabled; otherwise the local board is saved with a warning.
Recon-only engagement. pentest_start_engagement { name, targets: ["acme.example"], client } →
operator accepts the RoE → pentest_add_goal → pentest_set_phase { phase: "recon" } →
pentest_exec { tool: "nmap", args: ["-sV", "acme.example"], target: "acme.example" } →
pentest_add_fact { title, detail, toolRunId, asset } → pentest_add_asset { kind: "host", host, factId } → pentest_resolve_wordlist { id: "dir-medium" } → pentest_exec { tool: "gobuster", … } →
skip each untested non-reporting phase with a reason (pentest_set_phase { phase: "exploitation", status: "skipped", note: "Recon-only scope" }) → pentest_complete_engagement { formats: ["md", "pdf"] }.
Web assessment. pentest_web_assess { url: "https://acme.example" } →
pentest_browser { action: "launch", url } → snapshot → click / fill / screenshot for the
JavaScript-rendered or authenticated path → pentest_add_finding per issue with wstgIds, evidence
and remediation → pentest_attach_evidence for the screenshots → pentest_report { format: "html" }.
API audit. pentest_api_discover { baseUrl: "https://acme.example/api/", browserId } →
read the inventory: undocumented paths, auth requirement, parameters → pentest_api_request for
authenticated checks → pentest_api_fuzz { url, location: "query", parameter, category: "sqli", maxRequests: 20, ratePerSecond: 5 } → widen only after reading the anomalies → record findings; the
exchanges are already in Evidence.
Assurance pass. pentest_verify { findingId } → if inconclusive, attach the missing evidence
and re-run → pentest_identity { action: "add", label, role, mfa, access } →
pentest_identity { action: "gaps" } → pentest_oob { action: "create", label: "ssrf", target },
embed the URL in the payload → pentest_oob { action: "check", id } after the target fires →
pentest_sarif {} for CI and pentest_retest { action: "plan", findingId } before any replay.
Closure. pentest_state (read completionStatus: open phases, verified findings, evidence
count) → close or skip each open non-reporting phase with a note → pentest_report { format: "md" }
as a last draft → pentest_complete_engagement { formats: ["md", "html", "pdf", "docx", "json"], lang: "en" } → pentest_export_bundle and hand over the archive.
- Engagement and graph — phases, nodes and edges
- Scope and safety — gates, approvals and OOB canaries
-
Exploitation loop —
pentest_exploitationin depth -
Team and planning —
pentest_planandpentest_team - Web and API testing — browser, assessment, discovery and fuzzing
- docs/TOOLS.md
- Field manual: running the engagement
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