Skip to content

dsh-redteam 1.1.0

Choose a tag to compare

@sm0k3net sm0k3net released this 27 Nov 16:14
· 13 commits to main since this release

dsh-redteam 1.1.0

A reporting and hand-off release. DOCX deliverables and screenshot-rich HTML, a one-archive
project export, an AI-assisted scope draft, a target-topology view and a rebuilt report design —
plus a changed first-install security default that operators should read before upgrading.

Requires DeepSeek Harness 0.2.2-rc.3 or newer. Node 20 minimum, 22 recommended (the browser
needs Node 21+). No npm dependencies. MIT.

Highlights

Deliverables a client can actually use

  • DOCX reports. pentest_report, pentest_complete_engagement and pentest_export_bundle
    accept docx. The dependency-free writer produces a real WordprocessingML package: cover and
    document control, a Word TOC field, heading and table styles, A4 pages, PAGE/NUMPAGES
    headers/footers, repeating register headers and captioned evidence screenshots. Reports render
    in Markdown, HTML, JSON, PDF, DOCX and Markdown slides, in English and Russian.
  • Screenshots inside HTML and DOCX. Evidence vault screenshots are embedded inline, bounded
    to 24 images, so a single HTML file or Word document is a complete deliverable. Files outside
    the session's evidence directory are never read.
  • pentest_export_bundle. One deterministic ZIP with every artefact:
    reports/ (any format subset), evidence/<kind>/, findings/findings.csv and .json,
    state/engagement.json, state/report-model.json, state/audit.jsonl,
    state/tool-runs.json, state/commands.txt, process/engagement-process.md (internal
    timeline), plus manifest.json, README.txt and sha256sums.txt. Written to
    $DSH_HOME/redteam/bundles/<session>/, recorded in the audit trail, and exposed as
    Export bundle (ZIP) in the Report tab.

Faster, better-evidenced work

  • pentest_nuclei. Scoped, rate-limited Nuclei template scans (5–150 req/s); JSONL matches
    become a fact plus structured template results. Invalid filters are refused before execution.
    The Kali catalogue is now 47 tools: the 31 from 1.0 plus katana, gau (getallurls),
    gospider, hakrawler, naabu, paramspider, wpscan, certipy, bloodhound-python,
    enum4linux-ng, evil-winrm, ldapsearch, smbclient, rpcclient, mitmproxy and
    bettercap. Nuclei template install/list metadata is documented.
  • Offensive-skills library (pentest_skills). Auditable playbooks with phase, objective,
    prerequisites, steps, tools, evidence requirements, stop conditions, safe wording and validated
    ATT&CK/WSTG references. Actions list/get/recommend; the library never runs a tool or creates a
    finding. The snapshot carries recommendations for the live engagement.
  • AI scope draft. Describe the authorized scope once; the Host model route returns a strict
    JSON draft with names, targets, CIDRs, domains, exclusions, assumptions and a confidence score.
    The reply is re-validated locally, metadata endpoints and embedded credentials are removed, and
    nothing is applied until the operator saves. The prompt is the only thing sent.
  • Target topology. The Assets tab maps targets, assets, services and findings with their
    hosts / runs_on / identifies / proves edges in a pannable, zoomable SVG view with
    keyboard focus, bounded to 120 nodes and 200 edges.
  • Wider OSINT layer (36 services). New recon, exposure, identity, breach/leak and dark-web
    connectors, with an osintAllowlist, explicit approveLeakLookups, hourly leak/dark-web
    budgets, enableOnionFetch off by default and a loopback-only Tor proxy. Leak results are
    metadata-only, illegal query categories are refused locally and audit events use a salted
    subject hash rather than the query.
  • Stronger verification rule. A finding recorded as verified or exploited must carry
    evidence, a tool run, evidence ids or a validation record; otherwise it is stored and reported
    as unverified, with an explicit message.

Report design

