DeepSeek Harness plugin

Red team engagements,
not chat logs.

A PTES workbench that lives in the sidebar: an agent with 51 tools, passive OSINT enrichment and a report of its own, a live goal-to-finding graph, plan and team mode, a hardened Kali toolbox, real browser and API testing, and an evidence chain an auditor will accept.

install
$ git clone https://github.com/sm0k3net/dsh-redteam.git
$ cd dsh-redteam
$ dsh plugin --profile web add "$PWD"
  • MIT licence
  • DSH 0.2.2-rc.3
  • 51 agent tools
  • 714 tests · 712 pass, 2 env-gated
  • 6 report formats
  • no runtime deps
DeepSeek Harness · right sidebar · Red Team
Red Team panel: PTES phase rail on the left, the live Goal–Intent–Fact–Finding–Asset board in the centre, and the engagement header with mode badge, findings and evidence counters. Red Team panel: PTES phase rail on the left, the live Goal–Intent–Fact–Finding–Asset board in the centre, and the engagement header with mode badge, findings and evidence counters.
51
agent tools, one policy pipeline
47
curated tools in the Kali toolbox
39
OSINT connectors, keys never leak
714
tests · 712 pass · 2 environment-gated

The problem

Most "AI pentest" setups are a chat window with shell access.

No scope, no evidence chain, no artefacts anyone would sign. This plugin makes the engagement the primary object — and keeps the human in the decisions that matter.

Chat + shell

  • Authorization lives in a paragraph you hope everyone read
  • Scope exists in the prompt, not in the code
  • The model narrates results it never ran
  • Reports rebuilt from memory, evidence screenshots in a chat
  • You cannot tell what was executed, when, or why

An engagement workbench

  • Scope validated in code before every action
  • PTES phases gated one step at a time
  • Facts and findings only from real exit codes
  • Reports rendered from the store, evidence hashed
  • Append-only audit trail, shown live in the panel

Capabilities

One store, two surfaces, no hidden state.

The agent's tools and your panel read and write the same engagement. Nothing it does is invisible; nothing you approve is unrecorded.

Live attack graph

Goal → Intent → Fact → Finding → Asset with labelled edges, phase filters, a target-topology view in Assets, and an inspector that shows the raw tool run behind any node.

OSINT enrichment and report

pentest_osint_enrich turns one in-scope IP, CIDR, domain or hostname into ASN, geography, PTR, hostnames, certificate subdomains, third-party ports, reputation, sources and confidence — without scanning or touching it. pentest_osint_report writes a standalone Markdown/HTML/JSON brief, and the new OSINT tab renders what was actually collected.

Hardened Kali toolbox

A plugin-owned container: all capabilities dropped, only the apt and raw-network ones added back, PID limits, no host apt, and a degraded host mode when Docker is absent.

Real browser sessions

Isolated Chromium per engagement: DOM and form snapshots, click, fill, evaluate, screenshots, cookies, storage, network and console — with scope enforced on navigation.

API discovery and controlled fuzzing

OpenAPI, GraphQL and JS-bundle mining, a scoped request console, nine payload families with rate limits and anomaly detection, plus scoped Nuclei template scans.

Immutable evidence vault

Every capture hashed with SHA-256, stored write-once, packaged with a manifest and sha256sums.txt, and listed in the report register. pentest_verify re-reads what was captured and returns confirmed, refuted or inconclusive.

Reports from the store

Markdown, DOCX, self-contained HTML, JSON, PDF with embedded fonts and a slide outline — six formats, English and Russian. The HTML report is a findings-first brief: a verdict panel and severity mix lead, business issues link straight to their finding, and supporting analysis collapses on screen and expands for print.

Offensive-skills library

20 auditable playbooks with phase, objective, steps, tools, evidence requirements and validated ATT&CK/WSTG references, reachable through pentest_skills.

Bounded exploitation loop

pentest_exploitation plans candidates, records one least-impact attempt per round, classifies the real output, changes exactly one variable and either retries, pivots or confirms with linked evidence. Caps are enforced: 6 rounds by default (12 maximum), 3 attempts per candidate (5 maximum), 20 candidates.