The generated report now opens with document control and contents, then an executive dashboard:
risk index, severity mix, phase coverage, WSTG coverage, findings-with-evidence coverage and the
recorded attack path. Finding cards add a CVSS base-metric breakdown, observation/impact/detection/
reproduction fields, remediation priority and a recommended SLA, plus a retest/closure register
and explicit limitations. The risk index and SLAs are labelled as triage aids, not CVSS scores or
client-agreed terms. HTML is self-contained, responsive, theme-aware and print-first; DOCX carries
the same model into Word.

Interface

The Flow canvas was rebuilt: deterministic orthogonal edges on an 8 px grid, fixed type columns,
per-column collapse above eight cards, a bottom rail for back edges and a colour-independent
status/phase language. The tab strip gained roving-focus keyboard navigation, and a compact
progress/status strip replaces the old banners.

Fixes worth naming

  • Bundle names no longer collide between Markdown narrative and Markdown slides (*.slides.md).
  • Findings CSV accepts both string and array forms of OWASP/WSTG/evidence references.
  • Evidence links survive snapshot clipping, so reports show proof attached to findings.
  • API discovery reports a real network failure instead of an empty inventory; loopback spec
    servers are aligned to the discovered origin.
  • Browser automation dismisses blocking JavaScript dialogs (configurable) and retries a timed-out
    snapshot once. Docker-runtime tool targets of localhost/127.0.0.0/8/::1 are refused with a
    localized explanation, because the container cannot reach Host loopback.

Upgrade note from 1.0.0

The first-install mode changed to default; SAFE is now opt-in. A new engagement runs the
full PTES chain inside the accepted RoE unless the operator selects SAFE. If an installation
relied on the 1.0 approval gate, set this before upgrading:

config:
  defaultMode: safe

Stored engagements keep their own mode. browser.autoDismissDialogs defaults to true;
scopeAI can override the aiEnhancement model route for scope drafts only.

There is no data migration: the state schema is unchanged, and new fields (state.bundle,
report metrics) are additive.

Formats and artefacts

Format Extension Images Notes
Markdown .md — portable review copy
HTML .html embedded PNG/JPEG/WebP screenshots single self-contained file, print-first
JSON .json — full report model
PDF .pdf — embedded TrueType font, Latin + Cyrillic
DOCX .docx embedded PNG screenshots Word TOC field, headers/footers
Slides .slides.md — Markdown deck outline
Bundle .zip as stored reports + evidence + findings + state + manifest + sums

Verification

  • node scripts/build-client.mjs succeeds and is idempotent; node --check index.js and
    node --check client.js pass.
  • node --test test/*.test.mjs: 485 tests, 484 passing, 0 failing, 1 skipped on a networked
    workstation (the opt-in live Docker check, REDTEAM_DOCKER_TEST=1). CI additionally skips one
    browser end-to-end test when its external demo target (demo.testfire.net) is unreachable.
  • New suites cover DOCX structure and XML escaping, image embedding, HTML data-URI gallery, bundle
    layout/manifest/sums/determinism, scope-AI validation and refusal paths, topology model and
    layout, and the skills library (filters, recommendations, ATT&CK/WSTG reference resolution).
  • The full test totals were measured on 2026-11-27 against the v1.1.0 tag.

Known limitations

  • The AI scope draft needs a configured Host model route; without one it returns a clear
    "no usable model route" result and the manual scope form works as before.
  • DOCX embeds PNG screenshots only (up to 24); other image formats are skipped in Word. PDF does
    not embed images by design; the HTML gallery is the image-rich format.
  • Word populates the TOC field when the document is opened (or on F9); the plugin does not
    precompute page numbers.
  • The bundle is written to the Host filesystem and its path is returned; there is no browser
    download route for the ZIP (individual reports and evidence files keep their existing routes).
  • Docker-dependent live checks are opt-in and were not run in this verification pass; the
    non-Docker suite is green.
  • The report risk index is an additive triage aid (critical 25, high 15, medium 8, low 3, info 1,
    capped at 100), not a CVSS replacement.