AI scope draft

Turn one operator description into validated targets, CIDRs and domains with credential redaction and metadata-endpoint refusal — a draft for review, never an auto-apply.

Safe scope expansion

A recon or OSINT discovery can now extend the boundary through pentest_scope: inside an authorized target, CIDR or domain root it is applied automatically and audited with its source fact; outside every root it waits as a pending proposal only the operator can approve. Exclusions and metadata endpoints never expand, and the RoE acceptance is not reset.

One-archive hand-off

pentest_export_bundle writes a deterministic ZIP: every report format, the evidence vault, findings CSV/JSON and SARIF 2.1.0, the engagement state, audit trail, tool runs and SHA-256 sums.

Plan, team and budgets

pentest_plan keeps a budgeted step plan with a deterministic critic that blocks on real conditions only; pentest_team turns selected roles into phase tasks with dependencies, write scopes and delegation prompts. Both surface in the new Team tab.

Stop and restart lifecycle

Stop kills active tool runs, interrupts tracked native agents, blocks the running phase and denies pending approvals while keeping findings, evidence and the audit trail. Restart from scratch archives the old state and artifacts, keeps scope and RoE, and starts a clean engagement with a new id.

Identity and access matrix

pentest_identity records accounts, auth method, privileges and per-asset access, then computes the coverage and privilege gaps and the identity tests against each asset. Secrets are never stored — only whitelisted fields, with credential-shaped text redacted.

Out-of-band proof and retests

pentest_oob mints inert canary tokens for blind SSRF and XXE callbacks and records bounded, deduplicated hits; pentest_retest plans a scoped GET/HEAD/POST replay of a stored proof and closes the finding as fixed, still vulnerable or inconclusive.

Workflow

Authorize, execute, prove.

Seven checkpoints between an instruction and a report. Each one is enforced in the Host, not requested in a prompt — step through it, or let the run play.

Engagement run · seven gates

01 / 07 · Scope

Seven steps. Use the previous and next buttons, click a step, or use the arrow keys to explore it.

01 Operator · scope

The boundary is written down first.

Targets, CIDRs, domains and exclusions are recorded before a single packet moves. Exclusions always win, overlapping CIDR exclusions are refused, and cloud metadata endpoints stay blocked even if someone adds them. A discovery inside an authorized root can extend the scope automatically and is audited with its source; anything outside every root waits as an operator proposal.

Tools
pentest_start_engagement·pentest_scope
Gate
Operator authority — the agent cannot replace scope.
You see
A scope summary in the panel header and a scope_updated audit entry.
Tool reference →audit: scope_updated

02 Operator · authorization

The RoE unlocks everything else.

Accept and start records the client, contact, work window and notes. Until then, gated phases and the mode switch stay locked. acceptRoe, setMode and resolveApproval exist only as operator actions; the engine rejects any other actor.

Tools
None — an operator action in Scope & RoE, by design.
Gate
Operator-only. The agent has no code path to it.
You see
The acceptance banner clears, gated phases unlock, and roe_accepted lands in the audit.
Safety model →audit: roe_accepted

03 Host · phase gate

One phase forward, never two.

pentest_set_phase enforces PTES order: one step forward, free backtracking, and a written reason for every skipped or blocked phase. running and done require the accepted RoE; moving forward closes the previous phase. pentest_plan records the budgeted step plan the gates run against, and its deterministic critic refuses an exploited finding that has no evidence, a hard budget overrun or an unsafe risk flag.

Tools
pentest_set_phase·pentest_state·pentest_plan
Gate
Accepted RoE + PTES phase order.
You see
The nine-phase rail advances, and every skip reason shows up in the report.
Tool reference →audit: phase_changed

04 Host · execution

Argv into a hardened container.

pentest_exec validates the target against the scope before an approval exists, resolves wordlist paths per runtime, and spawns an argv array — no shell string. The real exit code, duration and bounded stdout/stderr come back as the result.

Tools
pentest_exec·pentest_tool_inventory·pentest_resolve_wordlist
Gate
RoE + scope, plus the category's approval class in SAFE mode.
You see
An Activity row: command, target, category, runtime, exit code and output excerpt.
Tool reference →audit: tool_finished

05 Host · SAFE mode (opt-in)

Exploitation-class calls stop here.

DEFAULT mode runs the full chain; optional SAFE mode gates six exploitation-class categories behind a card with the exact command, target, phase and impact. Ignoring it expires the request after five minutes — nothing defaults to approved. The bounded loop in pentest_exploitation respects the same decision: a denial ends the loop, it is never retried around.

Tools
pentest_exec blocks·pentest_exploitation·pentest_approvals
Gate
SAFE mode (opt-in) — the operator resolves it in the panel, nowhere else.
You see
A card in Approvals with the exact command; the decision is audited and returned to the agent.
This gate can split Approved → runs Denied / expired → re-plan phase
Approval lifecycle →audit: approval_granted · approval_denied · approval_expired

06 Host · graph + evidence

A conclusion is a node with a hash behind it.

Facts and findings enter the Goal → Intent → Fact → Finding → Asset graph and cite the run that produced them. Tool output, screenshots and HTTP exchanges are captured write-once, hashed with SHA-256, and linked to the node they prove. OSINT enrichment adds sourced, dated facts and a provenance map, and pentest_osint_report renders them as a standalone brief. Blind callbacks from pentest_oob canaries and evidence-only verdicts from pentest_verify land in the same chain.

Tools
pentest_add_fact·pentest_add_finding·pentest_osint_enrich·pentest_osint_report·pentest_evidence_add·pentest_attach_evidence·pentest_oob·pentest_verify
Gate
Accepted RoE; evidence is immutable once written.
You see
New nodes in Flow, each with its tool run, linked evidence and SHA-256 in the inspector.
Security invariants →audit: fact_added · evidence_added

07 Host · reporting

Rendered from the store, never from memory.

pentest_report produces a draft in any of six formats, DOCX included. The HTML deliverable is a findings-first brief: verdict, severity mix, business issues linked to their finding cards, and technical detail behind a per-finding expander that opens automatically for print. pentest_complete_engagement refuses while a non-reporting phase is neither done nor skipped with a reason, then writes the final set in English or Russian; pentest_sarif exports findings as SARIF 2.1.0 and pentest_export_bundle adds the whole project as one deterministic ZIP. If the work must stop early, Stop keeps the record and Restart archives it before a clean start.

Tools
pentest_report·pentest_complete_engagement·pentest_sarif·pentest_export_bundle
Gate
Accepted RoE + the completion checklist.
You see
Markdown, DOCX, self-contained HTML, JSON, PDF and a slide outline, with embedded screenshots, the evidence register and audit appendix.
Tool reference →audit: report_generated

Scope and the Rules of Engagement are operator actions; every other step runs in the Host and is audited before the result comes back. Click any step to take over — Play resumes the loop.

The panel

Eight tabs, eight drawers, one session.

It docks like any other sidebar tab: drag, split, float, fullscreen, resize — with light, dark and system appearance, English and Russian. Since 1.2 the strip carries Team (plan, roles, budgets and QC); since 1.3 it also carries OSINT, the read-only board for enrichment results and the standalone report. The Flow, OSINT and Assets captures below were taken on the 1.2 and 1.3.0 builds; the drawer captures — Tool manager, Evidence, API test, Approval and Wordlists — are older 1.0/1.1 images kept until a safe newer capture exists. Each caption says which build it shows.

Flow tab with the PTES phase rail, the mode banner and the Goal, Intent, Fact, Finding and Asset columns at 70 percent zoom.
The engagement graph: goals, intents, facts, findings and assets, with the inspector behind every node. Captured on the 1.2 build (27 November 2026) — the strip shows six tabs because OSINT arrived with 1.3, whose stacked dark board is the hero image when the site is in dark mode.

Agent surface

51 tools, nine groups, one policy pipeline.

Engagement and graph, a bounded exploitation loop, execution and toolbox, wordlists, web/API/scanning, evidence and export, verification and proof, planning and team, and knowledge with the OSINT layer. Every call resolves the engagement, checks the Rules of Engagement, validates scope, classifies the tool category and writes an audit entry.

Engagement & graph 13

start_engagement scope state graph add_goal add_intent add_fact add_asset add_finding set_phase update_engagement identity complete_engagement

Exploitation loop 1

exploitation — plan, record a real attempt, delegate or read status

Execution & toolbox 6

exec setup_toolbox tool_inventory install_tool remove_tool tool_search

Wordlists 5

wordlists resolve_wordlist enhance_wordlist wordlist_feedback wordlist_adapt

Web, API & scanning 6

browser web_assess api_discover api_request api_fuzz nuclei

Evidence & export 7

evidence_list evidence_add evidence_get evidence_package attach_evidence export_bundle sarif

Verification & proof 3

verify retest oob

Planning & team 2

plan team

Knowledge, OSINT & governance 8

osint osint_enrich osint_report methodology skills report approvals audit

Full tool reference — parameters, gates, side effects →

Safety model

Human authority is structural, not a prompt.

DEFAULT is the install default and runs the full PTES chain. SAFE is the opt-in gate: exploitation-class commands then wait for an operator decision. In both modes, scope, operator-only RoE acceptance, append-only audit, hashed evidence and inert, engagement-scoped canaries always apply.

Scope is enforced per actionExclusions win, overlapping CIDR exclusions are refused, metadata endpoints are always blocked, and only http(s) reaches the browser.
Scope can grow only with consentA discovery inside an authorized target, CIDR or domain root is applied and audited with the fact that found it. Anything outside every root stays a pending proposal until the operator approves it. Exclusions and cloud-metadata endpoints are never expandable, and an expansion does not reset the RoE acceptance.
SAFE gates exploitation-class workIn optional SAFE mode, exploitation, privesc, lateral movement, exfiltration and credential attacks wait for a decision, then expire if nobody answers. DEFAULT runs them directly inside scope.
Audit is append-onlyMode switches, approvals, denials, executions, installs, scope changes and expansions, stop and restart are written to JSONL and summarised in every report. Restart archives the old state instead of deleting it.
Secrets stay on the hostOSINT keys, authorization headers and token query values are redacted from output, evidence and the audit trail. Passive enrichment never scans or connects to the target; it only reads what third-party sources already published.
Leak and dark-web lookups are gatedBreach lookups need explicit approval and an hourly budget; onion fetch is off by default and rides a loopback-only Tor proxy. Refused categories never leave the host.
Evidence is hashed and immutableEvery capture is written once with SHA-256 over the stored bytes; a finding cannot be marked verified without evidence, a tool run or a validation record.
Canaries are inert and scopedAn out-of-band canary mints an unguessable rt-… token and only records hits reported to the local canary route; it opens no listener and sends no traffic. A target attached to a canary must be inside the accepted scope, hits are deduplicated and bounded, and the canary expires by default after an hour.

Read the full safety model →

SAFE mode · opt-in Approval required KT-20261127-6A6C
Tool
metasploit-framework
Category
exploitation
Target
10.10.14.7:445 (in scope)
Phase
exploitation
Expires
5 min · no auto-approve
Impact
Authenticated SMB session
msfconsole -q -x "use exploit/windows/smb/psexec; set RHOSTS 10.10.14.7; run"
Approve once For phase Deny

Curated library

Everything the plugin uses, in one tracked catalogue.

Wordlists and dictionaries, the Kali tool set, OSINT connectors, methodology data and the upstream repositories behind them — each entry with a licence, a maintenance signal and a review date, so the list does not rot.

Portrait of Uladzislau Murashka

Developer

Uladzislau Murashka

Offensive security · AI & automation engineering

CEH-certified security engineer with 15+ years in IT and a decade in offensive security: penetration testing, compliance audits (PCI DSS, ISO 27001, SOC 2, GDPR) and AI agent engineering. dsh-redteam is built from that practice — the engagement model, the gates and the evidence chain are what a real assessment needs.